OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Re enable remove button after cancel" into qt-dev
joshmccloskey [Thu, 16 May 2019 02:12:19 +0000 (19:12 -0700)]
Merge "Re enable remove button after cancel" into qt-dev
am: b195c402f3

Change-Id: If9118f204cded6ea9493b46724cf58e4f2ee4cf5

5 years agoMerge "Re enable remove button after cancel" into qt-dev
TreeHugger Robot [Thu, 16 May 2019 00:51:26 +0000 (00:51 +0000)]
Merge "Re enable remove button after cancel" into qt-dev

5 years agoMerge "Always include uid as part of recentApp key" into qt-dev
Beverly [Wed, 15 May 2019 22:54:20 +0000 (15:54 -0700)]
Merge "Always include uid as part of recentApp key" into qt-dev
am: 08ef7bd52b

Change-Id: I305672e35b3df07cb9bd0f0635033e1106a0f884

5 years agoMerge "Update enroll to match mocks" into qt-dev
Kevin Chyn [Wed, 15 May 2019 22:47:52 +0000 (15:47 -0700)]
Merge "Update enroll to match mocks" into qt-dev
am: dbe4384909

Change-Id: Id5692eacf7cfcbdbaae484aaf578ef1852fab68f

5 years agoMerge "Always include uid as part of recentApp key" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 22:47:28 +0000 (22:47 +0000)]
Merge "Always include uid as part of recentApp key" into qt-dev

5 years agoMerge "Update enroll to match mocks" into qt-dev
Kevin Chyn [Wed, 15 May 2019 22:34:40 +0000 (22:34 +0000)]
Merge "Update enroll to match mocks" into qt-dev

5 years agoMerge "Add empty check for path in UsageGraph" into qt-dev
Lei Yu [Wed, 15 May 2019 22:20:21 +0000 (15:20 -0700)]
Merge "Add empty check for path in UsageGraph" into qt-dev
am: 825ac6e370

Change-Id: I85b5ea046c75ba7e5ba261fe08658e0be76dda3f

5 years agoMerge "Fix preview image alignment issue due to clip padding." into qt-dev
Fan Zhang [Wed, 15 May 2019 22:18:28 +0000 (15:18 -0700)]
Merge "Fix preview image alignment issue due to clip padding." into qt-dev
am: 0376a3ce13

Change-Id: I69c2555314e880d80ce8cd98ae452b23c95a0f55

5 years agoMerge "Add empty check for path in UsageGraph" into qt-dev
Lei Yu [Wed, 15 May 2019 22:05:18 +0000 (22:05 +0000)]
Merge "Add empty check for path in UsageGraph" into qt-dev

5 years agoMerge "Fix preview image alignment issue due to clip padding." into qt-dev
TreeHugger Robot [Wed, 15 May 2019 22:01:06 +0000 (22:01 +0000)]
Merge "Fix preview image alignment issue due to clip padding." into qt-dev

5 years agoMerge "Replace system navigation animations will smaller files" into qt-dev
Mehdi Alizadeh [Wed, 15 May 2019 21:43:37 +0000 (14:43 -0700)]
Merge "Replace system navigation animations will smaller files" into qt-dev
am: b9cb4ab062

Change-Id: Iccaca0c230e95f3109385d8f1f540984a4374ec0

5 years agoMerge "Replace system navigation animations will smaller files" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 21:17:13 +0000 (21:17 +0000)]
Merge "Replace system navigation animations will smaller files" into qt-dev

5 years agoFix preview image alignment issue due to clip padding.
Fan Zhang [Wed, 15 May 2019 20:13:10 +0000 (13:13 -0700)]
Fix preview image alignment issue due to clip padding.

CaptionPropertiesFragment is using a non-standard way to display preview
images. Changed to use LayoutPreference.

Bug: 132797057
Test: visual
Change-Id: I92bfd38e2880226d7385e98ed871dad4e1f30e42

5 years agoUpdate enroll to match mocks
Kevin Chyn [Wed, 15 May 2019 19:51:13 +0000 (12:51 -0700)]
Update enroll to match mocks

