Commit Graph

51159 Commits

Author SHA1 Message Date
Mill Chen
078af3396f Update taskAffinity
To make sure Settings won't open unexpectedly.

Fixes: 129330530
Test: visual
Change-Id: Iaa0e0a6a03720b1a0be49d0e1f752d3a7164f4a2
2019-04-04 15:57:38 -07:00
Kevin Chyn
e596ba6863 Settings should be per-profile
Also, don't show keyguard option for work profile

Fixes: 129905061

Test: Builds
Change-Id: I18f573f39ee4e54a3385cc65079bb794633cc560
2019-04-04 15:39:00 -07:00
Michael Groover
9e3b3d77a2 Use Settings instead of DeviceConfig to relax device ID dev option
The 'Disable device identifier restrictions' developer option
currently uses DeviceConfig to set whether the new access
restrictions should be disabled. However this API now requires
the WRITE_DEVICE_CONFIG permission and should only be used from
the server side. This change modifies the developer option to use the
Settings to relax the device identifier check, and the option will
be hidden if the new restrictions have been disabled from the server.

Bug: 129888611
Test: Manually verified device ID check was relaxed with option
      enabled. Also verified option is not displayed if DeiviceConfig
      option is set.

Change-Id: Id8759f2219e702c1f93a638d45ac99bce685383b
(cherry picked from commit 60c80bb295)
2019-04-04 22:14:17 +00:00
Lei Yu
033fe6eec0 Init PowerWhitelistbackend to stop crash
Also update text to "unavailable" to reflect its current status.

Fixes: 129955147
Test: Manual
Change-Id: Ib80d68d6d2b6bc4ced4a72483859e675b7e7e61c
2019-04-04 13:44:45 -07:00
Kevin Chyn
39ca021586 Add face profile settings
Fixes: 110907543

Test: Builds

Change-Id: I9761f289bb250c5d9f5b5e75cf682d164c591050
2019-04-04 13:18:04 -07:00
Lei Yu
254afc0da0 Create gitignore for Settings
Fixes: 129973953
Test: Manual
Change-Id: I0d57d5b2fe161d150605854cbe7fe62494390a3e
2019-04-04 12:49:15 -07:00
Fan Zhang
f2ec3cfbad Update strings
Fixes: 129885706
Fixes: 129855545
Test: visual
Change-Id: I655655033c019de4365de9fe208c8c362134dfe3
2019-04-04 12:01:21 -07:00
Alex Salo
e0c9d3c474 Update adaptive sleep setting with the latest copy
Bug: 129352433
Change-Id: I3c9594f9ed49208ef1d7bbc33e8083a0c733b1f8
Test: manually confirmed it works and looks correct
(cherry picked from commit fdeb07c05b)
2019-04-04 18:55:59 +00:00
Kevin Chyn
eeca918ac7 ConfirmDeviceCredential should respond to cancel when launched through BP
Fixes: 128747871

Test: BiometricPrompt launched by ConfirmDeviceCredential is canceled
Test: ConfirmLock* can also now be canceled
Test: No effect on non-biometric related paths

Change-Id: I237de136e63d523fece87fad7a93f4ecd66d800b
2019-04-04 17:22:23 +00:00
Antony Sargent
24aa3b3504 Fix 'Advanced' collapse point on Network & internet page
On the Network & internet page, we want to collapse all the prefs into
'Advanced' that appear after 'Data Saver'. The mechanism for specifying
where the collapse point starts is just a static count, and it doesn't
really understand the concept of dynamically added preferences like the
ones we add at the top when the device is in DSDS mode. To fix this in
the short term, this CL makes the header that manages these prefs
manually adjust the count as needed. In the future we'd like to have a
better mechanism for this added in the support library.

Fixes: 128855968
Test: make RunSettingsRoboTests
Change-Id: I4509726ff29bc71e1f0b3d4a2f60dffe4b1dd7ac
2019-04-04 10:21:24 -07:00
jackqdyulei
c833ee74ca Customized Wifi calling text
This only fixed in old page from aosp/777974. We need to migrate
it to new preference controller

Fixes: 117257109
Test: Manual
Change-Id: I257be10d7cc1fc4a91ee0df404dd69b4d2ee8ae2
(cherry picked from commit acacaf44d3)
2019-04-04 17:15:59 +00:00
Jason Chiu
8f6c06974c Add prompt to sign in at captive portal to Wi-Fi Slice
- Support signing in captive portal APs in WifiSlice
- Show ContextualWifiSlice when signing in is required
- Generifies SliceBackgroundWorker.getInstance() to return <T extends SliceBackgroundWorker>

