OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Remove Advanced dropdown from "About phone" screen" into pi-dev
Antony Sargent [Fri, 25 May 2018 21:42:14 +0000 (14:42 -0700)]
Merge "Remove Advanced dropdown from "About phone" screen" into pi-dev
am: e4999751ab

Change-Id: I812a58e2a0fead5b9a1eec9e9cf1b2383de1321d

6 years agoMerge "Remove Advanced dropdown from "About phone" screen" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 21:35:23 +0000 (21:35 +0000)]
Merge "Remove Advanced dropdown from "About phone" screen" into pi-dev

6 years agoRemove Advanced dropdown from "About phone" screen
Antony Sargent [Fri, 25 May 2018 19:52:24 +0000 (12:52 -0700)]
Remove Advanced dropdown from "About phone" screen

All the items will appear in the list instead of hiding some under an Advanced
dropdown.

Bug: 80302533
Test: manual (Settings->System->About phone)

Change-Id: I82857ec8e027b00762c1191d9450d30dfe47016f

6 years agoMerge "2nd attempt to fix Slice strict mode." into pi-dev
Fan Zhang [Fri, 25 May 2018 19:49:29 +0000 (12:49 -0700)]
Merge "2nd attempt to fix Slice strict mode." into pi-dev
am: 7d214f99ee

Change-Id: If0e5bec4bc187f4e77848a1af2fd861f8bb7cbdb

6 years agoMerge "2nd attempt to fix Slice strict mode." into pi-dev
TreeHugger Robot [Fri, 25 May 2018 19:44:32 +0000 (19:44 +0000)]
Merge "2nd attempt to fix Slice strict mode." into pi-dev

6 years agoMerge "Add remaining whitelisted controllers" into pi-dev
Matthew Fritze [Fri, 25 May 2018 17:02:14 +0000 (10:02 -0700)]
Merge "Add remaining whitelisted controllers" into pi-dev
am: da07a66365

Change-Id: I1b4a9e25da8138409d20e960dc68a4e8b5b2e459

6 years agoMerge "Add remaining whitelisted controllers" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 16:53:44 +0000 (16:53 +0000)]
Merge "Add remaining whitelisted controllers" into pi-dev

6 years ago2nd attempt to fix Slice strict mode.
Fan Zhang [Thu, 24 May 2018 17:10:02 +0000 (10:10 -0700)]
2nd attempt to fix Slice strict mode.

1. Use real BluetoothAdapter instead of settingslib version. The
   settingslib version contains calls that violates strictmode rules.
