OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoRemove UsbModeChooserActivity in AndroidManifest
tmfang [Tue, 31 Jul 2018 03:12:16 +0000 (11:12 +0800)]
Remove UsbModeChooserActivity in AndroidManifest

UsbModeChooserActivity was removed since b/70848054,
So, we also removed it in AndroidManifest.xml.

Change-Id: I42a3330eec46ac957beeb384ef7d0c130f2f82e3
Fixes: 111968651
Test: robo

6 years agoMerge "Clean up task affinity."
TreeHugger Robot [Sat, 28 Jul 2018 02:09:48 +0000 (02:09 +0000)]
Merge "Clean up task affinity."

6 years agoClean up task affinity.
Fan Zhang [Fri, 27 Jul 2018 23:16:43 +0000 (16:16 -0700)]
Clean up task affinity.

If activity is launched through external intent, back button should just
go back to previous screen.

Change-Id: I5b2e57d2751f5ed7c17140d3eb8d54736b78053c
Fixes: 111864355
Test: manual

6 years agoMerge "Added autofill options on Developer Options screen."
Felipe Leme [Fri, 27 Jul 2018 16:02:34 +0000 (16:02 +0000)]
Merge "Added autofill options on Developer Options screen."

6 years agoMerge "Fix Wifi off state UI"
TreeHugger Robot [Fri, 27 Jul 2018 16:00:22 +0000 (16:00 +0000)]
Merge "Fix Wifi off state UI"

6 years agoMerge "IME auto popup fail when tap on wifi access point"
TreeHugger Robot [Fri, 27 Jul 2018 05:25:14 +0000 (05:25 +0000)]
Merge "IME auto popup fail when tap on wifi access point"

6 years agoIME auto popup fail when tap on wifi access point
tmfang [Tue, 24 Jul 2018 07:09:09 +0000 (15:09 +0800)]
IME auto popup fail when tap on wifi access point

Since we migrated AlertDialog to AndroidX version,
we use App.Compat theme for AndroidX AlertDialog.

Test: visual inspection, robo
Change-Id: I7911ab7f5c6338559f4568c8e8bb52357ca2edd3
Fixes: 111731279

6 years agoFix Wifi off state UI
Mill Chen [Wed, 25 Jul 2018 13:52:15 +0000 (21:52 +0800)]
Fix Wifi off state UI

- Apply footerPreferenceStyle to reduce the text size and text color
- Add "info" icon

Bug: 80087791
Test: visual, RunSettingsRoboTests
ROBOTEST_FILTER=com.android.settings.wifi

Change-Id: I19d4f67c5a9f2fc2b542f40e051c1469ab40e7db

6 years agoMerge changes I77a53f70,I853d3611
Lei Yu [Fri, 27 Jul 2018 01:34:25 +0000 (01:34 +0000)]
Merge changes I77a53f70,I853d3611

* changes:
  Add functions for table action.
  Create table to store user action.

6 years agoMerge "Update AppCheckBoxPreference to show summary"
TreeHugger Robot [Fri, 27 Jul 2018 00:37:43 +0000 (00:37 +0000)]
Merge "Update AppCheckBoxPreference to show summary"

6 years agoMerge "When wallpaper colors not ready set sys ui flags when ready"
TreeHugger Robot [Thu, 26 Jul 2018 23:21:36 +0000 (23:21 +0000)]
Merge "When wallpaper colors not ready set sys ui flags when ready"

6 years agoAdd functions for table action.
jackqdyulei [Thu, 19 Jul 2018 17:09:47 +0000 (10:09 -0700)]
Add functions for table action.

1. Insert/Update/Query/Delete
2. Update the action when app been restricted
3. Display restriction time in RestrictedAppDetails

Bug: 111366678
Test: RunSettingsRoboTests
Change-Id: I77a53f70e1ce4b612aabe28b7a1bb5df8f3ec9d5

6 years agoWhen wallpaper colors not ready set sys ui flags when ready
Matthew Ng [Thu, 19 Jul 2018 20:30:54 +0000 (13:30 -0700)]
When wallpaper colors not ready set sys ui flags when ready

