OSDN Git Service

android-x86/packages-apps-Settings.git
6 years agoMerge changes from topics "ww_4_delete_data", "ww_3_checkconfig", "ww_2_uploadIntent...
Lei Yu [Thu, 22 Feb 2018 20:27:00 +0000 (20:27 +0000)]
Merge changes from topics "ww_4_delete_data", "ww_3_checkconfig", "ww_2_uploadIntent", "ww_1_receiver"

* changes:
  Add JobService to delete obsolete anomaly data
  Add code to handle anomaly config update
  Add AnomalyConfigReceiver
  Add AnomalyDetectionReceiver

6 years agoMerge "Add QS dev tiles to active tiles area when enabling it from dev options"
Vishnu Nair [Thu, 22 Feb 2018 19:13:18 +0000 (19:13 +0000)]
Merge "Add QS dev tiles to active tiles area when enabling it from dev options"

6 years agoMerge "Add policy disclosure for printing."
Vladislav Kuzkokov [Thu, 22 Feb 2018 14:54:36 +0000 (14:54 +0000)]
Merge "Add policy disclosure for printing."

6 years agoMerge "Add BatterySaver as SettingSlice"
TreeHugger Robot [Wed, 21 Feb 2018 23:37:35 +0000 (23:37 +0000)]
Merge "Add BatterySaver as SettingSlice"

6 years agoMerge "Add UsbDefaultFragment and tests"
Jerry Zhang [Wed, 21 Feb 2018 21:13:03 +0000 (21:13 +0000)]
Merge "Add UsbDefaultFragment and tests"

6 years agoAdd QS dev tiles to active tiles area when enabling it from dev options
Vishnu Nair [Wed, 21 Feb 2018 20:57:56 +0000 (12:57 -0800)]
Add QS dev tiles to active tiles area when enabling it from dev options

Bug: 73496681
Test: make RunSettingsRoboTests ROBOTEST_FILTER=DevelopmentTilePreferenceControllerTest
Test: flash device and manually test by enabling dev options

Change-Id: Ib7f53128c79de9550d4f68274312e731c01ebd4f

6 years agoMerge "Add Open button to launch instant app."
TreeHugger Robot [Wed, 21 Feb 2018 20:57:36 +0000 (20:57 +0000)]
Merge "Add Open button to launch instant app."

6 years agoMerge changes If1b263df,I95afbcf0
Fan Zhang [Wed, 21 Feb 2018 20:53:49 +0000 (20:53 +0000)]
Merge changes If1b263df,I95afbcf0

* changes:
  Move instantiation-through-reflection method to controller
  Minor cleanup in DashboardFragment: remove unused code

6 years agoAdd JobService to delete obsolete anomaly data
jackqdyulei [Fri, 16 Feb 2018 18:06:08 +0000 (10:06 -0800)]
Add JobService to delete obsolete anomaly data

Bug: 72385333
Test: RunSettingsRoboTests
Change-Id: I73e16b9785fe0e832acc9e4256c8f9fd1333721e

6 years agoAdd code to handle anomaly config update
jackqdyulei [Fri, 2 Feb 2018 18:29:40 +0000 (10:29 -0800)]
Add code to handle anomaly config update

Store a local version number in Settings. If new version comes,
upload config to StatsManager.

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: I03f5ee6f6e013746397d39b8d2b52ce587825b11

6 years agoAdd AnomalyConfigReceiver
jackqdyulei [Thu, 1 Feb 2018 04:24:47 +0000 (20:24 -0800)]
Add AnomalyConfigReceiver

This receiver receives the following intent:
1. android.app.action.STATSD_STARTED
2. android.intent.action.BOOT_COMPLETED

Also it does:
1. Check whether to upload/update config(future cl)
2. Send PendingIntent to StatsManager

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: Iff7240663ecc1e080581683743b3027093945566

6 years agoAdd AnomalyDetectionReceiver
jackqdyulei [Tue, 30 Jan 2018 03:20:37 +0000 (19:20 -0800)]
Add AnomalyDetectionReceiver

This BroadcastReceiver is triggered when anomaly happens. Inside it
we need to extract anomaly info and store it in the database.

Bug: 72385333
Test: Will add robo test once robo framework is updated(b/73172999)
Change-Id: Ib36af377fa2dff8026e7f0fcbec9575366e39cf9

