OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge "Add michaelwr to OWNERS for haptics settings in accessibility" into pi-dev
TreeHugger Robot [Sat, 26 May 2018 00:20:44 +0000 (00:20 +0000)]
Merge "Add michaelwr to OWNERS for haptics settings in accessibility" into pi-dev

6 years agoAdd michaelwr to OWNERS for haptics settings in accessibility
Michael Wright [Fri, 25 May 2018 22:37:29 +0000 (23:37 +0100)]
Add michaelwr to OWNERS for haptics settings in accessibility

Bug: 80243632
Test: N/A
Change-Id: Id315d626af527946230affc292ed9b329efe8b5b

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
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
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: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
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 01:21:35 +0000 (01:21 +0000)]
Merge "Follow SliceManager API changes" into pi-dev

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
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 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 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 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 "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 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
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
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
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

6 years agoMerge "Fix field reordering on toggle switch" into pi-dev
Julia Reynolds [Tue, 22 May 2018 16:09:05 +0000 (16:09 +0000)]
Merge "Fix field reordering on toggle switch" into pi-dev

6 years agoMerge "Don't reset channel field when loading the app" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 15:36:22 +0000 (15:36 +0000)]
Merge "Don't reset channel field when loading the app" into pi-dev

6 years agoFix field reordering on toggle switch
Julia Reynolds [Tue, 22 May 2018 13:09:22 +0000 (09:09 -0400)]
Fix field reordering on toggle switch

Every field needs an explicit order.

Test: manual
Change-Id: Iae533db9e9d240bd0dc14da04a1831fe23005f9e
Fixes: 79749266

6 years agoAdd Bluetooth Slice
Matthew Fritze [Thu, 3 May 2018 22:12:18 +0000 (15:12 -0700)]
Add Bluetooth Slice

Bluetooth slice is added a special case, due to the migration of
bluetooth to a Switch Bar instead of a preference with a controller.

Change-Id: I8b70bb66c862255a4e8d2426ac09939ba6197624
Merged-In: Icfdcd77601ad1e64e0f6c352a8d691f0181515c8
Fixes: 67997327
Test: robotests

6 years agoDon't reset channel field when loading the app
Julia Reynolds [Tue, 22 May 2018 13:07:46 +0000 (09:07 -0400)]
Don't reset channel field when loading the app

Only save data that's changed.

Change-Id: Iaa8265f543a7c1ec418d9d016986e0a253f28df6
Fixes: 79216856
Test: robo tests

6 years agoMerge "Show color modes from config_availableColorModes" into pi-dev
Chia-I Wu [Tue, 22 May 2018 07:09:53 +0000 (07:09 +0000)]
Merge "Show color modes from config_availableColorModes" into pi-dev

6 years agoMerge "When restrict, use uid inside AppInfo" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 05:22:24 +0000 (05:22 +0000)]
Merge "When restrict, use uid inside AppInfo" into pi-dev

6 years agoMerge changes I6d4f8ec3,Id4c1e86c into pi-dev
tim peng [Tue, 22 May 2018 04:44:15 +0000 (04:44 +0000)]
Merge changes I6d4f8ec3,Id4c1e86c into pi-dev

* changes:
  Make device discoverable in Connected Devices settings page
  Add bluetooth discoverable footer preference in connected devices page

6 years agoMerge "Update music, notifications, device information, and movies icons" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 03:45:32 +0000 (03:45 +0000)]
Merge "Update music, notifications, device information, and movies icons" into pi-dev

6 years agoMerge "Misc GAR fixes" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 03:08:15 +0000 (03:08 +0000)]
Merge "Misc GAR fixes" into pi-dev

6 years agoShow color modes from config_availableColorModes
Chia-I Wu [Thu, 15 Mar 2018 15:35:20 +0000 (08:35 -0700)]
Show color modes from config_availableColorModes

Check config_availableColorModes to decide which color mode options
to show.

Bug: 73824924
Bug: 73825738
Test: 2016, 2017, and 2018 devices
Change-Id: I42915595348061ff4b3f2fdf14753e96dfcb2052

6 years agoMerge "Dynamically showing "driving mode"" into pi-dev
TreeHugger Robot [Tue, 22 May 2018 02:48:34 +0000 (02:48 +0000)]
Merge "Dynamically showing "driving mode"" into pi-dev

6 years agoMake device discoverable in Connected Devices settings page
timhypeng [Fri, 11 May 2018 07:41:10 +0000 (15:41 +0800)]
Make device discoverable in Connected Devices settings page