Fixes: 128056349
Test: make RunSettingsRoboTests -j
Change-Id: Ib4d3942591a65e81018389e4c0bbddfea6854dbc
(cherry picked from commit dd9f92280b)
2019-04-04 16:51:02 +00:00
Andrew Sapperstein
7b3734e129 Update char limit for reset_esim_title.
Fixes: 129711512
Test: verified manually with larger string.
Change-Id: I802ed901ad65d79dbe761929467607f5e783be9e
2019-04-04 16:16:07 +00:00
Rich Cannings
44427259e8 [automerger skipped] Merge "DO NOT MERGE Refactor passwords/pins/patterns to byte[]" into pi-dev
am: 5d9189fab2 -s ours
am skip reason: subject contains skip directive

Change-Id: Id431f40576a5375d541b4b41d2880ac0c9ac7519
2019-04-04 00:17:57 -07:00
Rich Cannings
2095ac82c4 [automerger skipped] DO NOT MERGE Refactor passwords/pins/patterns to byte[]
am: 34042bbf1d -s ours
am skip reason: subject contains skip directive

Change-Id: I903bcc9500ea4732fdacd9f7c77538ba8390f34d
2019-04-03 23:56:43 -07:00
Xiangyu/Malcolm Chen
14b8b27f1c [automerger skipped] Merge "Clean up a few names of Telephony intent extra." am: 6bb737c5b9 am: 681bf8a664
am: 37683154b4 -s ours
am skip reason: change_id I5d47b132abb722282bd10b9fbb362fb1f1d32f11 with SHA1 f2fca31c51 is in history

Change-Id: I8d45b26d7863190ddf51a8e8a5e86b4acfbde816
2019-04-03 17:15:19 -07:00
Bill Rassieur
52ab4c895f Merge master@5406228 into git_qt-dev-plus-aosp.
am: d09106b207

Change-Id: I9de6ed0dae680c55f3f1396cb8fbc95c6a77f9a3
2019-04-03 16:59:32 -07:00
Xiangyu/Malcolm Chen
37683154b4 Merge "Clean up a few names of Telephony intent extra." am: 6bb737c5b9
am: 681bf8a664

Change-Id: I8576bf49c27620f873c501d3bf837ec0b0b3e679
2019-04-03 16:50:20 -07:00
Kevin Chyn
782b7f9919 Merge "Set/Get features with new interface" 2019-04-03 23:46:14 +00:00
Xiangyu/Malcolm Chen
681bf8a664 Merge "Clean up a few names of Telephony intent extra."
am: 6bb737c5b9

Change-Id: I1a2232458ab8fd4a89c1ada1e5195bf346e31074
2019-04-03 16:25:05 -07:00
Xiangyu/Malcolm Chen
6bb737c5b9 Merge "Clean up a few names of Telephony intent extra." 2019-04-03 23:06:47 +00:00
Lei Yu
e4f64e5c0c Merge "Move telephony method to worker thread" 2019-04-03 22:45:28 +00:00
jackqdyulei
6db1440a0a Move telephony method to worker thread
Get bug complaining it blocks UI even though it works fine some devices.
This CL moves methods to worker thread and keep progressbar
shown at least for 1 second, to avoid janky UI.

Fixes: 129329645
Test: RunSettingsRoboTests
Change-Id: Iee51949b7f6dfe2ede0fc4e6cd0f7b96d7199081
2019-04-03 22:45:07 +00:00
Chen Xu
5a9f447300 Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-04-03 22:17:46 +00:00
TreeHugger Robot
d4f24dd9a9 Merge "Add tests for ContextualCardManager." 2019-04-03 22:07:38 +00:00
Kevin Chyn
856b34dabc Set/Get features with new interface
Bug: 127382095

