Commit Graph

51186 Commits

Author SHA1 Message Date
lindatseng
cf93c8bc92 Remove divider above device switcher in panel
Remove the divider above the media device switcher Slice per the request.

Do a little refactor in Panel View, to use DividerItemDecoration instead of adding
divider views in layout file as the recycler view items divider.

Since dividers should be shown in most cases, we are setting DividerCondition to
DIVIDER_CONDITION_BOTH and default true to allow divider.  For the slice we don't
need divider (media device switch in this case) we are setting the the target
direction of isDividerAllowed (above in this case) to false.  Since we have
DIVIDER_CONDITION_BOTH, if one of the item view set the divider not allow, the
divider won't be shown.

Test: Visual/Manual inspection
Fixes: 126205139
Change-Id: Ic857705c90819ef9375f877a44bb32987b5d4438
2019-04-05 14:15:16 -07:00
Fan Zhang
5bb4ef7c45 Clean up tts preference layout.
Deleted the custom tts layout and use preference_radio directly.

Fixes: 129994473
Test: visual
Change-Id: Ifc50e0cf9f805776e0529ffd5d672283f28a1d15
2019-04-05 13:44:37 -07:00
Amin Shaikh
8335ce30ad Create TintDrawable in Settings.
This allows us to specify a drawable resource in xml that is simply
another drawable with a different tint. This is necessary to overlay the
settings wifi icons since the tint is resolved using a theme attribute.
This change also replaces a few icons other duplicate icons to
demonstrate usage.

Fixes: 123363812
Test: make; use class in XML and run app
Change-Id: Id80f318e96dab2e1ad9db8430e8371ac6497b753
2019-04-05 16:15:22 -04:00
TreeHugger Robot
b8808e35a6 Merge "Fix sending broadcast with a qualified user in Settings" into qt-dev 2019-04-05 20:05:40 +00:00
Bill Yi
83d678bdc4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I27c0efa466b676aafccb399704805959704fe165
2019-04-05 12:44:47 -07:00
Mill Chen
6b2bced1e6 Fix sending broadcast with a qualified user in Settings
Fixes: 118387886
Test: rebotests
Change-Id: I9e0bdd708b7c95f785f2b11d6d7e3f7818234ada
2019-04-05 10:35:54 -07:00
Lei Yu
e323b40f4e Merge changes Ib80d68d6,I0d57d5b2 into qt-dev
* changes:
  Init PowerWhitelistbackend to stop crash
  Create gitignore for Settings
2019-04-05 17:11:34 +00:00
TreeHugger Robot
41f0a69b76 Merge "Add Settings icons needed for theme overlaying." into qt-dev 2019-04-05 16:38:08 +00:00
TreeHugger Robot
208c21d2c1 Merge "Add bubble confirmation prompt" into qt-dev 2019-04-05 15:26:24 +00:00
Julia Reynolds
19e2473bed Add bubble confirmation prompt
@ the app level if the global level is off

Test: robotests
Bug: 129068779
Change-Id: I94acb334dc9879cd372a2a0dfa8e9508fbf1c316
2019-04-05 09:31:30 -04:00
Amin Shaikh
7b7d6888a2 Add Settings icons needed for theme overlaying.
- Refactor battery icons to remove private attributes to allow them to
be overlayed
- Add drawable icon in settings for back arrow
- Update a few GM2 icons

Bug: 128354921
Test: make; open Settings
Change-Id: I84151a4e7d787381b6c51f02bb45ce5f15fa37a2
2019-04-05 07:54:07 -04:00
TreeHugger Robot
f32d29b730 Merge "Update wifi p2p to direct user to enable location" into qt-dev 2019-04-05 07:59:44 +00:00
Kevin Chyn
13c1c27b8c Merge "Cache attention toggle in settings" into qt-dev 2019-04-05 06:33:37 +00:00
TreeHugger Robot
19626c24ec Merge "Match add network button width to master switch and tint it." into qt-dev 2019-04-05 05:35:05 +00:00
TreeHugger Robot
973eff2eb2 Merge "Add prompt to sign in at captive portal to Wi-Fi Slice" into qt-dev 2019-04-05 03:19:22 +00:00
TreeHugger Robot
83f60c81f5 Merge "Customized Wifi calling text" into qt-dev 2019-04-05 03:17:18 +00:00
TreeHugger Robot
576d601032 Merge "Update char limit for reset_esim_title." into qt-dev 2019-04-05 03:07:09 +00:00
Fan Zhang
b05af56a64 Merge "DND should be displayed on search as slice." into qt-dev 2019-04-05 02:53:12 +00:00
Stanley Wang
bae490bc85 DND should be displayed on search as slice.
Add ZenModeSoundSettingsPreferenceController extends ZenModePreferenceController,
and update availability status to AVAILABLE.

This is cherry-picked from ag/6897872

Change-Id: I8dcb6808cc21c4f5c06548a363c998e369646487
Bug: 129320642
Test: manual & robotests
2019-04-05 02:53:04 +00:00
TreeHugger Robot
02576b6e2e Merge "Update adaptive sleep setting with the latest copy" into qt-dev 2019-04-05 01:16:23 +00:00
Kevin Chyn
388295a80c Merge changes from topic "face-profile-qt-dev" into qt-dev
* changes:
  Settings should be per-profile
  Add face profile settings
2019-04-05 00:41:17 +00:00
TreeHugger Robot
f768b451c3 Merge "Add uri to custom slice PendingIntent." into qt-dev 2019-04-05 00:35:24 +00:00
TreeHugger Robot
a4ea8e94a0 Merge "Update strings" into qt-dev 2019-04-05 00:28:29 +00:00
Kevin Chyn
83f2836552 Cache attention toggle in settings
Bug: 129912479

Test: Builds
Change-Id: I23017f37d53e162c1a1ec35570355508276f90fa
2019-04-04 17:24:09 -07:00
Andrew Sapperstein
d8516430ce Match add network button width to master switch and tint it.
It's now tinted in colorAccent.

Created a new default 80dp minWidth for TwoTargetPreferences.

Fixes: 129007966
Test: visual inspection
Change-Id: Ie751fe685d25373c3aac001e6e0daee8e18b9314
2019-04-04 17:22:10 -07:00
Salvador Martinez
d25ba81028 Update wifi p2p to direct user to enable location
Location is required for Wifi Direct so if it is not enabled
we disable the preference. Additionally, this fixes some minor
update issues in Wifi Wakeup that was also affecting wifi p2p.
Basically they weren't updating when location settings changed
until you left the screen and came back. Now they do.

Test: robotests, manual
Bug: 120552223
Change-Id: Ibd386fcfbef881cae3d871152675f1cab5e4a041
2019-04-04 23:45:04 +00:00
Fan Zhang
459035a263 Add uri to custom slice PendingIntent.
Discovered flashlight slice sometimes does not work, throwing exception
similar as it b/117445451. Adding a data uri fixes it.

Bug: 129981692
Test: manual
Change-Id: I16bc19027dd342f85aaabbf1a2853bb55564f64f
2019-04-04 16:12:38 -07:00
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