OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoRevert "Fix test case fail"
Fan Zhang [Wed, 19 Dec 2018 18:26:10 +0000 (18:26 +0000)]
Revert "Fix test case fail"

This reverts commit 6d387e4a5f7abadf49b787e456ea06532a24875d.

Reason for revert: collateral damage for b/121116425

Change-Id: I3ba716e283bf466ad8603c1d8c64861febec9a8c

5 years agoFix test case fail
tmfang [Wed, 19 Dec 2018 10:12:38 +0000 (18:12 +0800)]
Fix test case fail

The implementation in PreferenceGroup is changed,
contentEquals doesn't accept null value.

We filter null key case in InstrumentedPreferenceFragment.

Test: robotest
Change-Id: I575d96361edf9bf0b20f7ad4c61d8b3813bf31d9
Fixes: 121232342

5 years agoMerge "Fix crash in BatteryUtils"
TreeHugger Robot [Wed, 19 Dec 2018 02:04:29 +0000 (02:04 +0000)]
Merge "Fix crash in BatteryUtils"

5 years agoMerge "Add sliceUri in broadcast intent"
TreeHugger Robot [Wed, 19 Dec 2018 01:47:11 +0000 (01:47 +0000)]
Merge "Add sliceUri in broadcast intent"

5 years agoMerge changes from topic "bluetooth_uri"
Lei Yu [Wed, 19 Dec 2018 01:39:43 +0000 (01:39 +0000)]
Merge changes from topic "bluetooth_uri"

* changes:
  Add feature provider for bluetooth settings
  Build infra to inject slice to PreferenceFragment

5 years agoMerge "Clean up AndroidManifest"
TreeHugger Robot [Wed, 19 Dec 2018 00:08:48 +0000 (00:08 +0000)]
Merge "Clean up AndroidManifest"

5 years agoMerge "Show Choose/ConfirmLock before showing BiometricEnrollIntroduction"
Kevin Chyn [Tue, 18 Dec 2018 23:53:43 +0000 (23:53 +0000)]
Merge "Show Choose/ConfirmLock before showing BiometricEnrollIntroduction"

5 years agoFix crash in BatteryUtils
jackqdyulei [Tue, 18 Dec 2018 23:20:22 +0000 (15:20 -0800)]
Fix crash in BatteryUtils

When enhanced estimation is enabled, it may still have malfunction
when getting data from it. This CL handles this case and fall back
to default estimation.

Change-Id: Id8d75b07316afa8a73a302b49dc7f8e8b77d4fa4
Fixes: 121213171
Test: RunSettingsRoboTests

5 years agoAdd feature provider for bluetooth settings
jackqdyulei [Tue, 18 Dec 2018 21:03:46 +0000 (13:03 -0800)]
Add feature provider for bluetooth settings

Also add method to get settings uri for specific device. Use feature
provider here because it give us more flexibility.

Bug: 120803703
Test: RunSettingsRoboTests
Change-Id: I6f4840e76279c02a75b95fdecd822a72cb0b42e5

5 years agoBuild infra to inject slice to PreferenceFragment
jackqdyulei [Mon, 10 Dec 2018 21:27:25 +0000 (13:27 -0800)]
Build infra to inject slice to PreferenceFragment

Reuse the PreferenceController and LayoutPreference however create
specific one for slice:
1. SlicePreference: container to inject slice view
2. SlicePreferenceController: handle updates for slice

Also add styles for it with default layout.

Bug: 120803703
Test: RunSettingsRoboTests

Change-Id: I6ab083ad57117e6198dcba37702a25213da78719

5 years agoMerge "Add special apps access settings page for financial app."
Hongming Jin [Tue, 18 Dec 2018 22:20:40 +0000 (22:20 +0000)]
Merge "Add special apps access settings page for financial app."

5 years agoShow Choose/ConfirmLock before showing BiometricEnrollIntroduction
Kevin Chyn [Tue, 18 Dec 2018 02:42:52 +0000 (18:42 -0800)]
Show Choose/ConfirmLock before showing BiometricEnrollIntroduction

Skip button is now shown when ChooseLock is launched by
BiometricEnroll, otherwise users are forced to use passwords
(maybe good thing?)

Bug: 111548033

Test: Pin/pattern/pass must be set/confirmed before enrollment
Test: Able to enroll FP in SUW and Settings

