Commit Graph

42934 Commits

Author SHA1 Message Date
Bill Yi
3b4a3e0a0f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1e41ebfa49aad56d5fad9889dcea6f487457400d
2018-02-20 00:57:01 -08:00
Bill Yi
8f63f86270 Import translations. DO NOT MERGE
Change-Id: I2b9dfc6b51a0a18e420e9dcee21b7fc466ae458c
Auto-generated-cl: translation import
2018-02-19 23:57:46 -08:00
Anurag Das
f44da638bd 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
2018-02-20 06:56:09 +00:00
TreeHugger Robot
8d9dc9a642 Merge "Migrate more settings to SubSettingsLauncher" 2018-02-19 23:11:09 +00:00
Fan Zhang
47854c2945 Migrate more places to subsetting launcher
Bug: 73250851
Test: robotests
Change-Id: Iaf29df45ddb42fd58f181cb01e10998a97cb7c34
2018-02-19 14:21:05 -08:00
Fan Zhang
be45f9c865 Migrate more settings to SubSettingsLauncher
Bug: 73250851
Test: robotests
Change-Id: I4100bef20e2ed477e4e31c9b7816f1b03f3f2809
2018-02-19 13:36:57 -08:00
TreeHugger Robot
9e585190d4 Merge "Migrate more settings to SubSettingLauncher" 2018-02-19 20:18:01 +00:00
Narayan Kamath
facb59a13f Remove uses of libcore.util.Objects.hashCode / equals.
Use public API in java.util.Objects instead.

Test: make
Change-Id: I2644164cc8ae5a6a25339abf7f2ed6e1c428c4ac
2018-02-19 14:09:56 +00:00
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