Commit Graph

42876 Commits

Author SHA1 Message Date
TreeHugger Robot
01ff684c3e Merge "Migrate more settings to use SubSettingsLauncher" 2018-02-19 06:45:02 +00:00
Fan Zhang
b1d6c76b53 Migrate more settings to SubSettingLauncher
Bug: 73250851
Test: robotest
Change-Id: Ifc27b90d68bf4a907f169e19338e9b52ea5f9922
2018-02-18 21:10:03 -08:00
Fan Zhang
7cf99f5f12 Migrate more settings to use SubSettingsLauncher
Bug: 73250851
Test: robotests
Change-Id: I08f6f380489646231d6d8ceb1488e2efb036bf69
2018-02-18 21:10:03 -08:00
TreeHugger Robot
8458b19717 Merge "Import translations. DO NOT MERGE" 2018-02-19 03:26:26 +00:00
Bill Yi
9e68fbf2dc Import translations. DO NOT MERGE am: 27f30d2f46 -s ours
am: 9843b2e552  -s ours

Change-Id: I4e7ec3a5349efff5ec801993ca96b8578f045c10
2018-02-18 17:42:03 +00:00
Bill Yi
9843b2e552 Import translations. DO NOT MERGE
am: 27f30d2f46  -s ours

Change-Id: I02d655e5e18147b0cc6a95069db935ed39b1719d
2018-02-18 17:32:29 +00:00
TreeHugger Robot
6f367a79ce Merge "[Settings] Add focus for SSIDtext to show IME" 2018-02-17 17:52:57 +00:00
TreeHugger Robot
aa9126c5f0 Merge "[Settings] Update margin of summary of ring volumn" 2018-02-17 10:55:25 +00:00
Bill Yi
27f30d2f46 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia171cb822fd79c5828a9042873f4b52b6e9c6541
2018-02-16 23:15:09 -08:00
Bill Yi
7e7c5366b8 Import translations. DO NOT MERGE
Change-Id: I09b555b14e3825d857a3c67cc9b5c946fdfa4cf6
Auto-generated-cl: translation import
2018-02-16 22:18:15 -08:00
TreeHugger Robot
657270aba1 Merge "Allow extras to be passed to app info subscreens" 2018-02-17 03:48:02 +00:00
TreeHugger Robot
feec804395 Merge "Make BatteryDatabaseManager singleton" 2018-02-17 02:33:14 +00:00
Amith Yamasani
7366878829 Update FakeUid for new methods
Bug: 70297451
Test: N/A

Change-Id: I8a9db76c85df2b3e3c5027f52d36914ad338aa35
2018-02-16 16:39:30 -08:00
jackqdyulei
f8ef23b63e Change the order of battery tips
Bug: 72492206
Test: RunSettingsRoboTests
Change-Id: I27b2d5c27fbac2259d9ee483b755ac799dd0de68
2018-02-16 16:37:55 -08:00
Ben Lin
7d5a53f03c 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
2018-02-16 15:26:13 -08:00
Ben Lin
c64531bbce Revert "Add ability to show/hide Color Correction and Color Inversion."
This reverts commit f1346930bc.

Reason for revert: Moving logic elsewhere.

Change-Id: Ia07b3f4c33e0078e8f35c69d5ed51daf197ff165
2018-02-16 15:10:11 -08:00
Sudheer Shanka
42c80f0b01 Merge "Raise priority of SHOW_ADMIN_SUPPORT_DETAILS intent filter." 2018-02-16 23:05:25 +00:00
Adrian Roos
5bc4bdf35c Merge "Use new OverlayManager categories" 2018-02-16 22:47:11 +00:00
Ben Lin
463c9a07f0 Revert "Add ability to show/hide accessibility_shortcut_preference."
This reverts commit 4983dc1227.

Reason for revert: Moving logic somewhere else.

Change-Id: I2f2e3ac6545e8599de32afb1fe6f6d108601e37d
2018-02-16 14:27:34 -08:00
Fan Zhang
c85e701b3d Merge changes I1c3620d3,Ic0bf23f6
* changes:
  Move some subsetting launch to SubSettingLauncher
  Migrate more subsetting launching to SubSettingLauncher