2. Override StrictMode rules in SettingsSliceProvider when it's called
   in background thread. When in background, the enforcement from Slice
   framework (StrictMode#ThreadPolicy) is not useful and can be safely
   ignored.

Change-Id: I68523148f4c1dc88a54e207447d21ec439478cdf
Merged-In: I68523148f4c1dc88a54e207447d21ec439478cdf
Fixes: 79985175
Test: robotests

6 years agoMerge "Update storage header background to colorPrimary" into pi-dev
Fan Zhang [Fri, 25 May 2018 15:59:26 +0000 (08:59 -0700)]
Merge "Update storage header background to colorPrimary" into pi-dev
am: 5431191163

Change-Id: I0163a02a193e3084c7a903e69da0b37a9afa1061

6 years agoMerge "Update storage header background to colorPrimary" into pi-dev
Fan Zhang [Fri, 25 May 2018 15:49:59 +0000 (15:49 +0000)]
Merge "Update storage header background to colorPrimary" into pi-dev

6 years agoMerge "Make summary text update after settings changes" into pi-dev
Matthew Fritze [Fri, 25 May 2018 15:09:13 +0000 (08:09 -0700)]
Merge "Make summary text update after settings changes" into pi-dev
am: b915f3566b

Change-Id: I17d63173b63f39acf6bada648a15dc86b1000ce2

6 years agoMerge "Make summary text update after settings changes" into pi-dev
TreeHugger Robot [Fri, 25 May 2018 15:01:26 +0000 (15:01 +0000)]
Merge "Make summary text update after settings changes" into pi-dev

6 years agoMerge "Follow SliceManager API changes" into pi-dev
Jason Monk [Fri, 25 May 2018 02:04:31 +0000 (19:04 -0700)]
Merge "Follow SliceManager API changes" into pi-dev
am: d68ed5c92c

Change-Id: Ice176c79605250c263a21cbc624b438902dfaedc

6 years agoMerge "Follow SliceManager API changes" into pi-dev
Jason Monk [Fri, 25 May 2018 01:21:35 +0000 (01:21 +0000)]
Merge "Follow SliceManager API changes" into pi-dev

6 years agoMerge "Refactor nfc preference controller" into pi-dev
Chihhang Chuang [Thu, 24 May 2018 23:35:26 +0000 (16:35 -0700)]
Merge "Refactor nfc preference controller" into pi-dev
am: 2357c1cd84

Change-Id: I82c793a393ec8bd92f409743173ec79a8ba0387b

6 years agoMerge "Update sound settings icons" into pi-dev
Antony Sargent [Thu, 24 May 2018 23:31:15 +0000 (16:31 -0700)]
Merge "Update sound settings icons" into pi-dev
am: 2e0709b3b8

Change-Id: Ic6f6658698e824b4eb99799b5c5146c3311a99d4

6 years agoMerge "Refresh several icons" into pi-dev
Antony Sargent [Thu, 24 May 2018 23:18:05 +0000 (16:18 -0700)]
Merge "Refresh several icons" into pi-dev
am: 642e63c2e0

Change-Id: I2487a06fb681680209dd5b37b7b6f376bb2d6640

6 years agoMerge "Refresh system update icon" into pi-dev
Antony Sargent [Thu, 24 May 2018 23:06:22 +0000 (16:06 -0700)]
Merge "Refresh system update icon" into pi-dev
am: efc2cb0492

Change-Id: Ie611915fc682d75201655c4308c3e7ba71953910

6 years agoMerge "Update icon for battery saver conditon." into pi-dev
Lei Yu [Thu, 24 May 2018 20:56:57 +0000 (13:56 -0700)]
Merge "Update icon for battery saver conditon." into pi-dev
am: 89e0287711

Change-Id: If5b81203ee4cbf691b236f79f71213f8252ac873

6 years agoMerge "Setting to change sysui theme" into pi-dev
Lucas Dupin [Thu, 24 May 2018 20:39:19 +0000 (13:39 -0700)]
Merge "Setting to change sysui theme" into pi-dev
am: 7179206395

Change-Id: I34f0fa82b9b9ebb9d6ba7707363a5b948c9f0421

6 years agoMake summary text update after settings changes
Matthew Fritze [Wed, 23 May 2018 20:03:27 +0000 (13:03 -0700)]
Make summary text update after settings changes

The uri's being pinged when changes happened were incorrect, because
of a hard coded '/'.

Change-Id: I4d04642bc80b97c5191bf0e1e7a5e15a2c58d6c9
Merged-In: I6735c5a60dc7df6894bd17e67d7702a7ec6c07d4
Fixes: 79779837
Test: robotest

6 years agoUpdate storage header background to colorPrimary
Fan Zhang [Thu, 24 May 2018 16:45:24 +0000 (09:45 -0700)]
Update storage header background to colorPrimary

Change-Id: I07f78cc6452846829b92d25fe9c41c6efe40a459
Merged-In: If13d5cbd2bd7db1c6d9c9f840281601ab78ba267
Fixes: 79773433
Test: visual

6 years agoMerge "Refactor nfc preference controller" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 17:45:19 +0000 (17:45 +0000)]
Merge "Refactor nfc preference controller" into pi-dev

6 years agoAdd remaining whitelisted controllers
Matthew Fritze [Wed, 23 May 2018 21:55:11 +0000 (14:55 -0700)]
Add remaining whitelisted controllers

Because I missed them in the long whitelist the first time...

Change-Id: I9fbd7b33e06b3f2f6e5e5778f78abfdb1a52006a
Merged-In: I01c8c80fe306667c1d3ac007b16fad546c5a5f40
Fixes: 79779103
Test: robotests

