OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Add feature flag for settings slice injection"
TreeHugger Robot [Tue, 18 Dec 2018 03:19:28 +0000 (03:19 +0000)]
Merge "Add feature flag for settings slice injection"

5 years agoMerge "Add more owners in Settings"
TreeHugger Robot [Tue, 18 Dec 2018 02:53:59 +0000 (02:53 +0000)]
Merge "Add more owners in Settings"

5 years agoMerge "Support Wi-Fi DPP metrics categories in Wi-Fi DPP activities & fragments."
Arc Wang [Tue, 18 Dec 2018 02:30:36 +0000 (02:30 +0000)]
Merge "Support Wi-Fi DPP metrics categories in Wi-Fi DPP activities & fragments."

5 years agoMerge "Remove battery saver condition."
TreeHugger Robot [Tue, 18 Dec 2018 01:49:31 +0000 (01:49 +0000)]
Merge "Remove battery saver condition."

5 years agoMerge "Adjust camera preview area to square"
Johnson Lu [Tue, 18 Dec 2018 01:13:14 +0000 (01:13 +0000)]
Merge "Adjust camera preview area to square"

5 years agoMerge "Add Battery Saver Schedule screen logic"
TreeHugger Robot [Tue, 18 Dec 2018 00:41:43 +0000 (00:41 +0000)]
Merge "Add Battery Saver Schedule screen logic"

5 years agoAdd more owners in Settings
Fan Zhang [Mon, 17 Dec 2018 23:18:03 +0000 (15:18 -0800)]
Add more owners in Settings

Change-Id: I5a48cb2955cca002d1194cfdbbcb00b2fb7530b2
Fixes: 120916672
Test: rebuild

5 years agoMerge "Add subscriptions list to the multi-network header"
TreeHugger Robot [Mon, 17 Dec 2018 23:03:42 +0000 (23:03 +0000)]
Merge "Add subscriptions list to the multi-network header"

5 years agoAdd Battery Saver Schedule screen logic
Salvador Martinez [Fri, 7 Dec 2018 21:12:28 +0000 (13:12 -0800)]
Add Battery Saver Schedule screen logic

This CL creates the controllers for the screen and makes it so that
the appropriate APIs are called when the user makes selections.

Test: battery saver comes on when state changed via adb, robotests
Bug: 111450127
Change-Id: I1dbcadd4b91276b700947df5a9444aabfec63aa3

5 years agoAdd feature flag for settings slice injection
jackqdyulei [Mon, 17 Dec 2018 21:26:18 +0000 (13:26 -0800)]
Add feature flag for settings slice injection

Bug: 120803703
Test: Manual
Change-Id: If5ff1fc867d010953a5aa48b2ba61a4c467b6579

5 years agoMerge "Implement receiver flow of WiFi sharing feature II"
TreeHugger Robot [Mon, 17 Dec 2018 21:38:04 +0000 (21:38 +0000)]
Merge "Implement receiver flow of WiFi sharing feature II"

5 years agoAdd subscriptions list to the multi-network header
Antony Sargent [Wed, 12 Dec 2018 17:09:45 +0000 (09:09 -0800)]
Add subscriptions list to the multi-network header

The new UX for showing multiple active mobile plan subscriptions (SIMs,
eSIMs, etc.)  needs a header at the top of the Network & internet page
that shows wifi status and a list of active mobile subscriptions in the
form of one Preference per subscription.

This CL adds display of the mobile subscriptions to this header. It does
not yet show the correct summary text or do anything when you tap on
them - that will be coming in subsequent CLs. Also, since adding a
variable number of items to the top of the page messes up our current
strategy of having a fixed number of hidden items at the bottom based on
overall item count, this CL just makes all items visible. Subsequent CLs
can restore this behavior with dynamic adjustment.

Bug: 116349402
Test: make RunSettingsRoboTests
Change-Id: Ibfadf8cb61f6f5aff6ce38b7974267b1e4ddc719

5 years agoMerge "Link to the appropriate config activity for dnd rules"
Julia Reynolds [Mon, 17 Dec 2018 21:08:55 +0000 (21:08 +0000)]
Merge "Link to the appropriate config activity for dnd rules"

5 years agoRemove battery saver condition.
Fan Zhang [Mon, 17 Dec 2018 20:31:50 +0000 (12:31 -0800)]
Remove battery saver condition.