2018-02-16 16:58:51 +00:00
Fan Zhang
a8d70f7c4d Merge "Fix a failing robotest" 2018-02-16 16:51:29 +00:00
Fan Zhang
36bfc04c85 Merge "Add string for instant app launch button." 2018-02-16 05:54:41 +00:00
Fan Zhang
7334a16a49 Merge "Ignore null value in Account settings summary." 2018-02-16 05:54:03 +00:00
Fan Zhang
aa220b68f5 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
2018-02-15 21:30:03 -08:00
Fan Zhang
9ea3615053 Merge "Refactor Utils.startWithFragment to SubSettingLauncher" 2018-02-16 04:49:41 +00:00
Fan Zhang
3fff7bc35f Move some subsetting launch to SubSettingLauncher
Bug: 73250851
Test: robotests
Change-Id: I1c3620d335eaf99bb110bcbb3e33ff3b2a05f84e
2018-02-15 16:40:06 -08:00
Fan Zhang
615563db0c Migrate more subsetting launching to SubSettingLauncher
Bug: 73250851
Test: robotests
Change-Id: Ic0bf23f6ac6f717bdd3d477fdb84af68badae8e6
2018-02-15 15:39:56 -08:00
Fan Zhang
2ecef333e9 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
2018-02-15 15:04:04 -08:00
Doris Ling
950be42d5a Add string for instant app launch button.
Bug: 69562807
Test: rebuild
Change-Id: I8968091664ac6c693ef9269225192bb42b7907ca
2018-02-15 14:16:15 -08:00
Julia Reynolds
bf3e2243ef 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
2018-02-15 15:33:23 -05:00
Maurice Lam
212dd952a1 Improve pattern layout for tiiiny screens
On small screens < sw400dp,
- Don't show icon
- Don't show "Screen lock options" button

Test: cd tests/robotests && mma
Bug: 72764729
Change-Id: I8d9863d43c877fcc18f504d91d3183760b3fafc2
2018-02-15 12:19:09 -08:00
Doris Ling
fc4d46495d 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
2018-02-15 10:47:29 -08:00
Fan Zhang
970bacd8cb Remove IA mapping for old connected device page
Change-Id: I201c09facb9e21d452c58ff3d257bdd37e6b854d
Fixes: 69471219
Test: robotest
2018-02-15 10:36:16 -08:00
TreeHugger Robot
49c8080a50 Merge "Centralize the automatic storage manager on check." 2018-02-15 03:46:19 +00:00
TreeHugger Robot
cfffedbf43 Merge "Add android.permission.MANAGE_SCOPED_ACCESS_DIRECTORY_PERMISSIONS" 2018-02-14 23:53:28 +00:00
jackqdyulei
c76bb78758 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
2018-02-14 14:24:02 -08:00
Felipe Leme
a5bbad439c 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
2018-02-14 13:17:23 -08:00
Daniel Nishi
da4fa80717 Centralize the automatic storage manager on check.
Bug: 70893105
Test: Existing tests pass.
Change-Id: I83fa0e1033eb530a02eca230d0dd79495cbcbc9d
2018-02-14 11:13:55 -08:00
TreeHugger Robot
956dd9451b Merge "Re-added support for deprecated BIND_AUTOFILL permission." 2018-02-14 17:34:56 +00:00
TreeHugger Robot
d32b62d887 Merge "Handle Looper in PreferenceController" 2018-02-14 17:22:55 +00:00
TreeHugger Robot
a33ee8b349 Merge "Fix instrumentation tests" 2018-02-14 17:22:55 +00:00
Yuchen Chang
c6233057ca [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
2018-02-14 14:07:25 +08:00
Adrian Roos
807cf8d2c5 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
2018-02-13 19:13:10 -08:00
HJ ChangLiao
f6631e8924 [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
2018-02-14 11:03:31 +08:00
TreeHugger Robot
03017fc928 Merge "Don't set USB mode if user is a monkey" 2018-02-14 02:35:10 +00:00
Felipe Leme
b25ffe2c9f 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
2018-02-13 18:09:30 -08:00
Sudheer Shanka
bc1c50c182 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
2018-02-13 17:19:38 -08:00
Jerry Zhang
9e16092cb3 Don't set USB mode if user is a monkey
Test: tests pass
Fixes: 73246183
Change-Id: I9570c8bd8b11edd6eb0944a4aa766c22b4cc3619
2018-02-13 16:51:21 -08:00
TreeHugger Robot
bee1a6d990 Merge "Introduce config_disable_uninstall_update flag." 2018-02-14 00:33:59 +00:00
TreeHugger Robot
c0850a75e4 Merge "Add summary for hostspot when airplane is on." 2018-02-14 00:14:09 +00:00