6 years agoMerge "Update sound settings icons" into pi-dev
Antony Sargent [Thu, 24 May 2018 06:12:50 +0000 (06:12 +0000)]
Merge "Update sound settings icons" into pi-dev

6 years agoMerge "Refresh several icons" into pi-dev
Antony Sargent [Thu, 24 May 2018 06:11:57 +0000 (06:11 +0000)]
Merge "Refresh several icons" into pi-dev

6 years agoMerge "Refresh system update icon" into pi-dev
Antony Sargent [Thu, 24 May 2018 06:09:22 +0000 (06:09 +0000)]
Merge "Refresh system update icon" into pi-dev

6 years agoMerge "Update icon for battery saver conditon." into pi-dev
Lei Yu [Thu, 24 May 2018 05:12:28 +0000 (05:12 +0000)]
Merge "Update icon for battery saver conditon." into pi-dev

6 years agoRefactor nfc preference controller
Chihhang Chuang [Thu, 29 Mar 2018 09:26:04 +0000 (17:26 +0800)]
Refactor nfc preference controller

- Remove BaseNfcPreferenceController.
- NfcPreferenceController inherit from TogglePreferenceController.
- AndroidBeamPreferenceController inherit from BasePreferenceController.
- Override getIntentFilter in NfcPreferenceController to listen changes.
- Add an API (hasAsyncUpdate) into BasePreferenceController to
distinguish the setting which is updated asynchronously.

Change-Id: I1abe4410169e305a0d6106e24c54e7f2e763fc91
Merged-In: I7c9c48ea7f1ad01a02524beabf9d30baa3db891f
Fixes: 67997761
Fixes: 74887543
Test: RunSettingsRoboTests

6 years agoMerge "Setting to change sysui theme" into pi-dev
Lucas Dupin [Thu, 24 May 2018 02:15:03 +0000 (02:15 +0000)]
Merge "Setting to change sysui theme" into pi-dev

6 years agoMerge "Refresh battery status icons" into pi-dev
Antony Sargent [Thu, 24 May 2018 01:49:06 +0000 (18:49 -0700)]
Merge "Refresh battery status icons" into pi-dev
am: 64379a08f7

Change-Id: Ief175d64ec2dad05d188ed9aa12cfaf0b74c4758

6 years agoMerge "Updated misc. settings icon" into pi-dev
Antony Sargent [Thu, 24 May 2018 01:38:40 +0000 (18:38 -0700)]
Merge "Updated misc. settings icon" into pi-dev
am: c3d2e78d82

Change-Id: Ie61946bfa07c093748a5c4553988d6f1f87c1ef3

6 years agoMerge "Set default value of A2DP HW offload toggle" into pi-dev
Petri Gynther [Thu, 24 May 2018 01:09:27 +0000 (18:09 -0700)]
Merge "Set default value of A2DP HW offload toggle" into pi-dev
am: d6acb081af

Change-Id: I2b39c0b17613fafd88954505bf1d982dcc55014b

6 years agoMerge "Refresh battery status icons" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 01:04:53 +0000 (01:04 +0000)]
Merge "Refresh battery status icons" into pi-dev

6 years agoMerge "Updated misc. settings icon" into pi-dev
TreeHugger Robot [Thu, 24 May 2018 01:03:50 +0000 (01:03 +0000)]
Merge "Updated misc. settings icon" into pi-dev

6 years agoMerge "Set default value of A2DP HW offload toggle" into pi-dev
Petri Gynther [Wed, 23 May 2018 23:59:19 +0000 (23:59 +0000)]
Merge "Set default value of A2DP HW offload toggle" into pi-dev

6 years agoRefresh system update icon
Antony Sargent [Wed, 23 May 2018 17:15:21 +0000 (10:15 -0700)]
Refresh system update icon

Bug: 77982107
Test: manual
Change-Id: Ifad137b464fce62cbba0f456da4a773f556a1004

6 years agoRefresh several icons
Antony Sargent [Wed, 23 May 2018 17:15:21 +0000 (10:15 -0700)]
Refresh several icons