Battery saver is also implemented as a contextual card. no need to use
condition any more.

Change-Id: I2607c610593c6e250569fbd3b4f1a5516f6ea62f
Fixes: 121115306
Test: robotests

5 years agoMerge "Migrate packages/apps/Settings to androidx.test"
TreeHugger Robot [Mon, 17 Dec 2018 19:42:24 +0000 (19:42 +0000)]
Merge "Migrate packages/apps/Settings to androidx.test"

5 years agoMerge "Add boolean flags to show/hide top-most settings."
TreeHugger Robot [Mon, 17 Dec 2018 19:38:53 +0000 (19:38 +0000)]
Merge "Add boolean flags to show/hide top-most settings."

5 years agoMerge "Get enrollment animation from overlay"
TreeHugger Robot [Mon, 17 Dec 2018 18:15:01 +0000 (18:15 +0000)]
Merge "Get enrollment animation from overlay"

5 years agoMerge "Fix build failed of Settings test cases while importing AndroidX"
Fan Zhang [Mon, 17 Dec 2018 18:14:01 +0000 (18:14 +0000)]
Merge "Fix build failed of Settings test cases while importing AndroidX"

5 years agoMerge "Micro cleanup and refactoring"
TreeHugger Robot [Mon, 17 Dec 2018 18:04:12 +0000 (18:04 +0000)]
Merge "Micro cleanup and refactoring"

5 years agoMerge "Make the Settings permission a required module"
Anton Hansson [Mon, 17 Dec 2018 17:31:56 +0000 (17:31 +0000)]
Merge "Make the Settings permission a required module"

5 years agoMigrate packages/apps/Settings to androidx.test
Brett Chabot [Fri, 14 Dec 2018 03:06:32 +0000 (19:06 -0800)]
Migrate packages/apps/Settings to androidx.test

See go/jetpack-test-android-migration

Test: make checkbuild
Change-Id: If67b124188fd4e303154eb11263d03abfb3718c6

5 years agoMicro cleanup and refactoring
Jason Chiu [Fri, 14 Dec 2018 10:43:47 +0000 (18:43 +0800)]
Micro cleanup and refactoring

- organize import
- remove unused code in ContextualCardLoaderTest
- refactor CardDatabaseHelper

Test: robotest
Change-Id: I1a5a49bee1c4edb34f1c59f3dbe37cb22f01b0d4

5 years agoFix build failed of Settings test cases while importing AndroidX
Jason Chiu [Mon, 17 Dec 2018 07:56:56 +0000 (15:56 +0800)]
Fix build failed of Settings test cases while importing AndroidX

- API change in AndroidX Preference causes a build breakage
- Apply explicit casting for the new API interface

Test: robotest
Fixes: 121109361
Change-Id: If3e7be9e53c7860252523700d6721ae4956db68a

5 years ago[automerger skipped] Merge "Refine APN fetching logic" am: 765621670b am: 74069bc022
Josh Hou [Mon, 17 Dec 2018 08:41:11 +0000 (00:41 -0800)]
[automerger skipped] Merge "Refine APN fetching logic" am: 765621670b am: 74069bc022
am: ff5d0b0ac6  -s ours

Change-Id: Icc54600a67b20914df9d1112256f2f356ee289b1

5 years agoMerge "Refine APN fetching logic" am: 765621670b
Josh Hou [Mon, 17 Dec 2018 08:25:12 +0000 (00:25 -0800)]
Merge "Refine APN fetching logic" am: 765621670b
am: 74069bc022

Change-Id: I372d73a75a7dd2077e39dfc29c66b29b1a3ace65

5 years agoMerge "Refine APN fetching logic"
Josh Hou [Mon, 17 Dec 2018 08:16:01 +0000 (00:16 -0800)]
Merge "Refine APN fetching logic"
am: 765621670b

Change-Id: Ib0a1dd0b3f944d5a98b71555a48aadacfb228543

5 years agoMerge "Refine APN fetching logic"
Treehugger Robot [Mon, 17 Dec 2018 08:03:04 +0000 (08:03 +0000)]
Merge "Refine APN fetching logic"

