OSDN Git Service

android-x86/packages-apps-Settings.git
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 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 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 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 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 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

6 years agoUse new OverlayManager categories
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

6 years ago[Settings] Update margin of summary of ring volumn
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

6 years agoMerge "Don't set USB mode if user is a monkey"
TreeHugger Robot [Wed, 14 Feb 2018 02:35:10 +0000 (02:35 +0000)]
Merge "Don't set USB mode if user is a monkey"

6 years agoRe-added support for deprecated BIND_AUTOFILL permission.
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

6 years agoRaise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter.
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

6 years agoDon't set USB mode if user is a monkey
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

6 years agoMerge "Introduce config_disable_uninstall_update flag."
TreeHugger Robot [Wed, 14 Feb 2018 00:33:59 +0000 (00:33 +0000)]
Merge "Introduce config_disable_uninstall_update flag."

6 years agoMerge "Add summary for hostspot when airplane is on."
TreeHugger Robot [Wed, 14 Feb 2018 00:14:09 +0000 (00:14 +0000)]
Merge "Add summary for hostspot when airplane is on."

6 years agoMerge "Mark AccessibilitySettings#update methods as protected."
TreeHugger Robot [Tue, 13 Feb 2018 22:51:32 +0000 (22:51 +0000)]
Merge "Mark AccessibilitySettings#update methods as protected."

6 years agoMerge "Update detector and action for restrict app"
TreeHugger Robot [Tue, 13 Feb 2018 22:46:07 +0000 (22:46 +0000)]
Merge "Update detector and action for restrict app"

6 years agoMerge "OPP: Prevent sending intent while orientation change" am: f32fa0b5f6 am: def62...
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

6 years agoIntroduce config_disable_uninstall_update flag.
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

6 years agoMerge "Remove the battery optimization menu"
TreeHugger Robot [Tue, 13 Feb 2018 22:31:39 +0000 (22:31 +0000)]
Merge "Remove the battery optimization menu"

6 years agoAdd summary for hostspot when airplane is on.
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

6 years agoMerge "OPP: Prevent sending intent while orientation change" am: f32fa0b5f6
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

6 years agoMerge "OPP: Prevent sending intent while orientation change"
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

6 years agoMerge "Add method to update "state" column in anomaly db."
TreeHugger Robot [Tue, 13 Feb 2018 22:05:32 +0000 (22:05 +0000)]
Merge "Add method to update "state" column in anomaly db."

6 years agoMerge "OPP: Prevent sending intent while orientation change"
Treehugger Robot [Tue, 13 Feb 2018 20:43:24 +0000 (20:43 +0000)]
Merge "OPP: Prevent sending intent while orientation change"

6 years agoMerge "Upgrade the anomaly database."
Lei Yu [Tue, 13 Feb 2018 20:37:55 +0000 (20:37 +0000)]
Merge "Upgrade the anomaly database."

6 years agoUpdate detector and action for restrict app
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

6 years agoMerge "[Settings] Remove 'a' from "Set a PIN""
TreeHugger Robot [Tue, 13 Feb 2018 20:31:48 +0000 (20:31 +0000)]
Merge "[Settings] Remove 'a' from "Set a PIN""

6 years agoRemove the battery optimization menu
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

6 years agoOPP: Prevent sending intent while orientation change
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

6 years agoAdd method to update "state" column in anomaly db.
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

6 years agoUpgrade the anomaly database.
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

6 years agoHandle Looper in PreferenceController
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

6 years agoMerge "Add content description to suggestion card close button."
TreeHugger Robot [Tue, 13 Feb 2018 11:07:11 +0000 (11:07 +0000)]
Merge "Add content description to suggestion card close button."

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

6 years agoMerge "Disable "double tap to check" when "always on""
TreeHugger Robot [Tue, 13 Feb 2018 04:07:14 +0000 (04:07 +0000)]
Merge "Disable "double tap to check" when "always on""

6 years ago[Settings] Remove 'a' from "Set a PIN"
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

6 years agoMerge "Change print setting from a dynamic tile to static pref"
Fan Zhang [Tue, 13 Feb 2018 01:08:34 +0000 (01:08 +0000)]
Merge "Change print setting from a dynamic tile to static pref"