Test: manual
Fixes: 132803438
Change-Id: I99a10e60833a31b71abf8fdbf7e426e9867a1cf5

5 years agoRe enable remove button after cancel
joshmccloskey [Wed, 15 May 2019 19:44:14 +0000 (12:44 -0700)]
Re enable remove button after cancel

Fixes: 132753128
Test: Manual.
Change-Id: I36ef74455dc8ceca52dfbc8d0e6fbef770b2533d

5 years agoAlways include uid as part of recentApp key
Beverly [Mon, 13 May 2019 20:39:21 +0000 (16:39 -0400)]
Always include uid as part of recentApp key

- so that work apps are also tracked

Test: atest RecentNotifyingAppsPreferenceControllerTest
Fixes: 132183578
Change-Id: Iceb9604674a3525b93c1cdde6e32a3a83b813866

5 years agoAdd empty check for path in UsageGraph
Lei Yu [Wed, 15 May 2019 18:14:14 +0000 (11:14 -0700)]
Add empty check for path in UsageGraph

If path is empty, skip method since there is nothing to draw.

Bug: 132728523
Test: RunSettingsRoboTests
Change-Id: I6fdb7c2f69d3d658c47b58c7304cfeb7d4010a46

5 years agoReplace system navigation animations will smaller files
Mehdi Alizadeh [Wed, 15 May 2019 18:05:12 +0000 (11:05 -0700)]
Replace system navigation animations will smaller files

Bug: 130915285
Test: Manual test
Change-Id: I902177c5f5c0d56f463fbc4e9532c70581fe9154

5 years agoMerge "Added icons for partial system update card in the Security category" into...
Sorin Dinu [Wed, 15 May 2019 06:31:49 +0000 (06:31 +0000)]
Merge "Added icons for partial system update card in the Security category" into qt-dev

5 years agoMerge "Change string of switchbar and installed service category title" into qt-dev
Kevin Chang [Wed, 15 May 2019 02:13:09 +0000 (02:13 +0000)]
Merge "Change string of switchbar and installed service category title" into qt-dev

5 years agoMerge "Fix dark theme and battery saver interaction" into qt-dev
Salvador Martinez [Wed, 15 May 2019 01:33:08 +0000 (01:33 +0000)]
Merge "Fix dark theme and battery saver interaction" into qt-dev

5 years agoMerge "Use NetworkTemplate to query data" into qt-dev
Lei Yu [Wed, 15 May 2019 00:27:23 +0000 (00:27 +0000)]
Merge "Use NetworkTemplate to query data" into qt-dev

5 years agoMerge "Revert "Revert "Make subsettings display edge-to-edge""" into qt-dev
TreeHugger Robot [Wed, 15 May 2019 00:01:30 +0000 (00:01 +0000)]
Merge "Revert "Revert "Make subsettings display edge-to-edge""" into qt-dev

5 years agoFix dark theme and battery saver interaction
Salvador Martinez [Wed, 8 May 2019 21:30:25 +0000 (14:30 -0700)]
Fix dark theme and battery saver interaction

In settings we weren't properly taking into account battery saver
enabled dark theme. This CL makes it so that when battery saver
on we disable the toggle until battery saver is off since
you can't change dark theme in battery saver. Additionally it
adds a message indicating why the toggle was disabled so the
user doesn't get confused.

Test: robotests
Bug: 131913864
Change-Id: I855e429a666098c837650852d1e1355477afa13d

5 years agoRevert "Revert "Make subsettings display edge-to-edge""
Fan Zhang [Tue, 14 May 2019 17:25:02 +0000 (17:25 +0000)]
Revert "Revert "Make subsettings display edge-to-edge""

This reverts commit 9e98b8cf0fd0669fdc3c351aafb91fa8e4a0d9ad.

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

5 years agoMerge "Increased char limit for translations" into qt-dev
Joshua Mccloskey [Tue, 14 May 2019 19:13:11 +0000 (19:13 +0000)]
Merge "Increased char limit for translations" into qt-dev

