Commit Graph

1756 Commits

Author SHA1 Message Date
Pavel Grafov
4b6571849e Merge "Merge "Make credential confirmation activity resizeable." into qt-dev am: e455680bd2 am: 52f1e826e9" into qt-r1-dev-plus-aosp
am: 79ecab0822

Change-Id: Ia0ea30825321a4f9262f2ee5a7692c62f7d7ee5b
2019-05-16 21:58:23 -07:00
Pavel Grafov
973c5e5bf3 Make credential confirmation activity resizeable.
This prevents it from breaking split-screen mode.

Test: manual
Bug: 129045018
Change-Id: I380a9a51dbfb0e44f8d9800ae521584b13d0cc3f
2019-05-15 11:16:31 +01:00
Fan Zhang
ff8a733f63 Merge "Revert "Revert "Make subsettings display edge-to-edge""" into qt-dev am: 17521d0ac7
am: d32e9b5229

Change-Id: Icf5c8c48bb2ea7375cc03d3cec9d9879b6db7249
2019-05-14 18:15:28 -07:00
Fan Zhang
b4b7725937 Revert "Revert "Make subsettings display edge-to-edge""
This reverts commit 9e98b8cf0f.

We have to set clipToPadding false on scrollView to make it extend below
navbar. But the side effect is it stops clipping to padding. So it
overlaps with sibling views. In this case anything pinned on top of
screen (switchbar, pinned header for most UIs, and preview indicator for
font size page).

To fix them:
1. in preview pages, just revert back to clipTo*. Their UI doesn't scroll
   so it they don't need to special clip flag to begin with.
2. For pinned to top headers, we need to change the "z-order" by setting
   elevation and make sure background is not transparent.

Fixes: 132182711
Fixes: 132672399
Test: visually on normal screen, font size scree, wifi main setting UI,
      wifi data usage screen

Reason for revert: Rollforward with fix.

Change-Id: Ib6f7c4167b9a680a336f2a7310d82340094d3aac
2019-05-14 13:48:12 -07:00
Fan Zhang
95959878bb Merge "Revert "Make subsettings display edge-to-edge"" into qt-dev am: 9a51ede665
am: 7db72f0ef1

Change-Id: Ie400dae74f651ba127a372d5109967f2256f509e
2019-05-14 11:34:47 -07:00
Fan Zhang
9a51ede665 Merge "Revert "Make subsettings display edge-to-edge"" into qt-dev 2019-05-14 17:17:26 +00:00
Fan Zhang
9e98b8cf0f Revert "Make subsettings display edge-to-edge"
This reverts commit c2a85a374d.

Bug: 132672399
Bug: 132182711
Test: n/a

Reason for revert: b/132672399

Change-Id: Icb34ae5b16b7a32215fe2c1a5f0d0d028c91b2ca
2019-05-14 16:31:08 +00:00
Cn Chen
421a05a6a9 Merge "Font size page support light theme in deferred setup" into qt-dev 2019-05-14 07:18:03 +00:00
cnchen
3eee5cf02e Font size page support light theme in deferred setup
Bug:124470158
Test: atest & manually test
Change-Id: I41e1e98a9a64e516a294c4a94c8b5f335434078f
Merged-In: I41e1e98a9a64e516a294c4a94c8b5f335434078f
2019-05-14 14:01:14 +08:00
Cn Chen
1062d3376d Merge "Font size page support light theme in deferred setup." 2019-05-14 05:55:09 +00:00
cnchen
7a83d51a6b Font size page support light theme in deferred setup.
Bug:124470158
Test: atest & manually test
Change-Id: I41e1e98a9a64e516a294c4a94c8b5f335434078f
2019-05-14 09:04:29 +08:00
Fan Zhang
da11a517da Merge "Make subsettings display edge-to-edge" into qt-dev am: 66db1f95e0
am: 886c361bb7

Change-Id: I2574366d5e0b12f3ac1e1f5bf31e918ade7f1f94
2019-05-13 17:54:01 -07:00
TreeHugger Robot
66db1f95e0 Merge "Make subsettings display edge-to-edge" into qt-dev 2019-05-14 00:05:47 +00:00
Jason Chiu
4af092ac88 Merge "Fix automatically directing the user to the captive portal in Wi-Fi Slice" into qt-dev am: 6a3eb31763
am: 90cb5628bb

