Commit Graph

49300 Commits

Author SHA1 Message Date
Fan Zhang
c76698d90d Merge "Tweak padding for conditional card layout." 2018-12-14 22:51:43 +00:00
TreeHugger Robot
5fce5f498a Merge "Fix app link open mode UI" 2018-12-14 22:42:27 +00:00
Fan Zhang
2fa4b1f7b8 Tweak padding for conditional card layout.
Overall goal is to push button to the left:
- Make a linear layout that contain content, and button
- Apply existing padding to the content only
- Apply a smaller padding to button.

Change-Id: I8f1c586c59be21ff73dd6d08675f76c8ff7addda
Fixes: 120669058
Test: visual
2018-12-14 14:03:08 -08:00
Julia Reynolds
ec84a9367f Link to the appropriate config activity for dnd rules
Test: atest, manual
Bug: 111474881
Change-Id: I0c1d7b14abe3cf65762167f3c412fa8f2be1d842
2018-12-14 14:41:48 -05:00
Cosmo Hsieh
0f95d9c45d Merge "Implement getConfig() method to get WifiConfiguration" 2018-12-14 16:41:04 +00:00
Matthew Fritze
125a366dff Set listDivider color for Panels
Default color for listDividers in dialogs (parent theme for
panels) is @null, so we set the color to match the horizontal
dividers. listDivider is used by slices to set the vertical
divider between the primary action and toggles.

Test: visual-only
Bug: 117804089
Change-Id: I8f89a103c65adfbd1e079b38dc5eaaa3d3b32326
2018-12-14 08:34:21 -08:00
TreeHugger Robot
5156d7d4db Merge "Icon size needs to same in AppRestrictionsFragment" 2018-12-14 10:29:10 +00:00
cosmohsieh
64b894f81d Implement getConfig() method to get WifiConfiguration
Make a duplicated function of WifiConfigController.getConfig(). This
function could get a new WifiConfiguration from input AccessPoint or
ScanResult.
Should be removed if there is standard one in framework.

Bug: 120827021
Test: RunSettingsRoboTests

Change-Id: Ia5981e8d41f434c097b464a2bfe18e1356f7b087
2018-12-14 09:54:34 +00:00
Arc Wang
c8a65cbddf Support Wi-Fi DPP metrics categories in Wi-Fi DPP activities & fragments.
MetricsProto.MetricsEvent.SETTINGS_WIFI_DPP_CONFIGURATOR
  MetricsProto.MetricsEvent.SETTINGS_WIFI_DPP_ENROLLEE

Bug: 118797380
Bug: 118794858
Bug: 118794978
Test: NA
Change-Id: I62fe09029d350fa976465ac872a4f53a64a74dcd
2018-12-14 08:16:52 +00:00
tmfang
8916198af7 Icon size needs to same in AppRestrictionsFragment
- All app icon should be 32dp

Test: visual
Change-Id: I56132c04aa968e27d7152c39a5715ae262627844
Fixes: 119065428
2018-12-14 16:14:55 +08:00
Stanley Wang
3f80d1b64b Implement the Copyable interface to PhoneNumberPreferenceController
Change-Id: I70085cffe13047ac808d1bf08a467f693b1d8737
Fixes: 118398321
Test: manual and robotests
2018-12-14 15:09:34 +08:00
Arc Wang
8ff2852f74 Implement receiver flow of WiFi sharing feature II
Bug: 120630683
Test: atest RunSettingsRoboTests
Change-Id: Iabe56205ff9274382adbe5bba59a60d833a57214
2018-12-14 06:50:26 +00:00
Cosmo Hsieh
d4dfba4237 Merge "Remove bug id for WiFi MAC randomization since feature is ready." 2018-12-14 05:15:48 +00:00
Kevin Chyn
65b489a8b1 Merge "Plumb remove functionality through" 2018-12-14 05:05:27 +00:00
TreeHugger Robot
f6d147fdbf Merge "Exclue Scanning Settings for searchable in ARC." 2018-12-14 03:46:35 +00:00
Vishwath Mohan
6c5c8c04b0 Merge "Add settings to control Extended Access mode." 2018-12-14 03:38:20 +00:00
TreeHugger Robot
6890553acb Merge "Filter status is not retained in App info" 2018-12-14 02:10:56 +00:00
tmfang
046c10ac30 Filter status is not retained in App info
Selected filter is not retained after device orientation changed.

In old design, we only update selected index one time when the
enabled filter(filterType) equals the previous selected filter.
After that, the selected index won't be changed again.