5 years agoMerge "Fixed talkback issue" into qt-dev
Joshua Mccloskey [Tue, 14 May 2019 19:09:37 +0000 (19:09 +0000)]
Merge "Fixed talkback issue" into qt-dev

5 years agoMerge "Revert "Make subsettings display edge-to-edge"" into qt-dev
Fan Zhang [Tue, 14 May 2019 17:17:26 +0000 (17:17 +0000)]
Merge "Revert "Make subsettings display edge-to-edge"" into qt-dev

5 years agoRevert "Make subsettings display edge-to-edge"
Fan Zhang [Tue, 14 May 2019 16:30:16 +0000 (16:30 +0000)]
Revert "Make subsettings display edge-to-edge"

This reverts commit c2a85a374d28612c8d51d72523b49f9c2856f96e.

Bug: 132672399
Bug: 132182711
Test: n/a

Reason for revert: b/132672399

Change-Id: Icb34ae5b16b7a32215fe2c1a5f0d0d028c91b2ca

5 years agoMerge "[OWE] Support OWE in transition mode" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 13:57:05 +0000 (13:57 +0000)]
Merge "[OWE] Support OWE in transition mode" into qt-dev

5 years agoAdded icons for partial system update card in the Security category
Sorin Dinu [Tue, 14 May 2019 11:19:57 +0000 (12:19 +0100)]
Added icons for partial system update card in the Security category

Bug: b/132288646
Test: make RunSettingsRoboTests
Change-Id: I7f053b54d9b7e15a81f0f02895ee3266a613477e

5 years agoMerge "Font size page support light theme in deferred setup" into qt-dev
Cn Chen [Tue, 14 May 2019 07:18:03 +0000 (07:18 +0000)]
Merge "Font size page support light theme in deferred setup" into qt-dev

5 years agoFont size page support light theme in deferred setup
cnchen [Mon, 6 May 2019 02:19:10 +0000 (10:19 +0800)]
Font size page support light theme in deferred setup

Bug:124470158
Test: atest & manually test
Change-Id: I41e1e98a9a64e516a294c4a94c8b5f335434078f
Merged-In: I41e1e98a9a64e516a294c4a94c8b5f335434078f

5 years agoMerge "Update button string to "Start"" into qt-dev
Kevin Chyn [Tue, 14 May 2019 05:49:05 +0000 (05:49 +0000)]
Merge "Update button string to "Start"" into qt-dev

5 years agoMerge "Remove On/Off subtext next to the Wi-Fi toggle" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 04:44:27 +0000 (04:44 +0000)]
Merge "Remove On/Off subtext next to the Wi-Fi toggle" into qt-dev

5 years agoChange string of switchbar and installed service category title
Kevin Chang [Mon, 6 May 2019 05:31:05 +0000 (13:31 +0800)]
Change string of switchbar and installed service category title

Bug: 122897712
Test: Visual
Change-Id: I4e15ebc8b91c58d24aadb7e665c6692ebcd627a8

5 years agoMerge "Fix IMEI information can't display without pSIM inserted" into qt-dev
Andy Chou [Tue, 14 May 2019 03:32:26 +0000 (03:32 +0000)]
Merge "Fix IMEI information can't display without pSIM inserted" into qt-dev

5 years agoIncreased char limit for translations
joshmccloskey [Tue, 14 May 2019 02:29:24 +0000 (19:29 -0700)]
Increased char limit for translations

Test: It builds.
Bug: 132638233
Change-Id: Ie7deaf82471c832351af9f25f7b4725b65f3c66a

5 years agoFixed talkback issue
joshmccloskey [Tue, 14 May 2019 01:24:51 +0000 (18:24 -0700)]
Fixed talkback issue

Test: It builds
Fixes: 132635400
Change-Id: I6b3d42561d848a2fdc0f366a96bf3284e5a757fe

5 years agoUpdate button string to "Start"
Kevin Chyn [Tue, 14 May 2019 01:23:22 +0000 (18:23 -0700)]
Update button string to "Start"

Fixes: 132648319

Test: Builds
Change-Id: I05fa1a8d4d24d5ebef95588df64442718bf42c99

