OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Align layouts between single and two target preferences."
TreeHugger Robot [Wed, 13 Mar 2019 19:45:25 +0000 (19:45 +0000)]
Merge "Align layouts between single and two target preferences."

5 years agoDisable Moblie Data Slice in AP mode
Matthew Fritze [Thu, 28 Feb 2019 18:42:56 +0000 (10:42 -0800)]
Disable Moblie Data Slice in AP mode

When airplane mode is enabled, users should not be able to
change the value of mobile data. Thus, when airplane mode is enabled,
replace the Slice with a no-op slice explaining why it cannot be
changed.

Fixes: 119411534
Fixes: 126726036
Test: robotests
Change-Id: I991fe05ad8f18004f77fbf1c87403de602d3a267

5 years agoMerge "[Multi-user] Show Backup only if Backup is activated"
Chandan Nath [Wed, 13 Mar 2019 11:09:21 +0000 (11:09 +0000)]
Merge "[Multi-user] Show Backup only if Backup is activated"

5 years ago[automerger skipped] Merge "Schematize Crypto state system property" am: 6c38df5eff...
Kiyoung Kim [Wed, 13 Mar 2019 05:31:41 +0000 (22:31 -0700)]
[automerger skipped] Merge "Schematize Crypto state system property" am: 6c38df5eff am: 7dc288a899
am: 8b8bf4c39e -s ours
am skip reason: change_id I957a8e37a88f7bb6d5007a36c02952d3539580fe with SHA1 4d7bd6d85e is in history

Change-Id: I4df0425e2b933347ad52ec50f67db55428be5185

5 years agoMerge "Schematize Crypto state system property" am: 6c38df5eff
Kiyoung Kim [Wed, 13 Mar 2019 05:09:21 +0000 (22:09 -0700)]
Merge "Schematize Crypto state system property" am: 6c38df5eff
am: 7dc288a899

Change-Id: I865d37316469126cf1cd1bf93bd7427882042c3d

5 years agoMerge "Schematize Crypto state system property"
Kiyoung Kim [Wed, 13 Mar 2019 04:34:09 +0000 (21:34 -0700)]
Merge "Schematize Crypto state system property"
am: 6c38df5eff

Change-Id: I3ef29bc153839fd18b1144c8128ddf4dbc1e4f60

5 years agoMerge "Remove unneeded airplane mode strings"
Salvador Martinez [Wed, 13 Mar 2019 02:25:39 +0000 (02:25 +0000)]
Merge "Remove unneeded airplane mode strings"

5 years agoMerge "Schematize Crypto state system property"
Treehugger Robot [Wed, 13 Mar 2019 01:30:58 +0000 (01:30 +0000)]
Merge "Schematize Crypto state system property"

5 years agoMerge "Suppress search from one of the build number prefs."
TreeHugger Robot [Wed, 13 Mar 2019 01:10:04 +0000 (01:10 +0000)]
Merge "Suppress search from one of the build number prefs."

5 years agoMerge "Update battery string"
TreeHugger Robot [Wed, 13 Mar 2019 00:32:38 +0000 (00:32 +0000)]
Merge "Update battery string"

5 years agoMerge "Revert battery info string to be about percentage"
TreeHugger Robot [Wed, 13 Mar 2019 00:16:47 +0000 (00:16 +0000)]
Merge "Revert battery info string to be about percentage"

5 years agoMerge "Move dark theme above advanced"
TreeHugger Robot [Wed, 13 Mar 2019 00:01:07 +0000 (00:01 +0000)]
Merge "Move dark theme above advanced"

5 years agoMerge "Fix robotests"
Fan Zhang [Tue, 12 Mar 2019 23:51:32 +0000 (23:51 +0000)]
Merge "Fix robotests"

5 years agoFix robotests
Fan Zhang [Tue, 12 Mar 2019 18:00:09 +0000 (11:00 -0700)]
Fix robotests

This is related to settings_network_and_internet_v2 flag turn on. Some
tests were assuming old flag behavior.

Fixes: 128356137
Test: robotests
Change-Id: I4eca49f24ad5a10a0fb40f2c02a2d139ba4cb1a4

5 years agoRemove unneeded airplane mode strings
Salvador Martinez [Tue, 12 Mar 2019 19:59:29 +0000 (12:59 -0700)]
Remove unneeded airplane mode strings

