OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoUpdate battery settings strings
Lei Yu [Mon, 9 Apr 2018 21:35:12 +0000 (14:35 -0700)]
Update battery settings strings

1. Change "screenTime" to "lastFullChargeTime" in high usage dialog
2. Update "Background restriction" strings
3. Update footer string

Bug: 73018395
Test: RunSettingsRoboTests
Change-Id: I07c149123c4ee1a69dd81c9a9e6eaa5df69b60b4

6 years agoMerge "String changes for suppressing ambient display" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 19:37:25 +0000 (19:37 +0000)]
Merge "String changes for suppressing ambient display" into pi-dev

6 years agoMerge "Stop logging hotspot password change in logcat." into pi-dev
Fan Zhang [Wed, 11 Apr 2018 19:21:20 +0000 (19:21 +0000)]
Merge "Stop logging hotspot password change in logcat." into pi-dev

6 years agoMerge "Adds the Swipe Up settings page under gestures" into pi-dev
Mehdi Alizadeh [Wed, 11 Apr 2018 19:07:31 +0000 (19:07 +0000)]
Merge "Adds the Swipe Up settings page under gestures" into pi-dev

6 years agoMerge "Badge the icon properly in policy transparency dialog" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:16:29 +0000 (18:16 +0000)]
Merge "Badge the icon properly in policy transparency dialog" into pi-dev

6 years agoAdds the Swipe Up settings page under gestures
Mehdi Alizadeh [Wed, 4 Apr 2018 01:51:07 +0000 (18:51 -0700)]
Adds the Swipe Up settings page under gestures

The illusteration video is not included yet.

Merged-In: I7f2b2f3251a795dfd74dbbb442692e42a5a2966e
Bug: 77549883
Test: Unit tests and Manual test
Change-Id: I04f01f0814f16e4e006291e61ddb07cea8e7c0d6

6 years agoStop logging hotspot password change in logcat.
Fan Zhang [Wed, 11 Apr 2018 17:32:16 +0000 (10:32 -0700)]
Stop logging hotspot password change in logcat.

Change-Id: I705ec6413cef8e8435c9020d8b7434f8e641b0d4
Fixes: 77880733
Test: rebuild

6 years agoMerge "Fuelgauge handle StatsManager Exception API" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 17:02:06 +0000 (17:02 +0000)]
Merge "Fuelgauge handle StatsManager Exception API" into pi-dev

6 years agoMerge "Do not set separate challenge flag before clearing lock" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:00:59 +0000 (16:00 +0000)]
Merge "Do not set separate challenge flag before clearing lock" into pi-dev

6 years agoBadge the icon properly in policy transparency dialog
Tony Mak [Wed, 11 Apr 2018 11:40:08 +0000 (12:40 +0100)]
Badge the icon properly in policy transparency dialog

Following the pattern used within the Settings app to badge the icon.

For location setting, the dialog is shown in work profile user.
Thus ai.loadIcon badged the icon for the first time and
getUserBadgedIcon baged the second time.

Fixes: 77844928
Test: adb shell wm density 560 -> suspend an app -> launch the app ->
      observe the dialog. Repeat the test with original density.

Change-Id: Ie79c3d9aa7b1a155edc74816850b1349fbd2d606

6 years agoString changes for suppressing ambient display
Julia Reynolds [Wed, 11 Apr 2018 13:27:30 +0000 (09:27 -0400)]
String changes for suppressing ambient display

Test: make
Bug: 77657376
Change-Id: I7c2795291a82a885a26a0af598bdafb96842d998

6 years agoMerge "Rename onProfileAudioStateChanged() to onAudioModeChanged()" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 13:17:26 +0000 (13:17 +0000)]
Merge "Rename onProfileAudioStateChanged() to onAudioModeChanged()" into pi-dev

6 years agoDo not set separate challenge flag before clearing lock
Rubin Xu [Wed, 11 Apr 2018 10:43:18 +0000 (11:43 +0100)]
Do not set separate challenge flag before clearing lock

This step is redundant since clearLock() would set the flag internally anyway.
In fact setting the flag before calling clearLock() is wrong since it will
lead LockSettingsService.setLockCredential() to think that the target profile
does not have a unified challenge, causing it to use an incorrect existing
credential for password change, leading to untrusted credential change.

