Commit Graph

42276 Commits

Author SHA1 Message Date
Lei Yu
8fe96d100a Merge "Only show one tip at a time" 2018-01-17 03:30:55 +00:00
TreeHugger Robot
c74ba59aec Merge "Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY." 2018-01-17 02:17:19 +00:00
Lei Yu
e7745b128a Merge "Add early warning tip and detector" 2018-01-17 01:28:08 +00:00
TreeHugger Robot
de64baeb0e Merge "Implement PreferenceControllerMixin in TrustAgentController" 2018-01-17 00:34:39 +00:00
yuemingw
b4fc5ced62 Block settings when DISALLOW_CONFIG_AMBIENT_DISPLAY.
Test: m -j RunSettingsRoboTests
Fix: 67675787

Change-Id: Ibf5786982e258decea4486431faa45ff1b7480ef
2018-01-17 00:23:37 +00:00
Vishnu Nair
45603a1524 Show Toast with location of trace when trace is disabled
- Rename Layer Trace development tile to Surface Flinger Trace

Bug: 64831661
Test: Manually toggle trace
Test: make RunSettingsRoboTests ROBOTEST_FILTER=LayerTraceTest && make RunSettingsRoboTests ROBOTEST_FILTER=WindowTraceTest
Change-Id: I438efca251688774f0d6f29ba93d02d116f1e574
2018-01-16 16:00:03 -08:00
Fan Zhang
568f01dfc0 Implement PreferenceControllerMixin in TrustAgentController
Change-Id: Iba7cfb139ec213ef6ebc605902a41165e52fb6a1
Fixes: 72056368
Test: robotests
2018-01-16 14:58:21 -08:00
Fan Zhang
85cd77c9f2 Remove search v1
Fixes: 69851037
Test: robotests
Change-Id: I53bc6408116031619053066055cb26cac67b9945
2018-01-16 14:19:51 -08:00
jackqdyulei
2e0bdc34f2 Only show one tip at a time
1. Update the order for each tip.
2. Change BatteryTipPreferenceController and only show one precedent
tip.
3. Update the SummaryDetector since now it doesn't need visibleTips

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: I9e2b8e72aad263f8a210c9320e0ea1eaaf8d5042
2018-01-16 14:13:13 -08:00
jackqdyulei
62d6a9dca7 Add early warning tip and detector
When battery cannot make to usual charging time, this tip would
suggest user to turn on battery saver.

This tip has two visible state(NEW, HANDLED) and display different
information.

This cl also adds an action to turn on the battery saver.

Bug: 70570352
Test: RunSettingsRoboTests
Change-Id: I0e96554df12a0d6508c27174e16d8dca7f4e1fce
2018-01-16 14:10:21 -08:00
Fan Zhang
33d5a76c6f Remove "emergency alert" from Sound settings
It's already in "App & notification" page

Change-Id: I858999f8e097d5712eee1b8d34f47e0e900bf859
Fixes: 71813931
Test: rebuild/visual/atest UniquePreferenceTest
2018-01-16 14:04:18 -08:00
jackqdyulei
d90ad5224c Disable lowBatteryTip and ReducedBatteryTip
Change-Id: Ibc2e9f01396d6584764bb3deb8e2ebabdb2c1ffb
Fixes: 71921003
Test: RunSettingsRoboTests
2018-01-16 12:41:27 -08:00
TreeHugger Robot
d6b0490dea Merge "Add ability to show/hide airplane toggle." 2018-01-16 20:16:16 +00:00
TreeHugger Robot
c2b151d8ad Merge "Fix plus position in about phone" 2018-01-16 19:21:32 +00:00
TreeHugger Robot
a35adb12f0 Merge "Initial screens for Storage Access." 2018-01-16 19:14:58 +00:00
Hansong Zhang
80fa91891e Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" am: ea5243e28d -s ours am: b4ed2b2005
am: 43c58ddfe6  -s ours

Change-Id: I1e0b733fcc666c1f34232fbab5fb97d3c9f6e0ad
2018-01-16 18:47:13 +00:00
Ben Lin
e5e8f0368f Add ability to show/hide airplane toggle.
This introduces a new boolean flag:
config_show_toggle_airplane