5 years agoMerge "Refactors the System Navigation settings page" into qt-dev
Mehdi Alizadeh [Tue, 14 May 2019 01:08:22 +0000 (01:08 +0000)]
Merge "Refactors the System Navigation settings page" into qt-dev

5 years agoMerge "Add check KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:54:58 +0000 (00:54 +0000)]
Merge "Add check KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL" into qt-dev

5 years agoMerge "Revert "Corrected flow for accessibility."" into qt-dev
Kevin Chyn [Tue, 14 May 2019 00:48:49 +0000 (00:48 +0000)]
Merge "Revert "Corrected flow for accessibility."" into qt-dev

5 years agoRevert "Corrected flow for accessibility."
Kevin Chyn [Tue, 14 May 2019 00:45:02 +0000 (00:45 +0000)]
Revert "Corrected flow for accessibility."

This reverts commit b9cb83e4c6aec226762dd48ed561712d4b935e7e.

Reason for revert: broke build

Bug: 132635400

Change-Id: I15d4db26e3dd9172894354a39be13acc69642090

5 years agoMerge "Reduced next button enabled delay to 8 seconds" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:46:25 +0000 (00:46 +0000)]
Merge "Reduced next button enabled delay to 8 seconds" into qt-dev

5 years agoMerge "Strings for "Data during calls" preference" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:19:07 +0000 (00:19 +0000)]
Merge "Strings for "Data during calls" preference" into qt-dev

5 years agoMerge "Revert recent location apps to pre-Q behavior" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:07:28 +0000 (00:07 +0000)]
Merge "Revert recent location apps to pre-Q behavior" into qt-dev

5 years agoMerge "Update strings for System Navigation settings page" into qt-dev
Mehdi Alizadeh [Tue, 14 May 2019 00:07:25 +0000 (00:07 +0000)]
Merge "Update strings for System Navigation settings page" into qt-dev

5 years agoMerge "Make subsettings display edge-to-edge" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:05:47 +0000 (00:05 +0000)]
Merge "Make subsettings display edge-to-edge" into qt-dev

5 years agoMerge "Fix robolectric test error" into qt-dev
TreeHugger Robot [Tue, 14 May 2019 00:04:59 +0000 (00:04 +0000)]
Merge "Fix robolectric test error" into qt-dev

5 years agoMerge "Corrected flow for accessibility." into qt-dev
TreeHugger Robot [Mon, 13 May 2019 23:39:45 +0000 (23:39 +0000)]
Merge "Corrected flow for accessibility." into qt-dev

5 years agoFix robolectric test error
Raff Tsai [Mon, 13 May 2019 06:28:50 +0000 (14:28 +0800)]
Fix robolectric test error

Fixes: 132575837
Test: make RunSettingsRoboTests
Change-Id: I5238a3789f5308a489298fadae772b8b9343ddb5
Merged-In: I5238a3789f5308a489298fadae772b8b9343ddb5
(cherry picked from commit 3c337d565990771ccee462325e6887c0956b051c)

5 years agoAdd check KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL
Lei Yu [Wed, 8 May 2019 23:55:07 +0000 (16:55 -0700)]
Add check KEY_HIDE_CARRIER_NETWORK_SETTINGS_BOOL

If it is true, then hide:
1. Network Select settings
2. Apn settings

Fixes: 131709441
Test: RunSettingsRoboTests
Change-Id: I203cda570564a41c5bb54a3ad9e60c7f35c0d30c

5 years ago[OWE] Support OWE in transition mode
Hai Shalom [Mon, 13 May 2019 22:31:58 +0000 (15:31 -0700)]
[OWE] Support OWE in transition mode

Support OWE in transition mode for devices with OWE support
and devices without OWE support. Scan results will return a
new type of network for OWE in transition networks on devices
that support OWE, and Open for devices that don't support OWE.
Handle the case where Open network is manually added to a device
that supports OWE.