Change-Id: I80d9d96d1be2fa871d1320e29f3c3cb380676d42
2019-05-13 12:34:36 -07:00
Fan Zhang
c2a85a374d Make subsettings display edge-to-edge
Fixes: 132182711
Test: visual
Change-Id: I3b0635cba359f74d463c2360323d80c5c9533228
2019-05-13 10:07:13 -07:00
Jason Chiu
2c3e6c6434 Fix automatically directing the user to the captive portal in Wi-Fi Slice
The feature failed after the CL "Force the adapter to rebind cards with
a toggle".

Because toggle slices have been forced to rebind after starting another
activity and when any slice is updating. This unpins Wi-Fi slice and
stops WifiScanWorker and then clears the saved clicked network.

Solution:
1. Change ConnectToWifiHandler from activity to receiver and send
   broadcasts to it with FLAG_RECEIVER_FOREGROUND, so Wi-Fi slice won't
   be forced to rebind.
2. Seperate Wi-Fi scan worker and contextual Wi-Fi scan worker. Keep the
   original logic for the generic one, and then add the logic below to
   the contextual one.
3. Do not clear the saved clicked network when slice is unppined because
   it happens frequently in contextual homepage.
4. Introduce a static long in ContextualWifiScanWorker that updates once
   in every visible UI session. A session is when the screen is visible
   to user.
5. Use session token to determine whether auto-starting captive portal
   is needed.

Fixes: 128056349
Test: robotest, visual in homepage and network panel
Change-Id: I9e03c379806e124fa7253b2a635574b2433f6afc
2019-05-11 03:26:57 +00:00
lindatseng
11cd648dea Merge "Set panel launch mode to singleInstance and fix animation" into qt-dev am: 04623e81b8
am: d40facddb0

Change-Id: I6ae75cbea7463353a62df9431b81660b9c16d2a7
2019-05-10 07:09:10 -07:00
TreeHugger Robot
04623e81b8 Merge "Set panel launch mode to singleInstance and fix animation" into qt-dev 2019-05-10 08:41:12 +00:00
lindatseng
2943c1de7a Set panel launch mode to singleInstance and fix animation
Set panel launch mode to singleInstance to avoid panel can show up
infinite time when user keep launching panels (Easy repro by
pressing volume hard key > settings again and again).

After changing launch mode to singleInstance, we will need to do
some refactors, to avoid weirdness when adding/changing/closing
panels:
1. Move and refactor logic in SettingsPanelActivity#onCreate.
   We will need onNewIntent here to handle Panel launching, since
   we only have one instance of SettingsPanelActivity now.

   Also do refactor here to reuse the PanelFragment instead of
   creating one every single time, to better handle the exit
   animation, avoid janky exit behavior from the old PanelFragment

2. Move logic from PanelFragment#onCreateView, to reuse it when
   updating panel content.

   Also add exiting animation when we are transitioning the panel
   from one to another.  Also add alpha animation to make it move
   more smoothly.

3. Adding flags to launch see more intent in settings.

Fixes: 131225920
Fixes: 131254399
Test: manual
Change-Id: I93d3708bd02a2d736e38685475f2d9988ef62d31
2019-05-10 07:14:13 +00:00
Kevin Chyn
4908680470 Merge changes from topic "Face Intro Changes" into qt-dev am: 0f65b773be
am: 82703baa9d

Change-Id: I3b2c9327aeadae1dba660e0bc9ed8d7470c2a50b
2019-05-08 18:17:00 -07:00
Kevin Chyn
0f65b773be Merge changes from topic "Face Intro Changes" into qt-dev
* changes:
  Added Face Enroll Education Screen
  Updated Face Enroll Introduction
2019-05-08 23:55:22 +00:00
joshmccloskey
0458262fb3 Added Face Enroll Education Screen
Test: Builds
Bug: 131774352
Fixes: 131857742

Change-Id: Ib384b9efaf053b405ce3f55e449dd6abb9e75296
2019-05-08 19:15:50 +00:00
Beth Thibodeau
6007065213 Merge "Add setting suggestion for style" into qt-dev am: 1d1f1b321e
am: 2c773e578e

Change-Id: Ieba65805d03fe3aca3151b4325a21061bb107c4f
2019-05-03 22:08:33 -07:00
Beth Thibodeau
1d1f1b321e Merge "Add setting suggestion for style" into qt-dev 2019-05-03 16:54:54 +00:00
Michael Wachenschwanz
a759f72127 Merge "Simplify user flow for setting default supervisor as PO" into qt-dev am: 563b56af75
am: 57177733d4

