Commit Graph

50529 Commits

Author SHA1 Message Date
Chris.CC Lee
411ca28940 Align layouts between single and two target preferences.
Change the layout to align view components with TwoTargetPreference.

Fixes: 124084391

Test: Visual
Change-Id: I417a8e442bd80c51be04e3f33514a6605c9b45f8
2019-03-12 06:23:56 +08:00
Kazuya Ohshiro
c449048ac1 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
2019-03-11 13:21:51 -07:00
Quang Luong
252ae8bed0 Merge "Use getTitle() for AccessPoint display name" 2019-03-11 19:46:03 +00:00
Salvador Martinez
23353071a0 Update api usage for rename
setPowerSaverMode -> setPowerSaverModeEnabled

Test: phone boots, tests pass
Bug: 117154042
Change-Id: I7bf5f9e7898b766a798b0af19d17554cd2fce62d
2019-03-11 11:15:31 -07:00
TreeHugger Robot
5cc0a77c56 Merge "Use a boolean Consumer instead of RoleManagerCallback." 2019-03-11 17:22:39 +00:00
bernardchau
46ccd797ac 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
2019-03-11 16:39:08 +00:00
Kevin Chang
ece6d94b57 Merge "Add test cases for BalanceSeekBar" 2019-03-11 08:21:13 +00:00
hughchen
e13e09d1b4 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
2019-03-11 11:44:27 +08:00
Kevin Chang
a22bd67d5c Add test cases for BalanceSeekBar
Bug: 123722274
Test: Manual
      make RunSettingsRoboTests ROBOTEST_FILTER=BalanceSeekBar