This CL includes the following:
-account
-backup
-display
-folder
-location
-multiuser
-security

Bug: 77982107
Test: manual
Change-Id: I921e20d100bf4b3cb4af7326a5aac2b4e5629196

6 years agoMerge "DO NOT MERGE Handle usageevents for work profile apps" into pi-dev
Julia Reynolds [Wed, 23 May 2018 23:11:08 +0000 (16:11 -0700)]
Merge "DO NOT MERGE Handle usageevents for work profile apps" into pi-dev
am: 718c344daf

Change-Id: Ib539d391b3517e9281337a5ba3972bd8ca21caf1

6 years agoUpdate sound settings icons
Antony Sargent [Wed, 23 May 2018 22:34:01 +0000 (15:34 -0700)]
Update sound settings icons

In several places we were referencing private icons from
frameworks/base/core instead of versions we already had in
settings. Also add in a "media stream off" icon to match the one we
already had for "media stream on".

Bug: 77982107
Test: manual (Settings->Sound, then use hardware controls to modify
media and ring volumes)

Change-Id: I3a1d808b3028bb4f2feae4536194dc58c3177a66

6 years agoMerge "Remove connectivity monitor switch from developer options" into pi-dev
Jayachandran Chinnakkannu [Wed, 23 May 2018 22:12:55 +0000 (15:12 -0700)]
Merge "Remove connectivity monitor switch from developer options" into pi-dev
am: 8d7ccc0074

Change-Id: Ic68439308f7d591595876488afa76e57b9414089

6 years agoUpdate icon for battery saver conditon.
Lei Yu [Wed, 23 May 2018 21:54:01 +0000 (14:54 -0700)]
Update icon for battery saver conditon.

To make it consistent with quick settings and battery settings.

Change-Id: I990692b53ee87805d92b93cc874f371e0512154e
Fixes: 80157879
Test: Screenshot

6 years agoSetting to change sysui theme
Lucas Dupin [Tue, 22 May 2018 21:27:40 +0000 (14:27 -0700)]
Setting to change sysui theme

Users now can manually pick if they want light or dark QS
and launcher

Change-Id: Iaabdb32d9af6a293dfbd5ba6dea3da1d38a13ad3
Merged-In: Ic0a43bc5e8777c39bfe5c0bbc606bf6be20f7168
Fixes: 63903361
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SystemUiThemePreferenceControllerTest
Test: manual

6 years agoMerge "DO NOT MERGE Handle usageevents for work profile apps" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 21:49:56 +0000 (21:49 +0000)]
Merge "DO NOT MERGE Handle usageevents for work profile apps" into pi-dev

6 years agoMerge "Hook up blocked keys" into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:49:32 +0000 (14:49 -0700)]
Merge "Hook up blocked keys" into pi-dev
am: a60ea38f67

Change-Id: I464e3068051471f05512068bc020866f8d8d8f85

6 years agoMerge "Inline slider with header" into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:48:51 +0000 (14:48 -0700)]
Merge "Inline slider with header" into pi-dev
am: 666ee4fa14

Change-Id: I16c56185628f7dde2a8dbd04bd4b8509163a2fbe

6 years agoMerge "Use standard displayPreference" into pi-dev
Julia Reynolds [Wed, 23 May 2018 21:48:08 +0000 (14:48 -0700)]
Merge "Use standard displayPreference" into pi-dev
am: eba0723a57

Change-Id: I1394513d9d57577af2a5e0a253ff6ecb548e936d

6 years agoMerge "Hide entire hidden field for non-hidden networks" into pi-dev
Daichi Ueura [Wed, 23 May 2018 21:47:28 +0000 (14:47 -0700)]
Merge "Hide entire hidden field for non-hidden networks" into pi-dev
am: 2c793dfeff

Change-Id: I3cd2bb7d87e371a8db5b1ea693c424b6314f08f2

6 years agoMerge "Convert BatterySaverButton controller to Slice compatible." into pi-dev
Fan Zhang [Wed, 23 May 2018 21:46:45 +0000 (14:46 -0700)]
Merge "Convert BatterySaverButton controller to Slice compatible." into pi-dev
am: 87dfe60ad0