Uses a listener on wallpaper manager to get the wallpaper colors for
fallback home. When the colors are ready it can correctly set the system
ui flags.

Change-Id: I7119c0f035245539cb69bec1ccccecef64d3aff5
Fixes: 79776583
Test: reboot phone, unlock with pin/pattern with light them wallpaper
Test: make RunSettingsRoboTests ROBOTEST_FILTER=FallbackHomeActivityTest

6 years agoUpdate AppCheckBoxPreference to show summary
jackqdyulei [Thu, 26 Jul 2018 21:14:15 +0000 (14:14 -0700)]
Update AppCheckBoxPreference to show summary

The summary is invisible by default if we use preference_app.xml,
this CL turn it on if summary is not empty.

Bug: 111366678
Test: RunSettingsRoboTests
Change-Id: I3fe5827a5e80a8e21309b163dbbaa1070f5ee61e

6 years agoMerge "Pass in context when loading icons from Tile"
TreeHugger Robot [Thu, 26 Jul 2018 21:58:49 +0000 (21:58 +0000)]
Merge "Pass in context when loading icons from Tile"

6 years agoCreate table to store user action.
jackqdyulei [Wed, 18 Jul 2018 22:13:19 +0000 (15:13 -0700)]
Create table to store user action.

For example, it will store when user restrict an app.

Bug: 111366678
Test: Build
Change-Id: I853d3611f260436d1f97ee7b0a40c52a8bde0678

6 years agoMerge "PowerUsageSummary: move controllers to xml"
TreeHugger Robot [Thu, 26 Jul 2018 20:13:44 +0000 (20:13 +0000)]
Merge "PowerUsageSummary: move controllers to xml"

6 years agoPass in context when loading icons from Tile
Fan Zhang [Thu, 26 Jul 2018 18:26:11 +0000 (11:26 -0700)]
Pass in context when loading icons from Tile

Bug: 111860183
Test: robotests
Change-Id: I836ad66eb420f4e0bd0bbded541f4dfe947c9b18

6 years agoPowerUsageSummary: move controllers to xml
jackqdyulei [Tue, 24 Jul 2018 17:49:05 +0000 (10:49 -0700)]
PowerUsageSummary: move controllers to xml

Also change the following controllers to have standard constructor
1. BatteryHeaderPreferenceController
2. BatteryTipPreferenceController

Change-Id: I2e68082295eb8ef18de9fef9483a10b070c77a47
Fixes: 111131567
Test: robotest

6 years agoAdded autofill options on Developer Options screen.
Felipe Leme [Wed, 25 Jul 2018 00:24:40 +0000 (17:24 -0700)]
Added autofill options on Developer Options screen.

Test: manual verification
Test: atest AutofillResetOptionsPreferenceControllerTest\
            AutofillLoggingLevelPreferenceControllerTest
Test: runtest --path packages/apps/Settings/tests/unit/src/com/android/settings/core/PreferenceControllerContractTest.java
Fixes: 65700540

Change-Id: I6b35fbf549529f4d97df164ce3fb6d641ee37650

6 years agoMerge "Add a boolean flag to show or hide the device name in About device."
Prabir Pradhan [Thu, 26 Jul 2018 05:24:49 +0000 (05:24 +0000)]
Merge "Add a boolean flag to show or hide the device name in About device."

6 years agoMerge "Fix the empty preference after clicking gear icon"
TreeHugger Robot [Thu, 26 Jul 2018 03:34:36 +0000 (03:34 +0000)]
Merge "Fix the empty preference after clicking gear icon"

6 years agoFix the empty preference after clicking gear icon
felkachang [Thu, 19 Jul 2018 12:06:50 +0000 (20:06 +0800)]
Fix the empty preference after clicking gear icon

Because there is no other options for 'None' or 'Swipe, there is no
necessary for showing the gear icon to show options.

'Lock screen message' could be found in
Settings > Display > Lock screen display.

Add testcase to verify the ChangeScreenLockPreferenceController's
behavior.

Test: make ROBOTEST_FILTER=ChangeScreenLockPreferenceControllerTest \
      RunSettingsRoboTests -j40