Bug: 77892111
Test: Create profile; set separate empty work challenge; observe no crash
Change-Id: I4d76b20706a796654f9389f31ae8c46d51d7adac

6 years agoMerge "[Settings] Align volume slider with other preference" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 03:11:06 +0000 (03:11 +0000)]
Merge "[Settings] Align volume slider with other preference" into pi-dev

6 years agoMerge "Convert auto-brightness switch to a full screen UI." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 01:28:33 +0000 (01:28 +0000)]
Merge "Convert auto-brightness switch to a full screen UI." into pi-dev

6 years agoMerge "Change string" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 01:24:08 +0000 (01:24 +0000)]
Merge "Change string" into pi-dev

6 years agoFuelgauge handle StatsManager Exception API
Bookatz [Wed, 11 Apr 2018 00:40:42 +0000 (17:40 -0700)]
Fuelgauge handle StatsManager Exception API

StatsManager now returns Exceptions for certain errors, instead of
returning a boolean. Thus Fuelgauge needs to be updated.

Bug: 77648233
Test: make ROBOTEST_FILTER=AnomalyConfigJobServiceTest RunSettingsRoboTests
Change-Id: I7160ac01141c673c90e33423220dc888a2710340

6 years agoMerge "Prevent ringing updates" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 22:52:10 +0000 (22:52 +0000)]
Merge "Prevent ringing updates" into pi-dev

6 years agoMerge "Protect against invalid authority in account sync pref." into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 22:49:18 +0000 (22:49 +0000)]
Merge "Protect against invalid authority in account sync pref." into pi-dev

6 years agoMerge "Remove provisioning dialog from wifi-tethering" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 22:16:35 +0000 (22:16 +0000)]
Merge "Remove provisioning dialog from wifi-tethering" into pi-dev

6 years agoMerge "Set parent for auto zen rules to be zen rule page" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 22:09:34 +0000 (22:09 +0000)]
Merge "Set parent for auto zen rules to be zen rule page" into pi-dev

6 years agoMerge "Marking dictionary activity as visibleToInstantApps" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 22:00:34 +0000 (22:00 +0000)]
Merge "Marking dictionary activity as visibleToInstantApps" into pi-dev

6 years agoPrevent ringing updates
Julia Reynolds [Tue, 10 Apr 2018 15:04:23 +0000 (11:04 -0400)]
Prevent ringing updates

- Add video
- Update text
- Link from Sound settings
- Inherit from BasePreferenceController

Test: make -j RunSettingsRoboTests
Change-Id: If8cd9efd4e6034e6f6864a142a86cbc23bf59dc3
Fixes: 76832936
Fixes: 74410634

6 years agoConvert auto-brightness switch to a full screen UI.
Fan Zhang [Tue, 10 Apr 2018 20:08:22 +0000 (13:08 -0700)]
Convert auto-brightness switch to a full screen UI.

Change-Id: Id5e5ec959201102a7c60372a441dc6813ceedbae
Merged-In: Id5e5ec959201102a7c60372a441dc6813ceedbae
Fixes: 69795935
Test: Existing conformance tests still pass (CodeInspectionTest,
      UniquePreferenceTest, manual search test)

6 years agoMerge "Add test flags for battery tips." into pi-dev
Lei Yu [Tue, 10 Apr 2018 20:44:11 +0000 (20:44 +0000)]
Merge "Add test flags for battery tips." into pi-dev

6 years agoMerge "Unavailable Slices includes DISABLED_DEPENDENT settings" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 19:31:03 +0000 (19:31 +0000)]
Merge "Unavailable Slices includes DISABLED_DEPENDENT settings" into pi-dev

6 years agoSet parent for auto zen rules to be zen rule page
Beverly [Tue, 10 Apr 2018 19:28:17 +0000 (15:28 -0400)]
Set parent for auto zen rules to be zen rule page

Clicking the back button on an automatic zen rule
will now go back to the automatic rule page instead
of the generic Settings page

Change-Id: I5902e01b641ec3e4d0c8b4b4a5b16a0385cbd0ff
Fixes: 77833624
Test: manual

6 years agoMerge "Hide preference when no app restricted" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 18:30:26 +0000 (18:30 +0000)]
Merge "Hide preference when no app restricted" into pi-dev