6 years agoMerge "Update launch component for work mode condition."
TreeHugger Robot [Wed, 21 Feb 2018 20:19:59 +0000 (20:19 +0000)]
Merge "Update launch component for work mode condition."

6 years agoMerge "Remove use of forceUpdate."
TreeHugger Robot [Wed, 21 Feb 2018 20:16:00 +0000 (20:16 +0000)]
Merge "Remove use of forceUpdate."

6 years agoMerge "Change def value for LOW_POWER_MODE_TRIGGER_LEVEL"
TreeHugger Robot [Wed, 21 Feb 2018 19:55:16 +0000 (19:55 +0000)]
Merge "Change def value for LOW_POWER_MODE_TRIGGER_LEVEL"

6 years agoMove instantiation-through-reflection method to controller
Fan Zhang [Wed, 21 Feb 2018 19:28:41 +0000 (11:28 -0800)]
Move instantiation-through-reflection method to controller

Bug: 73668763
Test: rerun robotest
Change-Id: If1b263dfd6a8c40f563ce53ce3f368aef5ca5a9f

6 years agoAdd BatterySaver as SettingSlice
Matthew Fritze [Wed, 21 Feb 2018 02:27:26 +0000 (18:27 -0800)]
Add BatterySaver as SettingSlice

Convert BatterySaverController to TogglePrefController.
This was the first MasterSwitchController, so we needed
to add the preference case to updateState.

Test: Robotests
Change-Id: I32f3dee0b183807c66c19513b8b064af8f369c2a
Fixes: 67996992

6 years agoAdd UsbDefaultFragment and tests
Jerry Zhang [Tue, 13 Feb 2018 02:26:15 +0000 (18:26 -0800)]
Add UsbDefaultFragment and tests

Replace old USB screen in developer options with
UsbDefaultFragment.

Test: pass
Bug: 62876645
Change-Id: I8428a2814b7e1abd7d0fa9fa9980dbc02cfa0034

6 years agoMerge changes from topic "move-a11y-changes"
Ben Lin [Wed, 21 Feb 2018 18:18:57 +0000 (18:18 +0000)]
Merge changes from topic "move-a11y-changes"

* changes:
  Revert "Add ability to show/hide Color Correction and Color Inversion."
  Revert "Add ability to show/hide accessibility_shortcut_preference."

6 years agoChange def value for LOW_POWER_MODE_TRIGGER_LEVEL
jackqdyulei [Wed, 21 Feb 2018 02:15:24 +0000 (18:15 -0800)]
Change def value for LOW_POWER_MODE_TRIGGER_LEVEL

Fixes: 73668682
Test: RunSettingsRoboTests
Change-Id: I2122523c958f12bbdd658ae53d63b00769db3520

6 years agoMerge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8...
Fan Zhang [Wed, 21 Feb 2018 18:04:26 +0000 (18:04 +0000)]
Merge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8d am: e1c58570d6
am: 935ce87d32

Change-Id: I4ad47e788c1ab591dc82a031ef22dadc65bf8582

6 years agoMerge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8d
Fan Zhang [Wed, 21 Feb 2018 17:55:50 +0000 (17:55 +0000)]
Merge "Wifi: Restore hidden flag for hidden networks on update network" am: 0138575b8d
am: e1c58570d6

Change-Id: Ice03d80eedf64fb08a12471b22bfdff53b4f934b

6 years agoMinor cleanup in DashboardFragment: remove unused code
Fan Zhang [Wed, 21 Feb 2018 17:37:10 +0000 (09:37 -0800)]
Minor cleanup in DashboardFragment: remove unused code

Bug: 73668763
Test: n/a
Change-Id: I95afbcf03987123e4ed8b76efbed299a7beb4448

6 years agoMerge "Wifi: Restore hidden flag for hidden networks on update network"
Fan Zhang [Wed, 21 Feb 2018 17:47:12 +0000 (17:47 +0000)]
Merge "Wifi: Restore hidden flag for hidden networks on update network"
am: 0138575b8d

Change-Id: Ifda4b13017d4fc74f6fabfa5f91b3bda9177fb47

6 years agoMerge "Wifi: Restore hidden flag for hidden networks on update network"
Fan Zhang [Wed, 21 Feb 2018 17:36:06 +0000 (17:36 +0000)]
Merge "Wifi: Restore hidden flag for hidden networks on update network"