Which when set to false, will hide the airplane mode toggle in network &
internet.

Bug: 69813881
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AirplaneModePreferenceControllerTest

Change-Id: I2cf682bf78231040eba5573fbcb55a65be2a13df
2018-01-16 18:23:52 +00:00
Hansong Zhang
43c58ddfe6 Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" am: ea5243e28d -s ours
am: b4ed2b2005

Change-Id: I0b80d8c673b680ab530f34420bb330665ab904b8
2018-01-16 18:13:44 +00:00
Hansong Zhang
b4ed2b2005 Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices"
am: ea5243e28d  -s ours

Change-Id: I57c326c97f19597bd2865c328e024de4da889e77
2018-01-16 18:04:48 +00:00
Wu Qiang
4d8f51531f Fix plus position in about phone
Settings has phone number in about phone, "+"
is shown with incorrect position in Bidi layout.
Then it needs to use BidiFormatter

Fixes: 70700094
Test: manual
Change-Id: I1d63f773926136c38ce1ac811869476dc6a89eac
2018-01-16 09:58:36 -08:00
Treehugger Robot
ea5243e28d Merge "DO NOT MERGE Add developer menu to select max number of connected audio devices" 2018-01-16 17:48:53 +00:00
Matthew Fritze
82254b08fd Add dynamic summaries to Slices
Summary on slices will now determined by checking that
summaries in the following order are valid:
1) SliceData summary
2) Preference Controller summary
3) SliceData screen title

Valid is currently defined as:
- Not empty / null
- Not whitespace
- Not sumamry placeholder

Fixes: 71640678
Test: robotests
Change-Id: I5e699e8566ece80742d311617b7dc4e9a9bda8cf
2018-01-15 16:05:16 -08:00
TreeHugger Robot
844145686c Merge "Adopt robolectric 3.6.1" 2018-01-13 11:32:30 +00:00
TreeHugger Robot
c4667bc3b7 Merge "Tweak app notification page title and expand button cutoff" 2018-01-13 02:48:37 +00:00
Felipe Leme
7a0ad2b30f Initial screens for Storage Access.
This new settings will be accessed through Apps -> Special Apps and it will let
users change the status of granted (or denied) Scoped Access Permissions.

This initial CL implements the landing activity that shows all packages and an
initial version of the detailed activity for a specific page, althouth the
detailed activity is not ready yet.

Test: manual verification
Test: export ROBOTEST_FILTER=com.android.settings.core.codeinspection.CodeInspectionTest && make RunSettingsRoboTests -j40
Bug: 63720392

Change-Id: Id0419c2c4aaaec365803218d6947e230e4776f13
2018-01-12 18:06:48 -08:00
TreeHugger Robot
1ad173bb00 Merge "Block settings when DISALLOW_CONFIG_BRIGHTNESS." 2018-01-13 01:01:48 +00:00
TreeHugger Robot
e723c9c073 Merge "Add smart battery tip." 2018-01-12 23:11:23 +00:00
yuemingw
68b0320856 Block settings when DISALLOW_CONFIG_BRIGHTNESS.
Test: m -j RunSettingsRoboTests
Change-Id: I667c76dfef20158ab2a72178fb82b8183b448976
Fix: 67675654

Change-Id: I83f2e0086e16cd2a0dbc4cbcc31d4e2d454934cd
2018-01-12 23:03:17 +00:00
Fan Zhang
4f389a7731 Tweak app notification page title and expand button cutoff
Change-Id: If9b93023ac9ab946b7c2b0dd65852948029da896
Fixes: 71813209
Test: visual
2018-01-12 15:00:09 -08:00
TreeHugger Robot
b2174a23cb Merge "Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ... the feedback from API council" 2018-01-12 22:26:02 +00:00
TreeHugger Robot
e31f582baf Merge "Introduce boolean flag to show/hide Location Scanning preference." 2018-01-12 21:53:12 +00:00
James Lemieux
99d10a4e62 Adopt robolectric 3.6.1
Bug: 71596155
Test: make RunSettingsRoboTests
Change-Id: I46362bae1e3ddd3ce19ade1c93250d272f3366e6
2018-01-12 13:49:29 -08:00
TreeHugger Robot
e9a3a14330 Merge "Add ability to show/hide individual settings in Sounds page." 2018-01-12 20:11:30 +00:00
Ben Lin
e8377718e0 Introduce boolean flag to show/hide Location Scanning preference.
This introduce one new flag:
config_show_location_scanning

