OSDN Git Service
TreeHugger Robot [Mon, 19 Feb 2018 20:18:01 +0000 (20:18 +0000)]
Merge "Migrate more settings to SubSettingLauncher"
TreeHugger Robot [Mon, 19 Feb 2018 06:45:02 +0000 (06:45 +0000)]
Merge "Migrate more settings to use SubSettingsLauncher"
Fan Zhang [Sat, 17 Feb 2018 00:20:30 +0000 (16:20 -0800)]
Migrate more settings to SubSettingLauncher
Bug:
73250851
Test: robotest
Change-Id: Ifc27b90d68bf4a907f169e19338e9b52ea5f9922
Fan Zhang [Fri, 16 Feb 2018 18:37:37 +0000 (10:37 -0800)]
Migrate more settings to use SubSettingsLauncher
Bug:
73250851
Test: robotests
Change-Id: I08f6f380489646231d6d8ceb1488e2efb036bf69
TreeHugger Robot [Mon, 19 Feb 2018 03:26:26 +0000 (03:26 +0000)]
Merge "Import translations. DO NOT MERGE"
Bill Yi [Sun, 18 Feb 2018 17:42:03 +0000 (17:42 +0000)]
Import translations. DO NOT MERGE am:
27f30d2f46 -s ours
am:
9843b2e552 -s ours
Change-Id: I4e7ec3a5349efff5ec801993ca96b8578f045c10
Bill Yi [Sun, 18 Feb 2018 17:32:29 +0000 (17:32 +0000)]
Import translations. DO NOT MERGE
am:
27f30d2f46 -s ours
Change-Id: I02d655e5e18147b0cc6a95069db935ed39b1719d
TreeHugger Robot [Sat, 17 Feb 2018 17:52:57 +0000 (17:52 +0000)]
Merge "[Settings] Add focus for SSIDtext to show IME"
TreeHugger Robot [Sat, 17 Feb 2018 10:55:25 +0000 (10:55 +0000)]
Merge "[Settings] Update margin of summary of ring volumn"
Bill Yi [Sat, 17 Feb 2018 07:15:09 +0000 (23:15 -0800)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Ia171cb822fd79c5828a9042873f4b52b6e9c6541
Bill Yi [Sat, 17 Feb 2018 06:18:15 +0000 (22:18 -0800)]
Import translations. DO NOT MERGE
Change-Id: I09b555b14e3825d857a3c67cc9b5c946fdfa4cf6
Auto-generated-cl: translation import
TreeHugger Robot [Sat, 17 Feb 2018 03:48:02 +0000 (03:48 +0000)]
Merge "Allow extras to be passed to app info subscreens"
TreeHugger Robot [Sat, 17 Feb 2018 02:33:14 +0000 (02:33 +0000)]
Merge "Make BatteryDatabaseManager singleton"
Sudheer Shanka [Fri, 16 Feb 2018 23:05:25 +0000 (23:05 +0000)]
Merge "Raise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter."
Adrian Roos [Fri, 16 Feb 2018 22:47:11 +0000 (22:47 +0000)]
Merge "Use new OverlayManager categories"
Fan Zhang [Fri, 16 Feb 2018 16:58:51 +0000 (16:58 +0000)]
Merge changes I1c3620d3,Ic0bf23f6
* changes:
Move some subsetting launch to SubSettingLauncher
Migrate more subsetting launching to SubSettingLauncher
Fan Zhang [Fri, 16 Feb 2018 16:51:29 +0000 (16:51 +0000)]
Merge "Fix a failing robotest"
Fan Zhang [Fri, 16 Feb 2018 05:54:41 +0000 (05:54 +0000)]
Merge "Add string for instant app launch button."
Fan Zhang [Fri, 16 Feb 2018 05:54:03 +0000 (05:54 +0000)]
Merge "Ignore null value in Account settings summary."
Fan Zhang [Fri, 16 Feb 2018 05:30:03 +0000 (21:30 -0800)]
Fix a failing robotest
This is not a correct fix, in the longer term we should stop using
framework internal strings entirely.
Test: robotest
Change-Id: I47f93793fde1e9d5ba850ca4897f820d4919dda4
Fan Zhang [Fri, 16 Feb 2018 04:49:41 +0000 (04:49 +0000)]
Merge "Refactor Utils.startWithFragment to SubSettingLauncher"
Fan Zhang [Fri, 16 Feb 2018 00:34:40 +0000 (16:34 -0800)]
Move some subsetting launch to SubSettingLauncher
Bug:
73250851
Test: robotests
Change-Id: I1c3620d335eaf99bb110bcbb3e33ff3b2a05f84e
Fan Zhang [Thu, 15 Feb 2018 23:19:33 +0000 (15:19 -0800)]
Migrate more subsetting launching to SubSettingLauncher
Bug:
73250851
Test: robotests
Change-Id: Ic0bf23f6ac6f717bdd3d477fdb84af68badae8e6
Fan Zhang [Thu, 15 Feb 2018 21:56:56 +0000 (13:56 -0800)]
Refactor Utils.startWithFragment to SubSettingLauncher
- Use the new launcher in AccountTypePrefernce for now. Will migrate the
rest in follow up CLs.
Change-Id: I67aa49f54b39ecea4ecfdc32ccbd827d21fc79b8
Bug:
73250851
Test: robotest
Doris Ling [Thu, 15 Feb 2018 22:16:15 +0000 (14:16 -0800)]
Add string for instant app launch button.
Bug:
69562807
Test: rebuild
Change-Id: I8968091664ac6c693ef9269225192bb42b7907ca
Julia Reynolds [Mon, 12 Feb 2018 21:47:59 +0000 (16:47 -0500)]
Allow extras to be passed to app info subscreens
And pass though some extras through to notification settings.
This enables us to highlight appropriate preferences on the
subscreens while still funneling users through the app info
screen.
Test: make RunSettingsRoboTests
Bug:
72764587
Change-Id: I0197b595fe4bf3504588d9dd2985dd20de73c640
Doris Ling [Thu, 15 Feb 2018 01:50:25 +0000 (17:50 -0800)]
Ignore null value in Account settings summary.
If an account type has no valid label, null is returned. Check the value
to make sure that it is a valid label before adding it to the summary.
Change-Id: I0cf3ef9a976e1a7fe16720da237f416c674791fc
Fixes:
73375480
Test: make RunSettingsRoboTests
Fan Zhang [Wed, 14 Feb 2018 22:57:51 +0000 (14:57 -0800)]
Remove IA mapping for old connected device page
Change-Id: I201c09facb9e21d452c58ff3d257bdd37e6b854d
Fixes:
69471219
Test: robotest
TreeHugger Robot [Thu, 15 Feb 2018 03:46:19 +0000 (03:46 +0000)]
Merge "Centralize the automatic storage manager on check."
TreeHugger Robot [Wed, 14 Feb 2018 23:53:28 +0000 (23:53 +0000)]
Merge "Add android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS"
jackqdyulei [Wed, 14 Feb 2018 20:43:09 +0000 (12:43 -0800)]
Make BatteryDatabaseManager singleton
In BatteryTipLoader, two threads may access BatteryDatabaseManager
simultaneously. In this case thread A may close the database thread B
holds, then settings will crash.
In this cl, we make the BatteryDatabaseManager as singleton and
synchronize all the database related method. Then it shouldn't have
the crash anymore.
Bug:
73346734
Test: RunSettingsRoboTests
Change-Id: Ib53b2894b25155cca0c6ec60d1a816663d27a578
Felipe Leme [Wed, 14 Feb 2018 21:15:19 +0000 (13:15 -0800)]
Add android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS
This permission is required to access the ScopedAccessProvider. Although
Settings doesn't currently needs it because it has implicit access because
it runs as UID 1000, it's better to explicitly grant it.
Bug:
72055774
Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain,testResetGranted
Change-Id: I843d7e4a1f674b4e012ac7f744d6ffccadde5a24
Daniel Nishi [Wed, 24 Jan 2018 02:28:11 +0000 (18:28 -0800)]
Centralize the automatic storage manager on check.
Bug:
70893105
Test: Existing tests pass.
Change-Id: I83fa0e1033eb530a02eca230d0dd79495cbcbc9d
TreeHugger Robot [Wed, 14 Feb 2018 17:34:56 +0000 (17:34 +0000)]
Merge "Re-added support for deprecated BIND_AUTOFILL permission."
TreeHugger Robot [Wed, 14 Feb 2018 17:22:55 +0000 (17:22 +0000)]
Merge "Handle Looper in PreferenceController"
TreeHugger Robot [Wed, 14 Feb 2018 17:22:55 +0000 (17:22 +0000)]
Merge "Fix instrumentation tests"
Yuchen Chang [Mon, 12 Feb 2018 07:42:59 +0000 (15:42 +0800)]
[Settings] Add focus for SSIDtext to show IME
Add focus to SSIDtext to show IME when choosing add network.
Bug:
72882629
Test: RunSettingsRobotests & Manual test
Change-Id: I1c51c4b800a7668c6760c88b97e920cf75c26b26
Adrian Roos [Wed, 24 Jan 2018 15:36:38 +0000 (16:36 +0100)]
Use new OverlayManager categories
Using this, we split overlays based on their category, so that
cutout emulation and theme overlays no longer clash in their
respective settings.
Bug:
72436677
Test: make ROBOTEST_FILTER=EmulateDisplayCutoutPreferenceControllerTest RunSettingsRoboTests
Change-Id: I23f22113351b3948beb9e3a1fb969700852539cc
HJ ChangLiao [Wed, 14 Feb 2018 03:03:31 +0000 (11:03 +0800)]
[Settings] Update margin of summary of ring volumn
Update margin of summary of ring volumn settings,
to align with Title.
Bug:
69978042
Test: Robotest and manual test
Change-Id: Id621bc4b2d755f84d68df6729731356dcdd3a625
TreeHugger Robot [Wed, 14 Feb 2018 02:35:10 +0000 (02:35 +0000)]
Merge "Don't set USB mode if user is a monkey"
Felipe Leme [Wed, 14 Feb 2018 02:09:09 +0000 (18:09 -0800)]
Re-added support for deprecated BIND_AUTOFILL permission.
This permission was renamed during the O previews but it was supported on the
final O release, so we need to carry it over.
Test: manual verification
Bug:
70682223
Change-Id: I24b41358fba7449d9216b49aa8b90480906cfb67
Sudheer Shanka [Wed, 14 Feb 2018 01:19:38 +0000 (17:19 -0800)]
Raise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter.
We don't want SHOW_ADMIN_SUPPORT_DETAILS intent to be handled
by other apps.
Bug:
69981936
Test: make -j32 RunSettingsRoboTests
Test: manual - Install another app which handles SHOW_ADMIN_SUPPORT_DETAILS
intent and verify that when SHOW_ADMIN_SUPPORT_DETAILS intent is
triggered, Settings activity gets launched.
Change-Id: I6f764fe53b32559da829d515dd448c817b6bf7c9
Jerry Zhang [Tue, 13 Feb 2018 23:58:14 +0000 (15:58 -0800)]
Don't set USB mode if user is a monkey
Test: tests pass
Fixes:
73246183
Change-Id: I9570c8bd8b11edd6eb0944a4aa766c22b4cc3619
TreeHugger Robot [Wed, 14 Feb 2018 00:33:59 +0000 (00:33 +0000)]
Merge "Introduce config_disable_uninstall_update flag."
TreeHugger Robot [Wed, 14 Feb 2018 00:14:09 +0000 (00:14 +0000)]
Merge "Add summary for hostspot when airplane is on."
TreeHugger Robot [Tue, 13 Feb 2018 22:51:32 +0000 (22:51 +0000)]
Merge "Mark AccessibilitySettings#update methods as protected."
TreeHugger Robot [Tue, 13 Feb 2018 22:46:07 +0000 (22:46 +0000)]
Merge "Update detector and action for restrict app"
Hemant Gupta [Tue, 13 Feb 2018 22:45:38 +0000 (22:45 +0000)]
Merge "OPP: Prevent sending intent while orientation change" am:
f32fa0b5f6 am:
def626bea0
am:
6385eb1014
Change-Id: I2589be4755ca02d2ff1265607c735ca2cf1332d1
Ben Lin [Thu, 8 Feb 2018 23:53:16 +0000 (15:53 -0800)]
Introduce config_disable_uninstall_update flag.
This adds the following flag:
config_disable_uninstall_update
Which by default is false. When set to true, it will hide the "Uninstall
updates" menu item for all cases.
This is useful for cases where the device OEMs want to allow users to
install apps, but do not want the ability to roll back updates on system
applications.
Bug:
62379281
Test: make RunSettingsRoboTests ROBOTEST_FILTER=AppInfoDashboardFragmentTest
Change-Id: I55fe92467ca95c05f6682174c117031d8295790e
TreeHugger Robot [Tue, 13 Feb 2018 22:31:39 +0000 (22:31 +0000)]
Merge "Remove the battery optimization menu"
jackqdyulei [Tue, 13 Feb 2018 22:21:12 +0000 (14:21 -0800)]
Add summary for hostspot when airplane is on.
Change-Id: I5470dab7050b73ed474abd5b948e873699819751
Fixes:
72716285
Test: RunSettingsRoboTests
Hemant Gupta [Tue, 13 Feb 2018 22:22:23 +0000 (22:22 +0000)]
Merge "OPP: Prevent sending intent while orientation change" am:
f32fa0b5f6
am:
def626bea0
Change-Id: I811e1801a145e9bb010359fdb8c74fb8ca968e7d
Hemant Gupta [Tue, 13 Feb 2018 22:10:34 +0000 (22:10 +0000)]
Merge "OPP: Prevent sending intent while orientation change"
am:
f32fa0b5f6
Change-Id: Id576b0cda560d565d86d6369b7552801cac7b0cd
TreeHugger Robot [Tue, 13 Feb 2018 22:05:32 +0000 (22:05 +0000)]
Merge "Add method to update "state" column in anomaly db."
Treehugger Robot [Tue, 13 Feb 2018 20:43:24 +0000 (20:43 +0000)]
Merge "OPP: Prevent sending intent while orientation change"
Lei Yu [Tue, 13 Feb 2018 20:37:55 +0000 (20:37 +0000)]
Merge "Upgrade the anomaly database."
jackqdyulei [Thu, 8 Feb 2018 18:07:11 +0000 (10:07 -0800)]
Update detector and action for restrict app
1. In detector, read data from database and display it.
2. Update the RestrictAppAction to mark anomaly as handled
if restriction is toggled.
3. Update the RestrictAppTip to handle state change.
Bug:
72385333
Test: RunSettingsRoboTests
Change-Id: I0bbe6f6fd049bf2e7a2bee1dee08d5199f922e31
TreeHugger Robot [Tue, 13 Feb 2018 20:31:48 +0000 (20:31 +0000)]
Merge "[Settings] Remove 'a' from "Set a PIN""
jackqdyulei [Tue, 13 Feb 2018 19:06:26 +0000 (11:06 -0800)]
Remove the battery optimization menu
Change-Id: I129f2c39dba506dabef2cf543e71f70cfd1e7fdf
Fixes:
73189468
Test: Test still pass
Hemant Gupta [Thu, 1 Feb 2018 13:50:29 +0000 (19:20 +0530)]
OPP: Prevent sending intent while orientation change
Steps:
1. Take any photo/picture and share it via Bluetooth
2. Before choosing remote device in Device Picker Activity, rotate
the device.
Expected result:
File transfer should complete after selecting the device.
Actual result:
The dialog "Bluetooth share: File Unknown file not sent" is shown and
file sharing fails.
Fix:
Add configuration related check in manifest to avoid activity restart during
orientation change.
Test: File transferred successfully after step 2
Fixes:
72715713
Change-Id: I045c2940d3788059c9313e5501a7957608d8879c
jackqdyulei [Mon, 12 Feb 2018 21:56:41 +0000 (13:56 -0800)]
Add method to update "state" column in anomaly db.
This state could be "new", "handled" or "auto-handled".
Bug:
72385333
Test: RunSettingsRoboTests
Change-Id: I2e3a9d2d3457f125421467e72f5b734990273abe
jackqdyulei [Tue, 13 Feb 2018 00:14:48 +0000 (16:14 -0800)]
Upgrade the anomaly database.
Add one column for the table. Since the database is not offically
used, we can just simply delete and recreate it.
Bug:
72385333
Test: Build
Change-Id: If999dbccbf168b05f98af5ab389c9e2cbb5ad2e8
Matthew Fritze [Mon, 12 Feb 2018 21:52:48 +0000 (13:52 -0800)]
Handle Looper in PreferenceController
When indexing content in search, the preference controllers
are init'd on the background thread, thus you can't create a
handler without calling Looper.prepare().
We have PreferenceConttrollerContractTest to catch these
errors, but it was not running in presubmit.
Bug tracking: b/
73242024
This caused the indexing thread to crash, thus
not adding any non-indexable keys for settings results.
Test: atest PreferenceControllerContractTest
Fixes:
73168342
Change-Id: I89fe596435d317bb3e3baebdaace97a67700d77e
TreeHugger Robot [Tue, 13 Feb 2018 11:07:11 +0000 (11:07 +0000)]
Merge "Add content description to suggestion card close button."
TreeHugger Robot [Tue, 13 Feb 2018 11:05:42 +0000 (11:05 +0000)]
Merge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 13 Feb 2018 04:07:14 +0000 (04:07 +0000)]
Merge "Disable "double tap to check" when "always on""
Jyun LuoLai [Fri, 9 Feb 2018 09:08:52 +0000 (17:08 +0800)]
[Settings] Remove 'a' from "Set a PIN"
Change-Id: Ic854ac0e87d486e3cc2723145e42a8894d7a9faf
Fixes:
72726923
Test: Manual test
Fan Zhang [Tue, 13 Feb 2018 01:08:34 +0000 (01:08 +0000)]
Merge "Change print setting from a dynamic tile to static pref"
Lucas Dupin [Sun, 11 Feb 2018 02:18:19 +0000 (18:18 -0800)]
Disable "double tap to check" when "always on"
"Double tap to check" has no effect when AOD is enabled.
Double tapping will take you to the lock screen anyway.
Test: manual
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DoubleTapScreenPreferenceControllerTest
Change-Id: Ia97b7ecb00a9d83b867959d83642d476841e2f13
Fixes:
73096311
Fan Zhang [Mon, 12 Feb 2018 23:28:13 +0000 (23:28 +0000)]
Merge "Fix intent launch flag"
Fan Zhang [Sat, 10 Feb 2018 00:39:27 +0000 (16:39 -0800)]
Change print setting from a dynamic tile to static pref
...because dynamic tile is a lot harder to index correctly.
- Removed metadata that makes PrintSettings a dynamic tile.
- Added PrintSettings into connected_device xml.
- Added a new PreferenceController - all summary updating logic is
copied from PrintSettingsFragment
Change-Id: I41e7c9d23e97ecd5a043ac7c33f2d404260c92e7
Fixes:
73128944
Test: robotests
Fan Zhang [Mon, 12 Feb 2018 22:26:47 +0000 (14:26 -0800)]
Fix instrumentation tests
Change-Id: I4f6891f095f4803e822b55a3f44d67ee4d173180
Fixes:
73242024
Test: atest
Leslie Watkins [Mon, 12 Feb 2018 22:13:48 +0000 (22:13 +0000)]
Merge "Remove all reference to SmsMirroring in Android Settings."
Leslie Watkins [Sat, 10 Feb 2018 00:43:06 +0000 (16:43 -0800)]
Remove all reference to SmsMirroring in Android Settings.
Test: Robotests
Change-Id: I3318c6915cae95522f09838f00a3c567fe9e5fc5
Fan Zhang [Mon, 12 Feb 2018 20:52:17 +0000 (12:52 -0800)]
Fix intent launch flag
Change-Id: I0cb744fcccc6fb9f6d0d338f726f3dd29dccc718
Fixes:
73224739
Test: manual
Bill Yi [Mon, 12 Feb 2018 20:16:59 +0000 (12:16 -0800)]
Import translations. DO NOT MERGE
Change-Id: I6a013e90dc650b43bedc6ce823d9315a7ebcf3e3
Auto-generated-cl: translation import
Doris Ling [Mon, 12 Feb 2018 19:40:03 +0000 (11:40 -0800)]
Add content description to suggestion card close button.
Change-Id: I2354dd5a4b092ac24bbc0c197bd228b73d8ede64
Fixes:
72958040
Test: talkback, make RunSettingsRoboTests
Victor Chang [Mon, 12 Feb 2018 10:38:40 +0000 (10:38 +0000)]
Merge "Use 24-hour settings for time formatting"
Pavlin Radoslavov [Sat, 10 Feb 2018 09:32:54 +0000 (09:32 +0000)]
Merge "Use proper string formatting for the "Active device" string" am:
f5848d0f4d am:
8018f82e5a
am:
ac8aed2ce8 -s ours
Change-Id: I282150ff2af7dbedd7e0199144ff7a282ffbff5f
Pavlin Radoslavov [Sat, 10 Feb 2018 09:22:38 +0000 (09:22 +0000)]
Merge "Use proper string formatting for the "Active device" string" am:
f5848d0f4d
am:
8018f82e5a
Change-Id: Iaf745544ca349cb5a0193b4dd0e46bcc89ff4e0c
Pavlin Radoslavov [Sat, 10 Feb 2018 09:12:16 +0000 (09:12 +0000)]
Merge "Use proper string formatting for the "Active device" string"
am:
f5848d0f4d
Change-Id: Ic34959c5ca44ad6d0ac06dfb76b3b07cd4bee819
Treehugger Robot [Sat, 10 Feb 2018 02:05:12 +0000 (02:05 +0000)]
Merge "Use proper string formatting for the "Active device" string"
TreeHugger Robot [Sat, 10 Feb 2018 00:31:17 +0000 (00:31 +0000)]
Merge "Add test to verify external account settings is shown."
Pavlin Radoslavov [Thu, 8 Feb 2018 01:23:12 +0000 (17:23 -0800)]
Use proper string formatting for the "Active device" string
Updated testContextMock() how it checks the bluetooth_connected string.
Bug:
72317067
Test: Unit test updated:
make ROBOTEST_FILTER=BluetoothDetailsHeaderControllerTest \
RunSettingsRoboTests
Manual: two headsets and switching the active device
Change-Id: I3db178d71543e4dfa437544350c58241860ae703
Merged-In: I3db178d71543e4dfa437544350c58241860ae703
(cherry picked from commit
b58b006e44ecf73ad31f79bade8149df7d903dc3)
TreeHugger Robot [Fri, 9 Feb 2018 22:39:30 +0000 (22:39 +0000)]
Merge "Fix double search icon in wifi calling page"
Doris Ling [Fri, 9 Feb 2018 22:27:06 +0000 (14:27 -0800)]
Add test to verify external account settings is shown.
- add a test service that provides a test authenticator and a test
preference screen. Creates corresponding test account and verifies that
the preferences defined in the authenticator is displayed from the
account detail page.
Change-Id: Iab87177ae500d0a36272cf8ecf464139a3dc07cd
Fixes:
35353708
Test: make SettingsUnitTests
TreeHugger Robot [Fri, 9 Feb 2018 22:13:39 +0000 (22:13 +0000)]
Merge "Increase timeout waiting for suggestions"
Amith Yamasani [Fri, 9 Feb 2018 20:41:59 +0000 (20:41 +0000)]
Merge "Update Inactive Apps screen to show buckets"
Fan Zhang [Fri, 9 Feb 2018 20:24:04 +0000 (12:24 -0800)]
Increase timeout waiting for suggestions
- Experimenting timeout value to figure out what's most common
end-to-end latency for loading suggestions
Change-Id: Icaa3d4d7a45a05380a9521c961e7213e020601a9
Fixes:
69068691
Test: visual
Fan Zhang [Fri, 9 Feb 2018 18:25:55 +0000 (10:25 -0800)]
Fix double search icon in wifi calling page
- Moved fragments into wifi sub-package.
- Cleaned up inheritance for WifiCallingSettings
- Attach help and search action menu controller correctly.
Change-Id: I0bc8ab99df5d8c5ea64fb64de5ae70c2c9bd6f31
Fixes:
72958674
Test: robotest
Victor Chang [Thu, 1 Feb 2018 17:54:16 +0000 (17:54 +0000)]
Use 24-hour settings for time formatting
Test: m RunSettingsRoboTests
Bug:
72311296
Change-Id: I7c1458dbc2e4e15765f703c35a0113341b912a2b
TreeHugger Robot [Fri, 9 Feb 2018 01:35:18 +0000 (01:35 +0000)]
Merge changes Ib3d3df9f,Iae9096a1
* changes:
Use BatterySaverReceiver in battery saver settings
Add controller for battery saver button
TreeHugger Robot [Fri, 9 Feb 2018 00:11:41 +0000 (00:11 +0000)]
Merge "Add test to verify Users settings shows in secondary user."
TreeHugger Robot [Thu, 8 Feb 2018 23:24:49 +0000 (23:24 +0000)]
Merge "Fix developer option not being enabled."
jackqdyulei [Tue, 6 Feb 2018 22:03:30 +0000 (14:03 -0800)]
Use BatterySaverReceiver in battery saver settings
Use this receiver to listen to following updates:
1. Plug state: if it is plugged in, disable this two state
button, otherwise make it enabled
2. low power mode: If mode on, show "turn off" otherwise show
"turn on"
Bug:
72228477
Test: RunSettingsRoboTests
Change-Id: Ib3d3df9f9a5fbac8b1b876c9e193beb75f522ebd
jackqdyulei [Thu, 25 Jan 2018 03:42:42 +0000 (19:42 -0800)]
Add controller for battery saver button
Bug:
72228477
Test: RunSettingsRoboTests
Change-Id: Iae9096a10553ea761d099e1e72c1de56b693bac0
TreeHugger Robot [Thu, 8 Feb 2018 22:47:52 +0000 (22:47 +0000)]
Merge "Use proper string formatting for the "Active device" string"
Doris Ling [Thu, 8 Feb 2018 01:28:43 +0000 (17:28 -0800)]
Add test to verify Users settings shows in secondary user.
- also update launch sequence for Users settings tests as Users settings
has been moved inside system settings and the preference title has
changed.
- and change the test to run with AndroidJUnit4.
Change-Id: I049b83f9ae4b2724608af267e8900dd9e6749874
Fixes:
34774778
Test: make SettingsUnitTests
Fan Zhang [Thu, 8 Feb 2018 21:51:50 +0000 (21:51 +0000)]
Merge "Move restriction check for dev settings into controller"
Doris Ling [Thu, 8 Feb 2018 21:17:54 +0000 (13:17 -0800)]
Fix developer option not being enabled.
- when screen lock is set, we will start the activity to check user's
credential. Override onActivityResult() and call BuildNumberPreferenceController's
method accordingly, so that we will checks the password confirm result and enable
the developer options if it is success.
Change-Id: Ie2df644c53430ad4eb394480348d956177804ec3
Fixes:
73102865
Test: make RunSettingsRoboTests