6 years agoAdd policy disclosure for printing.
Vladislav Kuzkokov [Mon, 19 Feb 2018 15:47:12 +0000 (16:47 +0100)]
Add policy disclosure for printing.

Bug: 64140119
Test: make -j40 RunSettingsRoboTests
Change-Id: Ib453c492f1dc9e6f9bd4019104dfd3eafcd0a8b4

6 years agoMerge "Push app icon 4 dp to the right."
TreeHugger Robot [Wed, 21 Feb 2018 07:09:32 +0000 (07:09 +0000)]
Merge "Push app icon 4 dp to the right."

6 years agoMerge "Move xmlParserUtils to core"
TreeHugger Robot [Wed, 21 Feb 2018 03:34:37 +0000 (03:34 +0000)]
Merge "Move xmlParserUtils to core"

6 years agoMerge "Update suggestion/condition UI"
TreeHugger Robot [Wed, 21 Feb 2018 03:13:46 +0000 (03:13 +0000)]
Merge "Update suggestion/condition UI"

6 years agoMerge "Convert VibrationSettings to DashboardFragment."
Fan Zhang [Wed, 21 Feb 2018 02:18:56 +0000 (02:18 +0000)]
Merge "Convert VibrationSettings to DashboardFragment."

6 years agoUpdate launch component for work mode condition.
Doris Ling [Wed, 21 Feb 2018 01:38:48 +0000 (17:38 -0800)]
Update launch component for work mode condition.

- start accounts dashboard instead of users settings.

Change-Id: I1365e6c32ac3de23c24b75e33262957e4a4224a9
Fixes: 73651609
Test: make RunSettingsRoboTests

6 years agoMove xmlParserUtils to core
Fan Zhang [Wed, 21 Feb 2018 01:43:28 +0000 (17:43 -0800)]
Move xmlParserUtils to core

This class is currently used by both search and slice, in the future
will be used by DashboardFragment to build controller list. So the scope
of this class is beyond search now.

Test: rerun robotests
Change-Id: If43ebca065aac31ad24f95a94bfe5be784109605

6 years agoPush app icon 4 dp to the right.
Fan Zhang [Wed, 21 Feb 2018 01:39:05 +0000 (17:39 -0800)]
Push app icon 4 dp to the right.

- This makes the icon for AppPreference center aligned.

Change-Id: I2624f376d7637fe49b8bc629e87cb55c3b6271cd
Fixes: 72710732
Test: visual

6 years agoMerge "Put Security-related controllers into a PreferenceCategoryController."
TreeHugger Robot [Wed, 21 Feb 2018 01:08:31 +0000 (01:08 +0000)]
Merge "Put Security-related controllers into a PreferenceCategoryController."

6 years agoConvert VibrationSettings to DashboardFragment.
Fan Zhang [Tue, 20 Feb 2018 22:33:58 +0000 (14:33 -0800)]
Convert VibrationSettings to DashboardFragment.

- DashboardFragment integrates Slices and settings search better than
  SettingsPreferenceFragment, and is more testable.

Test: robotests
Change-Id: I5f73836f94712c03521eac6b3f67964524381078

6 years agoMerge "Fix search highlight"
Fan Zhang [Tue, 20 Feb 2018 23:38:46 +0000 (23:38 +0000)]
Merge "Fix search highlight"

6 years agoUpdate suggestion/condition UI
Doris Ling [Tue, 20 Feb 2018 23:30:47 +0000 (15:30 -0800)]
Update suggestion/condition UI

- reduce top padding for suggestion container
- match condition card corner radius with suggestion card.
- change condition card background color to white
- update suggestion title font from medium to regular.

Change-Id: I0267b37822facf4bd389e2b21c47a1fcf0d00264
Fixes: 70573674
Test: visual

6 years agoAdd Open button to launch instant app.
Doris Ling [Tue, 20 Feb 2018 21:36:40 +0000 (13:36 -0800)]
Add Open button to launch instant app.

- move logic from InstantAppButtonsController into
InstantAppButtonsPreferenceController, as it is not really necessary to
have separate control to be in different class.
- add logic to check if the instant app provides a default launch uri.
If so, show a Open button to launch the uri, and move the Install
button into option menu. If not, Install button remains as is.
- also update the instant app button layout to match the regular 2
buttons layout.