Change-Id: I30f5d13f0c5f430b09585ad2114f0f1ad98eebc9

6 years agoMerge "Return null when setting can't be changed." into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:45:58 +0000 (14:45 -0700)]
Merge "Return null when setting can't be changed." into pi-dev
am: c7b90ee998

Change-Id: I3112475e7cbe477f94c129be78d55b430760df75

6 years agoMerge "Add Location Slice" into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:45:10 +0000 (14:45 -0700)]
Merge "Add Location Slice" into pi-dev
am: 53f6b7cb06

Change-Id: I0a18f0a70e9a653acf3fad8bf7c68763aa4d24a3

6 years agoMerge "Clear indexing before adding all Slices" into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:44:03 +0000 (14:44 -0700)]
Merge "Clear indexing before adding all Slices" into pi-dev
am: 842ea91baa

Change-Id: I6a1a0903ac0e7538e013eebe6071d1b7ff496412

6 years agoMerge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev
Antony Sargent [Wed, 23 May 2018 21:43:19 +0000 (14:43 -0700)]
Merge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev
am: e0e49140d2

Change-Id: Ie05b424868cfd46dce36b792a4006dd2cce0aeba

6 years agoMerge "Update storage, videogame, and vpn icons" into pi-dev
Antony Sargent [Wed, 23 May 2018 21:41:37 +0000 (14:41 -0700)]
Merge "Update storage, videogame, and vpn icons" into pi-dev
am: 28dc3917a9

Change-Id: I7904f669edc41f2d19369a02bb8efdd360d4445f

6 years agoMerge "Update airplane mode key to match framework constant" into pi-dev
Matthew Fritze [Wed, 23 May 2018 21:40:55 +0000 (14:40 -0700)]
Merge "Update airplane mode key to match framework constant" into pi-dev
am: 6be5e331cf

Change-Id: Ifb10ad7d2dd23359dab8ee1307751a0b49082cbb

6 years agoMerge "Factor in PRIVATE_DNS_MODE_DEFAULTSETTING value" into pi-dev
Erik Kline [Wed, 23 May 2018 21:25:29 +0000 (14:25 -0700)]
Merge "Factor in PRIVATE_DNS_MODE_DEFAULTSETTING value" into pi-dev
am: 5a0a7ef4bb

Change-Id: I01f80ccf9c733d280b38250e6735717004cbec1b

6 years agoFollow SliceManager API changes
Jason Monk [Wed, 23 May 2018 20:10:11 +0000 (16:10 -0400)]
Follow SliceManager API changes

Test: make
Bug: 78898947
Change-Id: I5a46ccafe36ad2e0fdac745606d9907f07a86d0c

6 years agoMerge "Remove connectivity monitor switch from developer options" into pi-dev
Jayachandran Chinnakkannu [Wed, 23 May 2018 20:57:30 +0000 (20:57 +0000)]
Merge "Remove connectivity monitor switch from developer options" into pi-dev

6 years agoDO NOT MERGE Handle usageevents for work profile apps
Julia Reynolds [Mon, 21 May 2018 18:17:26 +0000 (14:17 -0400)]
DO NOT MERGE Handle usageevents for work profile apps

Test: robotests
Change-Id: Ifdc6e456d76614220b2052e6ca8a8f3676d0e2ee
Fixes: 79142791

6 years agoMerge "Hook up blocked keys" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 20:41:22 +0000 (20:41 +0000)]
Merge "Hook up blocked keys" into pi-dev

6 years agoRefresh battery status icons
Antony Sargent [Wed, 23 May 2018 18:14:08 +0000 (11:14 -0700)]
Refresh battery status icons

Change-Id: I4835c10135a469c61f641879bb09d366160ff612
Fixes: 80152468
Test: manual

6 years agoMerge "Inline slider with header" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 19:32:41 +0000 (19:32 +0000)]
Merge "Inline slider with header" into pi-dev

6 years agoHook up blocked keys
Matthew Fritze [Wed, 23 May 2018 19:25:23 +0000 (12:25 -0700)]
Hook up blocked keys