Change-Id: Icdcd672261749d106162053d6f5228cee420a810
Fixes: 110848852

6 years agoMerge "Restore the up time preference."
TreeHugger Robot [Thu, 26 Jul 2018 00:50:31 +0000 (00:50 +0000)]
Merge "Restore the up time preference."

6 years agoAdd a boolean flag to show or hide the device name in About device.
Prabir Pradhan [Wed, 25 Jul 2018 20:55:56 +0000 (13:55 -0700)]
Add a boolean flag to show or hide the device name in About device.

The following boolean flag is added:
config_show_device_name

When set to false, the device name will not be shown in System > About
Device.

Bug: 111653180
Test: Updated robotests
Change-Id: Id9610e2009604c9d9693428adff01adc7d606565

6 years agoMerge "Clean up unused deps"
TreeHugger Robot [Wed, 25 Jul 2018 23:48:14 +0000 (23:48 +0000)]
Merge "Clean up unused deps"

6 years agoRestore the up time preference.
Doris Ling [Wed, 25 Jul 2018 23:12:57 +0000 (16:12 -0700)]
Restore the up time preference.

- up time preference is removed when we updated to the new version of
about phone settings. Add it back to the preference xml, and restore the
controller for it.

Change-Id: I245316e84d04f9d6f033377c944b615dd6e138a5
Fixes: 111828610
Test: manual

6 years agoMerge "Use Tile.getIcon() to avoid caching issue"
TreeHugger Robot [Wed, 25 Jul 2018 23:25:54 +0000 (23:25 +0000)]
Merge "Use Tile.getIcon() to avoid caching issue"

6 years agoMerge "Check for WiFi controller for summary population."
TreeHugger Robot [Wed, 25 Jul 2018 22:51:00 +0000 (22:51 +0000)]
Merge "Check for WiFi controller for summary population."

6 years agoClean up unused deps
Fan Zhang [Wed, 25 Jul 2018 22:25:05 +0000 (15:25 -0700)]
Clean up unused deps

Test: rebuild
Change-Id: I7caa30024046ae832cafef6598ecf74db4aba8bf

6 years agoCheck for WiFi controller for summary population.
Ben Lin [Fri, 20 Jul 2018 19:36:42 +0000 (12:36 -0700)]
Check for WiFi controller for summary population.

WiFiController might return not available, so we should only surface
"Wi-Fi" as a summary entry if it's available in the settings page.