* Set preference title by bluetooth state
* Enable bluetooth discoverable mode in Connected device page
* Add more test cases for DiscoverableFooterPreferenceController

Bug: 79294219
Test: make -j50 RunSettingsRoboTests
Change-Id: I6d4f8ec3870c43bf48e9666eabd60068aa8950bb
Merged-In: I6d4f8ec3870c43bf48e9666eabd60068aa8950bb

6 years agoAdd bluetooth discoverable footer preference in connected devices page
timhypeng [Fri, 11 May 2018 06:38:22 +0000 (14:38 +0800)]
Add bluetooth discoverable footer preference in connected devices page

* Dynamicly add preference in controller
* Add test cases for DiscoverableFooterPreferenceController

Bug: 79294219
Test: make -j50 RunSettingsRoboTests
Change-Id: Id4c1e86c9a0a0cd69d8106a18f2cf4a0fa31782b
Merged-In: Id4c1e86c9a0a0cd69d8106a18f2cf4a0fa31782b

6 years agoWhen restrict, use uid inside AppInfo
Lei Yu [Mon, 21 May 2018 20:15:24 +0000 (13:15 -0700)]
When restrict, use uid inside AppInfo

Before this CL, we use packageManager to get uid for battery
restriction. However it may not be correct all the time.

For example, RestrictedAppDetails will be opened as main user
however inside we also show work profile apps, in this case
we can't get correct uid by only using normal API in PackageManager.

This CL change it to use uid from AppInfo, which is correct all
the time.

Bug: 79992590
Test: RunSettingsRoboTests
Change-Id: Id33a5f6409d6bace0d756e5ac06432acb8b2cf65

6 years agoFactor in PRIVATE_DNS_MODE_DEFAULTSETTING value
Erik Kline [Thu, 17 May 2018 05:43:20 +0000 (14:43 +0900)]
Factor in PRIVATE_DNS_MODE_DEFAULTSETTING value

This setting can be used to change the in-code default.

Test: as follows
    - built, flashed, booted
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsModeDialogPreferenceTest passes
    - make -j50 RunSettingsRoboTests ROBOTEST_FILTER=PrivateDnsPreferenceControllerTest passes
Bug: 79719289
Change-Id: I27e5fb9cc66dde1df72395c22179bca3f62ef782

6 years agoDynamically showing "driving mode"
hughchen [Wed, 16 May 2018 09:12:29 +0000 (17:12 +0800)]
Dynamically showing "driving mode"

Dynamically showing "driving mode" in "Connection preferences" summary.
In cl/196700988, when driving mode is available/not available will using
Settings.System to set flag.
Example :
driving mode is available : Settings.System.putInt(mContentResolver,
DRIVING_MODE_SETTINGS_ENABLED, 1)
driving mode is not available : Settings.System.putInt(mContentResolver,
DRIVING_MODE_SETTINGS_ENABLED, 0);

This CL using Settings.System to get driving mode state that used to dynamically
showing "driving mode"

Bug: 79299421
Test: make -j50 RunSettingsRoboTests ROBOTEST_FILTER=AdvancedConnectedDeviceControllerTest
Change-Id: I702fa4fbc752c7b470184cf58f2e604f9f28c057
Merged-In: I702fa4fbc752c7b470184cf58f2e604f9f28c057

6 years agoMerge "Add action log in "Restrict app page"." into pi-dev
TreeHugger Robot [Tue, 22 May 2018 01:32:14 +0000 (01:32 +0000)]
Merge "Add action log in "Restrict app page"." into pi-dev

6 years agoAdd action log in "Restrict app page".
Lei Yu [Fri, 18 May 2018 21:12:55 +0000 (14:12 -0700)]
Add action log in "Restrict app page".

This CL adds confirmation dialog in "Restrict app page". By go through
BatteryTipDialogFragment, it will find the correct action, in which
we already have log:
1. RestrictAppAction
2. UnRestrictAppAction

Bug: 79992590
Test: RunSettingsRoboTests
Change-Id: I179fbd17a012528fdfacf42e4a93943eaefff23d
Merged-In: I179fbd17a012528fdfacf42e4a93943eaefff23d

6 years agoUpdate music, notifications, device information, and movies icons
Antony Sargent [Mon, 21 May 2018 23:42:11 +0000 (16:42 -0700)]
Update music, notifications, device information, and movies icons

Also delete duplicated ic_settings_notifications.xml and point existing
usages to ic_notifications.xml