5 years agoRefine APN fetching logic
Josh Hou [Fri, 23 Nov 2018 01:57:20 +0000 (09:57 +0800)]
Refine APN fetching logic

APN fetching logic has been encapsulated in URL_SIM_APN_LIST API in
TelephonyProvider

Bug: 115709816
Test: Live network test
Change-Id: I735bc50e912dfbec0903fbcafdc4d6eaa6ccfc7b
Merged-In: I735bc50e912dfbec0903fbcafdc4d6eaa6ccfc7b

5 years agoAdd the contentDescription on avatar icon
Sunny Shao [Fri, 14 Dec 2018 03:17:07 +0000 (11:17 +0800)]
Add the contentDescription on avatar icon

Add the talkback saying wordings on avatar icon of the search bar.

Change-Id: I7e41d8bf842c0efae5440520586e88dd746802e7
Fixes: 120097338
Test: manual

5 years agoMerge "Moved data settings to phone"
TreeHugger Robot [Sun, 16 Dec 2018 04:58:37 +0000 (04:58 +0000)]
Merge "Moved data settings to phone"

5 years agoAdjust camera preview area to square
Johnson Lu [Sat, 15 Dec 2018 03:50:46 +0000 (11:50 +0800)]
Adjust camera preview area to square

1.Choose the smaller size of both dimensions as its size.
2.Set transform matrix to crop and center the preview picture.

Bug: 118797380
Test: make RunSettingsRoboTests
Change-Id: Ic65fb1fe0c5082995d6903f50dda48eec16c3fb1

5 years agoMerge "Make location history package not disableable."
TreeHugger Robot [Sat, 15 Dec 2018 05:10:30 +0000 (05:10 +0000)]
Merge "Make location history package not disableable."

5 years agoMerge "Set listDivider color for Panels"
TreeHugger Robot [Sat, 15 Dec 2018 02:56:12 +0000 (02:56 +0000)]
Merge "Set listDivider color for Panels"

5 years agoGet enrollment animation from overlay
Kevin Chyn [Mon, 19 Nov 2018 20:22:25 +0000 (12:22 -0800)]
Get enrollment animation from overlay

Bug: 111548033

Test: Able to get animation from overlay
Test: atest RunSettingsRoboTests

Change-Id: Ib02f484474b306ba8d61f9be541acb12dd1ecd90

5 years agoAdd boolean flags to show/hide top-most settings.
Ben Lin [Sat, 15 Dec 2018 00:00:21 +0000 (16:00 -0800)]
Add boolean flags to show/hide top-most settings.

Bug: None
Test: RunSettingsRoboTests
Change-Id: Ib576f5979feda0fa7f573915acffc5065d40095c

5 years agoMerge "Tweak padding for conditional card layout."
Fan Zhang [Fri, 14 Dec 2018 22:51:43 +0000 (22:51 +0000)]
Merge "Tweak padding for conditional card layout."

5 years agoMerge "Fix app link open mode UI"
TreeHugger Robot [Fri, 14 Dec 2018 22:42:27 +0000 (22:42 +0000)]
Merge "Fix app link open mode UI"

5 years agoTweak padding for conditional card layout.
Fan Zhang [Fri, 14 Dec 2018 22:03:08 +0000 (14:03 -0800)]
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

5 years agoLink to the appropriate config activity for dnd rules
Julia Reynolds [Fri, 14 Dec 2018 14:27:53 +0000 (09:27 -0500)]
Link to the appropriate config activity for dnd rules

Test: atest, manual
Bug: 111474881
Change-Id: I0c1d7b14abe3cf65762167f3c412fa8f2be1d842

5 years agoMerge "Implement getConfig() method to get WifiConfiguration"
Cosmo Hsieh [Fri, 14 Dec 2018 16:41:04 +0000 (16:41 +0000)]
Merge "Implement getConfig() method to get WifiConfiguration"

5 years agoSet listDivider color for Panels
Matthew Fritze [Fri, 14 Dec 2018 00:56:21 +0000 (16:56 -0800)]
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

5 years agoMerge "Icon size needs to same in AppRestrictionsFragment"
TreeHugger Robot [Fri, 14 Dec 2018 10:29:10 +0000 (10:29 +0000)]
Merge "Icon size needs to same in AppRestrictionsFragment"