Bug: 132139642
Test: Device with OWE: Connect to Open, OWE-Transition, OWE networks
Test: Device without OWE: Connect to Open, OWE-Transition
Test: Manually create Open network, connect to OWE-Transition
Change-Id: I1a584ccbfec8507803c527ea13933cff6f699ccb

5 years agoRevert recent location apps to pre-Q behavior
Lifu Tang [Mon, 6 May 2019 22:24:04 +0000 (15:24 -0700)]
Revert recent location apps to pre-Q behavior

- List recent location request instead of location access
- Show in list view instead of app list widget
- Add overflow menu to "see all" page to show/hide system apps

Bug: 124015107
Test: build, flash, and test manually
Change-Id: I78df6d4b13ddf774013e8d819cf343ce012e6b0b

5 years agoMerge "Re-enable continue button for accessibility flow" into qt-dev
Joshua Mccloskey [Mon, 13 May 2019 22:05:36 +0000 (22:05 +0000)]
Merge "Re-enable continue button for accessibility flow" into qt-dev

5 years agoCorrected flow for accessibility.
joshmccloskey [Mon, 13 May 2019 21:25:37 +0000 (14:25 -0700)]
Corrected flow for accessibility.

Fixes: 132635400
Test: Manual.
Change-Id: Ied01b76d273b35e01f83a0a744ca2768d02380c5

5 years agoReduced next button enabled delay to 8 seconds
joshmccloskey [Mon, 13 May 2019 21:41:04 +0000 (14:41 -0700)]
Reduced next button enabled delay to 8 seconds

Test: It builds.
Bug: 132636805
Change-Id: I6250f842e86c2ab809be803b599a994af6f25af3

5 years agoRefactors the System Navigation settings page
Mehdi Alizadeh [Thu, 9 May 2019 01:09:24 +0000 (18:09 -0700)]
Refactors the System Navigation settings page

Bug: 130915285
Bug: 128855215
Bug: 127718810
Bug: 129115299
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SystemNavigationGestureSettingsTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=SystemNavigationPreferenceControllerTest

Change-Id: If11e1fe4bf150d2dd9578f731e71abf6b74f5d90

5 years agoUpdate strings for System Navigation settings page
Mehdi Alizadeh [Mon, 13 May 2019 21:29:46 +0000 (14:29 -0700)]
Update strings for System Navigation settings page

Bug: 130437843
Bug: 128522050
Test: Manual test to verify the right strings in settings app
Change-Id: Id6e589d896be34c98fded3b3fff897840e9d3f4f

5 years agoMerge "Fix crash on panel rotation" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 21:13:14 +0000 (21:13 +0000)]
Merge "Fix crash on panel rotation" into qt-dev

5 years agoStrings for "Data during calls" preference
Antony Sargent [Mon, 13 May 2019 19:44:31 +0000 (12:44 -0700)]
Strings for "Data during calls" preference

In some dual-SIM cases, when you have an active voice call using a SIM
that isn't the default one for mobile data, you may not get data
connectivity at all (from any other SIM) due to technical limitations in
the telephony stack. This preference will allow the user to leave data
off for a SIM, but opt in to have data become active only during calls.

Bug: 132114205
Test: n/a
Change-Id: I3e7cdaedd8b685e0fe65221d94f5b426bc95942e

5 years agoUse NetworkTemplate to query data
Lei Yu [Thu, 9 May 2019 22:12:59 +0000 (15:12 -0700)]
Use NetworkTemplate to query data

So virtual carrier can get correct data with merged subscriberIds

Bug: 120566366
Test: RunSettingsLibRoboTests
Change-Id: I02abed77dffb55ef49fe0c4142f6f5b4a42ebe52

5 years agoFix crash on panel rotation
lindatseng [Mon, 13 May 2019 18:30:14 +0000 (11:30 -0700)]
Fix crash on panel rotation

Should force PanelFragment creation on rotation change.

Change-Id: If2ccae7dbc4278103c95621743570b37113746f7
Fix: 132587339
Test: Manual

5 years agoMerge "Fix automatically directing the user to the captive portal in Wi-Fi Slice...
TreeHugger Robot [Mon, 13 May 2019 18:58:44 +0000 (18:58 +0000)]
Merge "Fix automatically directing the user to the captive portal in Wi-Fi Slice" into qt-dev