Wifi tether doesn't care about airplane more anymore so we don't
need these.

Test: robotests pass
Bug: 111681176
Change-Id: Icf2cc8c944dc9e2c6f7bdf11478a2772292ea913

5 years ago[automerger skipped] Merge "Add description for Wi-Fi calling mode" am: 13e02af2ad...
Hall Liu [Tue, 12 Mar 2019 23:15:34 +0000 (16:15 -0700)]
[automerger skipped] Merge "Add description for Wi-Fi calling mode" am: 13e02af2ad am: a10d7031c3
am: 6e28351779 -s ours
am skip reason: change_id If9792b0a35c59c1260176b4b2c62107861de73b5 with SHA1 c449048ac1 is in history

Change-Id: Ibfeb4b2bf490ce272de8559e9f08c70d4322c73b

5 years agoSuppress search from one of the build number prefs.
Fan Zhang [Tue, 12 Mar 2019 19:50:20 +0000 (12:50 -0700)]
Suppress search from one of the build number prefs.

And make the search-enabled one copyable.

Fixes: 127962713
Test: search
Change-Id: I0867ea8a376e3aac5e94cd70245833b516bb154d

5 years agoMerge "Add description for Wi-Fi calling mode" am: 13e02af2ad
Hall Liu [Tue, 12 Mar 2019 22:52:22 +0000 (15:52 -0700)]
Merge "Add description for Wi-Fi calling mode" am: 13e02af2ad
am: a10d7031c3

Change-Id: I18deb6cc090f077ed6d49decdadf7d642075ec5a

5 years agoMerge "Hide network & internet top level entry for demo users."
TreeHugger Robot [Tue, 12 Mar 2019 22:10:39 +0000 (22:10 +0000)]
Merge "Hide network & internet top level entry for demo users."

5 years agoRevert battery info string to be about percentage
Salvador Martinez [Mon, 11 Mar 2019 22:15:45 +0000 (15:15 -0700)]
Revert battery info string to be about percentage

This was originally going to do something new, but we decided
it should just control percentage in the status bar after all.

Test: robotests pass
Bug: 127518748
Change-Id: I073a19c27de43cba35031f073c2e606b483a69fd

5 years agoUpdate battery string
jackqdyulei [Tue, 12 Mar 2019 21:24:35 +0000 (14:24 -0700)]
Update battery string

Fixes: 128318092
Test: Build
Change-Id: Ib38a3f84c6029e84b2a189fb5cffc0ea9cac33d6

5 years agoMerge "Add description for Wi-Fi calling mode"
Hall Liu [Tue, 12 Mar 2019 21:06:12 +0000 (14:06 -0700)]
Merge "Add description for Wi-Fi calling mode"
am: 13e02af2ad

Change-Id: Iff0a3e6f814a8fbd7b3910589c5e712cd9dc9b26

5 years agoMerge "Add description for Wi-Fi calling mode"
Hall Liu [Tue, 12 Mar 2019 20:49:21 +0000 (20:49 +0000)]
Merge "Add description for Wi-Fi calling mode"

5 years agoHide network & internet top level entry for demo users.
Fan Zhang [Tue, 12 Mar 2019 18:13:03 +0000 (11:13 -0700)]
Hide network & internet top level entry for demo users.

Fixes: 113705941
Test: robotest
Change-Id: I72fdc4c7221963ae61e037c709b5158c207bd3e4

5 years agoMerge "Remove airplane mode restriction on hotspot"
Salvador Martinez [Tue, 12 Mar 2019 18:27:36 +0000 (18:27 +0000)]
Merge "Remove airplane mode restriction on hotspot"

5 years agoMerge "Update screen lock complexity permission to password complexity"
TreeHugger Robot [Tue, 12 Mar 2019 16:22:11 +0000 (16:22 +0000)]
Merge "Update screen lock complexity permission to password complexity"

5 years ago[Multi-user] Show Backup only if Backup is activated
Chandan Nath [Tue, 12 Mar 2019 10:52:53 +0000 (10:52 +0000)]
[Multi-user] Show Backup only if Backup is activated

This almost reverts the change to SettingsActivity#doUpdateTilesList in ag/6140694
except that instead of setting enabled to true, we set it to whether
backup is activated for this user.

Bug: 124114084

