OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoFix a bug where device index is not skipped correct.
Fan Zhang [Fri, 25 May 2018 23:05:58 +0000 (16:05 -0700)]
Fix a bug where device index is not skipped correct.

When checking language/build fingerprint to skip reindex, language check
was comparing Locale object and String object, so they would never be
equal, so we accidentally reindex every time.

- Switched Objects.equal to TextUtils.equal, this catches the error at
compiler level.

Bug: 80065409
Test: compile/robotest
Change-Id: I2b3c68bb1c2fd876338f42321605567d7e64d64b

5 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

5 years agoHide haptic intensity settings for devices without enough dynamic range.
Michael Wright [Fri, 25 May 2018 21:57:03 +0000 (22:57 +0100)]
Hide haptic intensity settings for devices without enough dynamic range.

Despite our hope, devices prior to P18 just don't have the dynamic range
to give three distinct vibration intensity settings. Given this, only
show an on / off toggle for devices by default unless they explicitly
opt-in to multiple intensity levels.

Test: m -j RunSettingsRoboTests
Bug: 80243632
Change-Id: I14ece855cf20f9fa44b0648d28f89c0053be5c5f

5 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

5 years agoFix DND crash from SpringboardActivity
Matthew Fritze [Thu, 24 May 2018 23:09:05 +0000 (16:09 -0700)]
Fix DND crash from SpringboardActivity

Special case Uris need to explicitly add their intents.
This unfortunately duplicates a list of special-cased Slices,
but I have attached a bug with a plan to address this duplicity in Q.

Change-Id: I346915c32543713d33716422018d7c950cce323d
Fixes: 80065409
Test: atest SliceDeepLinkSpringBoardTest

5 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

5 years agoAnother refresh of swipe up gesture video
Antony Sargent [Fri, 25 May 2018 20:00:10 +0000 (13:00 -0700)]
Another refresh of swipe up gesture video

Bug: 77474484
Test: manual (Settings->System->Gestures->Swipe up on Home button)
Change-Id: I62c46ef38cf67b4bf200ad2420138fe6677d6999

5 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

5 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

5 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

5 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

5 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

5 years agoMerge cherrypicks of [4189833, 4186953, 4190512, 4190513] into pi-release
android-build-team Robot [Fri, 25 May 2018 01:34:38 +0000 (01:34 +0000)]
Merge cherrypicks of [4189833418695341905124190513] into pi-release

Change-Id: Ibf22ddc21efdfafd5256fb8c70d228e8a822724f

5 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
(cherry picked from commit 20495a8c367fd793fe8f852694630a919b92184a)

5 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

5 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

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:37 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282 skipped: 874c51780f skipped: 551be9a85f skipped: 93ee1bd17e skipped: 30d0145ead skipped: b9aa0fbfe9

Change-Id: Ib0b9bdb830263bbfb7c81033b388cd9e07e591ef

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:35 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282 skipped: 874c51780f skipped: 551be9a85f skipped: 93ee1bd17e skipped: 30d0145ead

Change-Id: I164f89c547721b6b02fcd2bf57b224c92816e25b

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:34 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282 skipped: 874c51780f skipped: 551be9a85f skipped: 93ee1bd17e

Change-Id: I72e34eb278333a310cab6845c79f55df50478860

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:33 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282 skipped: 874c51780f skipped: 551be9a85f

Change-Id: Ic7873dae0f097a546b250ebcb96cf88a437e1173

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:32 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282 skipped: 874c51780f

Change-Id: Ibb61117b7475504a756dafece07c5d79eba0f73f

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:30 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724 skipped: cb66517282

Change-Id: Ieb0dfe22926f14109466bd00c9cac9ccaa04e057

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:29 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d skipped: 5b4de5e724

Change-Id: I2b731c3a29f4fde5a672c9224008e7be7e460b72

5 years ago[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eea...
Android Build Merger (Role) [Thu, 24 May 2018 18:22:19 +0000 (18:22 +0000)]
[automerger skipped] Merge translations of Bluetooth confirmation text skipped: e0eeafcb5d

Change-Id: I1ba9495afe9e105926ad407442d732f2c6e92cf5

5 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

5 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

5 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

5 years agoSnap for 4801384 from 2e0709b3b8d637460232f49836a80da5f612f90b to pi-release
android-build-team Robot [Thu, 24 May 2018 07:27:58 +0000 (07:27 +0000)]
Snap for 4801384 from 2e0709b3b8d637460232f49836a80da5f612f90b to pi-release

Change-Id: I5954c59bd42debb8cab1a6fa46c71bf5485cbc34

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 years agoMerge translations of Bluetooth confirmation text
Antony Sargent [Tue, 13 Feb 2018 00:17:54 +0000 (16:17 -0800)]
Merge translations of Bluetooth confirmation text

This is a manual merge of the translated strings from the master branch
of the 'bluetooth_pairing_shares_phonebook' string. The fix for this bug
requires these translations because the fix was to slightly reword the
confirmation text in the pairing dialog and stop substituting in the
device name

Bug: 62672248
Test: manual
Change-Id: Iab08b43768f0aedd690570eb59dcb71c14c04784

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 years agoSnap for 4799153 from e0e49140d22a6cb6299b94302c79f684d8489778 to pi-release
android-build-team Robot [Wed, 23 May 2018 07:23:50 +0000 (07:23 +0000)]
Snap for 4799153 from e0e49140d22a6cb6299b94302c79f684d8489778 to pi-release

Change-Id: I02406573629fe9b1e457cc3b48ad6b7c165e3a72

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 years agoSnap for 4796401 from 4376993a873ecc68a05f6152919b8b3405bdeb76 to pi-release
android-build-team Robot [Tue, 22 May 2018 07:27:27 +0000 (07:27 +0000)]
Snap for 4796401 from 4376993a873ecc68a05f6152919b8b3405bdeb76 to pi-release

Change-Id: I209618e244432f13904cf1e094be86b4cd174418

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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