Change-Id: Ic4bbeb539e4bf01c1c402dec308943292b43406d

5 years agoMerge "Fix bug of not showing locked icon in WifiSettings"
Lei Yu [Tue, 18 Dec 2018 21:07:08 +0000 (21:07 +0000)]
Merge "Fix bug of not showing locked icon in WifiSettings"

5 years agoClean up AndroidManifest
Fan Zhang [Tue, 18 Dec 2018 19:32:10 +0000 (11:32 -0800)]
Clean up AndroidManifest

- Remove unused intent-filter
- Remove parent activity on DND

Fixes: 121120881
Fixes: 121122216
Test: rebuild
Change-Id: I308b6de452bbcd5f293863d460ee22a72badfa1e

5 years agoAdd special apps access settings page for financial app.
Hongming Jin [Fri, 14 Dec 2018 23:32:39 +0000 (15:32 -0800)]
Add special apps access settings page for financial app.

Test: manual test in settings app
Bug:111207447
Change-Id: Ifa3afba2fbfd2f874deeea35f5735ac3459eed17

5 years agoAdd sliceUri in broadcast intent
Raff Tsai [Mon, 17 Dec 2018 09:50:08 +0000 (17:50 +0800)]
Add sliceUri in broadcast intent

Bug: 119748954
Test: robolectric
Change-Id: I24eb8d5a274be60ba3395d05d2b306e185e7dcab

5 years agoMerge "Fix some pages crash after importing AndroidX from build 5175906"
TreeHugger Robot [Tue, 18 Dec 2018 18:19:48 +0000 (18:19 +0000)]
Merge "Fix some pages crash after importing AndroidX from build 5175906"

5 years agoFix bug of not showing locked icon in WifiSettings
jackqdyulei [Tue, 18 Dec 2018 00:58:25 +0000 (16:58 -0800)]
Fix bug of not showing locked icon in WifiSettings

This bug only exist by launching WifiSettings from quick settings. Quick
settings launch this page by intent, where we use Theme.Settings.
However we only have frictionIconColor in Theme.SubSettings, not
Theme.Settings.

This CL move related attr to correct theme, so we won't show invisible
icon anymore.

Bug: 120710149
Test: Manual
Change-Id: Iae07f6ca19eda0bfbc352f03787b5a583c4066f2

5 years agoMerge "Move suggestion from LOCK_SCREEN to DEFAULT."
TreeHugger Robot [Tue, 18 Dec 2018 17:56:18 +0000 (17:56 +0000)]
Merge "Move suggestion from LOCK_SCREEN to DEFAULT."

5 years agoMerge "Don't have cards auto-filled in the foreground when a card gets dismissed."
TreeHugger Robot [Tue, 18 Dec 2018 17:40:57 +0000 (17:40 +0000)]
Merge "Don't have cards auto-filled in the foreground when a card gets dismissed."

5 years agoFix some pages crash after importing AndroidX from build 5175906
Jason Chiu [Tue, 18 Dec 2018 10:27:50 +0000 (18:27 +0800)]
Fix some pages crash after importing AndroidX from build 5175906

- Settings crash while entering Storage, Privacy, and Accounts page,
  because PreferenceGroup changed the API use from String#equals to
  String#contentEquals which doesn't support null keys.
- add a null check before calling findPreference

Test: robotest
Change-Id: I121cd9e4249fbdafbc67be65a09d770603e01044
Fixes: 121116425

5 years agoMove Settings app to /product
Anton Hansson [Mon, 10 Dec 2018 18:14:48 +0000 (18:14 +0000)]
Move Settings app to /product

Since this app is frequently customized by OEMs, it doesn't
fit in the mainline /system image right now. Move it to
/product.

Bug: 110072687
Test: make
Change-Id: Iee5940125af3f2a8543ecb3a68d7fba737acd77d

5 years agoDon't have cards auto-filled in the foreground when a card gets dismissed.
Yi-Ling Chuang [Fri, 7 Dec 2018 12:13:56 +0000 (20:13 +0800)]
Don't have cards auto-filled in the foreground when a card gets dismissed.

Currently if users dismiss a card or navigate back to the homepage,
new suggestions will be auto filled in. We should only add new cards
upon next visit.

Also fix suggestion cards undismissable problem.

Fixes: 121175037
Bug: 120628661
Test: robotests
Change-Id: I01d74aaaa21c8408e5cecafef04a7d52c97bccc5