Change-Id: Ibcae780ad697ca93a48604b03c8f4600dd3c0472
Fixes: 69562807
Test: make RunSettingsRoboTests

6 years agoFix search highlight
Fan Zhang [Tue, 20 Feb 2018 19:25:56 +0000 (11:25 -0800)]
Fix search highlight

- Fragments should not have advanced button when coming from search.

Change-Id: I10a192216b7ff702e73b791acbcc1eb1d71cb407
Fixes: 73348428
Test: robotests

6 years agoMerge "Get rid of direct usage of Utils.onBuildStartFragmentIntent"
TreeHugger Robot [Tue, 20 Feb 2018 21:03:04 +0000 (21:03 +0000)]
Merge "Get rid of direct usage of Utils.onBuildStartFragmentIntent"

6 years agoMerge changes I34732bdb,Ieafd3be6
Fan Zhang [Tue, 20 Feb 2018 20:02:29 +0000 (20:02 +0000)]
Merge changes I34732bdb,Ieafd3be6

* changes:
  Remove some unused code
  Remove unused slice metadata

6 years agoMerge "Update FakeUid for new methods"
TreeHugger Robot [Tue, 20 Feb 2018 18:52:24 +0000 (18:52 +0000)]
Merge "Update FakeUid for new methods"

6 years agoRemove some unused code
Fan Zhang [Tue, 20 Feb 2018 18:18:54 +0000 (10:18 -0800)]
Remove some unused code

Bug: n/a
Test: rebuild
Change-Id: I34732bdbf59d8380bef50f9a5da8b974375ea345

6 years agoImport translations. DO NOT MERGE am: 3b4a3e0a0f -s ours
Bill Yi [Tue, 20 Feb 2018 18:16:41 +0000 (18:16 +0000)]
Import translations. DO NOT MERGE am: 3b4a3e0a0f  -s ours
am: 1bc57cbf3c  -s ours

Change-Id: I153443f06806810009bf5bc735104471df8ab98b

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 20 Feb 2018 18:09:10 +0000 (18:09 +0000)]
Import translations. DO NOT MERGE
am: 3b4a3e0a0f  -s ours

Change-Id: I68a6f27af09691e2a27712ecab8c876f5eb26283

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 20 Feb 2018 18:05:49 +0000 (18:05 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Migrate more places to subsetting launcher"
TreeHugger Robot [Tue, 20 Feb 2018 17:57:53 +0000 (17:57 +0000)]
Merge "Migrate more places to subsetting launcher"

6 years agoRemove unused slice metadata
Fan Zhang [Tue, 20 Feb 2018 17:57:42 +0000 (09:57 -0800)]
Remove unused slice metadata

Bug: n/a
Test: n/a
Change-Id: Ieafd3be6418e9b9217e0c56094d7ee4a8fcff851

6 years agoGet rid of direct usage of Utils.onBuildStartFragmentIntent
Fan Zhang [Mon, 19 Feb 2018 22:31:50 +0000 (14:31 -0800)]
Get rid of direct usage of Utils.onBuildStartFragmentIntent

Change-Id: I87eb97d6da4cd4f99be5bcdb1e3e245eb1c7bd1c
Fixes: 73250851
Test: robotests

6 years agoMerge "Change the order of battery tips"
Lei Yu [Tue, 20 Feb 2018 17:06:18 +0000 (17:06 +0000)]
Merge "Change the order of battery tips"

6 years agoMerge "Remove uses of libcore.util.Objects.hashCode / equals."
Narayan Kamath [Tue, 20 Feb 2018 13:55:53 +0000 (13:55 +0000)]
Merge "Remove uses of libcore.util.Objects.hashCode / equals."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 20 Feb 2018 08:57:01 +0000 (00:57 -0800)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1e41ebfa49aad56d5fad9889dcea6f487457400d

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 20 Feb 2018 07:57:46 +0000 (23:57 -0800)]
Import translations. DO NOT MERGE

Change-Id: I2b9dfc6b51a0a18e420e9dcee21b7fc466ae458c
Auto-generated-cl: translation import

6 years agoWifi: Restore hidden flag for hidden networks on update network
Anurag Das [Mon, 18 Dec 2017 09:17:01 +0000 (14:47 +0530)]
Wifi: Restore hidden flag for hidden networks on update network

Currently when user modifies any of the network parameter for hidden
networks, hidden flag is not updated. As a result this network is no
longer part of hidden networks, we are unable to reconnect when user
triggers wifi off and on.

