OSDN Git Service

android-x86/packages-apps-Settings.git
5 years agoMerge "Add Icon at the start of the first row for all contextualcards"
Jason Chiu [Thu, 20 Dec 2018 03:56:47 +0000 (03:56 +0000)]
Merge "Add Icon at the start of the first row for all contextualcards"

5 years agoMerge "Replace ArgumentCaptor with getReceiversForIntent()"
TreeHugger Robot [Thu, 20 Dec 2018 03:46:46 +0000 (03:46 +0000)]
Merge "Replace ArgumentCaptor with getReceiversForIntent()"

5 years agoMerge "Fix talkback speaks "double tap to activate" on preference"
TreeHugger Robot [Thu, 20 Dec 2018 03:39:22 +0000 (03:39 +0000)]
Merge "Fix talkback speaks "double tap to activate" on preference"

5 years agoAdd Icon at the start of the first row for all contextualcards
Jason Chiu [Wed, 19 Dec 2018 06:15:25 +0000 (14:15 +0800)]
Add Icon at the start of the first row for all contextualcards

- set Icon as a title item rather than an end item in slice builders
- call showTitleItems in renderer

Test: robotest
Bug: 119639527
Change-Id: I043173968ceb3d34e38c2e43ad824b923e647d47

5 years agoReplace ArgumentCaptor with getReceiversForIntent()
timhypeng [Wed, 19 Dec 2018 04:53:12 +0000 (12:53 +0800)]
Replace ArgumentCaptor with getReceiversForIntent()

Bug: 117989208
Test: make -j RunSettingsRoboTests
Change-Id: I0a790a6af4075fbb2228aa77c3a4e237d89e3b98

5 years agoMerge "Add translatable="false" for config string array"
Lei Yu [Thu, 20 Dec 2018 01:11:30 +0000 (01:11 +0000)]
Merge "Add translatable="false" for config string array"

5 years agoFix talkback speaks "double tap to activate" on preference
Raff Tsai [Wed, 19 Dec 2018 09:13:32 +0000 (17:13 +0800)]
Fix talkback speaks "double tap to activate" on preference

Talkback will speak "double tap to activate" on clickable view.
But the SliderPreference is not clickable. Because it is default
clickable for Preference. We should set android:selectable in every
SliderPreference.

Change-Id: I7bf09c2a7e2d8688352e35c1882674b6e73e5db7
Fixes: 121111172
Test: Manual

5 years agoAdd translatable="false" for config string array
jackqdyulei [Wed, 19 Dec 2018 22:42:14 +0000 (14:42 -0800)]
Add translatable="false" for config string array

Change-Id: Ic6a5423afe8fdb5b877140c5aaf16f65026135a3
Fixes: 115712164
Test: Manual

5 years agoMerge "Revert "Revert "Fix test case fail"""
Aurimas Liutikas [Wed, 19 Dec 2018 22:41:46 +0000 (22:41 +0000)]
Merge "Revert "Revert "Fix test case fail"""

5 years agoMerge "Fix test"
TreeHugger Robot [Wed, 19 Dec 2018 22:24:22 +0000 (22:24 +0000)]
Merge "Fix test"

5 years agoMerge "Move Panel to public API"
Matthew Fritze [Wed, 19 Dec 2018 19:21:46 +0000 (19:21 +0000)]
Merge "Move Panel to public API"

5 years agoMerge "Use new UsbManager#getPorts API"
Philip P. Moltmann [Wed, 19 Dec 2018 19:10:06 +0000 (19:10 +0000)]
Merge "Use new UsbManager#getPorts API"

5 years agoRevert "Revert "Fix test case fail""
Fan Zhang [Wed, 19 Dec 2018 18:57:12 +0000 (18:57 +0000)]
Revert "Revert "Fix test case fail""

This reverts commit 75261d01dfe443238a118ba92853ec0d0519710b.

Reason for revert: roll forward

Change-Id: I0b66ba4ea918baf54ae084f6281c172a07b160b2

5 years agoMerge "Revert "Fix test case fail""
Fan Zhang [Wed, 19 Dec 2018 18:28:55 +0000 (18:28 +0000)]
Merge "Revert "Fix test case fail""

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 agoMerge "Hide wifi card sometimes."
TreeHugger Robot [Wed, 19 Dec 2018 17:42:58 +0000 (17:42 +0000)]
Merge "Hide wifi card sometimes."

5 years agoMerge "Fix test case fail"
TreeHugger Robot [Wed, 19 Dec 2018 17:31:12 +0000 (17:31 +0000)]
Merge "Fix test case fail"

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 "Add accessibility for Face"
Kevin Chyn [Wed, 19 Dec 2018 07:55:04 +0000 (07:55 +0000)]
Merge "Add accessibility for Face"

5 years agoAdd accessibility for Face
Kevin Chyn [Mon, 17 Dec 2018 20:26:30 +0000 (12:26 -0800)]
Add accessibility for Face

Bug: 111548033

Test: manual
Change-Id: I6638d471f5c6de76934b90d131a221813a38d2b3

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 agoFix test
Fan Zhang [Tue, 18 Dec 2018 22:51:40 +0000 (14:51 -0800)]
Fix test

Change-Id: I47d2533295e4cbf8f11654d4d3ee2740f971ad67
Fixes: 119829673
Test: robotests

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 agoHide wifi card sometimes.
Fan Zhang [Mon, 17 Dec 2018 21:22:42 +0000 (13:22 -0800)]
Hide wifi card sometimes.

When there is a connected wifi, we now hide the wifi slice card.

However, if we initially shows this card but later wifi is connected
while the card is visible, we keep showing this card to avoid janky
animation. The card will be gone if user nagivates to a different UI and
comes back.

- Create a new slice ContextualWifiSlice for homepage use case, all
  special logic for homepage are added here.
- Change reference for WIFI_SLICE to CONTEXTUAL_WIFI_SLICE where make
  sense.

Change-Id: Ibd87f88058f357aabef0f7d68a5bf48350d75b06
Fixes: 121040746
Test: robotests

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