6 years agoMerge "Hide color mode preference depending on Accessibility settings" into pi-dev
Daniel Solomon [Tue, 10 Apr 2018 17:59:26 +0000 (17:59 +0000)]
Merge "Hide color mode preference depending on Accessibility settings" into pi-dev

6 years agoMerge "Update field for ACTION_ANOMALY_TRIGGERED" into pi-dev
Lei Yu [Tue, 10 Apr 2018 17:39:08 +0000 (17:39 +0000)]
Merge "Update field for ACTION_ANOMALY_TRIGGERED" into pi-dev

6 years agoMerge "Update slice constant reference" into pi-dev
Jason Monk [Tue, 10 Apr 2018 17:10:29 +0000 (17:10 +0000)]
Merge "Update slice constant reference" into pi-dev

6 years agoUpdate slice constant reference
Jason Monk [Tue, 10 Apr 2018 13:04:53 +0000 (09:04 -0400)]
Update slice constant reference

Test: build
Bug: 73123786
Change-Id: I9f38f0298bcaace85256639fd285d38a580c90fe

6 years agoMerge "Add zen onboarding screen" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 14:35:44 +0000 (14:35 +0000)]
Merge "Add zen onboarding screen" into pi-dev

6 years agoMerge "Notification settings updates" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 13:51:22 +0000 (13:51 +0000)]
Merge "Notification settings updates" into pi-dev

6 years agoAdd zen onboarding screen
Julia Reynolds [Mon, 9 Apr 2018 19:24:55 +0000 (15:24 -0400)]
Add zen onboarding screen

Bug: 77658931
Test: make -j RunSettingsRoboTests
Change-Id: Ifc886148ed742d72b5606a9ce7eb19d0da234c9e

6 years agoChange string
hughchen [Tue, 10 Apr 2018 09:10:45 +0000 (17:10 +0800)]
Change string

* Change "Available media devices" to "Available devices"

Bug: 77607383
Test: build
Change-Id: I49cb6c3269eb3847a92403184e2691f7334df96e

6 years agoRename onProfileAudioStateChanged() to onAudioModeChanged()
timhypeng [Sun, 8 Apr 2018 05:53:46 +0000 (13:53 +0800)]
Rename onProfileAudioStateChanged() to onAudioModeChanged()

Bug: 74134939
Test: Build
Change-Id: I85895238b6ee16fec85d0cf3dd0242c9ba17a3bd

6 years agoMerge "Add new string for audio switcher" into pi-dev
TreeHugger Robot [Tue, 10 Apr 2018 04:24:16 +0000 (04:24 +0000)]
Merge "Add new string for audio switcher" into pi-dev

6 years agoHide color mode preference depending on Accessibility settings
Daniel Solomon [Mon, 9 Apr 2018 22:09:13 +0000 (15:09 -0700)]
Hide color mode preference depending on Accessibility settings

Currently, when certain Accessibility color transforms are enabled, the
color mode preference radio buttons are disabled. To avoid confusing
users, hide the color mode preference entirely. If the color mode
settings screen is already open when the Accessibility transforms are
enabled, return the user back to the previous screen.

Bug: 77695840
Test: make ROBOTEST_FILTER=ColorModePreferenceFragmentTest
RunSettingsRoboTests -j40

Change-Id: I44812713bdc739b843e5806711d25ea950aa6250

6 years agoFix robotest failure for ChartDataUsagePreferenceTest.
Doris Ling [Tue, 10 Apr 2018 01:03:20 +0000 (18:03 -0700)]
Fix robotest failure for ChartDataUsagePreferenceTest.

- the chart usage data is computed using difference between current time
and the timestamp from the usage data. In the test, we are using actual
current time and mock usage data. As the current time varies the test
computating sometimes results in some negative data, and makes the
comparison unpredictable. Change to use a fix "current" time in the test
so that the time difference in computation will be constant.

Fixes: 77824818
Test: make RunSettingsRoboTests
Change-Id: I2d8c166839775469d30015317afdc04eb3d9a2b4

6 years agoUnavailable Slices includes DISABLED_DEPENDENT settings
Matthew Fritze [Fri, 6 Apr 2018 17:20:05 +0000 (10:20 -0700)]
Unavailable Slices includes DISABLED_DEPENDENT settings

