Commit Graph

33020 Commits

Author SHA1 Message Date
Bill Yi
f8a7c81d66 Import translations. DO NOT MERGE
am: 2c570117a8  -s ours

Change-Id: Ibffbb54ef91658ce4df98228fd4e672995fa9aec
2017-01-21 01:21:06 +00:00
TreeHugger Robot
2ecdc2514f Merge "Showing recents in search" 2017-01-21 00:41:25 +00:00
TreeHugger Robot
8e6cc9b8ed Merge "Fix installed app search query." 2017-01-21 00:21:17 +00:00
Doris Ling
1432cb8529 Add new preference class MasterSwitchPreference.
- Add a new preference type that has Title and optional summary on the
  left, and a toggle switch on the right. Clicking the left part of the
  preference will open a settings screen.
- Update Connected devices->Bluetooth to use this new preference.
- Refactor BluetoothSettings and BluetoothEnabler to share code between
  the new bluetooth preference controller and the bluetooth setting.

Bug: 34280769
Test: make RunSettingsRoboTests
Change-Id: I109ecdba640ecdd4748a6e5b2b4f4c47cbf653fd
2017-01-20 16:19:00 -08:00
TreeHugger Robot
7ba9162af6 Merge "Remove char limit from summary strings." 2017-01-20 23:16:17 +00:00
Shahriyar Amini
a25afbbaaa Add security status icons.
Bug: 31002801
Test: make RunSettingsRoboTests

Also tested manually in app.

Change-Id: I7496d9910657600c381202c0f3f78315e2de42ad
2017-01-20 15:11:42 -08:00
Fan Zhang
ba83109807 Fix installed app search query.
Now it shows system apps when user query match name.

Change-Id: Ic4d622d2d4872554172e34aa9be250b36a3c3da3
Fix: 34257148
Test: make RunSettingsRoboTests
2017-01-20 14:53:37 -08:00
Fan Zhang
a8b089db8a Showing recents in search
A list of recent queries will display when search first launches, or
when text query is empty.

Fix: 32452066
Test: make RunSettingsRoboTests
Change-Id: Ic697f8c0795f2315a01406537c7ce1bbf9a813be
2017-01-20 14:50:15 -08:00
Michal Karpinski
e44be9f729 Merge "Check for whether fingerprint can be used in work challenge moved from onCreate() to onResume()" 2017-01-20 22:02:35 +00:00
Amin Shaikh
dfb11d1642 Remove char limit from summary strings.
The summary wraps to the next line, so the limit was unnecessary.

Test: make
Bug: 34443635
Change-Id: Ie0392405ad1afc62c5aa56cd70f7c5e7c6a5b1c4
2017-01-20 13:20:55 -08:00
TreeHugger Robot
3c89f50119 Merge "Index input & gesture settings page." 2017-01-20 21:15:12 +00:00
Bill Yi
2c570117a8 Import translations. DO NOT MERGE
Change-Id: I6aed674efc270223bddfd6fbdae50a98ae695276
Auto-generated-cl: translation import
2017-01-20 12:31:51 -08:00
Michal Karpinski
35c32db800 Check for whether fingerprint can be used in work challenge moved
from onCreate() to onResume()

Test: manual
Bug: 29825955
Change-Id: Id01a21fecf395ba29858e099947eeb83a4cee8fc
2017-01-20 19:16:15 +00:00
Fan Zhang
f10a5a22d0 Index input & gesture settings page.
Test: make RunSettingsRoboTests -j40
Change-Id: Ifbd68d596838b05e47d228396f266316b90a0f27
2017-01-20 11:10:07 -08:00
TreeHugger Robot
7ce10b653b Merge "Show closed friction icon for saved and secure networks." 2017-01-20 18:52:21 +00:00
TreeHugger Robot
2f2d982f67 Merge "[Sound Settings] Act on managed user added/removed" 2017-01-20 18:31:41 +00:00
Lei Yu
589bb08f49 Merge "Remove OS items in battery main page." 2017-01-20 17:59:35 +00:00
TreeHugger Robot
a909a54835 Merge "Change theme base back to Theme.DeviceDefault.Settings" 2017-01-20 17:20:08 +00:00
Julia Reynolds
1f178a9ed1 Notification settings updates
- Add 'show badge' for apps
- disable deleted channel rows
- Add an importance reset for pre-O apps