5 years agoMerge changes from topic "location settings"
Lifu Tang [Tue, 18 Dec 2018 08:43:31 +0000 (08:43 +0000)]
Merge changes from topic "location settings"

* changes:
  Display app stats for location permission
  Display recent location access in the widget

5 years agoMerge "Fine tune UI layout files of WifiDppQrCodeScannerFragment & WifiDppQrCodeGener...
Arc Wang [Tue, 18 Dec 2018 07:26:47 +0000 (07:26 +0000)]
Merge "Fine tune UI layout files of WifiDppQrCodeScannerFragment & WifiDppQrCodeGeneratorFragment"

5 years agoMerge "Change to use footer button of setupcompat"
Pasty Chang [Tue, 18 Dec 2018 07:01:55 +0000 (07:01 +0000)]
Merge "Change to use footer button of setupcompat"

5 years agoMerge "Add internal WifiTracker to get correct AccessPoint for WifiNetworkRequestDialog"
Cosmo Hsieh [Tue, 18 Dec 2018 06:15:35 +0000 (06:15 +0000)]
Merge "Add internal WifiTracker to get correct AccessPoint for WifiNetworkRequestDialog"

5 years agoDisplay app stats for location permission
Lifu Tang [Tue, 11 Dec 2018 21:50:34 +0000 (13:50 -0800)]
Display app stats for location permission

Bug: 120221631
Test: manually
Change-Id: I53f43079807759c50eeb62029bb0d8d1f84e1118

5 years agoDisplay recent location access in the widget
Lifu Tang [Tue, 11 Dec 2018 00:38:33 +0000 (16:38 -0800)]
Display recent location access in the widget

Bug: 120239674
Test: manually
Change-Id: Iaf899486bf27c55189eea4c0e913ff1baaf529e5

5 years agoMerge "Add wifi connection info to the multi-network header"
TreeHugger Robot [Tue, 18 Dec 2018 03:54:35 +0000 (03:54 +0000)]
Merge "Add wifi connection info to the multi-network header"

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 agoAdd internal WifiTracker to get correct AccessPoint for
cosmohsieh [Fri, 14 Dec 2018 17:20:27 +0000 (01:20 +0800)]
Add internal WifiTracker to get correct AccessPoint for
WifiNetworkRequestDialog

Use WifiTracker to get correct and constantly updated Wifi status of AccessPoint.

Bug: 117399926
Test: RunSettingsRoboTests
Change-Id: I5e4316f6acb7787dcaab150a293068852beb76e0

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 agoFine tune UI layout files of WifiDppQrCodeScannerFragment &
Arc Wang [Thu, 13 Dec 2018 03:45:08 +0000 (11:45 +0800)]
Fine tune UI layout files of WifiDppQrCodeScannerFragment &
WifiDppQrCodeGeneratorFragment

    1. Remove footer in landscape QR code scanner fragment
    2. Move header icon from activity layout file to header layout file
    3. Fine tune header layout file
    4. set icons for the 2 fragments

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

Change-Id: I7e547d7c29dd947a890e902e61b8244fec399354

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 agoMove suggestion from LOCK_SCREEN to DEFAULT.
Fan Zhang [Mon, 17 Dec 2018 23:57:33 +0000 (15:57 -0800)]
Move suggestion from LOCK_SCREEN to DEFAULT.

These 2 categories behaves the same, moving suggestions to DEFAULT
can save a PackageManager query in SettingsIntelligence.

Bug: 121158263
Test: manual
Change-Id: I24c84aa61b272120a77bda0ec27b38690f2b4d4d

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 agoAdd wifi connection info to the multi-network header
Antony Sargent [Fri, 14 Dec 2018 20:45:04 +0000 (12:45 -0800)]
Add wifi connection info to the multi-network header

The Network & internet page will have a dynamic header at the top when
users have more than one mobile subscription, showing information about
connectivity.

This CL adds a preference to this header when there is a wifi connection,
showing the same information as on the wifi-page (connection strength,
speed rating if available, etc.).

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

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 agoChange to use footer button of setupcompat
pastychang [Thu, 13 Dec 2018 15:00:17 +0000 (23:00 +0800)]
Change to use footer button of setupcompat

Bug: 120805516
Test: RunSettingsRoboTests
Change-Id: I0eba5f8fff37bbb13b54a4d41290ae9363905f96

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