In the change to mark disabled_dependent as available,
it did not change the check in SliceBuilderUtils for the
unavailable Slices. In the case of DISABLED_DEPENDENT, the
setting is available but the Slice is not.

Though it is a simple change, we can now properly test the contents
of Slices, so this change includes tests which should have been in
place earlier and would have caught this bug - duh.

Bug: 71640747
Test: Robotests
Change-Id: I8db5bc80edb337cbf907ce3669aa2bfd9c72f74a

6 years agoMerge "Update storage wizard to latest UX mocks." into pi-dev
Jeff Sharkey [Mon, 9 Apr 2018 23:58:34 +0000 (23:58 +0000)]
Merge "Update storage wizard to latest UX mocks." into pi-dev

6 years agoMerge "Make it possible to have open tether network" into pi-dev
Salvador Martinez [Mon, 9 Apr 2018 23:30:35 +0000 (23:30 +0000)]
Merge "Make it possible to have open tether network" into pi-dev

6 years agoRemove provisioning dialog from wifi-tethering
Salvador Martinez [Mon, 9 Apr 2018 22:27:02 +0000 (15:27 -0700)]
Remove provisioning dialog from wifi-tethering

We no longer want this dialog to show when a user toggles tethering.
Failures to set up the AP will still be handled correctly.

Test: robotests pass
Bug: 62629055
Change-Id: Id3d0bf9694a1c8b6ae353bfd6634dd0b56813497

6 years agoUpdate field for ACTION_ANOMALY_TRIGGERED
Lei Yu [Mon, 9 Apr 2018 17:10:15 +0000 (10:10 -0700)]
Update field for ACTION_ANOMALY_TRIGGERED

Use new field FIELD_ANOMALY_TYPE

Bug: 75976625
Test: RunSettingsRoboTests
Change-Id: Ifb67c687d25e1e35afaadb05f2e9883e8dcf8049

6 years agoNotification settings updates
Julia Reynolds [Fri, 30 Mar 2018 18:04:55 +0000 (14:04 -0400)]
Notification settings updates

- smaller icons
- text update
- fx header
- fix category header

Test: make -j RunSettingsRoboTests

Change-Id: If822d6db31a8dccf20ee88182cda1aee34aa7675
Fixes: 77325154
Fixes: 77323406
Fixes: 77324677
Fixes: 74408368

6 years agoMerge "Remove Automatic color mode option" into pi-dev
Christine Franks [Mon, 9 Apr 2018 21:18:28 +0000 (21:18 +0000)]
Merge "Remove Automatic color mode option" into pi-dev

6 years agoMerge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev am...
Hansong Zhang [Mon, 9 Apr 2018 21:10:21 +0000 (14:10 -0700)]
Merge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev am: d59b0eddae am: 3f2dbb7cc9
am: e934ea80a6

Change-Id: I17aa86fa2a02f1a80e9ec8aaa557c3488dd32c21

