Commit Graph

42156 Commits

Author SHA1 Message Date
jackqdyulei
ecee676093 Fix the time format error in high usage dialog
It should show time string rather than milli seconds.

Fixes: 71960199
Test: RunSettingsRoboTests
Change-Id: I35acbad53069c06379b4b7884ff9bd8aa24c5697
2018-01-18 17:48:37 -08:00
jackqdyulei
963b7cca25 Add database to store anomaly data
1. Refactor HighUsageApp to AppInfo so it could be
reused both in dialog and app restriction
2. Add BatteryDatabaseHelper to store the anomaly log

Bug: 70570352
Test: RunSettingsRoboTests

Change-Id: I900cd9746ff7f1e19bd6f3948463588b7cf72b85
2018-01-18 14:09:30 -08: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
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
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
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
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
Fan Zhang
4e08869e1a Make a strong reference to LifecycleOwner in tests
Change-Id: Id3b26ded6c903b67b9880dbfe1a0656a564c8947
Fixes: 71867776
Test: rerun tests
2018-01-11 14:30:16 -08:00
Fan Zhang
207f4dda9e Merge "Misc fixes in device info page" 2018-01-11 22:19:05 +00:00
TreeHugger Robot
66c061a09f Merge "Add developer tiles for layer and window trace" 2018-01-11 21:37:53 +00:00
TreeHugger Robot
d99a8ef4f8 Merge "Misc fixes" 2018-01-11 21:16:46 +00:00
Fan Zhang
f93fcd366a Update screen pinning state whenever it changes.
Change-Id: I98f0a7b0afcc76bcf822786e6cf3ea37004db1a8
Fixes: 71845181
Test: robotests
2018-01-11 12:42:16 -08:00
Fan Zhang
1f37d2cc7a Misc fixes in device info page
- Move DeviceInfoSettings to deviceinfo package
- Remove deprecated manifest entries
- Rename a bunch of things
- Add ripple and change text color to accent for security patch

Change-Id: I35c04e53829a67cba553f984ad1a1b9319077873
Fixes: 71775150
Test: robotests
2018-01-11 12:31:02 -08:00
Fan Zhang
43c85f5f92 Misc fixes
- Allow everyone to submit tests.
- Fix SoundPreferenceControllerTest

Fixes: 71860595
Test: rebuild
Change-Id: I36626beb304966d3d453ebe02d37625e6e724d08
2018-01-11 11:39:56 -08:00
Salvador Martinez
eb66aac00f Re-add support string that was being used by wifi
A wifi button was piggybacking on a support string. This CL adds a
new string for the button to use instead.

Test: robotests pass
Bug: 71858657
Change-Id: Ic0da845fb70f33fc4365a4ee4586de685e3ef338
2018-01-11 10:55:55 -08:00
Salvador Martinez
86a9be347c Add support for early warning query
This CL adds the necessary code to enable the early warning query
from the provider.

Test: robotests in topic
Bug: 71593245
Bug: 71812931
Change-Id: I32e10d1b9f752af672b5d1c6ccb8ba9f2f9cc387
2018-01-11 10:16:49 -08:00
Joachim Sauer
0cdbe1897c New manual time zone picker.
This implements a new manual time zone picker that allows selection of a
time zone for a selected country. It also allows selecting a fixed
offset time zone (most importantly Etc/UTC, which is a frequently
requested feature).

The new time zone picker is currently behind a feature flag
(settings_zone_picker_v2), which is disabled by default.

Test: manual
Test: SettingsFunctionalTests
Test: SettingsRobotTests
Bug: 62255208
Change-Id: I89c5a04bcb562b6facf5f31a8aa4ad1cdd51ab10
2018-01-11 18:03:16 +00:00
TreeHugger Robot
0fea51b343 Merge "Add ability to show/hide Color Correction and Color Inversion." 2018-01-11 17:49:56 +00:00
Joachim Sauer
0bed37a086 Data loading component for new time zone picker.
Add new data loading classes for improved manual time zone picker.

These classes use existing sources mostly from ICU4J to construct the
list of regions and timezones to present to the user.

Test: SettingsRoboTests
Bug: 62255208
Change-Id: I244c391a41b0b53cd3f7857f9c0d1ef766a39b17
2018-01-11 12:18:54 +00:00
TreeHugger Robot
66898b0cc9 Merge "Update master switch style" 2018-01-11 03:00:28 +00:00
Ben Lin
f1346930bc Add ability to show/hide Color Correction and Color Inversion.
This adds two new boolean flags:
config_show_color_inversion_preference
config_show_color_correction_preference

Which whent set to false, will hide the color inversion and color
correction preference items, respectively.

Bug: 62378109
Test: make RunSettingsRoboTests
ROBOTEST_FILTER=AccessibilitySettingsTest

Change-Id: I06eac8e141bd6564495298c6c6544a7b059a4e73
2018-01-10 18:33:01 -08:00
jackqdyulei
b7a35b5c06 Add metric id for anomaly fragments. am: 2fd1c9839c
am: 9bf0e057c8

Change-Id: I4d5941fb40ed03c6b4ed8563cb58bfc2a888f6be
2018-01-11 01:56:23 +00:00
jackqdyulei
9bf0e057c8 Add metric id for anomaly fragments.
am: 2fd1c9839c

Change-Id: Iff6c41c8549cdc102e954d6a429a9ab56d4e10c6
2018-01-11 01:53:47 +00:00
TreeHugger Robot
415e875324 Merge "Fix alignment in location requests screen" 2018-01-11 01:35:42 +00:00