This also checks for empty strings in case they are declared as such in
the XML (since XML can be device/product overlay'd), to avoid situations
such as ", data usage".

Bug: 111398942
Test: Manual check, and I see Wi-Fi no longer visible for cases where
Wifi controller isn't available.
Test: make RunSettingsRoboTests
Change-Id: I24736a6240c50e2ea38ce424fbac2316721290d8

6 years agoUse Tile.getIcon() to avoid caching issue
Fan Zhang [Tue, 24 Jul 2018 19:49:30 +0000 (12:49 -0700)]
Use Tile.getIcon() to avoid caching issue

Bug: 77600770
Test: robotests
Change-Id: Icb21f5da9b542abc239b04b71813290ad3104ffb

6 years agoMerge "Remove unused interface API"
TreeHugger Robot [Wed, 25 Jul 2018 18:28:46 +0000 (18:28 +0000)]
Merge "Remove unused interface API"

6 years agoMerge "Change floating search button icon"
TreeHugger Robot [Wed, 25 Jul 2018 17:41:11 +0000 (17:41 +0000)]
Merge "Change floating search button icon"

6 years agoChange floating search button icon
Mill Chen [Wed, 25 Jul 2018 05:32:34 +0000 (13:32 +0800)]
Change floating search button icon

- Add an alias name for floating search button

Bug: 111665984
Test: rebuild
Change-Id: I020cd4a163ae586f5b8faa0d4f8d9bc8bbd84fa4

6 years agoRemove unused interface API
Fan Zhang [Tue, 24 Jul 2018 22:00:01 +0000 (15:00 -0700)]
Remove unused interface API

Bug: 111796429
Test: robotests
Change-Id: I5887a0a48285cf61777ac7c6a896d16dd7585a26

6 years agoMerge "Fix new account not shown for work profile."
Doris Ling [Tue, 24 Jul 2018 17:57:43 +0000 (17:57 +0000)]
Merge "Fix new account not shown for work profile."

6 years agoMerge "Update Security & location preference summary depending on biometrics"
Kevin Chyn [Tue, 24 Jul 2018 17:42:36 +0000 (17:42 +0000)]
Merge "Update Security & location preference summary depending on biometrics"

6 years agoMerge "Modified the char limit"
TreeHugger Robot [Tue, 24 Jul 2018 16:20:25 +0000 (16:20 +0000)]
Merge "Modified the char limit"

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:11:18 +0000 (04:11 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours am: 1e56e69a46  -s ours am: 1237373743  -s ours
am: 64e4c89ef6  -s ours

Change-Id: I8b4a41fa2ef2fb023ba4f5ac96494be8172cb6ec

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:06:25 +0000 (04:06 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours am: 1e56e69a46  -s ours
am: 1237373743  -s ours

Change-Id: I00878455de5f09b6ab95d03ae5def411c8c0cb9e

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f23...
Dario Freni [Tue, 24 Jul 2018 11:02:45 +0000 (04:02 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition." am: aa2ec5f239  -s ours
am: 1e56e69a46  -s ours

Change-Id: I0282749b861a6571326c725b5c62a0ebda99dff9

6 years ago[automerger skipped] Merge "Include NOTICE file in /product partition."
Dario Freni [Tue, 24 Jul 2018 10:58:08 +0000 (03:58 -0700)]
[automerger skipped] Merge "Include NOTICE file in /product partition."
am: aa2ec5f239  -s ours

Change-Id: I5341a7ab21758d1a47b0618cd8b1779f063b1406

6 years agoMerge "Include NOTICE file in /product partition."
Treehugger Robot [Tue, 24 Jul 2018 10:35:44 +0000 (10:35 +0000)]
Merge "Include NOTICE file in /product partition."

6 years agoMerge "Delegate PrintServicesLoader to the framework's one"
TreeHugger Robot [Tue, 24 Jul 2018 10:17:53 +0000 (10:17 +0000)]
Merge "Delegate PrintServicesLoader to the framework's one"

6 years agoUpdate Security & location preference summary depending on biometrics
Kevin Chyn [Tue, 24 Jul 2018 01:05:59 +0000 (18:05 -0700)]
Update Security & location preference summary depending on biometrics

Fixes: 110960063

Test: manual
Test: make -j56 SettingsRoboTests ROBOTEST_FILTER=SecuritySettingsTest
Change-Id: Ia9186af37c84f4ff0391d1b72043948934ed997b

6 years agoModified the char limit
Sunny Shao [Tue, 24 Jul 2018 03:56:49 +0000 (11:56 +0800)]
Modified the char limit

- Modified the comment in strings.xml and extended the length of the CHAR LIMIT

Change-Id: I39d065aad7473bb1111db690c7b7a1ff81de459c
Fixes: 111697704
Test: visual

6 years agoFix new account not shown for work profile.
Doris Ling [Mon, 23 Jul 2018 23:13:39 +0000 (16:13 -0700)]
Fix new account not shown for work profile.

When refreshing the Accounts settings UI, we uses the cached user info
for checking user status. However, when the work profile is being
updated, the UserInfo obejct for the user might be updated even the
user id is the same. Using the cached data causes stale info to be
returned for the user and results in the latest account data not
being shown properly for the user. Update the cache to the latest user
info retrieved from user manager.

Change-Id: Ic0127842203f0288f2fdea6c6346cd11e42a8bf0
Fix: 38302246
Test: make RunSettingsRoboTests

6 years agoMove CategoryManager to Settings.
Fan Zhang [Mon, 23 Jul 2018 20:51:40 +0000 (13:51 -0700)]
Move CategoryManager to Settings.

Bug: 77600770
Test: robo
Change-Id: Id4a0c89938d43d21147944b820a191486c589238

6 years agoUpdate notification_settings_work_profile comment.
Irina Dumitrescu [Mon, 23 Jul 2018 12:54:14 +0000 (13:54 +0100)]
Update notification_settings_work_profile comment.

Test: n/a
Fixes: 111699435
Change-Id: I1a33204f5305db28e7d423b4b2523ed64c675e46

6 years agoMerge "Fix settings crash after androidx refactoring"
Kevin Chyn [Sat, 21 Jul 2018 01:24:58 +0000 (01:24 +0000)]
Merge "Fix settings crash after androidx refactoring"

6 years agoFix settings crash after androidx refactoring
Kevin Chyn [Sat, 21 Jul 2018 00:19:39 +0000 (17:19 -0700)]
Fix settings crash after androidx refactoring

Fixes: 111701576

Change-Id: I095d4837e7a34fb9f240f2a302b5c6f7d1142db9
Fixes: 111701576

6 years agoRemove the character limit
Ian Pedowitz [Fri, 20 Jul 2018 23:37:07 +0000 (16:37 -0700)]
Remove the character limit

This could cause existing messages to get clipped

Effectively reverting part of e7c3ca0e2ebde28b98847d1a21a6aa64fb4a973e

Bug: 111577594
Test: None, is a revert of this config
Change-Id: Ifaa8c9674db3c6865b3b59fcd254bb3e2b20a5f5

6 years agoMerge "Request lock screen message focus and limit character limit"
TreeHugger Robot [Fri, 20 Jul 2018 23:32:35 +0000 (23:32 +0000)]
Merge "Request lock screen message focus and limit character limit"

6 years agoMerge "Hide lock screen display in search if it's not in Settings"
TreeHugger Robot [Fri, 20 Jul 2018 23:10:28 +0000 (23:10 +0000)]
Merge "Hide lock screen display in search if it's not in Settings"

6 years agoRequest lock screen message focus and limit character limit
Fan Zhang [Fri, 20 Jul 2018 22:34:13 +0000 (15:34 -0700)]
Request lock screen message focus and limit character limit

Change-Id: I78594d03ae5430f63e46cb97e2413c1c4bf60d8a
Fixes: 111577594
Test: manual

6 years agoMerge "Fix battery animation not being played."
Doris Ling [Fri, 20 Jul 2018 22:28:53 +0000 (22:28 +0000)]
Merge "Fix battery animation not being played."

6 years agoMerge changes from topic "migrate-alerdialog-androidx"
Fan Zhang [Fri, 20 Jul 2018 21:52:06 +0000 (21:52 +0000)]
Merge changes from topic "migrate-alerdialog-androidx"

* changes:
  Migrate all AlertDialogs to AndroidX version
  Migrate all AlertDialogs to AndroidX version

6 years agoHide lock screen display in search if it's not in Settings
Fan Zhang [Fri, 20 Jul 2018 21:40:54 +0000 (14:40 -0700)]
Hide lock screen display in search if it's not in Settings

Change-Id: Iacf16eb947a679e08a6c55e0764416cd53cac2e7
Fixes: 111641373
Test: robotests

6 years agoMerge "Remove ref to tile.remoteView, which is no longer used"
TreeHugger Robot [Fri, 20 Jul 2018 21:32:07 +0000 (21:32 +0000)]
Merge "Remove ref to tile.remoteView, which is no longer used"

6 years agoFix battery animation not being played.
Doris Ling [Thu, 19 Jul 2018 20:53:27 +0000 (13:53 -0700)]
Fix battery animation not being played.

- VideoPreference now checks the view visible flag to see if it
should start playing the video when the surface texture is being
updated. Added a default controller for the VideoPreference to
update the view visible flag of the VideoPrefernece when the
setting page is paused/resumed accordingly.
- add the default controller to the adaptive battery video and the
adaptive brightness video.

Change-Id: I1aae2148c27c7157c97541346790542c74377e5a
Fixes: 111103815
Test: make RunSettingsRoboTests

6 years agoRemove ref to tile.remoteView, which is no longer used
Fan Zhang [Fri, 20 Jul 2018 19:56:39 +0000 (12:56 -0700)]
Remove ref to tile.remoteView, which is no longer used

Bug: 77600770
Test: rebuild
Change-Id: If0fdd67dd3098d063584acaf2b262a04c209a569

6 years agoMerge "Use the SSID of the network in the no internet dialog" am: 692f989b98 am:...
Chalard Jean [Fri, 20 Jul 2018 19:42:07 +0000 (12:42 -0700)]
Merge "Use the SSID of the network in the no internet dialog" am: 692f989b98 am: 9971303508 am: 28a2b521cf
am: 92295f0953

Change-Id: I1ef9422507de2aa9ee29ec3c52b17f3bf7363a06

6 years agoMerge "Use the SSID of the network in the no internet dialog" am: 692f989b98 am:...
Chalard Jean [Fri, 20 Jul 2018 19:33:56 +0000 (12:33 -0700)]
Merge "Use the SSID of the network in the no internet dialog" am: 692f989b98 am: 9971303508
am: 28a2b521cf

Change-Id: Iae1632372659849d2f61377d0b31d171c50491ab

6 years agoMerge "Use the SSID of the network in the no internet dialog" am: 692f989b98
Chalard Jean [Fri, 20 Jul 2018 19:29:46 +0000 (12:29 -0700)]
Merge "Use the SSID of the network in the no internet dialog" am: 692f989b98
am: 9971303508

Change-Id: Ie1eecd52e31477bf7cac2fbe542f34be308ec5b6

6 years agoMerge "Use the SSID of the network in the no internet dialog"
Chalard Jean [Fri, 20 Jul 2018 19:25:39 +0000 (12:25 -0700)]
Merge "Use the SSID of the network in the no internet dialog"
am: 692f989b98

Change-Id: I6921cab3a99a3b4e2ad5919acb1e01f814d26289

6 years agoMerge "Use the SSID of the network in the no internet dialog"
Treehugger Robot [Fri, 20 Jul 2018 18:57:09 +0000 (18:57 +0000)]
Merge "Use the SSID of the network in the no internet dialog"

6 years ago[automerger skipped] Import translations. DO NOT MERGE am: 0a8de9d763 -s ours
Bill Yi [Fri, 20 Jul 2018 18:41:40 +0000 (11:41 -0700)]
[automerger skipped] Import translations. DO NOT MERGE am: 0a8de9d763  -s ours
am: 9551717c69  -s ours

Change-Id: Ib0facfffd92a2a3ea1115b6da5eb65a8ad1d44e2

6 years ago[automerger skipped] Import translations. DO NOT MERGE
Bill Yi [Fri, 20 Jul 2018 18:33:55 +0000 (11:33 -0700)]
[automerger skipped] Import translations. DO NOT MERGE
am: 0a8de9d763  -s ours

Change-Id: Ic192d76bf26a37373d18944f459bcacae754c174

6 years agoMerge "Fix color of status bar"
TreeHugger Robot [Fri, 20 Jul 2018 17:02:15 +0000 (17:02 +0000)]
Merge "Fix color of status bar"

6 years agoMerge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master am: e8858cc954
Xin Li [Fri, 20 Jul 2018 08:36:53 +0000 (01:36 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master am: e8858cc954
am: 9652d9ec5b

Change-Id: I251279ea01e26d62a66535a2b675b7e9418db6a5

6 years agoFix color of status bar
Mill Chen [Fri, 20 Jul 2018 07:13:45 +0000 (15:13 +0800)]
Fix color of status bar

- Set true value to windowLightStatusBar

Bug: 111665984
Test: rebuild
Change-Id: I9808256be052e383656976555cfca5baf60634c6

6 years agoMerge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Xin Li [Fri, 20 Jul 2018 06:45:48 +0000 (23:45 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
am: e8858cc954

Change-Id: Ide9e745efe8952ac27fb9fb79053557aa6a1caef

6 years agoDelegate PrintServicesLoader to the framework's one
Jason Chiu [Wed, 18 Jul 2018 08:39:29 +0000 (16:39 +0800)]
Delegate PrintServicesLoader to the framework's one

1. Remove the duplicated PrintServicesLoader in Settings
2. Make a androidx.loader in Settings and internally just delegate all calls to the real PrintServicesLoader
3. Get the result from the real loader

Test: manual
Fixes: 111581651
Change-Id: I2a9b3653f5c68f8383a468cd16ef5f7c3fd4bc3a

6 years agoMigrate all AlertDialogs to AndroidX version
tmfang [Tue, 17 Jul 2018 05:53:04 +0000 (13:53 +0800)]
Migrate all AlertDialogs to AndroidX version

- Let test cases can be compatible with AndroidX AlertDialog.
- Theme of Transparent needs to support AndroidX AlertDialog.

Change-Id: I0789b66f52feef30ebab7fb824d0e39d5ae9cc96
Fixes: 111413092
Test: make RunSettingsRoboTests -j56

6 years agoMigrate all AlertDialogs to AndroidX version
tmfang [Tue, 17 Jul 2018 05:53:04 +0000 (13:53 +0800)]
Migrate all AlertDialogs to AndroidX version

This CL only changed AlertDialog imports.
So, reviewer can review it easily.

Change-Id: I097bc44394195b14287f4f920c570ac8653f356a
Fixes: 111413092
Test: This CL can't pass Robo test.

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 20 Jul 2018 02:35:10 +0000 (19:35 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I26fa1f1f72571d0541556649bf104446c9522830

6 years agoMerge "Move logic from SavedAccessPoint fragment to controller"
TreeHugger Robot [Thu, 19 Jul 2018 23:07:09 +0000 (23:07 +0000)]
Merge "Move logic from SavedAccessPoint fragment to controller"

6 years agoMove logic from SavedAccessPoint fragment to controller
Fan Zhang [Thu, 19 Jul 2018 00:01:53 +0000 (17:01 -0700)]
Move logic from SavedAccessPoint fragment to controller

Change-Id: Ic54e536f97490cec1746fa58c42ec55b60d17f0e
Fixes: 64806699
Test: robotests

6 years agoMerge "Fix cached app icon being used in app list."
TreeHugger Robot [Thu, 19 Jul 2018 21:16:34 +0000 (21:16 +0000)]
Merge "Fix cached app icon being used in app list."

6 years agoMerge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master
Xin Li [Thu, 19 Jul 2018 20:50:34 +0000 (13:50 -0700)]
Merge pi-dev-plus-aosp-without-vendor into stage-dr1-aosp-master

Bug: 111615259
Change-Id: I0bbc44c97afd0ed6ff7799e866d4b36beee6c3be

6 years agoFix cached app icon being used in app list.
Doris Ling [Fri, 13 Jul 2018 20:34:11 +0000 (13:34 -0700)]
Fix cached app icon being used in app list.

- change to use the icon from IconDrawableFactory instead of from app
info when building the application list.

Fixes: 63978676
Test: manual, reinstall an app with updated icon and launch
settings->Apps & notifications->See all apps and check the app icon.

Change-Id: I99028ef97fb4fec8c90708b26caaddb7325c1ddb

6 years agoMerge "Use SettingsRobolectricTestRunner in settings app"
TreeHugger Robot [Thu, 19 Jul 2018 19:25:49 +0000 (19:25 +0000)]
Merge "Use SettingsRobolectricTestRunner in settings app"

6 years agoMerge "Make app predicates singleton"
TreeHugger Robot [Thu, 19 Jul 2018 18:50:36 +0000 (18:50 +0000)]
Merge "Make app predicates singleton"

6 years agoUse SettingsRobolectricTestRunner in settings app
jackqdyulei [Thu, 19 Jul 2018 18:21:20 +0000 (11:21 -0700)]
Use SettingsRobolectricTestRunner in settings app

Change-Id: I3682ea52c53ff4fcce7e9aa52a4a6827bb31b2cb
Fixes: 111646366
Test: robotest

6 years agoMake app predicates singleton
jackqdyulei [Wed, 18 Jul 2018 20:06:11 +0000 (13:06 -0700)]
Make app predicates singleton

1. AppLabelPredicate
2. AppRestrictionPredicate

Change-Id: I1fd8611c5dd7ffa6318bcb23de7a973c111910b6
Fixes: 111323520
Test: RunSettingsRoboTests

6 years agoMerge "Fix a test broken by fragment migration."
TreeHugger Robot [Thu, 19 Jul 2018 17:44:48 +0000 (17:44 +0000)]
Merge "Fix a test broken by fragment migration."

6 years agoMerge "Hook up anomaly active hour to BatteryTipPolicy"
Lei Yu [Thu, 19 Jul 2018 17:14:45 +0000 (17:14 +0000)]
Merge "Hook up anomaly active hour to BatteryTipPolicy"

6 years agoMerge "Move functions to settingslib for more code reuse"
TreeHugger Robot [Thu, 19 Jul 2018 16:58:17 +0000 (16:58 +0000)]
Merge "Move functions to settingslib for more code reuse"

6 years agoMerge "Fixed data usage displaying problem"
TreeHugger Robot [Thu, 19 Jul 2018 16:32:56 +0000 (16:32 +0000)]
Merge "Fixed data usage displaying problem"

6 years agoMove functions to settingslib for more code reuse
Aarthi Balachander [Thu, 12 Jul 2018 21:36:57 +0000 (14:36 -0700)]
Move functions to settingslib for more code reuse

Bug: 110376110
Test: Tested on device
Change-Id: I2bbb8d01f675fc254e783b97b44d16f36846a416

6 years agoFixed data usage displaying problem
SunnyShao [Tue, 17 Jul 2018 10:42:30 +0000 (18:42 +0800)]
Fixed data usage displaying problem

- Changed "Data usage" to "Mobile data & Wi-Fi" in App info page
- Chageed the title "App data usage" to "Mobile data & Wi-Fi"

Change-Id: I7699465ca5c7b1786c6f9e33bc25a2dd70181ce6
Fixes: 34515307
Test: visual

6 years agoMerge "Use the migrated injected setting code in settingslib. Manual merge to master...
TreeHugger Robot [Thu, 19 Jul 2018 02:10:46 +0000 (02:10 +0000)]
Merge "Use the migrated injected setting code in settingslib. Manual merge to master from pi-car-dev Bug: 68198078 Test: Tested on device Change-Id: Iff767cd6bf7408b45ce9594628d3fd0a71744e9f"

6 years agoMerge "Fix AlertDialog corner and color accent"
Raff Tsai [Thu, 19 Jul 2018 01:00:28 +0000 (01:00 +0000)]
Merge "Fix AlertDialog corner and color accent"

6 years agoMerge "Convert SavedAccessPoints to DashboardFragment (step 1)"
TreeHugger Robot [Thu, 19 Jul 2018 00:25:14 +0000 (00:25 +0000)]
Merge "Convert SavedAccessPoints to DashboardFragment (step 1)"

6 years agoMerge "Clean up saved network screen"
TreeHugger Robot [Wed, 18 Jul 2018 23:32:10 +0000 (23:32 +0000)]
Merge "Clean up saved network screen"

6 years agoConvert SavedAccessPoints to DashboardFragment (step 1)
Fan Zhang [Wed, 18 Jul 2018 22:46:49 +0000 (15:46 -0700)]
Convert SavedAccessPoints to DashboardFragment (step 1)

Change-Id: I5d8fa8497e04c9314dead9af7534df4507ffd591
Bug: 64806699
Test: robotest

6 years agoClean up saved network screen
Fan Zhang [Wed, 18 Jul 2018 21:31:44 +0000 (14:31 -0700)]
Clean up saved network screen

Bug: 64806699
Test: rebuild
Change-Id: I4392809f08034c7c13575db2f5c41468fcea0987

6 years agoMerge "Unrestrict SMS/PHONE app if it been set active"
TreeHugger Robot [Wed, 18 Jul 2018 20:43:38 +0000 (20:43 +0000)]
Merge "Unrestrict SMS/PHONE app if it been set active"

6 years agoUse the migrated injected setting code in settingslib.
Aarthi Balachander [Wed, 11 Jul 2018 00:04:53 +0000 (17:04 -0700)]
Use the migrated injected setting code in settingslib.
Manual merge to master from pi-car-dev
Bug: 68198078
Test: Tested on device
Change-Id: Iff767cd6bf7408b45ce9594628d3fd0a71744e9f