Test: Builds
Change-Id: Ideb252989a49eec88b8ee7f3ce6ea4f9d85bb3bc
2019-04-03 14:53:28 -07:00
TreeHugger Robot
3205d9405d Merge "Add tests for ContextualCardsAdapter." 2019-04-03 21:17:45 +00:00
TreeHugger Robot
67c9f40278 Merge "Add a flashlight handler activity to support indexability." 2019-04-03 20:48:23 +00:00
TreeHugger Robot
fbd53d21e6 Merge "Disable "Battery dialog" for default apps" 2019-04-03 20:41:21 +00:00
TreeHugger Robot
1382660313 Merge "Convert xml based API allowDynamicSummaryInSlice to java" 2019-04-03 19:42:25 +00:00
Fan Zhang
03dd39c92a Add a flashlight handler activity to support indexability.
Fixes: 128465925
Fixes: 123711093
Test: reindex
Change-Id: Ie082e65ee070f6143c4c65db3f70615b16af0e52
2019-04-03 12:16:33 -07:00
chen xu
4f379d290b SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: I95045f8e2c572a9ee7e8f402568e72ac02a2d1be
2019-04-03 10:31:19 -07:00
clownshen
fafdfea72c Add Wi-Fi data usage field
Add Wi-Fi data usage field at Wi-Fi Setting to show out the total Wi-Fi
data usage for user.

Bug: 129474341
Test: atest WifiSettingsTest
Test: manual test
Change-Id: Iad5bee47bd83ed143a2730f042d77907344f4017
2019-04-03 17:04:36 +00:00
Cn Chen
3c7c6ae28f Merge "Pass back number of fingerprint enrolled from settings to SUW" 2019-04-03 15:36:47 +00:00
TreeHugger Robot
a41fb1867d Merge "Remove unused method from NotificationChannelSlice" 2019-04-03 11:47:38 +00:00
Yi-Ling Chuang
dbc2bb9ba5 Add tests for ContextualCardsAdapter.
Fixes: 114307549
Test: robotests
Change-Id: I6ce023bf97c9f7b3c709bda2aa991a349c7aa825
2019-04-03 19:12:47 +08:00
Jason Chiu
95667e5ea6 Merge "Micro cleanup and refactoring" 2019-04-03 10:26:48 +00:00
Yi-Ling Chuang
e6f11ad0f2 Add tests for ContextualCardManager.
Bug: 114307549
Test: robotests

Change-Id: Iac9450ed21011cb6e8186fbe686ff4d03547ba5e
2019-04-03 18:02:03 +08:00
Alan Stokes
fd54df0c5d Merge "Take default for background activity starts from DeviceConfig." 2019-04-03 09:37:56 +00:00
Yanting Yang
1a9a748cdb Remove unused method from NotificationChannelSlice
Fixes:129835504
Test: robotests
Change-Id: Id0bcad694bba39ce67c77388b9bde7018aae1560
2019-04-03 17:29:24 +08:00
TreeHugger Robot
3c5665f429 Merge "Play vibration when Wi-Fi QR code scanner recognize a valid QR code" 2019-04-03 07:56:21 +00:00
Po-Chien Hsueh
38aff5b129 Merge "Make feature flag settings_dynamic_system persistent" 2019-04-03 07:55:55 +00:00
Jason Chiu
b335e96d2a Micro cleanup and refactoring
- remove unused dimen resources
- remove unused and refactor codes

Test: make RunSettingsRoboTests -j
Change-Id: Ic2a5b16323667741d048e20e3db8da3fb4dc348a
2019-04-03 13:52:46 +08:00
Arc Wang
cb1c9fceb8 Play vibration when Wi-Fi QR code scanner recognize a valid QR code
Bug: 127377350
Test: manual
Change-Id: I9bfcb6f4d1d4dee45d2cacdedfc07d2f4eccd758
2019-04-03 10:27:32 +08:00
Clown SHEN
8cc371e643 Merge "Only show Sign In button for connected network" 2019-04-03 02:16:05 +00:00
Malcolm Chen
ae5d719382 Clean up a few names of Telephony intent extra.
Bug: 128645056
Test: build
Change-Id: I5d47b132abb722282bd10b9fbb362fb1f1d32f11
Merged-In: I5d47b132abb722282bd10b9fbb362fb1f1d32f11
2019-04-02 19:12:40 -07:00
Linda Tseng
616574da82 Merge "Fix tinting on injected pref icon" 2019-04-03 02:06:42 +00:00
TreeHugger Robot
6cc4ee61c7 Merge "Allow NEW type battery early warning to show in homepage" 2019-04-03 02:04:30 +00:00
Arc Wang
e40502fba4 Merge "Update Wi-Fi QR code scan icon and share icon" 2019-04-03 01:50:14 +00:00
Fan Zhang
47788dfb03 Allow NEW type battery early warning to show in homepage
Fixes: 129492004
Test: robotest
Change-Id: I443866a832e4e02c128117dacd766d4fbbd8fc2e
2019-04-02 15:45:51 -07:00