5 years agoImplement getConfig() method to get WifiConfiguration
cosmohsieh [Wed, 12 Dec 2018 02:14:54 +0000 (10:14 +0800)]
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

5 years agoSupport Wi-Fi DPP metrics categories in Wi-Fi DPP activities & fragments.
Arc Wang [Fri, 14 Dec 2018 08:12:18 +0000 (16:12 +0800)]
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

5 years agoIcon size needs to same in AppRestrictionsFragment
tmfang [Thu, 13 Dec 2018 10:25:32 +0000 (18:25 +0800)]
Icon size needs to same in AppRestrictionsFragment

- All app icon should be 32dp

Test: visual
Change-Id: I56132c04aa968e27d7152c39a5715ae262627844
Fixes: 119065428

5 years agoImplement the Copyable interface to PhoneNumberPreferenceController
Stanley Wang [Wed, 12 Dec 2018 07:24:21 +0000 (15:24 +0800)]
Implement the Copyable interface to PhoneNumberPreferenceController

Change-Id: I70085cffe13047ac808d1bf08a467f693b1d8737
Fixes: 118398321
Test: manual and robotests

5 years agoImplement receiver flow of WiFi sharing feature II
Arc Wang [Thu, 13 Dec 2018 09:02:19 +0000 (17:02 +0800)]
Implement receiver flow of WiFi sharing feature II

Bug: 120630683
Test: atest RunSettingsRoboTests
Change-Id: Iabe56205ff9274382adbe5bba59a60d833a57214

5 years agoMerge "Remove bug id for WiFi MAC randomization since feature is ready."
Cosmo Hsieh [Fri, 14 Dec 2018 05:15:48 +0000 (05:15 +0000)]
Merge "Remove bug id for WiFi MAC randomization since feature is ready."

5 years agoMerge "Plumb remove functionality through"
Kevin Chyn [Fri, 14 Dec 2018 05:05:27 +0000 (05:05 +0000)]
Merge "Plumb remove functionality through"

5 years agoMerge "Exclue Scanning Settings for searchable in ARC."
TreeHugger Robot [Fri, 14 Dec 2018 03:46:35 +0000 (03:46 +0000)]
Merge "Exclue Scanning Settings for searchable in ARC."

5 years agoMerge "Add settings to control Extended Access mode."
Vishwath Mohan [Fri, 14 Dec 2018 03:38:20 +0000 (03:38 +0000)]
Merge "Add settings to control Extended Access mode."

5 years agoMerge "Filter status is not retained in App info"
TreeHugger Robot [Fri, 14 Dec 2018 02:10:56 +0000 (02:10 +0000)]
Merge "Filter status is not retained in App info"

5 years agoFilter status is not retained in App info
tmfang [Wed, 12 Dec 2018 11:05:38 +0000 (19:05 +0800)]
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

5 years agoPlumb remove functionality through
Kevin Chyn [Thu, 13 Dec 2018 21:46:22 +0000 (13:46 -0800)]
Plumb remove functionality through

Bug: 120981508

Test: manual
Change-Id: I4c9570ee1ed397b48d4948b79bb6f72188735e97

5 years ago[automerger skipped] Revert "Revert "Schematize vold system properties"" am: 97b0fe0ac6
Inseob Kim [Fri, 14 Dec 2018 01:13:59 +0000 (17:13 -0800)]
[automerger skipped] Revert "Revert "Schematize vold system properties"" am: 97b0fe0ac6
am: 744a9d1316  -s ours

Change-Id: I3f999817ad57a8ac72a95514794116e004f9263d

5 years agoRevert "Revert "Schematize vold system properties""
Inseob Kim [Fri, 14 Dec 2018 00:14:41 +0000 (16:14 -0800)]
Revert "Revert "Schematize vold system properties""
am: 97b0fe0ac6

Change-Id: I8b6e78df6e31500df448addb82bed9d2c11c8fec

5 years agoRevert "Revert "Schematize vold system properties""
Inseob Kim [Mon, 10 Dec 2018 07:05:20 +0000 (07:05 +0000)]
Revert "Revert "Schematize vold system properties""

This reverts commit 49e81e0eeac13b1edcd4c8f51c48dafae6336d11.

Reason for revert: Fixed breakage