This commit sets the value of hiddenSSID flag of config at the Settings
side on network update.

Test: manual test with hidden access point
Bug: 73256783

Change-Id: Ic20f03345645d8bf3bc9c3ff44910dd3f2797fec

6 years agoMerge "Migrate more settings to SubSettingsLauncher"
TreeHugger Robot [Mon, 19 Feb 2018 23:11:09 +0000 (23:11 +0000)]
Merge "Migrate more settings to SubSettingsLauncher"

6 years agoMigrate more places to subsetting launcher
Fan Zhang [Mon, 19 Feb 2018 21:54:09 +0000 (13:54 -0800)]
Migrate more places to subsetting launcher

Bug: 73250851
Test: robotests
Change-Id: Iaf29df45ddb42fd58f181cb01e10998a97cb7c34

6 years agoMigrate more settings to SubSettingsLauncher
Fan Zhang [Sat, 17 Feb 2018 01:01:17 +0000 (17:01 -0800)]
Migrate more settings to SubSettingsLauncher

Bug: 73250851
Test: robotests
Change-Id: I4100bef20e2ed477e4e31c9b7816f1b03f3f2809

6 years agoMerge "Migrate more settings to SubSettingLauncher"
TreeHugger Robot [Mon, 19 Feb 2018 20:18:01 +0000 (20:18 +0000)]
Merge "Migrate more settings to SubSettingLauncher"

6 years agoRemove uses of libcore.util.Objects.hashCode / equals.
Narayan Kamath [Mon, 19 Feb 2018 14:09:56 +0000 (14:09 +0000)]
Remove uses of libcore.util.Objects.hashCode / equals.

Use public API in java.util.Objects instead.

Test: make
Change-Id: I2644164cc8ae5a6a25339abf7f2ed6e1c428c4ac

6 years agoMerge "Migrate more settings to use SubSettingsLauncher"
TreeHugger Robot [Mon, 19 Feb 2018 06:45:02 +0000 (06:45 +0000)]
Merge "Migrate more settings to use SubSettingsLauncher"

6 years agoMigrate more settings to SubSettingLauncher
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