Test: 1a) Set up secondary user
1b) See that there is no Backup option in Settings Homepage - System
1c) adb shell bmgr --user 10 activate true
1d) Backup option is now present
1e) adb shell bmgr --user 10 activate false
1f) Backup option isnt there again

Change-Id: I3f17aabee92bedc91386444c2f0aede696d0fd13

5 years agoSound + Output Switcher on Sound Setting
timhypeng [Mon, 4 Mar 2019 08:32:47 +0000 (16:32 +0800)]
Sound + Output Switcher on Sound Setting

1. Show "play media to" item when Previously Connected device is available
2. Click "Play media to" to launch output slice
3. Update test case

Bug: 126475101
Test: make -j50 RunSettingsRoboTests
Change-Id: Id8afd1a2407acb78c11e81d2420ae8c16130a321

5 years agoMerge "Update output switcher behavior and UI design"
TreeHugger Robot [Tue, 12 Mar 2019 02:50:02 +0000 (02:50 +0000)]
Merge "Update output switcher behavior and UI design"

5 years agoAdd description for Wi-Fi calling mode
Kazuya Ohshiro [Mon, 29 Aug 2016 09:29:35 +0000 (18:29 +0900)]
Add description for Wi-Fi calling mode

Replace the view of dialog with custom view that adds description
as summary.

Test: manual
Bug: 34793636
Change-Id: If9792b0a35c59c1260176b4b2c62107861de73b5
Merged-In: If9792b0a35c59c1260176b4b2c62107861de73b5

5 years agoMerge "Add description for Wi-Fi calling mode"
Hall Liu [Tue, 12 Mar 2019 01:40:43 +0000 (01:40 +0000)]
Merge "Add description for Wi-Fi calling mode"

5 years agoMerge "Revert "Disable Moblie Data Slice in AP mode""
TreeHugger Robot [Tue, 12 Mar 2019 01:37:54 +0000 (01:37 +0000)]
Merge "Revert "Disable Moblie Data Slice in AP mode""

5 years agoMerge "Make settings do nothing if ranking for a card is invalid"
TreeHugger Robot [Tue, 12 Mar 2019 01:17:33 +0000 (01:17 +0000)]
Merge "Make settings do nothing if ranking for a card is invalid"

5 years agoMerge "Add new strings for Wi-Fi Connectivity"
TreeHugger Robot [Tue, 12 Mar 2019 01:11:09 +0000 (01:11 +0000)]
Merge "Add new strings for Wi-Fi Connectivity"

5 years agoMerge "Update the color of the expand icon as accent color"
TreeHugger Robot [Tue, 12 Mar 2019 01:05:10 +0000 (01:05 +0000)]
Merge "Update the color of the expand icon as accent color"

5 years agoMerge changes I54a3f033,I2e894501
TreeHugger Robot [Tue, 12 Mar 2019 00:42:40 +0000 (00:42 +0000)]
Merge changes I54a3f033,I2e894501

* changes:
  Fix [a11y] Wi-Fi Easy Connect Talkback issues
  Support to share Wi-Fi hotspot via QR code

5 years agoRevert "Disable Moblie Data Slice in AP mode"
Matthew Fritze [Mon, 11 Mar 2019 23:58:41 +0000 (23:58 +0000)]
Revert "Disable Moblie Data Slice in AP mode"

This reverts commit 6b065caf7ebf7c6311ae067e7ed6c840e651cb31.

Reason for revert: flaky test: b/128355821

Change-Id: I4fccac1bf7978c5743bde9dd9bb0b76ea4733d2b

5 years agoMake settings do nothing if ranking for a card is invalid
Fan Zhang [Mon, 11 Mar 2019 23:17:58 +0000 (16:17 -0700)]
Make settings do nothing if ranking for a card is invalid

Fixes: 124386997
Test: robotests
Change-Id: Ib01c75ec0490cdc034255300a09e8099e05fc389

5 years agoMove dark theme above advanced
Salvador Martinez [Mon, 11 Mar 2019 22:49:59 +0000 (15:49 -0700)]
Move dark theme above advanced

This CL simply adds an extra child count to show above the
advanced toggle in display settings and moves dark theme up
so it shows by default.

Test: robotests pass
Fixes: 123995869
Change-Id: I15a33d558dc5f1eb0e972bc708d565fcdb7734d5