5 years agoMerge "Move feature-level Bubble setting into developer options; default to off"...
Mady Mellor [Mon, 13 May 2019 18:18:31 +0000 (18:18 +0000)]
Merge "Move feature-level Bubble setting into developer options; default to off" into qt-dev

5 years agoMake subsettings display edge-to-edge
Fan Zhang [Thu, 9 May 2019 20:41:02 +0000 (13:41 -0700)]
Make subsettings display edge-to-edge

Fixes: 132182711
Test: visual
Change-Id: I3b0635cba359f74d463c2360323d80c5c9533228

5 years agoFix IMEI information can't display without pSIM inserted
andychou [Wed, 8 May 2019 16:00:23 +0000 (00:00 +0800)]
Fix IMEI information can't display without pSIM inserted

When no SIM, we can't get active subscription info.
So current code will not create TelephonyManager and cause IMEI not
retrieved.
Create TelephonyManager with default if no subscription info.

Bug: 132215720
Test: test with SIM and without SIM to check SIM status UI and atest ImeiInfoDialogControllerTest pass
Change-Id: Iaeb932ea66a6bee77136251941cca657984e456f

5 years agoMerge "Update string description in SAW unsupported screen" into qt-dev
Zhi An Ng [Mon, 13 May 2019 16:52:22 +0000 (16:52 +0000)]
Merge "Update string description in SAW unsupported screen" into qt-dev

5 years agoMerge "Fix Wi-Fi QR code scanner height at 360dp" into qt-dev
TreeHugger Robot [Mon, 13 May 2019 07:10:11 +0000 (07:10 +0000)]
Merge "Fix Wi-Fi QR code scanner height at 360dp" into qt-dev

5 years agoHide audio switcher entry-point in the volume slice when in call
Tim Peng [Mon, 6 May 2019 06:44:18 +0000 (14:44 +0800)]
Hide audio switcher entry-point in the volume slice when in call

- update test case