Which when set to false, will hide "Scanning" in Location preference.

Some OEMs may control Bluetooth/Wi-Fi scanning themselves, so they may
want to hide the page from users.

Bug: 62418710
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=LocationScanningPreferenceControllerTest

Change-Id: I19f0020a2c94f70b3b7956529f57af098ccc79fd
2018-01-12 19:48:37 +00:00
TreeHugger Robot
8350682a45 Merge "Add string variants for "device" products." 2018-01-12 19:03:34 +00:00
jackqdyulei
e682126a11 Add smart battery tip.
Also move the action method from BatteryTip to TipAction. Since it
need extra data that we don't want to store it in parcel.

Bug: 71502850
Test: RunSettingsRoboTests
Change-Id: Ib658426725158d26fcdd437fa8bf6bf24e9a8c14
2018-01-12 10:32:12 -08:00
TreeHugger Robot
77a2fb8339 Merge "Follow slice refactor" 2018-01-12 18:17:26 +00:00
TreeHugger Robot
194085f5c5 Merge "Make a strong reference to LifecycleOwner in tests" 2018-01-12 18:01:23 +00:00
Salvador Martinez
6d42a716c9 Merge "Add support for early warning query" 2018-01-12 17:33:00 +00:00
Fan Zhang
b79e727307 Merge "Override switch bar string for wifi/battery saver screen" 2018-01-12 17:15:22 +00:00
TreeHugger Robot
6c14a6a699 Merge "Zen Mode messages + calls are ListPreferences (radio button dialog)" 2018-01-12 15:33:14 +00:00
Beverly
daa13a969f Zen Mode messages + calls are ListPreferences (radio button dialog)
Bug: 63077372
Test: ZenModeCallsPreferenceControllerTest
Test: ZenModeMessagesPreferenceControllerTest
Change-Id: I5d2516402b261413c51a1b4eba5153ffadf1459b
2018-01-12 14:52:17 +00:00
Jason Monk
5ef0a604a9 Follow slice refactor
Test: make
Bug: 68378561
Change-Id: Ifb35d39e54b2c292017b7866d7a52b120b4f6685
2018-01-12 09:19:14 -05:00
Tony Mak
3e81ae7748 Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ...
the feedback from API council

Fix: 71818127

Test: Build
Change-Id: Iab976fefcf00e0d5abada123b7c19344241b928a
2018-01-12 12:12:30 +00:00
Joachim Sauer
cff4bcb554 Merge changes from topic "tz_picker"
* changes:
  New manual time zone picker.
  Data loading component for new time zone picker.
2018-01-12 11:25:32 +00:00
TreeHugger Robot
21303fa16b Merge "Fix test crash in UniquePreferenceTest" 2018-01-12 01:57:37 +00:00
jackqdyulei
baaf043a8c Fix test crash in UniquePreferenceTest
Change-Id: I0393018dfe8c12541548d7b3900503a0d78c8e26
Fixes: 71794134
Test: atest UniquePreferenceTest.java
2018-01-11 16:16:10 -08:00
TreeHugger Robot
24b2d92fdb Merge "Update screen pinning state whenever it changes." 2018-01-12 00:03:44 +00:00
TreeHugger Robot
6a2ed84df5 Merge "Re-add support string that was being used by wifi" 2018-01-11 23:18:30 +00:00
Fan Zhang
87d120a7e1 Override switch bar string for wifi/battery saver screen
Bug: 69462439
Test: visual
Change-Id: I18d03ee1664f111222d7b9bb7ee893e4ce0e1343
2018-01-11 15:17:14 -08:00