5 years agoAlign layouts between single and two target preferences.
Chris.CC Lee [Wed, 6 Mar 2019 11:49:15 +0000 (19:49 +0800)]
Align layouts between single and two target preferences.

Change the layout to align view components with TwoTargetPreference.

Fixes: 124084391

Test: Visual
Change-Id: I417a8e442bd80c51be04e3f33514a6605c9b45f8

5 years agoAdd description for Wi-Fi calling mode
Kazuya Ohshiro [Mon, 29 Aug 2016 09:29:35 +0000 (18:29 +0900)]
Add description for Wi-Fi calling mode

Replace the view of dialog with custom view that adds description
as summary.

Test: manual
Bug: 34793636
Change-Id: If9792b0a35c59c1260176b4b2c62107861de73b5

5 years agoMerge "Use getTitle() for AccessPoint display name"
Quang Luong [Mon, 11 Mar 2019 19:46:03 +0000 (19:46 +0000)]
Merge "Use getTitle() for AccessPoint display name"

5 years agoMerge "Use a boolean Consumer instead of RoleManagerCallback."
TreeHugger Robot [Mon, 11 Mar 2019 17:22:39 +0000 (17:22 +0000)]
Merge "Use a boolean Consumer instead of RoleManagerCallback."

5 years agoUpdate screen lock complexity permission to password complexity
bernardchau [Mon, 11 Mar 2019 16:39:08 +0000 (16:39 +0000)]
Update screen lock complexity permission to password complexity

This is to match the method name "getPasswordComplexity" as requested by API review feedback

Bug: 128030136
Test: N/A
Change-Id: Ia4ce1b0ceb581608615364b41a05ca71142ef2b7

5 years agoMerge "Add test cases for BalanceSeekBar"
Kevin Chang [Mon, 11 Mar 2019 08:21:13 +0000 (08:21 +0000)]
Merge "Add test cases for BalanceSeekBar"

5 years agoUpdate output switcher behavior and UI design
hughchen [Wed, 6 Mar 2019 08:55:21 +0000 (16:55 +0800)]
Update output switcher behavior and UI design

- Remove media stream stuff, use active device info as header.
- Show the sub title of media device.
- Add new requirement, when user click disconnected bluetooth device,
  will auto connceted it.
- When bluetooth state is off, do not showing content of slice.

Bug: 127201385
Test: make -j42 RunSettingsRoboTests
Change-Id: Ie1880ba3ef9910a42caf0cca2b6502e54787f5a0

5 years agoAdd test cases for BalanceSeekBar
Kevin Chang [Sat, 23 Feb 2019 00:46:34 +0000 (08:46 +0800)]
Add test cases for BalanceSeekBar

Bug: 123722274
Test: Manual
      make RunSettingsRoboTests ROBOTEST_FILTER=BalanceSeekBar

Change-Id: Ie6b560b2f92d78a0d3bd7ddb0e0d0a85c7803827