6 years agoMigrate more settings to use SubSettingsLauncher
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

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 19 Feb 2018 03:26:26 +0000 (03:26 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoImport translations. DO NOT MERGE am: 27f30d2f46 -s ours
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

6 years agoImport translations. DO NOT MERGE
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

6 years agoMerge "[Settings] Add focus for SSIDtext to show IME"
TreeHugger Robot [Sat, 17 Feb 2018 17:52:57 +0000 (17:52 +0000)]
Merge "[Settings] Add focus for SSIDtext to show IME"

6 years agoMerge "[Settings] Update margin of summary of ring volumn"
TreeHugger Robot [Sat, 17 Feb 2018 10:55:25 +0000 (10:55 +0000)]
Merge "[Settings] Update margin of summary of ring volumn"

6 years agoImport translations. DO NOT MERGE
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

6 years agoImport translations. DO NOT MERGE
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

6 years agoMerge "Allow extras to be passed to app info subscreens"
TreeHugger Robot [Sat, 17 Feb 2018 03:48:02 +0000 (03:48 +0000)]
Merge "Allow extras to be passed to app info subscreens"

6 years agoMerge "Make BatteryDatabaseManager singleton"
TreeHugger Robot [Sat, 17 Feb 2018 02:33:14 +0000 (02:33 +0000)]
Merge "Make BatteryDatabaseManager singleton"

6 years agoUpdate FakeUid for new methods
Amith Yamasani [Fri, 16 Feb 2018 19:30:18 +0000 (11:30 -0800)]
Update FakeUid for new methods

Bug: 70297451
Test: N/A

Change-Id: I8a9db76c85df2b3e3c5027f52d36914ad338aa35

6 years agoChange the order of battery tips
jackqdyulei [Fri, 16 Feb 2018 22:57:10 +0000 (14:57 -0800)]
Change the order of battery tips

Bug: 72492206
Test: RunSettingsRoboTests
Change-Id: I27b2d5c27fbac2259d9ee483b755ac799dd0de68

6 years agoPut Security-related controllers into a PreferenceCategoryController.
Ben Lin [Fri, 16 Feb 2018 23:26:13 +0000 (15:26 -0800)]
Put Security-related controllers into a PreferenceCategoryController.

This way when everything is hidden in security, the whole category is
hidden also.

Bug: None
Test: Robotests
Change-Id: Ib4120975133df7910c5d5229a82d4052364501ac

6 years agoRevert "Add ability to show/hide Color Correction and Color Inversion."
Ben Lin [Fri, 16 Feb 2018 22:14:59 +0000 (22:14 +0000)]
Revert "Add ability to show/hide Color Correction and Color Inversion."

This reverts commit f1346930bc18530940e464b4eb772d7717763a40.

Reason for revert: Moving logic elsewhere.

Change-Id: Ia07b3f4c33e0078e8f35c69d5ed51daf197ff165

6 years agoMerge "Raise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter."
Sudheer Shanka [Fri, 16 Feb 2018 23:05:25 +0000 (23:05 +0000)]
Merge "Raise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter."

6 years agoMerge "Use new OverlayManager categories"
Adrian Roos [Fri, 16 Feb 2018 22:47:11 +0000 (22:47 +0000)]
Merge "Use new OverlayManager categories"

6 years agoRevert "Add ability to show/hide accessibility_shortcut_preference."
Ben Lin [Fri, 16 Feb 2018 22:23:03 +0000 (22:23 +0000)]
Revert "Add ability to show/hide accessibility_shortcut_preference."

This reverts commit 4983dc1227dd3fd0c5b70ca397bdb287884478dc.

Reason for revert: Moving logic somewhere else.

Change-Id: I2f2e3ac6545e8599de32afb1fe6f6d108601e37d

6 years agoMerge changes I1c3620d3,Ic0bf23f6
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

6 years agoMerge "Fix a failing robotest"
Fan Zhang [Fri, 16 Feb 2018 16:51:29 +0000 (16:51 +0000)]
Merge "Fix a failing robotest"

6 years agoMerge "Add string for instant app launch button."
Fan Zhang [Fri, 16 Feb 2018 05:54:41 +0000 (05:54 +0000)]
Merge "Add string for instant app launch button."

6 years agoMerge "Ignore null value in Account settings summary."
Fan Zhang [Fri, 16 Feb 2018 05:54:03 +0000 (05:54 +0000)]
Merge "Ignore null value in Account settings summary."

6 years agoFix a failing robotest
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

6 years agoMerge "Refactor Utils.startWithFragment to SubSettingLauncher"
Fan Zhang [Fri, 16 Feb 2018 04:49:41 +0000 (04:49 +0000)]
Merge "Refactor Utils.startWithFragment to SubSettingLauncher"

6 years agoMove some subsetting launch 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

6 years agoMigrate more subsetting launching to SubSettingLauncher
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

6 years agoRefactor Utils.startWithFragment to SubSettingLauncher
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

6 years agoAdd string for instant app launch button.
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

6 years agoAllow extras to be passed to app info subscreens
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

6 years agoIgnore null value in Account settings summary.
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

6 years agoRemove IA mapping for old connected device page
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

6 years agoMerge "Centralize the automatic storage manager on check."
TreeHugger Robot [Thu, 15 Feb 2018 03:46:19 +0000 (03:46 +0000)]
Merge "Centralize the automatic storage manager on check."

6 years agoMerge "Add android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS"
TreeHugger Robot [Wed, 14 Feb 2018 23:53:28 +0000 (23:53 +0000)]
Merge "Add android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS"

6 years agoMake BatteryDatabaseManager singleton
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

6 years agoAdd android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS
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

6 years agoCentralize the automatic storage manager on check.
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

6 years agoMerge "Re-added support for deprecated BIND_AUTOFILL permission."
TreeHugger Robot [Wed, 14 Feb 2018 17:34:56 +0000 (17:34 +0000)]
Merge "Re-added support for deprecated BIND_AUTOFILL permission."

6 years agoMerge "Handle Looper in PreferenceController"
TreeHugger Robot [Wed, 14 Feb 2018 17:22:55 +0000 (17:22 +0000)]
Merge "Handle Looper in PreferenceController"

6 years agoMerge "Fix instrumentation tests"
TreeHugger Robot [Wed, 14 Feb 2018 17:22:55 +0000 (17:22 +0000)]
Merge "Fix instrumentation tests"

6 years ago[Settings] Add focus for SSIDtext to show IME
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