But we sort the filter options every time(Collections.sort) when
we add a new filter. Therefore, it makes all indexes of filters
option could be changed.

For example,
Old filter options => All apps, Personal, Work
Selected index = 1

Add "Intsalled app" option => All apps, Installed app, Personal, Work
Selected filter option becomes "Installed app" but not Personal.

Since we saved previous selected filter option before device
orientation changes, we can check again whether or not the selected
index is previous filter type when we enable any new filter.

Test: manual test, robotest
Fixes: 120798975

Change-Id: I35de186a6a1fae3bd863bd31a6ce3f76861dc896
2018-12-14 02:09:12 +00:00
Kevin Chyn
950f638320 Plumb remove functionality through
Bug: 120981508

Test: manual
Change-Id: I4c9570ee1ed397b48d4948b79bb6f72188735e97
2018-12-13 17:35:36 -08:00
Inseob Kim
9f2728d12b [automerger skipped] Revert "Revert "Schematize vold system properties"" am: 97b0fe0ac6
am: 744a9d1316  -s ours

Change-Id: I3f999817ad57a8ac72a95514794116e004f9263d
2018-12-13 17:13:59 -08:00
Inseob Kim
744a9d1316 Revert "Revert "Schematize vold system properties""
am: 97b0fe0ac6

Change-Id: I8b6e78df6e31500df448addb82bed9d2c11c8fec
2018-12-13 16:14:41 -08:00
Inseob Kim
97b0fe0ac6 Revert "Revert "Schematize vold system properties""
This reverts commit 49e81e0eea.

Reason for revert: Fixed breakage

Change-Id: I414b753a218d9baf3d24530ff14df7644eb148e0
Merged-In: I5f75b15ab792329cdb9bf2dd2e4b42bccb6eb0f3
(cherry picked from commit 8346eb5ccc)
2018-12-13 15:36:39 -08:00
Philip P. Moltmann
41061cb63e Use new UsbManager#getPorts API
Test: - Looked as USB state in Settings
      - RunSettingsRoboTests
Bug: 115301401
Change-Id: I07ac20ac6a3f33d99e9edb6718318ede22681be1
2018-12-13 15:27:25 -08:00
TreeHugger Robot
8c1cfbdf91 Merge "Remove SettingsRobolectricTestRunner" 2018-12-13 23:08:43 +00:00
Xin Li
8920ec68f9 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am: 889a8a3757 -s ours am: a817ea5e80 -s ours
am: e92deab316  -s ours

Change-Id: I596c427de3b27a6b3f323117fbc037a0c000f417
2018-12-13 14:24:53 -08:00
Xin Li
3cc0395e28 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: 419086d8b3 -s ours am: 7768155274 -s ours
am: e21ca76caf  -s ours

Change-Id: I4436b32c366bb62b2a2099d6f817e02cfa8c5927
2018-12-13 13:58:56 -08:00
Matthew Fritze
735d6ef195 Move Panel to public API
Change the SettingsPanelActivity to reference the
public API.

Bug: 117804442
Test: robolectric, manual app
Change-Id: I4b128ae9d97c1000fdaa0c3fb5b94f8dc096055f
2018-12-13 13:58:07 -08:00
Xin Li
e92deab316 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" am: 889a8a3757 -s ours
am: a817ea5e80  -s ours