Change-Id: I414b753a218d9baf3d24530ff14df7644eb148e0
Merged-In: I5f75b15ab792329cdb9bf2dd2e4b42bccb6eb0f3
(cherry picked from commit 8346eb5ccc29f3ffe41132a06a4e7e17fb58ca19)

5 years agoMerge "Remove SettingsRobolectricTestRunner"
TreeHugger Robot [Thu, 13 Dec 2018 23:08:43 +0000 (23:08 +0000)]
Merge "Remove SettingsRobolectricTestRunner"

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205...
Xin Li [Thu, 13 Dec 2018 22:24:53 +0000 (14:24 -0800)]
[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

5 years ago[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001)...
Xin Li [Thu, 13 Dec 2018 21:58:56 +0000 (13:58 -0800)]
[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

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205...
Xin Li [Thu, 13 Dec 2018 21:13:47 +0000 (13:13 -0800)]
[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

5 years ago[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205...
Xin Li [Thu, 13 Dec 2018 21:09:45 +0000 (13:09 -0800)]
[automerger skipped] Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
am: 889a8a3757  -s ours

Change-Id: Ide998fc70c7beb72b1bcf878783a5429268d1aeb

5 years ago[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001)...
Xin Li [Thu, 13 Dec 2018 20:19:49 +0000 (12:19 -0800)]
[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

5 years agoMoved data settings to phone
Jack Yu [Thu, 13 Dec 2018 19:51:20 +0000 (11:51 -0800)]
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

5 years agoAdd settings to control Extended Access mode.
Vishwath Mohan [Tue, 11 Dec 2018 19:59:01 +0000 (11:59 -0800)]
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

5 years ago[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001)...
Xin Li [Thu, 13 Dec 2018 19:24:06 +0000 (11:24 -0800)]
[automerger skipped] DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master
am: 419086d8b3  -s ours

Change-Id: I620bd09f7331acdb7a6a8377cb02d4ccea4293f8

5 years agoRemove SettingsRobolectricTestRunner
Fan Zhang [Thu, 13 Dec 2018 19:20:40 +0000 (11:20 -0800)]
Remove SettingsRobolectricTestRunner

Test: rerun robotests
Change-Id: I7054d8d5cfc4756beb8d3032bc92361534229494

5 years agoMake the Settings permission a required module
Anton Hansson [Mon, 10 Dec 2018 17:03:29 +0000 (17:03 +0000)]
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

5 years agoMerge "Use binary resource support in robolectric"
TreeHugger Robot [Thu, 13 Dec 2018 07:44:19 +0000 (07:44 +0000)]
Merge "Use binary resource support in robolectric"

5 years agoMerge "Fix ANR in SliceRelayReceiver"
TreeHugger Robot [Thu, 13 Dec 2018 06:20:19 +0000 (06:20 +0000)]
Merge "Fix ANR in SliceRelayReceiver"

5 years agoMerge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"
Treehugger Robot [Thu, 13 Dec 2018 05:45:20 +0000 (05:45 +0000)]
Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into master"

5 years agoMerge changes I6e73bcf9,I257ba108
Fan Zhang [Thu, 13 Dec 2018 04:03:28 +0000 (04:03 +0000)]
Merge changes I6e73bcf9,I257ba108

* changes:
  Add a timeout waiting for contextual card loader.
  Set setting back to default when turning off dev option

5 years agoMerge "Add vertical and horizontal dividers for large cards of homepage"
TreeHugger Robot [Thu, 13 Dec 2018 03:55:34 +0000 (03:55 +0000)]
Merge "Add vertical and horizontal dividers for large cards of homepage"

5 years agoUse binary resource support in robolectric
James Lemieux [Fri, 7 Dec 2018 20:56:49 +0000 (12:56 -0800)]
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

5 years agoAdd vertical and horizontal dividers for large cards of homepage
Jason Chiu [Wed, 12 Dec 2018 04:08:26 +0000 (12:08 +0800)]
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

5 years agoMerge "Revert "Change LayoutPreference resource path in robo test""
Colin Cross [Thu, 13 Dec 2018 03:16:05 +0000 (03:16 +0000)]
Merge "Revert "Change LayoutPreference resource path in robo test""

5 years agoRevert "Change LayoutPreference resource path in robo test"
Colin Cross [Thu, 13 Dec 2018 03:15:08 +0000 (03:15 +0000)]
Revert "Change LayoutPreference resource path in robo test"

This reverts commit ff8fca7d9eac8edea506d5b7c69f101b329176a3.

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

Change-Id: Id543bc3cb0b4979144e92c400e57988009f4c407

5 years agoFix ANR in SliceRelayReceiver
Raff Tsai [Tue, 11 Dec 2018 09:51:41 +0000 (17:51 +0800)]
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

5 years agoMerge "Change LayoutPreference resource path in robo test"
TreeHugger Robot [Thu, 13 Dec 2018 02:11:59 +0000 (02:11 +0000)]
Merge "Change LayoutPreference resource path in robo test"

5 years agoMerge "Do not return null in getSlice()"
TreeHugger Robot [Thu, 13 Dec 2018 02:11:52 +0000 (02:11 +0000)]
Merge "Do not return null in getSlice()"

5 years agoMerge "Change to use setupcompat and setupdesign for suw pages"
Pasty Chang [Thu, 13 Dec 2018 01:48:58 +0000 (01:48 +0000)]
Merge "Change to use setupcompat and setupdesign for suw pages"

5 years agoExclue Scanning Settings for searchable in ARC.
Ben Lin [Thu, 13 Dec 2018 00:55:08 +0000 (16:55 -0800)]
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

5 years agoMerge "Implement receiver flow of WiFi sharing feature"
Johnson Lu [Thu, 13 Dec 2018 00:54:46 +0000 (00:54 +0000)]
Merge "Implement receiver flow of WiFi sharing feature"

5 years agoAdd a timeout waiting for contextual card loader.
Fan Zhang [Wed, 12 Dec 2018 23:07:59 +0000 (15:07 -0800)]
Add a timeout waiting for contextual card loader.

- Intially setting it to 1 second.
- Also changed card appear animation from drop in to fade in. It looks
  less janky if we don't animate any size change.
- And some random code cleanup

Change-Id: I6e73bcf98fd9aa1d76ae002b94ab5b068dfecf1e
Fixes: 120916829
Test: robotests

5 years agoSet setting back to default when turning off dev option
Fan Zhang [Wed, 12 Dec 2018 21:40:22 +0000 (13:40 -0800)]
Set setting back to default when turning off dev option

When turning off developer options, mobile data always on setting should
be set back to default, which is ON not OFF.

Change-Id: I257ba108976b05162fa3cea6e48f3490e9c64f80
Fixes: 119719605
Test: robotests

5 years agoMake location history package not disableable.
Wei Wang [Thu, 6 Dec 2018 02:16:05 +0000 (18:16 -0800)]
Make location history package not disableable.

Bug:119226131

Test: Unit test, also tested manually on device

Change-Id: Ib72fdd8b5195b67ef9d79a8a6dbb91acc54dbbbf

5 years agoMerge "Add temporary link to PermissionController for new default apps UI."
TreeHugger Robot [Wed, 12 Dec 2018 23:49:30 +0000 (23:49 +0000)]
Merge "Add temporary link to PermissionController for new default apps UI."

5 years agoMerge "Update settings together with framework changes"
TreeHugger Robot [Wed, 12 Dec 2018 20:07:39 +0000 (20:07 +0000)]
Merge "Update settings together with framework changes"

5 years agoAdd temporary link to PermissionController for new default apps UI.
Hai Zhang [Tue, 11 Dec 2018 01:23:34 +0000 (17:23 -0800)]
Add temporary link to PermissionController for new default apps UI.

This change adds a temporary link in the default apps settings to
allow launching the new default apps UI in PermissionController during
the process we migrate default apps to use roles.

Bug: 110557011
Test: manually tested the UI
Change-Id: I0ac340acd5a077c74b48b28c97f517adb2084a36

5 years agoMerge "Update background color of Contextual Home Page"
TreeHugger Robot [Wed, 12 Dec 2018 18:35:29 +0000 (18:35 +0000)]
Merge "Update background color of Contextual Home Page"

5 years agoDo not return null in getSlice()
Raff Tsai [Thu, 6 Dec 2018 07:53:35 +0000 (15:53 +0800)]
Do not return null in getSlice()

- It will result in a empty SliceView. Because we can use
slice.hasHint(HINT_ERROR) to check if we should show the slice,
always return a valid slice object.
- Set tintcolor -1 therefore battery icon will not have tint

Bug: 120221527
Test: manual
Change-Id: Idfc97f90c75515b079e1faed802c9b9047bfdeb4

5 years agoMerge "Implement Wi-Fi DPP UI."
TreeHugger Robot [Wed, 12 Dec 2018 10:05:45 +0000 (10:05 +0000)]
Merge "Implement Wi-Fi DPP UI."

5 years agoUpdate background color of Contextual Home Page
Yanting Yang [Wed, 12 Dec 2018 09:05:36 +0000 (17:05 +0800)]
Update background color of Contextual Home Page

Change-Id: Ifdd708c0ffaaa7bd50e945c33769cb093a40295f
Fixes: 120684259
Test: visual, robotest

5 years agoUpdate settings together with framework changes
Kevin Chyn [Fri, 7 Dec 2018 21:24:50 +0000 (13:24 -0800)]
Update settings together with framework changes

Bug: 120578823

Test: builds, behaves as expected
Change-Id: Id7fd84069c725cde3ed2c38060ab6a636066fcfa

5 years agoChange to use setupcompat and setupdesign for suw pages
Pasty Chang [Tue, 11 Dec 2018 02:22:55 +0000 (02:22 +0000)]
Change to use setupcompat and setupdesign for suw pages

1. remove the dependence of setupwizardlib.
2. add to use setupcompat and setupdesign.
3. modify new footer button in following up cl.

Bug: 120805516
Bug: 120872944
Test: RunSettingsRoboTests
Change-Id: I463dd35b799d4250b2aabce0cb0b8102cf9dd7d6

5 years agoRemove bug id for WiFi MAC randomization since feature is ready.
cosmohsieh [Mon, 10 Dec 2018 05:44:15 +0000 (13:44 +0800)]
Remove bug id for WiFi MAC randomization since feature is ready.

Bug: 117957974
Test: RunSettingsRoboTests
Change-Id: I36955d302d9c365e7985a53c6a2a89026f6ebb34

5 years agoImplement Wi-Fi DPP UI.
Arc Wang [Fri, 7 Dec 2018 08:00:18 +0000 (16:00 +0800)]
Implement Wi-Fi DPP UI.

  Add WifiDppEnrolleeActivity
  Remove bottom buttons of WifiDppQrCodeScannerFragment
  Add ActionBar in WifiDppQrCodeScannerFragment &
      WifiDppQrCodeGeneratorFragment

Bug: 118797380
Bug: 118794858
Test: atest WifiDppConfiguratorActivityTest
      atest WifiDppQrCodeScannerFragmentTest
      atest WifiDppQrCodeGeneratorFragmentTest
      atest atest RunSettingsRoboTests

Change-Id: I1d464dc9a8d54a896b8e0c9185a74bed7b193b60

5 years ago[automerger skipped] Merge "DO NOT MERGE: Merge pie-platform-release (PPRL.181205...
Xin Li [Wed, 12 Dec 2018 00:10:42 +0000 (16:10 -0800)]
[automerger skipped] Merge "DO NOT MERGE: Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master" into stage-aosp-master am: 2d744bd9e1  -s ours
am: 2c2f179630  -s ours

Change-Id: I1bba0ad51442e03281b6b668c6a16ced39cc62a8

5 years ago[automerger skipped] Merge "DO NOT MERGE: Merge pie-platform-release (PPRL.181205...
Xin Li [Tue, 11 Dec 2018 23:54:17 +0000 (15:54 -0800)]
[automerger skipped] Merge "DO NOT MERGE: Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master" into stage-aosp-master
am: 2d744bd9e1  -s ours

Change-Id: Ia5bc1d228449c6f78d54f25c392b3ea33c80ddef

5 years ago[automerger skipped] DO NOT MERGE: Merge pie-platform-release (PPRL.181205.001) into...
Xin Li [Tue, 11 Dec 2018 23:38:49 +0000 (15:38 -0800)]
[automerger skipped] DO NOT MERGE: Merge pie-platform-release (PPRL.181205.001) into stage-aosp-master am: 5134815af5  -s ours
am: dfd5b86302  -s ours

Change-Id: I620010be975c04bf76e9eee8db22069e34d8237e