Bug: 132385707
Test: make -j42 RunSettingsRoboTests
Change-Id: Ibfd12e75f584b6884d1025018772ac9c19673156

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 16:41:32 +0000 (16:41 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 12 May 2019 13:01:13 +0000 (06:01 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If3dd5a2b6dfd25ecbd48c4870499f9ed5228a014

5 years agoMerge "[WPA3] Fix connectivity issues with PSK-SAE Transtion mode" into qt-dev
TreeHugger Robot [Sun, 12 May 2019 02:43:06 +0000 (02:43 +0000)]
Merge "[WPA3] Fix connectivity issues with PSK-SAE Transtion mode" into qt-dev

5 years agoMerge "Propagate intent extras and finish activity properly" into qt-dev
Kevin Chyn [Sat, 11 May 2019 04:31:14 +0000 (04:31 +0000)]
Merge "Propagate intent extras and finish activity properly" into qt-dev

5 years agoFix automatically directing the user to the captive portal in Wi-Fi Slice
Jason Chiu [Tue, 30 Apr 2019 06:41:19 +0000 (14:41 +0800)]
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

5 years agoMerge "Log ACTION_CONTEXTUAL_CARD_SHOW in different place" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 02:27:24 +0000 (02:27 +0000)]
Merge "Log ACTION_CONTEXTUAL_CARD_SHOW in different place" into qt-dev

5 years agoPropagate intent extras and finish activity properly
Kevin Chyn [Sat, 11 May 2019 00:41:55 +0000 (17:41 -0700)]
Propagate intent extras and finish activity properly

Bug: 131861430

Test: Builds
Change-Id: I7e831f74f1e55026b9343a4c4f47c9f5adc316e6

5 years agoMerge "Fixed spacing on Intro & Edu screens" into qt-dev
TreeHugger Robot [Sat, 11 May 2019 01:40:56 +0000 (01:40 +0000)]
Merge "Fixed spacing on Intro & Edu screens" into qt-dev

5 years agoRe-enable continue button for accessibility flow
joshmccloskey [Sat, 11 May 2019 00:59:25 +0000 (17:59 -0700)]
Re-enable continue button for accessibility flow

Test: Removed userdata, went to education flow, enabled accessibility
and confirmed the next button was re-enabled
Fixes: 132463368

Change-Id: I7cd78d606fa4c191b44199a0d143b56b33be4fa4

5 years agoLog ACTION_CONTEXTUAL_CARD_SHOW in different place
Raff Tsai [Fri, 10 May 2019 04:46:56 +0000 (12:46 +0800)]
Log ACTION_CONTEXTUAL_CARD_SHOW in different place

Fixes: 132396134
Test: robolectric
Change-Id: I7d46df15fbc42838da0fa53f4db7e1aa026c3174

5 years agoFixed spacing on Intro & Edu screens
joshmccloskey [Thu, 9 May 2019 23:01:13 +0000 (16:01 -0700)]
Fixed spacing on Intro & Edu screens

Test: It builds.
Fixes: 132370812
Change-Id: I7bfa8a7eae91ad9b0fc9b19c9a6bc019f884e729

5 years agoMove feature-level Bubble setting into developer options; default to off
Mady Mellor [Mon, 6 May 2019 23:54:07 +0000 (16:54 -0700)]
Move feature-level Bubble setting into developer options; default to off

Functionality:
* Moves feature-level setting into developer settings (apps section)
* Adds bubbles in developer options under "apps" section
* Configures the app-specific bubble toggle in notifications settings
  to be hidden / shown based on the developer setting
* Configures the channel-specific bubble toggle in notification channel
  settings to be hidden / shown based on the developer setting

Tests:
* Anything that might be assuming that it's globally enabled now has
  a bit to enable it globally in that test
* There is a logic change now where the app-level setting would be available
  even if off globally, now that is not true -- if it's off globally the
  app-level is no longer available
* Adds tests for the developer setting

Test: make -j40 RunSettingsRoboTests ROBOTEST_FILTER="Bubble"
Bug: 131845765
Change-Id: I5f6bf74e5ada3fc023571825cca10d7bddc60e6e

5 years agoClean up before making all setting page render edge-to-edge
Fan Zhang [Fri, 10 May 2019 21:18:33 +0000 (14:18 -0700)]
Clean up before making all setting page render edge-to-edge

These classes are casting view to LinearLayout unnecessarily. Later we
might change the root view away from LinearLayout. The cast will cause
crash.

Bug: 132182711
Test: go through SUW.
Change-Id: Iea31882f8edea0c87ef8e95b4da9b6bffa8ea7d0

5 years agoMerge "Update listDivider for PreferenceFragmentCompat" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 20:38:20 +0000 (20:38 +0000)]
Merge "Update listDivider for PreferenceFragmentCompat" into qt-dev

5 years agoMerge "Updating animation asset" into qt-dev
Fan Zhang [Fri, 10 May 2019 20:24:59 +0000 (20:24 +0000)]
Merge "Updating animation asset" into qt-dev

5 years agoMerge "Resolve the SIM call manager per subId" into qt-dev
Brad Ebinger [Fri, 10 May 2019 20:17:38 +0000 (20:17 +0000)]
Merge "Resolve the SIM call manager per subId" into qt-dev

5 years ago[WPA3] Fix connectivity issues with PSK-SAE Transtion mode
Hai Shalom [Wed, 8 May 2019 21:42:06 +0000 (14:42 -0700)]
[WPA3] Fix connectivity issues with PSK-SAE Transtion mode

Fix two reported issues regarding PSK-SAE transition mode:
1. When phone supports SAE, creating a manual saved network with PSK
and manually connecting would cause the phone to connect but Settings
does not display any connected AP. Phone would not autoconnect.
2. When phone doesn't support SAE, phone cannot connect to an AP in
PSK-SAE Transition mode because the framework always targets the highest
security.

Bug: 132278271
Test: Connect to WPA2 network
Test: Connect to WPA3 network (w/capable phone)
Test: Connect to WPA2/3 Transition w/SAE capable phone
Test: Connect to WPA2/3 Transition w/SAE not-capable phone
Change-Id: I371bcb4b2cccfc8684ecb5db3a768524f7354598