6 years ago[automerger skipped] [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth...
Hansong Zhang [Mon, 9 Apr 2018 21:08:48 +0000 (14:08 -0700)]
[automerger skipped] [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: ac6c49d2b0 am: 5b98c9f4a3 am: dfe4cc74f7 skipped: d276b38666 am: 5d27bdb6d2 am: bab8dca667 am: 84061c71d1 am: 41be25548e skipped: 74ff24d1c6 am: c4127072f4 am: 1b7566cd07
am: af077f8d4c  -s ours

Change-Id: I834e60da9920199756dce2206042e4a1ba0c20b9

6 years agoMerge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev am...
Hansong Zhang [Mon, 9 Apr 2018 20:54:58 +0000 (13:54 -0700)]
Merge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev am: d59b0eddae
am: 3f2dbb7cc9

Change-Id: Ica684d7a7fc36439111b7eeb3886761f63a7130f

6 years ago[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: ac6c49d2b0...
Hansong Zhang [Mon, 9 Apr 2018 20:53:41 +0000 (13:53 -0700)]
[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: ac6c49d2b0 am: 5b98c9f4a3 am: dfe4cc74f7 skipped: d276b38666 am: 5d27bdb6d2 am: bab8dca667 am: 84061c71d1 am: 41be25548e skipped: 74ff24d1c6 am: c4127072f4
am: 1b7566cd07

Change-Id: I10c2d233f05ddf566ac38afb7c2cdc5a8e61df25

6 years agoMerge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev
Hansong Zhang [Mon, 9 Apr 2018 20:44:07 +0000 (13:44 -0700)]
Merge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev
am: d59b0eddae

Change-Id: Ia628cc0bd02429ec321d8e80c9d9ad2c097715bd

6 years ago[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: ac6c49d2b0...
Hansong Zhang [Mon, 9 Apr 2018 20:43:04 +0000 (13:43 -0700)]
[automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: ac6c49d2b0 am: 5b98c9f4a3 am: dfe4cc74f7 skipped: d276b38666 am: 5d27bdb6d2 am: bab8dca667 am: 84061c71d1 am: 41be25548e skipped: 74ff24d1c6
am: c4127072f4

Change-Id: I559bfa947ae6f7ee89076d05826fd4529d6b0cc2

6 years agoMerge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev
TreeHugger Robot [Mon, 9 Apr 2018 20:29:54 +0000 (20:29 +0000)]
Merge changes from topic "am-e8b13d24-dee0-4f84-89d4-8a7d110f6ec1" into oc-dev

* changes:
  [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: 4f58c19afa am: e25ebddfdc am: ee220e0238 am: 7b2b84c617 skipped: b1f00ebf9c
  [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: 4f58c19afa am: e25ebddfdc am: ee220e0238 am: 7b2b84c617
  [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: 4f58c19afa am: e25ebddfdc am: ee220e0238
  [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: 4f58c19afa am: e25ebddfdc
  [automerger] DO NOT MERGE Fix unexpected behavior in Bluetooth pairing am: 4f58c19afa
  DO NOT MERGE Fix unexpected behavior in Bluetooth pairing

6 years agoMerge "Once auto-battery saver is ever set, don't show suggestion" into pi-dev
Makoto Onuki [Mon, 9 Apr 2018 20:29:30 +0000 (20:29 +0000)]
Merge "Once auto-battery saver is ever set, don't show suggestion" into pi-dev

6 years agoMerge "Update DndCondition settings summary" into pi-dev
Beverly Tai [Mon, 9 Apr 2018 19:54:24 +0000 (19:54 +0000)]
Merge "Update DndCondition settings summary" into pi-dev

6 years agoHide preference when no app restricted
Lei Yu [Mon, 9 Apr 2018 18:25:31 +0000 (11:25 -0700)]
Hide preference when no app restricted

Change-Id: I37135bce5354ce7380441f86f94cb79d89cc500c
Fixes: 77799629
Test: RunSettingsRoboTests

6 years agoMerge "Remove gear from usb preference" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 19:08:26 +0000 (19:08 +0000)]
Merge "Remove gear from usb preference" into pi-dev

6 years agoMerge "Use proper icon size for default app prefs." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 19:04:22 +0000 (19:04 +0000)]
Merge "Use proper icon size for default app prefs." into pi-dev

6 years agoMerge "GesturesSettingPreferenceController to Toggle" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 18:59:44 +0000 (18:59 +0000)]
Merge "GesturesSettingPreferenceController to Toggle" into pi-dev

6 years agoMerge "Reorder visual effect fields" into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 18:52:25 +0000 (18:52 +0000)]
Merge "Reorder visual effect fields" into pi-dev

6 years agoMerge "Fix a crash in Storage Settings." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 18:40:40 +0000 (18:40 +0000)]
Merge "Fix a crash in Storage Settings." into pi-dev

6 years agoMake it possible to have open tether network
Salvador Martinez [Fri, 30 Mar 2018 18:11:12 +0000 (11:11 -0700)]
Make it possible to have open tether network

Previously people could have open tether networks but a restrction
was placed on this sometime in the past. However there is no migration
plan in place for people with open tether networks which will cause
problems when the new requirements are enforced. This CL makes it
so tether networks can be open once more.

Test: robotests
Bug: 65784990
Change-Id: I6e350dd53b9b9f987dd5a4cc317ba18d7f50df79

6 years agoRemove gear from usb preference
Jerry Zhang [Fri, 6 Apr 2018 19:06:49 +0000 (12:06 -0700)]
Remove gear from usb preference

Switch from GearPreference to a normal
Preference.

Add some spacing underneath the power role.

Bug: 77647931
Test: passes
Change-Id: Ic15849e12aa47df75cc75c9da0384e24627a9c8b

6 years agoMerge "Delete unused query_hint_text string." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 17:33:50 +0000 (17:33 +0000)]
Merge "Delete unused query_hint_text string." into pi-dev

6 years agoMerge "Update inherited actionBarStyle to DeviceDefault." into pi-dev
TreeHugger Robot [Mon, 9 Apr 2018 17:33:21 +0000 (17:33 +0000)]
Merge "Update inherited actionBarStyle to DeviceDefault." into pi-dev

6 years agoUse proper icon size for default app prefs.
Fan Zhang [Fri, 6 Apr 2018 23:31:31 +0000 (16:31 -0700)]
Use proper icon size for default app prefs.

Change-Id: Ib48c7a546fcd3a3a9e32b7a65cbdadd54721f252
Fixes: 77726902
Test: robotests

6 years agoFix a crash in Storage Settings.
Daniel Nishi [Fri, 6 Apr 2018 20:05:35 +0000 (13:05 -0700)]
Fix a crash in Storage Settings.

This prevents a NullPtrException when the DonutView attempts to shrink
the percentage sign. By gracefully falling back when we don't understand
the percentage sign, we can avoid a crash.

Change-Id: I0b0770ce4b51eb30817dc556636f86476f4cd1bf
Fixes: 77653937
Test: Robotest -- screenshot attached

6 years agoMerge "Add NullPtrCheck when smearing in settings" into pi-dev
Lei Yu [Mon, 9 Apr 2018 17:09:22 +0000 (17:09 +0000)]
Merge "Add NullPtrCheck when smearing in settings" into pi-dev

6 years agoUpdate DndCondition settings summary
Beverly [Fri, 6 Apr 2018 18:17:13 +0000 (14:17 -0400)]
Update DndCondition settings summary

Test: make ROBOTEST_FILTER=ZenModeSettingsTest RunSettingsRoboTests -j40
Test: atest DndConditionTest
Change-Id: Iff39e9dfda25453bfe4c2554fea3ef7be0832413
Fixes: 77704156
Fixes: 76208187

6 years agoReorder visual effect fields
Julia Reynolds [Fri, 6 Apr 2018 17:02:53 +0000 (13:02 -0400)]
Reorder visual effect fields

Bug: 77657376
Test: RunSettingsRoboTests
Change-Id: I9f5be8f173d8d987d419f6d444d76d2abe175b4e

6 years ago[Settings] Align volume slider with other preference
caxtonchan [Mon, 9 Apr 2018 08:15:45 +0000 (16:15 +0800)]
[Settings] Align volume slider with other preference

Update padding to align with other preference.

Bug: 77606803
Test: Robotest and manual test
Change-Id: I3f81bf0a6c796465128d05260f4a50e23db45385

6 years agoGesturesSettingPreferenceController to Toggle
HJ ChangLiao [Mon, 2 Apr 2018 09:06:55 +0000 (17:06 +0800)]
GesturesSettingPreferenceController to Toggle

Convert GesturesSettingPreferenceController to
TogglePreferenceController,
All of its children need follow the change,
add setter and robotest for them:
AssistGestureSettingsPreferenceController
DoubleTapPowerPreferenceController
DoubleTapScreenPreferenceController
DoubleTwistPreferenceController
PickupGesturePreferenceController
SwipeToNotificationPreferenceController

Change-Id: I792b2d370eea828bf345fb2b1cc3eac260eb66f4
Merged-In: I792b2d370eea828bf345fb2b1cc3eac260eb66f4
Fixes: 74913806
Fixes: 67998110
Fixes: 67998098
Fixes: 67998048
Fixes: 67998069
Fixes: 67997452
Test: make RunSettingsRoboTests

6 years agoAdd new string for audio switcher
ryanywlin [Tue, 3 Apr 2018 07:23:26 +0000 (15:23 +0800)]
Add new string for audio switcher

Bug: 74130772
Test: rebuild
Change-Id: I31760046ca1754145dfa40049428213f985e8175

6 years agoMove these radio buttons to the left
John Li [Tue, 27 Mar 2018 08:16:55 +0000 (16:16 +0800)]
Move these radio buttons to the left

Assign new single layout to RadioButtonPreference for w/ or w/o icon
and call setIconSpaceReserved(false) in RadioButtonPreference's
constructor. In case of having icon, calling setIcon() can make
icon_frame visible.

Bug: 70850017
Test: m -j56 SettingsRoboTests RunSettingsRoboTests
Change-Id: I8b35f75b6d8114a5e4c69ec1a3287c55e764ffe0

6 years agoUpdate storage wizard to latest UX mocks.
Jeff Sharkey [Mon, 2 Apr 2018 00:25:54 +0000 (18:25 -0600)]
Update storage wizard to latest UX mocks.

Mostly shuffling around strings and layouts.  Slow device warning is
now a full-screen activity, and format warning is now a dialog.

Bug: 76097999
Test: atest com.android.settings.ui.StorageWizardTest
Change-Id: Ifd74e3b1389f0cc9590f6a6a2cd49671f3bbc746

6 years agoDisplay Private DNS status in preference summary
Erik Kline [Thu, 5 Apr 2018 21:30:56 +0000 (14:30 -0700)]
Display Private DNS status in preference summary

Also: fix a bug where the actual current mode is not read correctly
from settings on initialization.

Test: as follows
    - built, flashed, booted
    - manual test behaves as expected
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsModeDialogPreferenceTest passes
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsPreferenceControllerTest passes
Bug: 34953048
Bug: 64133961
Change-Id: I0b845b3894a47b837abf5de273d1ada642ef5a23

6 years agoUpdate inherited actionBarStyle to DeviceDefault.
Andrew Sapperstein [Wed, 24 Jan 2018 01:34:19 +0000 (17:34 -0800)]
Update inherited actionBarStyle to DeviceDefault.

Was using a Material style. Now it's using the DeviceDefault one that
Theme.DeviceDefault.Settings uses.

Bug: 69314526
Test: visual inspection
Change-Id: I5ce1bbb51a8d067fce226ff4a41fdea64106156a

6 years agoDelete unused query_hint_text string.
Andrew Sapperstein [Sun, 8 Apr 2018 18:15:03 +0000 (11:15 -0700)]
Delete unused query_hint_text string.

Change-Id: If6378768255c7cac290f914620115bff04c6b281
Fixes: 77772047
Test: compiles

6 years agoMerge "Fix test expectations for NetworkCallbacks" into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 05:06:53 +0000 (05:06 +0000)]
Merge "Fix test expectations for NetworkCallbacks" into pi-dev

6 years agoMerge "Create help link placeholder for Wifi Direct settings." into pi-dev
TreeHugger Robot [Sat, 7 Apr 2018 01:04:52 +0000 (01:04 +0000)]
Merge "Create help link placeholder for Wifi Direct settings." into pi-dev

6 years agoRemove Automatic color mode option
Christine Franks [Thu, 29 Mar 2018 01:37:20 +0000 (18:37 -0700)]
Remove Automatic color mode option

This is not yet implemented and should not appear as an option.

Bug: 76420446
Test: make RunSettingsRoboTests -j100

Change-Id: I40f1f48cc93417536a1680923c7628139a0534b1

6 years agoCreate help link placeholder for Wifi Direct settings.
Fan Zhang [Thu, 5 Apr 2018 20:48:55 +0000 (13:48 -0700)]
Create help link placeholder for Wifi Direct settings.

Change-Id: Ia22259d191d2663d7ef63438c680826d3fd590fb
Merged-In: Ia22259d191d2663d7ef63438c680826d3fd590fb
Fixes: 70854725
Test: robotests

6 years agoMerge "Adjust alignment for suggestion icon." into pi-dev
Doris Ling [Fri, 6 Apr 2018 23:00:30 +0000 (23:00 +0000)]
Merge "Adjust alignment for suggestion icon." into pi-dev

6 years agoAdd NullPtrCheck when smearing in settings
Lei Yu [Fri, 6 Apr 2018 21:50:05 +0000 (14:50 -0700)]
Add NullPtrCheck when smearing in settings

This only happens in new device with broken power_profile.xml, in
which it doesn't have screen power model.

This CL catches the null pointer crash and log it.

Change-Id: Iac23e3a8fc51385bdb22979c4b59000319f6fd49
Fixes: 74617269
Test: RunSettingsRoboTests

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:42:17 +0000 (22:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Prioritize dynamic summaries" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 22:29:02 +0000 (22:29 +0000)]
Merge "Prioritize dynamic summaries" into pi-dev

6 years agoAdjust alignment for suggestion icon.
Doris Ling [Tue, 3 Apr 2018 00:17:42 +0000 (17:17 -0700)]
Adjust alignment for suggestion icon.

- add margin to the suggestion icon so that it align properly with the
suggestion text.
- also align the action button with the suggestion icon and text.

Change-Id: Ic12e4160d6583cf2d837e65ee5fd5a1ad73d348d
Fixes: 74414989
Test: visual

6 years agoAdd test flags for battery tips.
Lei Yu [Fri, 6 Apr 2018 21:12:41 +0000 (14:12 -0700)]
Add test flags for battery tips.

When this flag is true, we will show related battery tip by force.
Then we can manually test and verify the UI behavior.

Following CL will add test flag for "app restriction" since it is
a little tricky.

Bug: 77477035
Test: RunSettingsRoboTests

Change-Id: Ib12ff4aa8bcc998ea6a73f461c3d5f7fcc39b019

6 years agoPrioritize dynamic summaries
Matthew Fritze [Wed, 4 Apr 2018 23:58:56 +0000 (16:58 -0700)]
Prioritize dynamic summaries

If both Xml and a controller provide a summary,
the controller's should be prioritized.

Change-Id: I030746b0f253ce4884a7868e385069b208f63082
Fixes: 77602860
Test: robotests

6 years agoFix test expectations for NetworkCallbacks
Erik Kline [Fri, 6 Apr 2018 21:07:59 +0000 (14:07 -0700)]
Fix test expectations for NetworkCallbacks

Test: as follows
    - built
    - flashed
    - booted
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=WifiMasterSwitchPreferenceControllerTest
Bug: 64133961
Bug: 77285360
Change-Id: I1ada2888d0c5517f3bcde646bf8efab331330cfd

6 years agoMerge "Make volume sliders sliceable" into pi-dev
Julia Reynolds [Fri, 6 Apr 2018 20:48:31 +0000 (20:48 +0000)]
Merge "Make volume sliders sliceable" into pi-dev

6 years agoMerge "Adds strings for Swipe Up gesture in Settings" into pi-dev
Mehdi Alizadeh [Fri, 6 Apr 2018 20:46:18 +0000 (20:46 +0000)]
Merge "Adds strings for Swipe Up gesture in Settings" into pi-dev

6 years agoMerge "Add test for anomaly detection in P" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:46:00 +0000 (20:46 +0000)]
Merge "Add test for anomaly detection in P" into pi-dev

6 years agoAdds strings for Swipe Up gesture in Settings
Mehdi Alizadeh [Wed, 4 Apr 2018 23:43:12 +0000 (16:43 -0700)]
Adds strings for Swipe Up gesture in Settings

Bug: 77549883
Test: None
Change-Id: I64b448f3a3564e8ac6d29e1241e84032708dba71

6 years agoMerge "Exempt tests from hidden API checks." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:39:24 +0000 (20:39 +0000)]
Merge "Exempt tests from hidden API checks." into pi-dev

6 years agoMerge "Change "More details" to "Learn more" in policy transparency dialog." into...
TreeHugger Robot [Fri, 6 Apr 2018 20:35:41 +0000 (20:35 +0000)]
Merge "Change "More details" to "Learn more" in policy transparency dialog." into pi-dev

6 years agoMerge "Add battery illustration" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:26:24 +0000 (20:26 +0000)]
Merge "Add battery illustration" into pi-dev

6 years agoMerge "Add name and icon for AOD" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 20:19:21 +0000 (20:19 +0000)]
Merge "Add name and icon for AOD" into pi-dev

6 years agoMerge "Add anomaly log to dumpsys" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 19:28:55 +0000 (19:28 +0000)]
Merge "Add anomaly log to dumpsys" into pi-dev