Bug: 77982107
Test: manual
Change-Id: Ia7896598c6334aa97faf392b17e6bc3c17d58599

6 years agoMisc GAR fixes
Fan Zhang [Mon, 21 May 2018 19:07:28 +0000 (12:07 -0700)]
Misc GAR fixes

- Use colorPrimary for EntityHeader background.
- Update data usage header text to be 87% black.

Change-Id: Ic361155d7cd36a2f1cca96e918af0e3855fb8ced
Merged-In: Ic361155d7cd36a2f1cca96e918af0e3855fb8ced
Fixes: 79773433
Test: robotests
Test: visual

6 years agoFix availability status for AOD gestures
Matthew Fritze [Thu, 17 May 2018 18:27:46 +0000 (11:27 -0700)]
Fix availability status for AOD gestures

Double tap screen to wake and lift to check phone
are dependent on AOD - and should return DISABLED DEPENDENT
SETTING when AOD is turned on.

Test: robotests
Change-Id: Ib3f40c38bb210d0f512736746dc45a1b844c6bee
Merged-In: Ib246070ee853185459628b2584ddbae72e15a2f8
Fixes: 79779562

6 years agoMerge "Change Night Display slice title to "NightDisplay"" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 21:37:38 +0000 (21:37 +0000)]
Merge "Change Night Display slice title to "NightDisplay"" into pi-dev

6 years agoChange Night Display slice title to "NightDisplay"
Matthew Fritze [Mon, 21 May 2018 20:36:45 +0000 (13:36 -0700)]
Change Night Display slice title to "NightDisplay"

Fixes: 80093098
Test: Slice browser for UI change
Change-Id: I4999d375f76d914095d4af234aaeb31e32fe798f

6 years agoDO NOT MERGE styleActionBar when updating header
Beverly [Mon, 21 May 2018 17:27:09 +0000 (13:27 -0400)]
DO NOT MERGE styleActionBar when updating header

If the activity has started, style the actionBar when the
header is being updated

Test: manual
Change-Id: Ide69fc0f6e8e5046105bd290d22d9f9a3df5c1ae
Bug: 79983080

6 years agoMerge "Don't give onboarding dialog a fixed width" into pi-dev
TreeHugger Robot [Mon, 21 May 2018 14:20:12 +0000 (14:20 +0000)]
Merge "Don't give onboarding dialog a fixed width" into pi-dev

6 years agoMerge "Update DND strings" into pi-dev
Beverly Tai [Mon, 21 May 2018 13:51:10 +0000 (13:51 +0000)]
Merge "Update DND strings" into pi-dev

6 years agoMove getLocalBtManager into FutureTask
ryanywlin [Fri, 18 May 2018 23:34:52 +0000 (07:34 +0800)]
Move getLocalBtManager into FutureTask

Utils.getLocalBtManager in constructor violate StrictMode
ThreadPolicy, move it into FutureTask.

Bug: 79985175
Test: make RunSettingsRoboTests ROBOTEST_FILTER="MediaOutputPreferenceControllerTest" -j28
Test: make RunSettingsRoboTests ROBOTEST_FILTER="HandsFreeProfileOutputPreferenceControllerTest" -j28
Test: make RunSettingsRoboTests ROBOTEST_FILTER="AudioOutputSwitchPreferenceControllerTest" -j28
Change-Id: I0a14be18e4766245e7d165239d47ab54fa5e4acb

6 years agoUsing static method to get summary resource id
hughchen [Wed, 9 May 2018 06:33:52 +0000 (14:33 +0800)]
Using static method to get summary resource id

* Using getConnectedDevicesSummaryResourceId() to get the resource id to shown the summary.

Bug: 79299421
Test: make -j50 RunSettingsRoboTests
Change-Id: I268de4d989fe01eff463a5ec1c0a174e094e56c0

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 20 May 2018 14:00:12 +0000 (14:00 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 20 May 2018 09:34:03 +0000 (02:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I8c15eb852603c17a804d652c236ee561a4218b22

6 years agoAdd developer options toggle for Bluetooth A2DP hardware offload
Chienyuan [Wed, 16 May 2018 12:52:00 +0000 (20:52 +0800)]
Add developer options toggle for Bluetooth A2DP hardware offload

Bug: 63932139
Bug: 79568680
Test: robotests
Change-Id: I54943cb591be1bfed0cdfe7eebf90bad64ce13c7
Merged-In: I54943cb591be1bfed0cdfe7eebf90bad64ce13c7