Change-Id: Ie6b560b2f92d78a0d3bd7ddb0e0d0a85c7803827
2019-03-11 10:46:13 +08:00
Fan Zhang
1277478807 [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
2019-03-09 08:36:41 -08:00
Chalard Jean
230a9949b4 Merge "Support VPN Proxy(2/2)" am: 2a695c4b7b am: e2f74af063
am: aa5d185d7b

Change-Id: Ifa4ac76f78e24296a29f99f5733075651bed9072
2019-03-09 04:20:32 -08:00
Mill Chen
88ad3307eb Add Grayscale conditional
Build Grayscale conditional that lets users quickly turn off Grayscale
in Settings if it is on.

Bug: 118387886
Test: visual, robotests
Change-Id: Ibfc2d88f4f3f60f9b0acf084a49084030674de37
2019-03-09 18:46:14 +08:00
tmfang
d26e1d68fd Use short format to avoid truncated problem
Test: visual
Fixes: 126871866
Change-Id: I19db315d163a870c92215fba78f1551f025dc5d3
2019-03-09 17:54:01 +08:00
TreeHugger Robot
e3adfc10a7 Merge "Bluetooth slice polish" 2019-03-09 07:00:48 +00:00
TreeHugger Robot
9ada7355b4 Merge "Fix Face auth header icon" 2019-03-09 05:09:59 +00:00
TreeHugger Robot
6b003432f5 Merge "Implemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE" 2019-03-09 04:16:41 +00:00
TreeHugger Robot
21a818f18a Merge "Make Face enroll left button "Skip" during SUW" 2019-03-09 02:51:17 +00:00
Maurice Lam
d6aff5ecec 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
2019-03-08 18:32:03 -08:00
Raff Tsai
26650e773b Merge "Fix Settings crash" 2019-03-09 01:53:35 +00:00
Salvador Martinez
b94251ad07 Remove airplane mode restriction on hotspot
This isn't needed anymore since we support this now.

Test: robotests
Bug: 111681176
Change-Id: I0292f0a38347e4fa3414170e0351a53f5997a192
2019-03-08 16:34:57 -08:00
TreeHugger Robot
aa4748d0a1 Merge "[MAC Randomization] Align feature flag to global flag as framework" 2019-03-09 00:25:44 +00:00
TreeHugger Robot
306d3fc165 Merge "Remove "add another fingerprint" suggestion" 2019-03-08 23:42:39 +00:00
Fan Zhang
0ee2857d0a [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
2019-03-08 15:27:25 -08:00
Maurice Lam
c14a5863ca Make Face enroll left button "Skip" during SUW
Test: Manual
Bug: 120797018
Change-Id: I5539fc3e3fa9f5ffc7413f8bd44504ee1e5c4c86
2019-03-08 15:24:54 -08:00
TreeHugger Robot
2feea46860 Merge "Fix unit test problems in MobileNetworkSummaryController" 2019-03-08 23:20:29 +00:00
Fan Zhang
1b29c28aef [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
2019-03-08 15:07:53 -08:00
Fan Zhang
657f8713ff [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
2019-03-08 15:01:41 -08:00
Fan Zhang
9366d11e6d [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
2019-03-08 14:55:32 -08:00
TreeHugger Robot
0962a4615f Merge "Add extra to the intent for adding additional subscription" 2019-03-08 22:43:25 +00:00
Quang Luong
0df143834a 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
2019-03-08 14:42:29 -08:00
Hai Zhang
93cfd2e28e 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
2019-03-08 14:33:30 -08:00
Felipe Leme
a71991a451 Implemented Settings.ACTION_REQUEST_ENABLE_CONTENT_CAPTURE
Test: manual verification
Test: atest AvailableIntentsTest#testRequestEnableContentCaptureIntent

Fixes: 119264902

Change-Id: I521e1690449c5afd7ec2d106befd42081a0e9181
2019-03-08 14:27:05 -08:00
TreeHugger Robot
a77eea7965 Merge "Tweaks to integrate BiometricEnrollActivity to SUW" 2019-03-08 22:19:46 +00:00
Fan Zhang
a4eef62982 Remove "add another fingerprint" suggestion
Fixes: 124828278
Test: visual
Change-Id: Ia224a2d724fbc001aecb99c6c243523a591a50ec
2019-03-08 13:53:11 -08:00
TreeHugger Robot
a51b5f8756 Merge "Use RoleControllerService for role related APIs." 2019-03-08 21:51:25 +00:00
TreeHugger Robot
9af4479330 Merge "Remove title from top_level_settings." 2019-03-08 21:23:10 +00:00
TreeHugger Robot
3bcfd763ef Merge "Disable Moblie Data Slice in AP mode" 2019-03-08 19:24:43 +00:00
Antony Sargent
8b26dd27e8 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
2019-03-08 11:23:21 -08:00
TreeHugger Robot
b4d8ccdf86 Merge "Fix the failing PreferenceControllerContractTest" 2019-03-08 19:15:29 +00:00
TreeHugger Robot
28ad28d4be Merge "Revert "Revert "Change battery tip text""" 2019-03-08 19:15:24 +00:00
TreeHugger Robot
173a86275a Merge "Add Wifi Panel" 2019-03-08 19:13:08 +00:00
Maurice Lam
1a105fea94 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
2019-03-08 11:00:23 -08:00
TreeHugger Robot
a035165e97 Merge "Add card score when serialize" 2019-03-08 18:48:50 +00:00
Maurice Lam
5bd7ff6de1 Merge "Rewire BiometricEnrollActivity to setup pages" 2019-03-08 18:31:33 +00:00
Antony Sargent
7b08531b6a 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
2019-03-08 09:43:09 -08:00
Salvador Martinez
790d4a3bd7 Merge "Create preference to allow user to toggle sticky battery saver" 2019-03-08 17:17:25 +00:00
Raff Tsai
26237c977a Add card score when serialize
Fixes: 127949838
Test: Use below command to check output log
      adb logcat | grep "SettingsIntLogLocal"

Change-Id: I29f3dbdb8237ad097b1c84b6cb770195a4a33aa5
2019-03-09 00:53:10 +08:00
Yanting Yang
5cc60a81d2 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
2019-03-09 00:52:54 +08:00
Antony Sargent
68d56353fb 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
2019-03-08 08:51:55 -08:00
TreeHugger Robot
2f825120b0 Merge "Remove settings gear icon from connected network in Wi-Fi slice" 2019-03-08 16:28:54 +00:00