Test: manual
Change-Id: Ic32415497fe48a17f6cdb9aace37e35f9388195a
2017-01-20 09:38:33 -05:00
Julia Reynolds
37d64387a3 Merge "Show deleted channels." 2017-01-20 14:30:23 +00:00
Bartosz Fabianowski
bf80bde9e8 Show DO Disclosures for secondary users
DO Disclosures should be shown for all users, including secondary.
This used to be the case in the original Settings UI but got lost
in the switch to the new IA.

Bug: 34121792
Test: Manual
Change-Id: I1ffcf34c4f98abd83aafaefebcf1e87808e42730
2017-01-20 15:24:13 +01:00
TreeHugger Robot
60c7f095d5 Merge "Adding Manage External Sources Settings" 2017-01-20 12:08:20 +00:00
TreeHugger Robot
98df9a43c5 Merge "Permission changes for scoring in Wifi Picker." 2017-01-20 02:03:33 +00:00
TreeHugger Robot
12587f0348 Merge "Tron metric for force stop app" 2017-01-20 01:31:12 +00:00
Stephen Chen
59882384f3 Show closed friction icon for saved and secure networks.
This is a temporary adjustment for the friction UI logic, will
make a more permanent refactor when design decisions are finalized.

Test: manual inspection.
Change-Id: I06cd02b1092ed7e29a36cc83a9de297c513cbac8
2017-01-19 17:28:44 -08:00
Jack He
e3ca36a060 Fix Bluetooth pairing dialogue crash am: e51972868c
am: 244ebc1e31  -s ours

Change-Id: I275eea31757afd6801cce5096a380b203fb4b763
2017-01-20 01:23:43 +00:00
Stefano Tommasini
e7116a9282 Merge "Add SuggestionFeatureProvider interface." 2017-01-20 01:02:06 +00:00
Shahriyar Amini
ce74c1e18f Merge "Consider res package when updating security icons." 2017-01-20 01:01:19 +00:00
Robin Lee
edfeaace61 resolve merge conflicts of cb1968148a to master
Test: make RunSettingsRoboTests
Change-Id: I436af9f0415b9ad7ea0ea53f4f68d337fdbaa0aa
2017-01-19 23:58:30 +00:00
Jack He
244ebc1e31 Fix Bluetooth pairing dialogue crash
am: e51972868c

Change-Id: I15e2263b5907f10f385d07e2797b43240e2eed65
2017-01-19 23:45:28 +00:00
Robin Lee
cb1968148a Merge "Clear VPN after Clear credentials if VPN is being established" am: 4ce19f5c4f am: fde3c6d74a
am: 185275e0ad

Change-Id: If1956964597ad1885dde00f23c55a4492f867977
2017-01-19 23:31:21 +00:00
Robin Lee
185275e0ad Merge "Clear VPN after Clear credentials if VPN is being established" am: 4ce19f5c4f
am: fde3c6d74a

Change-Id: Id20c96f550ecf7c05926eaea8a29575aeb8aaa07
2017-01-19 23:23:37 +00:00
TreeHugger Robot
5228059c50 Merge "Add example of google truth in a non robolectric test" 2017-01-19 23:15:49 +00:00
Robin Lee
fde3c6d74a Merge "Clear VPN after Clear credentials if VPN is being established"
am: 4ce19f5c4f

Change-Id: Ib35450b0c389da1bbba311c05d1d0346eb612b9e
2017-01-19 23:13:04 +00:00
Sunny Goyal
115e114032 Merge "Updating CreateShortcut activity to use the new ShortcutManager APIs for creating shortcuts" 2017-01-19 23:10:34 +00:00
Robin Lee
4ce19f5c4f Merge "Clear VPN after Clear credentials if VPN is being established" 2017-01-19 23:02:21 +00:00
Jack He
e51972868c Fix Bluetooth pairing dialogue crash
When pairing passkey is invalid, onCreate() should return early to
prevent any dialog from displaying, which will then call onDestroy()
to destroy the activity. However mReceiver should be registered before
onDestroy() is called as onDestroy() will call unregisterReceiver(mReceiver)
that will throw an IllegalArgumentException when mReceiver was not registered.