Block any slice in onBind that is the in the blacklist

Change-Id: I9687d07cbfef5fcb94842046bc5dc3296eed4252
Fixes: 80195653
Test: robotests

6 years agoMerge "Use standard displayPreference" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 18:44:28 +0000 (18:44 +0000)]
Merge "Use standard displayPreference" into pi-dev

6 years agoInline slider with header
Matthew Fritze [Tue, 22 May 2018 13:50:49 +0000 (06:50 -0700)]
Inline slider with header

Add a header to the slider slices to allow for a second line of text.
This is important to add more context to slices outside of settings.

Fixes: 80157462
Test: robotests
Merged-In: Ida90c9377afb19de320dfce54175f51eee088cfe
Change-Id: I1a1be345e84cbd9f300440e6431d4b331d051dac

6 years agoMerge "Hide entire hidden field for non-hidden networks" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 18:15:04 +0000 (18:15 +0000)]
Merge "Hide entire hidden field for non-hidden networks" into pi-dev

6 years agoMerge "Add isSliceable API to BasePrefController" into pi-dev
Matthew Fritze [Wed, 23 May 2018 17:52:35 +0000 (10:52 -0700)]
Merge "Add isSliceable API to BasePrefController" into pi-dev
am: ef950c24bd

Change-Id: Idbcc5c9960270b5713478aa5f22d524dc52fba91

6 years agoMerge "Convert BatterySaverButton controller to Slice compatible." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 17:16:48 +0000 (17:16 +0000)]
Merge "Convert BatterySaverButton controller to Slice compatible." into pi-dev

6 years agoMerge "Return null when setting can't be changed." into pi-dev
TreeHugger Robot [Wed, 23 May 2018 17:08:29 +0000 (17:08 +0000)]
Merge "Return null when setting can't be changed." into pi-dev

6 years agoRemove connectivity monitor switch from developer options
Jayachandran C [Mon, 21 May 2018 23:41:40 +0000 (16:41 -0700)]
Remove connectivity monitor switch from developer options

Test: Verify connectivity monitor switch is no more shown
      under developer options

Bug: 79255514
Change-Id: I755885398b92a726b0b979815c33793abe01ea66
Merged-In: I755885398b92a726b0b979815c33793abe01ea66

6 years agoUse standard displayPreference
Julia Reynolds [Wed, 23 May 2018 15:09:34 +0000 (11:09 -0400)]
Use standard displayPreference

For notification fields. This is required for them to
display properly within an 'advanced' preference category.

Test: robotests, manual
Change-Id: I1e1ff0e801e136c6a86a0d9164ed21d4160e897a
Fixes: 80132743

6 years agoMerge "Add Location Slice" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 16:23:09 +0000 (16:23 +0000)]
Merge "Add Location Slice" into pi-dev

6 years agoHide entire hidden field for non-hidden networks
Daichi Ueura [Tue, 22 May 2018 09:36:59 +0000 (18:36 +0900)]
Hide entire hidden field for non-hidden networks

This CL hides not just hidden network spinner but entire
hidden field when a user is adding a network from scanned
network list.

Test: robotests
Bug: 80114851
Change-Id: I8b29fd764d62af1e46beaa7d26fae97848f4efe6

6 years agoAdd Location Slice
Matthew Fritze [Fri, 18 May 2018 17:23:34 +0000 (10:23 -0700)]
Add Location Slice

Location is an intent-only Slice.

Test: Robotests
Change-Id: Ie9ed05be2224f2c4b393ed201d5f313f80183edc
Merged-In: I07e27683b46fe4ded8215009a983bb909555fb59
Fixes: 67997314

6 years agoConvert BatterySaverButton controller to Slice compatible.
Fan Zhang [Tue, 22 May 2018 21:12:32 +0000 (14:12 -0700)]
Convert BatterySaverButton controller to Slice compatible.

- Update preference key to match the key defined in SettingsSlicesContract
- Model TwoStateButtonPreference similar to TwoStatePreference (add
  setChecked, isChecked method)