Change-Id: Ie235529d9065bdc9f258f91ba8206cda6d96379e
2018-12-13 13:13:47 -08:00
Xin Li
a817ea5e80 [automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
am: 889a8a3757  -s ours

Change-Id: Ide998fc70c7beb72b1bcf878783a5429268d1aeb
2018-12-13 13:09:45 -08:00
Xin Li
e21ca76caf [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master am: 419086d8b3 -s ours
am: 7768155274  -s ours

Change-Id: I91475b01f6a1fa9f64f384ee6351e237c3e79c85
2018-12-13 12:19:49 -08:00
Jack Yu
50972ed89e Moved data settings to phone
Since there are multiple DcTrackers, but we only have
one set of data settings. So we need to move them from
DcTracker to Phone.

Test: Telephony sanity tests + unit tests
Bug: 73659459
Change-Id: If11a6eff057a18b4aa97addbb348537bd3194e1a
2018-12-13 11:51:20 -08:00
Vishwath Mohan
b6dad935ec Add settings to control Extended Access mode.
This CL adds settings (and two toggle controls) that help configure
how trust (from Trust Agents) should be interpreted by the platform,
allowing them to function in a purely extend unlock mode (where they
can extend how long an already unlocked device stays unlocked, but
cannot unlock a locked device).

These are temporary settings to help with dogfooding the new behavior,
and will eventually be removed. b/120871688 below is the tracking bug
to remove them.

Bug: 111435975
Bug: 120871688
Test: Tested with SmartLock modalities to confirm behavior in both
legacy and extend unlock modes is WAI.
Change-Id: If25098520ba98e82c98cc51fb226d8f2ce1aba80
2018-12-13 19:44:33 +00:00
Xin Li
7768155274 [automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
am: 419086d8b3  -s ours

Change-Id: I620bd09f7331acdb7a6a8377cb02d4ccea4293f8
2018-12-13 11:24:06 -08:00
Fan Zhang
abbc619601 Remove SettingsRobolectricTestRunner
Test: rerun robotests
Change-Id: I7054d8d5cfc4756beb8d3032bc92361534229494
2018-12-13 11:20:40 -08:00
Anton Hansson
16322a0271 Make the Settings permission a required module
This will include the Settings permission file whenever
the Settings app is installed.

Bug: 110072687
Test: make
Change-Id: Ia2548355282498bceeffddb564de32a6cb857c66
2018-12-13 11:01:16 +00:00
TreeHugger Robot
887fa5c646 Merge "Use binary resource support in robolectric" 2018-12-13 07:44:19 +00:00
TreeHugger Robot
a56b5926a9 Merge "Fix ANR in SliceRelayReceiver" 2018-12-13 06:20:19 +00:00
Treehugger Robot
889a8a3757 Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master" 2018-12-13 05:45:20 +00:00
Fan Zhang
e824c7e005 Merge changes I6e73bcf9,I257ba108
* changes:
  Add a timeout waiting for contextual card loader.
  Set setting back to default when turning off dev option
2018-12-13 04:03:28 +00:00
TreeHugger Robot
5f10245da9 Merge "Add vertical and horizontal dividers for large cards of homepage" 2018-12-13 03:55:34 +00:00
James Lemieux
f1dade40d2 Use binary resource support in robolectric
The resources available to tests are now exactly the merged resources
located in the APK under test.

Bug: 74359828
Test: make -j56 RunSettingsRoboTests
Change-Id: I050db81a92decefea23314b5ec7a62f77ff4bb2b
2018-12-12 19:53:49 -08:00
Jason Chiu
c0c5511862 Add vertical and horizontal dividers for large cards of homepage
- Add a new field in ContextualCard to store whether this card is a large one
- Set dividers for large cards in renderer

Fixes: 119528161
Fixes: 119641839
Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.homepage
Change-Id: I5cb95214789f44ccfd8d9ce2177ca2b84835b7a4
2018-12-13 03:40:05 +00:00
Colin Cross
1f5fab1480 Merge "Revert "Change LayoutPreference resource path in robo test"" 2018-12-13 03:16:05 +00:00
Colin Cross
75ac728e0e Revert "Change LayoutPreference resource path in robo test"
This reverts commit ff8fca7d9e.

Reason for revert: broke build when combined with ag/5781147
Bug: 120706174

Change-Id: Id543bc3cb0b4979144e92c400e57988009f4c407
2018-12-13 03:15:08 +00:00
Raff Tsai
86a2afe798 Fix ANR in SliceRelayReceiver
The same broadcast are handled in SliceRelayReceiver and WifiScanWorker.
We will only use WifiScanWorker to handle wifi broadcast.

Change-Id: I32c2fcc699ae240f12bd1049ba33e1792ae123b0
Fixes: 120284615
Test: manual
2018-12-13 10:34:45 +08:00
TreeHugger Robot
906d731b11 Merge "Change LayoutPreference resource path in robo test" 2018-12-13 02:11:59 +00:00
TreeHugger Robot
91cc417bb0 Merge "Do not return null in getSlice()" 2018-12-13 02:11:52 +00:00
Pasty Chang
57baac2df5 Merge "Change to use setupcompat and setupdesign for suw pages" 2018-12-13 01:48:58 +00:00
Ben Lin
5fe372a039 Exclue Scanning Settings for searchable in ARC.
Scanning settings is actually done outside of Android, in the host OS.

Bug: 120222705
Test: RunSettingsRoboTests RunArcSettingsRoboTests
Change-Id: I92435541a671c43d3584f1f223b8b744e6182aa9
2018-12-12 16:55:08 -08:00
Johnson Lu
d6a40032c1 Merge "Implement receiver flow of WiFi sharing feature" 2018-12-13 00:54:46 +00:00