Change-Id: Ic60f453acd6741f5af79ce3f0ceb1ddd68a04e51
2019-05-03 03:57:57 -07:00
Beth Thibodeau
bf63dde205 Add setting suggestion for style
Also added extra to the existing wallpaper suggestion so it opens
directly to that tab instead of the style tab

Test: atest com.android.settings.wallpaper.StyleSuggestionActivityTest
Fixes: 126230901

Change-Id: I50ca588627063194900dca8a9273baff4a44ca67
2019-05-02 10:58:22 -04:00
Michael Wachenschwanz
35eef604a3 Simplify user flow for setting default supervisor as PO
A follow up CL will clean up and separate the DeviceAdminAdd and
ProfileOwnerAdd logic (see b/131713071)

Bug: 124066840
Test: manual (overlay config_defaultSupervisionProfileOwnerComponent and
confirm only that component can be set as profile owner after setup is
complete)
Test: manual (install CtsVerifier, adb shell am start -n "com.android.cts.verifier/.admin.tapjacking.OverlayingActivity", user should not be able to click the "Allow" button)

Change-Id: Iccd931801145719110ce75421c35db80ea651779
2019-05-02 03:42:06 +00:00
Xiangyu/Malcolm Chen
39e8aaba93 Merge "Create enable MMS notification." into qt-dev am: 25de66c030
am: 4a0f2aedd5

Change-Id: I508a0eb6ee8a23e9bcf6c6394af8e1860cfae31d
2019-05-01 11:22:28 -07:00
Sunny Goyal
ffe474de2f Merge "Restoring pinned shortcuts to original state after restore" into qt-dev am: 011c18e22b
am: 3937b263ef

Change-Id: I42b5db6ee730f288e9820c877c6ca71bcfebd703
2019-05-01 07:35:41 -07:00
Antony Sargent
d4f37bb46e Merge "Add 'Erase SIM' to mobile network details page" into qt-dev am: 2740c4a052
am: 4e1273c53f

Change-Id: Ia925f6646eeb49564750dad9a055898ddbdd650f
2019-05-01 07:19:34 -07:00
Fan Zhang
7309f2c7a0 Merge "Remove parent activity from TTS_SETTINGS" into qt-dev am: 87631db975
am: 3f7b3d653f

Change-Id: I5934425f788e5c1c57b11f2af400d11d62d73d69
2019-04-30 23:16:32 -07:00
Ilya Matyukhin
77faf64a86 Merge changes from topic "fingerprint-settings-after-enrollment" into qt-dev am: 64693e31d9
am: e1a84e5c23

Change-Id: Ib2cc2e7ccf0f01fe6f5156e593515ff21556e232
2019-04-30 20:00:48 -07:00
Xiangyu/Malcolm Chen
25de66c030 Merge "Create enable MMS notification." into qt-dev 2019-04-30 23:05:25 +00:00
TreeHugger Robot
011c18e22b Merge "Restoring pinned shortcuts to original state after restore" into qt-dev 2019-04-30 21:51:35 +00:00
Sunny Goyal
ae788a1631 Restoring pinned shortcuts to original state after restore
Creating an no-op backup agent in settings. This ensures that
we get onRestoreFinished callback after restore is finished where we
can update all pinned shortcuts.

Bug: 110016648
Test: Verified backup->clear-data->restore path on device
Change-Id: Id14d0792d60ba08d97078a31a81d2b63ab8ce109
2019-04-30 10:25:40 -07:00
TreeHugger Robot
2740c4a052 Merge "Add 'Erase SIM' to mobile network details page" into qt-dev 2019-04-30 16:47:54 +00:00
Andrew Sapperstein
9ba6224b2f Merge "Move SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity." into qt-dev am: 067332ca9e
am: e8bd1c48d0

Change-Id: Id7de9e739ff61a6cc13c54cbad96e6e9b0ce78a2
2019-04-30 00:26:10 -07:00
TreeHugger Robot
87631db975 Merge "Remove parent activity from TTS_SETTINGS" into qt-dev 2019-04-30 03:40:22 +00:00
Antony Sargent
562f7b2f91 Add 'Erase SIM' to mobile network details page
This adds a preference to the mobile network details page that lets a
user delete an eSIM profile.