This fix adds a flag that tracks whether mReceiver has been registered.
In addition, this fix fails the passkey confirmation request upon invalid
passkey.

Bug: 32577328
Test: Test with PTS TC_SERVER_SA_BI_01_C
Change-Id: Ifc047bad6bd99abca04404af9cd54d2034cd35aa
(cherry picked from commit 6f8e9eda2d9ed830d47971d93327792906db2dc1)
2017-01-19 22:39:17 +00:00
Zac Iqbal
b61434348a Merge "Refactored TrustAgentUtils to allow agent check injection." 2017-01-19 22:21:47 +00:00
jackqdyulei
51db61dcd5 Remove OS items in battery main page.
We want to hide the OS items from battery usage page and let users
focus on the items that they can control.

Currently the hidden items are:
Android OS, Android System, Phone idle, Cell Standby

Bug: 34274844
Test: RunSettingsRoboTests & screenshots
Change-Id: I75165376d5038b6ec17a7b73ae3c5fcd24753fa9
2017-01-19 13:49:26 -08:00
Sunny Goyal
9a6b675096 Updating CreateShortcut activity to use the new ShortcutManager APIs
for creating shortcuts

Test:  adb shell am instrument -e class com.android.settings.CreateShortcutTest \
 -w com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I09fb73ae2a0687a3269f3714bdb2c5d92c99ea87
2017-01-19 13:39:13 -08:00
Stefanot
6ec9e89fff Add SuggestionFeatureProvider interface.
The interface is added so that a vendor can add new suggestions to the
settings app, and customize details for these suggestions.

Test: make RunSettingsRoboTests

BUG: 34219298

Change-Id: I373c63709b1aaf68360aa2561a2ecfc3194e0e2b
2017-01-19 20:50:35 +00:00
Zachary Iqbal
ccae73f228 Refactored TrustAgentUtils to allow agent check injection.
Notes:
- TrustAgentUtils defined a method that allowed callers to determine if a Trust Agent package is allowed to provide trust. If it is, it adds it to the list of available trust agents that can be displayed in the Settings->Security screen.
- The logic used to define what agents are permitted on the device can now be injected.

Test: Ran 'm RunSettingsRoboTest' and added a new test for the TrustAgentFeatureProviderImpl.
Bug: 34354635
Change-Id: I24c54c14bde26073ce6fa907379b86aae2841600
2017-01-19 12:39:38 -08:00
Fan Zhang
a7689b4f2a Change theme base back to Theme.DeviceDefault.Settings
Bug: 33558692
Test: visual
Change-Id: I526f8ff19bb2a4c471ff567e926574e19c0d307a
2017-01-19 12:30:48 -08:00
Stephen Chen
20bfe52959 Add drawable resources for Wi-Fi picker friction icons.
Bug: 34281330
Test: manual inspection, make
Change-Id: I7a98ececf4804e3444514ff1c438e5ed4f9705d5
2017-01-19 12:21:06 -08:00
TreeHugger Robot
0d3d5e4a8e Merge "Add SuggestionFeatureProvider interface." 2017-01-19 20:16:41 +00:00
TreeHugger Robot
5a2a8f8ad3 Merge "Move indexing into the Search Fragment" 2017-01-19 20:06:39 +00:00
Matthew Fritze
1212b0ea3f Add example of google truth in a non robolectric test
Change-Id: I6549ae01b31df39462d252e767fc3255b05813fe
Fixes: 34277648
Test: make SettingsUnitTests, make RunSettingsRoboTests
2017-01-19 11:21:20 -08:00
Fyodor Kupolov
91bae6ca23 Tron metric for force stop app
Test: Manual
Bug: 31008660
Change-Id: I7c7818036286764ffa10bdc0d718b71a459846d9
2017-01-19 11:06:34 -08:00
Anton Philippov
1d51b81563 Merge "Moves "Factory data reset" to a different page." 2017-01-19 18:28:34 +00:00
Matthew Fritze
34c27609d6 Move indexing into the Search Fragment
Cold start latency for Settings increased drastically
from the indexing of the Search Database. Moving it into
the Search Fragment moves that latency to cases where
users are actually searching.

Change-Id: I11368af610ac9e80f9901654f980c2c1e26342a5
Fixes: 34142852
Test: make RunSettingsRoboTests
2017-01-19 10:27:37 -08:00