5 years agoMerge "Allow SimDialogActivity to be started for result" into qt-dev
Brad Ebinger [Fri, 10 May 2019 19:42:55 +0000 (19:42 +0000)]
Merge "Allow SimDialogActivity to be started for result" into qt-dev

5 years agoAllow SimDialogActivity to be started for result
Brad Ebinger [Wed, 1 May 2019 00:30:40 +0000 (17:30 -0700)]
Allow SimDialogActivity to be started for result

In Telephony, we sometimes need to be able to launch
the SIM pick dialog activity for SMS without setting
a new default (i.e. user chose "ask every time") for
default SMS subscription.

Adds the ability for the SimDialogActivity to be
called using startActivityForResult and not set the
user's choice as the default.

Bug: 130853716
Bug: 130567323
Test: run Telephony SmsManagerTestApp
Change-Id: If9f9ebbfe9b7b6718ed759937abbcfa6d22c6295

5 years agoUpdating animation asset
Beth Thibodeau [Fri, 10 May 2019 18:28:43 +0000 (14:28 -0400)]
Updating animation asset

Fixes: 132095489
Test: mp settingsg
Change-Id: Icda6eb54496356e2567e1d39ab0c718746e2442d

5 years agoMerge "Clear media switcher items when in phone call" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 18:14:02 +0000 (18:14 +0000)]
Merge "Clear media switcher items when in phone call" into qt-dev

5 years agoUpdate listDivider for PreferenceFragmentCompat
Mill Chen [Thu, 9 May 2019 17:50:57 +0000 (01:50 +0800)]
Update listDivider for PreferenceFragmentCompat

The support library uses preference_list_divider_material for its list
divider and its color is a hardcoded value. That's why the divider color
can't be applied to the PreferenceFragmentCompat in Settings when
updating the divider color in the device defaults theme level. To make
it so we set its listDivider to list_divider_material to facilitate updating
the divider color.

Bug: 129943610
Test: visual
Change-Id: Ie992b925fae0effd4e00682a911ad004ac3fc033

5 years agoMerge "Fix "Turn on Wi-Fi scanning?" does not pop up when clicking "Turn on Wi-Fi...
TreeHugger Robot [Fri, 10 May 2019 09:09:25 +0000 (09:09 +0000)]
Merge "Fix "Turn on Wi-Fi scanning?" does not pop up when clicking "Turn on Wi-Fi automatically"" into qt-dev

5 years agoMerge "Set panel launch mode to singleInstance and fix animation" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 08:41:12 +0000 (08:41 +0000)]
Merge "Set panel launch mode to singleInstance and fix animation" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 10 May 2019 08:38:34 +0000 (08:38 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoSet panel launch mode to singleInstance and fix animation
lindatseng [Fri, 3 May 2019 00:12:27 +0000 (17:12 -0700)]
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

5 years agoMerge "Override performClick method to eliminate redundant click" into qt-dev
Kevin Chang [Fri, 10 May 2019 06:32:25 +0000 (06:32 +0000)]
Merge "Override performClick method to eliminate redundant click" into qt-dev

5 years agoFix "Turn on Wi-Fi scanning?" does not pop up when clicking "Turn on Wi-Fi automatically"
Arc Wang [Mon, 6 May 2019 10:29:06 +0000 (18:29 +0800)]
Fix "Turn on Wi-Fi scanning?" does not pop up when clicking "Turn on Wi-Fi automatically"

We should make sure both 'Use location' & 'Wi-Fi scanning' are enabled
before calling setWifiWakeupEnabled.

Bug: 131777439
Test: manual
Change-Id: I602917cfa7c5581ecb414e8c44b4e20c8f9ea78d

5 years agoMerge "Fixed network name for about/sim_status" into qt-dev
Pengquan Meng [Fri, 10 May 2019 06:10:48 +0000 (06:10 +0000)]
Merge "Fixed network name for about/sim_status" into qt-dev