5 years ago[automerger skipped] [automerger] Do not allow draw on top for default sms picker...
Fan Zhang [Sat, 9 Mar 2019 16:36:41 +0000 (08:36 -0800)]
[automerger skipped] [automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am: b810aee20f am: 7a58589114 am: 7926131837 am: d6bde3f5b8 am: ba87cf7444 am: 9366d11e6d am: 657f8713ff am: 1b29c28aef
am: 0ee2857d0a -s ours
am skip reason: change_id I4be265565678302fad207839216d5cd65dcb6e94 with SHA1 9d46e1fdfe is in history

Change-Id: Ie84c7488db95a1693b8f6bf3ceaf7033dc3acc75

5 years agoMerge "Support VPN Proxy(2/2)" am: 2a695c4b7b am: e2f74af063
Chalard Jean [Sat, 9 Mar 2019 12:20:32 +0000 (04:20 -0800)]
Merge "Support VPN Proxy(2/2)" am: 2a695c4b7b am: e2f74af063
am: aa5d185d7b

Change-Id: Ifa4ac76f78e24296a29f99f5733075651bed9072

5 years agoMerge "Bluetooth slice polish"
TreeHugger Robot [Sat, 9 Mar 2019 07:00:48 +0000 (07:00 +0000)]
Merge "Bluetooth slice polish"

5 years agoMerge "Fix Face auth header icon"
TreeHugger Robot [Sat, 9 Mar 2019 05:09:59 +0000 (05:09 +0000)]
Merge "Fix Face auth header icon"

5 years agoMerge "Implemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE"
TreeHugger Robot [Sat, 9 Mar 2019 04:16:41 +0000 (04:16 +0000)]
Merge "Implemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE"

5 years agoMerge "Make Face enroll left button "Skip" during SUW"
TreeHugger Robot [Sat, 9 Mar 2019 02:51:17 +0000 (02:51 +0000)]
Merge "Make Face enroll left button "Skip" during SUW"

5 years agoFix Face auth header icon
Maurice Lam [Sat, 9 Mar 2019 01:15:42 +0000 (17:15 -0800)]
Fix Face auth header icon

Like the fingerprint enroll flow, the icon should be blue and have
size 32dp

Test: Manual
Bug: 127985682
Change-Id: I22e1b0c3294b4eedc7359c611c9b1c2c5a09c439

5 years agoMerge "Fix Settings crash"
Raff Tsai [Sat, 9 Mar 2019 01:53:35 +0000 (01:53 +0000)]
Merge "Fix Settings crash"

5 years agoRemove airplane mode restriction on hotspot
Salvador Martinez [Fri, 8 Mar 2019 22:38:21 +0000 (14:38 -0800)]
Remove airplane mode restriction on hotspot

This isn't needed anymore since we support this now.

Test: robotests
Bug: 111681176
Change-Id: I0292f0a38347e4fa3414170e0351a53f5997a192

5 years agoMerge "[MAC Randomization] Align feature flag to global flag as framework"
TreeHugger Robot [Sat, 9 Mar 2019 00:25:44 +0000 (00:25 +0000)]
Merge "[MAC Randomization] Align feature flag to global flag as framework"

5 years agoMerge "Remove "add another fingerprint" suggestion"
TreeHugger Robot [Fri, 8 Mar 2019 23:42:39 +0000 (23:42 +0000)]
Merge "Remove "add another fingerprint" suggestion"

5 years ago[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am:...
Fan Zhang [Fri, 8 Mar 2019 23:27:25 +0000 (15:27 -0800)]
[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am: b810aee20f am: 7a58589114 am: 7926131837 am: d6bde3f5b8 am: ba87cf7444 am: 9366d11e6d am: 657f8713ff
am: 1b29c28aef

Change-Id: I549324f01db9afe19e21c6c01f02ce3f2a444c33

5 years agoMake Face enroll left button "Skip" during SUW
Maurice Lam [Fri, 8 Mar 2019 21:07:39 +0000 (13:07 -0800)]
Make Face enroll left button "Skip" during SUW

Test: Manual
Bug: 120797018
Change-Id: I5539fc3e3fa9f5ffc7413f8bd44504ee1e5c4c86

5 years agoMerge "Fix unit test problems in MobileNetworkSummaryController"
TreeHugger Robot [Fri, 8 Mar 2019 23:20:29 +0000 (23:20 +0000)]
Merge "Fix unit test problems in MobileNetworkSummaryController"

5 years ago[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am:...
Fan Zhang [Fri, 8 Mar 2019 23:07:53 +0000 (15:07 -0800)]
[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am: b810aee20f am: 7a58589114 am: 7926131837 am: d6bde3f5b8 am: ba87cf7444 am: 9366d11e6d
am: 657f8713ff

Change-Id: I501ba68b3f6691a627a8828aeca16d495ee52126

5 years ago[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am:...
Fan Zhang [Fri, 8 Mar 2019 23:01:41 +0000 (15:01 -0800)]
[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am: b810aee20f am: 7a58589114 am: 7926131837 am: d6bde3f5b8 am: ba87cf7444
am: 9366d11e6d

Change-Id: Icd4cf6000dd9d72f486417f1d11dde008d49c513

5 years ago[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am:...
Fan Zhang [Fri, 8 Mar 2019 22:55:32 +0000 (14:55 -0800)]
[automerger] Do not allow draw on top for default sms picker. am: 95d0fb7f49 am: b810aee20f am: 7a58589114 am: 7926131837 am: d6bde3f5b8
am: ba87cf7444

Change-Id: I3b3a2411f4be05e1b8f6ecfce3521c5932028038

5 years agoMerge "Add extra to the intent for adding additional subscription"
TreeHugger Robot [Fri, 8 Mar 2019 22:43:25 +0000 (22:43 +0000)]
Merge "Add extra to the intent for adding additional subscription"

5 years agoUse getTitle() for AccessPoint display name
Quang Luong [Thu, 21 Feb 2019 01:45:32 +0000 (17:45 -0800)]
Use getTitle() for AccessPoint display name

Instead of getSsidStr(), AccessPoint display names should use
getTitle() to accomodate Passpoint networks which use a provider
name instead of a single ssid. This change allows the provider
name to be displayed in the network details page, the long
press wifi dialog, and the config editing dialog.

Bug: 118705403
Test: atest WifiSettingsTest
Change-Id: I930d6218c7e464ad20c0c61130e0cb9ce315d9a2

5 years agoUse a boolean Consumer instead of RoleManagerCallback.
Hai Zhang [Thu, 7 Mar 2019 04:39:35 +0000 (20:39 -0800)]
Use a boolean Consumer instead of RoleManagerCallback.

And use RemoteCallback for it under the hood. This removes one AIDL
interface and allows using lambda, while aligning with what
PermissionControllerService does.

Bug: 127691087
Test: manual
Change-Id: I7af28be2df5f84ffcd040a80884efe7c08e2d067

5 years agoImplemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE
Felipe Leme [Thu, 7 Mar 2019 23:33:51 +0000 (15:33 -0800)]
Implemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE

Test: manual verification
Test: atest AvailableIntentsTest#testRequestEnableContentCaptureIntent

Fixes: 119264902

Change-Id: I521e1690449c5afd7ec2d106befd42081a0e9181

5 years agoMerge "Tweaks to integrate BiometricEnrollActivity to SUW"
TreeHugger Robot [Fri, 8 Mar 2019 22:19:46 +0000 (22:19 +0000)]
Merge "Tweaks to integrate BiometricEnrollActivity to SUW"

5 years agoRemove "add another fingerprint" suggestion
Fan Zhang [Fri, 8 Mar 2019 21:51:31 +0000 (13:51 -0800)]
Remove "add another fingerprint" suggestion

Fixes: 124828278
Test: visual
Change-Id: Ia224a2d724fbc001aecb99c6c243523a591a50ec

5 years agoMerge "Use RoleControllerService for role related APIs."
TreeHugger Robot [Fri, 8 Mar 2019 21:51:25 +0000 (21:51 +0000)]
Merge "Use RoleControllerService for role related APIs."

5 years agoMerge "Remove title from top_level_settings."
TreeHugger Robot [Fri, 8 Mar 2019 21:23:10 +0000 (21:23 +0000)]
Merge "Remove title from top_level_settings."

5 years agoMerge "Disable Moblie Data Slice in AP mode"
TreeHugger Robot [Fri, 8 Mar 2019 19:24:43 +0000 (19:24 +0000)]
Merge "Disable Moblie Data Slice in AP mode"

5 years agoFix unit test problems in MobileNetworkSummaryController
Antony Sargent [Fri, 8 Mar 2019 19:23:21 +0000 (11:23 -0800)]
Fix unit test problems in MobileNetworkSummaryController

There were two failing tests due to problems in this class:
-PreferenceControllerContractTest
-SettingsSearchIndexablesProviderTest

In one case it was because we weren't checking for a valid Lifecycle,
and in the other it wasn't implementing PreferenceControllerMixin (or
inheriting from BasePreferenceController).

Bug: 127524919
Test: atest SettingsUnitTests
Change-Id: I662e300d68a21c28e1efb3ec9e23c4a882497176

5 years agoMerge "Fix the failing PreferenceControllerContractTest"
TreeHugger Robot [Fri, 8 Mar 2019 19:15:29 +0000 (19:15 +0000)]
Merge "Fix the failing PreferenceControllerContractTest"

5 years agoMerge "Revert "Revert "Change battery tip text"""
TreeHugger Robot [Fri, 8 Mar 2019 19:15:24 +0000 (19:15 +0000)]
Merge "Revert "Revert "Change battery tip text"""

5 years agoMerge "Add Wifi Panel"
TreeHugger Robot [Fri, 8 Mar 2019 19:13:08 +0000 (19:13 +0000)]
Merge "Add Wifi Panel"

5 years agoTweaks to integrate BiometricEnrollActivity to SUW
Maurice Lam [Fri, 8 Mar 2019 19:00:23 +0000 (11:00 -0800)]
Tweaks to integrate BiometricEnrollActivity to SUW

- Default backup screen lock type to PIN when in SUW
- Propagate the result codes in BiometricEnrollIntroduction, so that
  when the user hits back, SUW will get RESULT_CANCELED
- Follow-up change that was missed in ag/6664364 to not start activity
  when neither fingerprint nor face is available

Test: Manual
Bug: 120797018
Change-Id: I6d4f662928451fb86f301ddb5c6586622c7e6cf7

5 years agoMerge "Add card score when serialize"
TreeHugger Robot [Fri, 8 Mar 2019 18:48:50 +0000 (18:48 +0000)]
Merge "Add card score when serialize"

5 years agoMerge "Rewire BiometricEnrollActivity to setup pages"
Maurice Lam [Fri, 8 Mar 2019 18:31:33 +0000 (18:31 +0000)]
Merge "Rewire BiometricEnrollActivity to setup pages"

5 years agoFix the failing PreferenceControllerContractTest
Antony Sargent [Thu, 7 Mar 2019 23:21:33 +0000 (15:21 -0800)]
Fix the failing PreferenceControllerContractTest

In FaceSettings.SearchIndexProvider's createPreferenceControllers
method, we need to check isAvailable() before trying to create the
controllers.

Bug: 127852616
Test: runtest --path ./tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Change-Id: Ib05ba05b8752583eeda61ded78f08f7998d48ba7

5 years agoMerge "Create preference to allow user to toggle sticky battery saver"
Salvador Martinez [Fri, 8 Mar 2019 17:17:25 +0000 (17:17 +0000)]
Merge "Create preference to allow user to toggle sticky battery saver"

5 years agoAdd card score when serialize
Raff Tsai [Fri, 8 Mar 2019 16:53:10 +0000 (00:53 +0800)]
Add card score when serialize

Fixes: 127949838
Test: Use below command to check output log
      adb logcat | grep "SettingsIntLogLocal"

Change-Id: I29f3dbdb8237ad097b1c84b6cb770195a4a33aa5

5 years agoBluetooth slice polish
Yanting Yang [Fri, 8 Mar 2019 14:46:19 +0000 (22:46 +0800)]
Bluetooth slice polish

- Apply theme style for light and dark mode.
- Remove tint from slice ListBuilder and tint Bluetooth icon individually.
- Update settings icon of end item to accent style for dark mode.

Bug: 114807655
Bug: 127949840
Test: visual
Change-Id: If216f5ccaf1f969e9ea85066c02a810bb9a9314d

5 years agoAdd extra to the intent for adding additional subscription
Antony Sargent [Fri, 8 Mar 2019 00:52:41 +0000 (16:52 -0800)]
Add extra to the intent for adding additional subscription

In the places where we have a link to let the user add an additional
mobile network subscription, we need the "fore provision" extra added to
the intent.

Bug: 127532036
Test: manual (enable DSDS mode and the settings_network_internet_v2
feature flag, then go to Settings->Network & internet and try clicking
on the '+' button on the right of the Mobile network preference, or
click through that pref if you have 2+ sims and hit the 'Add more'
link. This should bring you into an 'add sim' flow provided by the eSIM
manager)

Change-Id: I56ab2125938f2df07f756d100a7ac993b1e5ced3

5 years agoMerge "Remove settings gear icon from connected network in Wi-Fi slice"
TreeHugger Robot [Fri, 8 Mar 2019 16:28:54 +0000 (16:28 +0000)]
Merge "Remove settings gear icon from connected network in Wi-Fi slice"

5 years agoRevert "Revert "Change battery tip text""
Raff Tsai [Fri, 8 Mar 2019 14:42:03 +0000 (14:42 +0000)]
Revert "Revert "Change battery tip text""

This reverts commit 39beb2533fa560afd9645c9e6bbc4560b199cedd.

Reason for revert: <start to implement>

Fixes: 121042353
Test: adb shell settings put global battery_tip_constants test_low_battery_tip=true
      Then go to Settings -> battery to see the text

Change-Id: I83cc187d5bfda5312410e91ee636373f305ef449

5 years agoMerge "Support VPN Proxy(2/2)" am: 2a695c4b7b
Chalard Jean [Fri, 8 Mar 2019 15:44:56 +0000 (07:44 -0800)]
Merge "Support VPN Proxy(2/2)" am: 2a695c4b7b
am: e2f74af063

Change-Id: I61f6f949ab79cdcac5d61ae9409c2de09b75db49

5 years ago[automerger skipped] Merge "WFC roaming mode setting can not be used with a fixed...
Brad Ebinger [Fri, 8 Mar 2019 14:56:04 +0000 (06:56 -0800)]
[automerger skipped] Merge "WFC roaming mode setting can not be used with a fixed value" am: 7296b6cb1c am: 3c65dc51f3
am: c1bdc0d512 -s ours
am skip reason: change_id Ib2363c5d50f5231cc89f287d760ca8728b02b249 with SHA1 994d27a2a5 is in history

Change-Id: I488660be8a513d82ea04c2e89ca0ad5b67859ecf

5 years agoMerge "Support VPN Proxy(2/2)"
Chalard Jean [Fri, 8 Mar 2019 14:42:57 +0000 (06:42 -0800)]
Merge "Support VPN Proxy(2/2)"
am: 2a695c4b7b

Change-Id: I58553c28c8f4e87a52169f925da70c2edb89ca71

5 years agoMerge "WFC roaming mode setting can not be used with a fixed value" am: 7296b6cb1c
Brad Ebinger [Fri, 8 Mar 2019 14:35:14 +0000 (06:35 -0800)]
Merge "WFC roaming mode setting can not be used with a fixed value" am: 7296b6cb1c
am: 3c65dc51f3

Change-Id: I3ffc4a17603e174eec58acfb33e23be86cd0f73f

5 years agoMerge "WFC roaming mode setting can not be used with a fixed value"
Brad Ebinger [Fri, 8 Mar 2019 14:08:40 +0000 (06:08 -0800)]
Merge "WFC roaming mode setting can not be used with a fixed value"
am: 7296b6cb1c

Change-Id: I0b4bd383fe9ac1e057e652664fc3fb0a250f1eeb

5 years agoMerge "Do not allow draw on top for App notification settings"
TreeHugger Robot [Fri, 8 Mar 2019 13:52:18 +0000 (13:52 +0000)]
Merge "Do not allow draw on top for App notification settings"

5 years agoFix Settings crash
Raff Tsai [Thu, 7 Mar 2019 23:22:20 +0000 (07:22 +0800)]
Fix Settings crash

Doesn't unregister contentprovider so that when data changed,
the fragment is destroyed.

Fixes: 127726564
Test: Connect to wifi. Go to Settings -> connected devices ->
      connection preference -> printing -> hp print service -> press
      back. Repeat several times.

Change-Id: I79d1522ce9d91a6bf6b1f982b7687eab1f7896bb

5 years agoMerge "Animate the expansion/collapse of a slice"
Yanting Yang [Fri, 8 Mar 2019 09:08:02 +0000 (09:08 +0000)]
Merge "Animate the expansion/collapse of a slice"

5 years agoMerge "Update the WorkOnlyCategory"
TreeHugger Robot [Fri, 8 Mar 2019 08:58:39 +0000 (08:58 +0000)]
Merge "Update the WorkOnlyCategory"

5 years agoMerge "Revert "Change battery tip text""
Raff Tsai [Fri, 8 Mar 2019 08:54:34 +0000 (08:54 +0000)]
Merge "Revert "Change battery tip text""

5 years agoRevert "Change battery tip text"
Raff Tsai [Fri, 8 Mar 2019 08:51:05 +0000 (08:51 +0000)]
Revert "Change battery tip text"

This reverts commit 2441b94c6d0e5a55cff2bf8dd97eadc3e2c22a7e.

Reason for revert: <wrong commit>

Change-Id: I373fc065eafc81c26a8eba133255f9377d1d5d7f

5 years agoMerge "Change battery tip text"
TreeHugger Robot [Fri, 8 Mar 2019 08:50:02 +0000 (08:50 +0000)]
Merge "Change battery tip text"

5 years agoDo not allow draw on top for App notification settings
Raff Tsai [Fri, 8 Mar 2019 08:19:30 +0000 (16:19 +0800)]
Do not allow draw on top for App notification settings

Fixes: 119115683
Test: manual
Change-Id: Ib7b878a23b4a99171c58b5de992fb87feca8a28a