- Remove TwoStateButtonPreferenceController entirely because all methods
  are moved into Preference directly for better encapsulation.
- Make BatterySaverButtonPrefController direclty implement
  TogglePreferenceController. It was not possible before because the
  interface between TwoStateButtonPreferene is too different from
  TwoStatePreference.

Bug: 80106671
Test: robotests
Change-Id: Ib72807dcf1b36e959e08df8d80538c3f9f79b76d
Merged-In: Ib72807dcf1b36e959e08df8d80538c3f9f79b76d

6 years agoMerge "Clear indexing before adding all Slices" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 13:26:19 +0000 (13:26 +0000)]
Merge "Clear indexing before adding all Slices" into pi-dev

6 years agoSet default value of A2DP HW offload toggle
Chienyuan [Wed, 23 May 2018 11:29:58 +0000 (19:29 +0800)]
Set default value of A2DP HW offload toggle

When developer options is disabled, A2DP HW offload toggle
will switch to default value, we should decide default value
according to A2DP HW offload is supported of not.

Bug: 63932139
Bug: 79568680
Test: robotests
Change-Id: I3bf941edd3c0e0f70cfba32dc856e3f14fee07fa

6 years agoMerge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 05:17:28 +0000 (05:17 +0000)]
Merge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev

6 years agoUpdated misc. settings icon
Antony Sargent [Tue, 22 May 2018 23:25:40 +0000 (16:25 -0700)]
Updated misc. settings icon

This isn't the main app icon, but rather a 24dp version used in a few
miscellaneous places in the app. This also removes the outdated inverse
version of the previous icon since the new version now works in either
context.

Bug: 77982107
Test: manual
Change-Id: Ibd5928895ac1aba52b64a853c4ccd806a2f1de70

6 years agoMerge "Update storage, videogame, and vpn icons" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 03:24:03 +0000 (03:24 +0000)]
Merge "Update storage, videogame, and vpn icons" into pi-dev

6 years agoReturn null when setting can't be changed.
Matthew Fritze [Wed, 23 May 2018 01:24:06 +0000 (18:24 -0700)]
Return null when setting can't be changed.

If a Slice cannot be changed, return null instead of
an error slice.

Bug: 80155832
Test: robotests
Change-Id: I843fee76cf19d49cc994062059cb231f222120b2
Merged-In: Ib94136c449c6d9c1911f89833bba62fd2263daa4

6 years agoClear indexing before adding all Slices
Matthew Fritze [Tue, 22 May 2018 21:26:00 +0000 (14:26 -0700)]
Clear indexing before adding all Slices

Before we index, add a call to clear indexed data before
indexing again. It's an optional call.

Fixes: 80065409
Test: robotests

Change-Id: Iddb0ce02c50d84b51fbf6fc2be0bdc9aa1f5987a

6 years agoMerge "Update airplane mode key to match framework constant" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 03:00:47 +0000 (03:00 +0000)]
Merge "Update airplane mode key to match framework constant" into pi-dev

6 years agoMerge "Factor in PRIVATE_DNS_MODE_DEFAULTSETTING value" into pi-dev
TreeHugger Robot [Wed, 23 May 2018 01:02:39 +0000 (01:02 +0000)]
Merge "Factor in PRIVATE_DNS_MODE_DEFAULTSETTING value" into pi-dev

6 years agoUpdate storage, videogame, and vpn icons
Antony Sargent [Wed, 23 May 2018 00:09:28 +0000 (17:09 -0700)]
Update storage, videogame, and vpn icons

Also remove duplicate ic_settings_storage.xml, rename
ic_settings_storage_white.xml to ic_storage_white.xml, and fix up
references.

Bug: 77982107
Test: manual
Change-Id: Icd78c2a2a8d200cb8819d58887455883acdbc668

6 years agoUpdate airplane mode key to match framework constant
Matthew Fritze [Tue, 22 May 2018 20:04:38 +0000 (13:04 -0700)]
Update airplane mode key to match framework constant

Change pref key for airplane mode to "airplane_mode" to match the
constant declared in SettingsSlicesContract.