Bug: 124254555
Test: make RunSettingsRoboTests
Change-Id: I1e266566afc36ff39bf1b1c6d1db674c7c6e8648
2019-04-29 16:57:35 -07:00
Fan Zhang
bcd8a25e00 Remove parent activity from TTS_SETTINGS
So back button takes user back within their original nav stack.

Fixes: 131395471
Test: manual
Change-Id: I144f4122dca2db6c416412737f9aa07507c5a45f
2019-04-29 13:35:20 -07:00
Malcolm Chen
7dd82f966c Create enable MMS notification.
Adding a notification in SimSelectNotification that will be triggered
when receiving a enable MMS request. Tapping on the notificaiton will
lead to the subscription setting page.

Bug: 130222866
Test: manual -- have a test app that sends the intent when mobile
data is turned off. And verify that the heads-up notificaiton is shown
and that it will lead to subscription setting page.

Change-Id: Ia80e8e5ab20adf78a31647a23cb2ba8dac690e41
2019-04-29 18:49:27 +00:00
Ilya Matyukhin
8979f84865 Show fingerprint preferences after enrolling from settings
Bug: 131231334
Test: tested on blueline
Change-Id: Ifd43f28001fcb42ec61a62ad6656d2da2a0629eb
2019-04-28 16:31:54 -07:00
Andrew Sapperstein
c65ccd23b4 Move SIM_SUB_INFO_SETTINGS to NetworkDashboardActivity.
Remove the entry point for SimSettings and redirect any intents to the new UI.

Filed b/131324863 to track deleting the code.

Fixes: 128859223
Bug: 131324863
Test: adb shell am start -a com.android.settings.sim.SIM_SUB_INFO_SETTINGS
shows main connectivity screens

Change-Id: I4a4ed5c34d231eaab929a923c7fcbbfc1e0ed6f3
2019-04-26 12:01:42 -07:00
Linda Tseng
63d5209bce Merge "Make panel support dark mode" into qt-dev am: 395cad3888
am: f55d2a0bdc

Change-Id: I0d93233751b66f54dddf3ff03df53b6e7ddd89e7
2019-04-25 00:37:04 -07:00
tmfang
948429e343 Merge "Fix CTS issue on PRIVACY_SETTINGS" into qt-dev am: ab3f4062d1
am: 6aa2c1a65f

Change-Id: If8f048c1ff3a8ab5a9a6e961b61a13841b8c02da
2019-04-25 00:20:03 -07:00
Cating Lin
ba3c603323 Merge "The icon of suggestion_fingerprint should be blue." into qt-dev am: 08319ee328
am: 81183f3af6

Change-Id: Icda125e005293b76177e38c66e0d120bb91d5533
2019-04-25 00:16:40 -07:00
lindatseng
e972b16c4b Make panel support dark mode
Slightly adjust Panel related theme/styles to support dark mode.

Screenshot:
Wifi Panel: https://screenshot.googleplex.com/5FJ1wwMjgrn.png
NFC Panel: https://screenshot.googleplex.com/AhNJhEMXCS7.png
Volume Panel: https://screenshot.googleplex.com/iyOxAz9NJPv.png
Connectivity Panel: https://screenshot.googleplex.com/pvExHZVNW7m.png

Test: Visual/Manual verification
Fixes: 130815366
Change-Id: Ic96898091c52ccebf4437d96099ad553884d1eb4
2019-04-24 21:30:40 +00:00
TreeHugger Robot
ab3f4062d1 Merge "Fix CTS issue on PRIVACY_SETTINGS" into qt-dev 2019-04-24 18:09:37 +00:00
tmfang
bf2989aaa4 Fix CTS issue on PRIVACY_SETTINGS
Fixes: 130696835
Test: Manually test as following stpes
1. Tap "BYOD Managed Provisioning" under "Managed Provisioning" section
2. Tap "START BYOD PROVISIONING FLOW"
3. Tap "Cross profile intent filters are set"
4. adb logcat -s 'android.settings.PRIVACY_SETTINGS'
        -> No error about android.settings.PRIVACY_SETTINGS

Change-Id: I8fa3b61f14ca2da577493643cda4d7d0c66b8b0b
2019-04-24 12:20:57 +08:00
Cating Lin
84e6a47895 The icon of suggestion_fingerprint should be blue.
Bug: b/131117150
Test: Manual Test
Change-Id: If7a07bf1caeb21f820e141f5412d91178007f7bc
2019-04-24 09:26:49 +08:00