Bug: 80106671
Test: robotests
Change-Id: I625bed440dd7f1f8509cd00ced5ba67f08a0e737
Merged-In: I898befffbdafc3004fc127414edd04f60ff2554e

6 years agoUpdate photo, accessibility, memory, sim, and warning icons
Antony Sargent [Tue, 22 May 2018 21:27:09 +0000 (14:27 -0700)]
Update photo, accessibility, memory, sim, and warning icons

Bug: 77982107
Test: manual
Change-Id: I8076d1f6115b335693413c9177be79c7af9317a5

6 years agoMerge "Add isSliceable API to BasePrefController" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 23:40:24 +0000 (23:40 +0000)]
Merge "Add isSliceable API to BasePrefController" into pi-dev

6 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
Bill Yi [Tue, 22 May 2018 22:43:38 +0000 (15:43 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into pi-dev
am: 1dbed5f4f2  -s ours

Change-Id: If38ef61a43b054ab10cc9f58062c43ab19b36347

6 years agoAdd isSliceable API to BasePrefController
Matthew Fritze [Sat, 19 May 2018 00:59:26 +0000 (17:59 -0700)]
Add isSliceable API to BasePrefController

Only support explicitly approved Settings Slices,
dictated by controllers which return true for the new
method isSliceable.

Updating the supported settings to a whitelist means that
the method to return all available slices must be updated,
and checking slicability when we index slices.

Test: robotests
Change-Id: I85848c2cdf3e151fa94b33dd1dc5c0374ef94b5b
Merged-In: Ib2b9690cdd0036b5cc4a1cb846c52bce7c824ab9
Fixes: 79779103

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 22:37:33 +0000 (22:37 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Make VideoPreference not important for talkback." into pi-dev
Fan Zhang [Tue, 22 May 2018 21:59:09 +0000 (14:59 -0700)]
Merge "Make VideoPreference not important for talkback." into pi-dev
am: 32c3b87db9

Change-Id: I222b3a652c3345a66799c3920c3183128b37254b

6 years agoMerge "Make VideoPreference not important for talkback." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 21:31:09 +0000 (21:31 +0000)]
Merge "Make VideoPreference not important for talkback." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 22 May 2018 21:13:06 +0000 (14:13 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I06fb64abf52b7fdc00173dbc1ce5cb01cb9fcc61

6 years agoMerge "When BT is off hide rename preference" into pi-dev
hughchen [Tue, 22 May 2018 18:00:11 +0000 (11:00 -0700)]
Merge "When BT is off hide rename preference" into pi-dev
am: a419c4717d

Change-Id: I505144261b8f06a33ee8cd5280707a2b35180178

6 years agoMerge "When BT is off hide rename preference" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 17:48:31 +0000 (17:48 +0000)]
Merge "When BT is off hide rename preference" into pi-dev

6 years agoMerge "Fix availability status for AOD gestures" into pi-dev
Matthew Fritze [Tue, 22 May 2018 17:09:17 +0000 (10:09 -0700)]
Merge "Fix availability status for AOD gestures" into pi-dev
am: 39f98e9018

Change-Id: Iea6cab0934634ec124eb8e792d84ae06386ad03c

6 years agoMerge "Fix availability status for AOD gestures" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 16:50:12 +0000 (16:50 +0000)]
Merge "Fix availability status for AOD gestures" into pi-dev

6 years agoMake VideoPreference not important for talkback.
Fan Zhang [Tue, 22 May 2018 16:33:34 +0000 (09:33 -0700)]
Make VideoPreference not important for talkback.

Change-Id: I9856afbd3f5140fa0c426bcc443d2f33e2ffc335
Fixes: 79887358
Test: talkback

6 years agoWhen BT is off hide rename preference
hughchen [Mon, 21 May 2018 12:46:57 +0000 (20:46 +0800)]
When BT is off hide rename preference

* Hide the preference when BT is off, shown preference when BT is on.

Bug: 78247352
Test: make -j40 RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDeviceNamePreferenceControllerTest
Change-Id: Id1e11c7b546d7ac5bc8606e8645d07d77f2b522f