Commit Graph

13704 Commits

Author SHA1 Message Date
TreeHugger Robot
2ecdc2514f Merge "Showing recents in search" 2017-01-21 00:41:25 +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
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
TreeHugger Robot
3c89f50119 Merge "Index input & gesture settings page." 2017-01-20 21:15:12 +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
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
Shahriyar Amini
ce74c1e18f Merge "Consider res package when updating security icons." 2017-01-20 01:01:19 +00:00
TreeHugger Robot
5228059c50 Merge "Add example of google truth in a non robolectric test" 2017-01-19 23:15:49 +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
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
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
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
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
Fan Zhang
6f7164c5a9 Add SuggestionFeatureProvider interface.
The feature provider will contain all logic for suggestions.

Test: RunSettingsRoboTests
Change-Id: I45a0dcdc101d97acb07babd531db50b80bb3b308
2017-01-19 10:15:35 -08:00
Paul Duffin
8cedf7e8e8 Merge "Prepare for removal of legacy-test from default targets" 2017-01-19 11:56:38 +00:00
Andre Lago
e474bd5f0f [Sound Settings] Act on managed user added/removed
Use the new callbacks for managed profile being added/removed to update
visibility of work sound settings

Test: make RunSettingsRoboTests
Bug: 31701003

Change-Id: I3167e52102bcf9f18a58e85dd9c3117691c6ad3f
2017-01-19 11:48:20 +00:00
Bartosz Fabianowski
ccd4fa8e60 Add Device Owner disclosure to Add Accounts dialog
This CL adds a footer to the Add Accounts dialog that tells the user
when the device is managed by a Device Owner app.

Bug: 32692748
Test: make RunSettingsRoboTests

Change-Id: I0dd161eb0bbbc87c04692d4fa6547bd41dab05e0
2017-01-19 11:09:45 +01:00
Shahriyar Amini
31357bb9a8 Consider res package when updating security icons.
Bug: 31002801
Test: make RunSettingsRoboTests
Change-Id: Icef83cbe18d4b48c4091bdf421018bc817bcf33c
2017-01-18 19:26:37 -08:00
Doris Ling
fd83b2eb52 Fix null pointer in dashboard fragment test.
- use context instead of activity to retrieve resource details.
- revert the change previously made in getActivity() calls.
- add null checking in package name and tile intent.

Fix: 34396855
Test: make RunSettingsRoboTests

Change-Id: Ic853939fee3c381b663c0320354da51d3b2a0e11
2017-01-18 17:31:11 -08:00
TreeHugger Robot
16f1fc66c2 Merge "Tron metrics for special permissions" 2017-01-18 20:27:49 +00:00
TreeHugger Robot
54175aaaba Merge "[Fingerprint] Don't show warning dialog if screen lock is set up" 2017-01-18 19:33:22 +00:00
Fyodor Kupolov
2328946b58 Tron metrics for special permissions
Added tron metrics for the following special permissions:
Battery optimisation
 - APP_SPECIAL_PERMISSION_BATTERY_ALLOW
 - APP_SPECIAL_PERMISSION_BATTERY_DENY
Device administrators
 - APP_SPECIAL_PERMISSION_ADMIN_ALLOW (when checked)
 - APP_SPECIAL_PERMISSION_ADMIN_DENY (when unchecked)
Do not disturb access
 - APP_SPECIAL_PERMISSION_DND_ALLOW
 - APP_SPECIAL_PERMISSION_DND_DENY
Daw over other apps
 - APP_SPECIAL_PERMISSION_APPDRAW_ALLOW
 - APP_SPECIAL_PERMISSION_APPDRAW_DENY
VR helper services
 - APP_SPECIAL_PERMISSION_VRHELPER_ALLOW
 - APP_SPECIAL_PERMISSION_VRHELPER_DENY
Modify system settings
 - APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_ALLOW
 - APP_SPECIAL_PERMISSION_SETTINGS_CHANGE_DENY
Notification access
 - APP_SPECIAL_PERMISSION_NOTIVIEW_ALLOW
 - APP_SPECIAL_PERMISSION_NOTIVIEW_DENY
Premium SMS access
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_ALWAYS_ALLOW
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_ASK
 - APP_SPECIAL_PERMISSION_PREMIUM_SMS_DENY
Unrestricted data access
 - APP_SPECIAL_PERMISSION_UNL_DATA_ALLOW
 - APP_SPECIAL_PERMISSION_UNL_DATA_DENY
Usage access
 - APP_SPECIAL_PERMISSION_USAGE_VIEW_ALLOW
 - APP_SPECIAL_PERMISSION_USAGE_VIEW_DENY

Test: Manual + make RunSettingsRoboTests
Bug: 31008660
Change-Id: Id977e2c9f5aa811a2b0af036372b72c684621435
2017-01-18 10:54:19 -08:00
Bartosz Fabianowski
428c3247c9 Merge "Add admin-granted permissions to Enterprise Privacy Settings page" 2017-01-18 18:10:35 +00:00
Doris Ling
5b62261abd Merge "Add items in Other Sound directly into Sound settings." 2017-01-18 17:48:44 +00:00
Paul Duffin
1250371b6b Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Change-Id: I5d2c0685b74ea5ba368c777d9646b9d3ac24dca9
2017-01-18 16:39:34 +00:00
Shahriyar Amini
8b5c1f4802 Merge "Implement summary provider for Security." 2017-01-18 16:35:15 +00:00
Bartosz Fabianowski
9704a28c7b Add admin-granted permissions to Enterprise Privacy Settings page
This CL adds information about the number of apps that have been granted
particularly sensitive permissions (location, microphone, camera) by
the admin.

Bug: 32692748
Test: make RunSettingsRoboTests

Change-Id: I650d3e1ed3950960c58722b0c035a76daeb36478
2017-01-18 15:31:26 +01:00
TreeHugger Robot
6596c8ff4e Merge "Launch the Gallery app to manage photos from the Storage screen." 2017-01-17 21:02:57 +00:00
Shahriyar Amini
5c1ad614a6 Implement summary provider for Security.
Bug: 31002801
Test: make RunSettingsRoboTests

The Security summary is implemented to show the same summary as the
package verifier injected tile if one exists.

Change-Id: I0a2f163a801a7b07fd5363b302c451aca8d389b0
2017-01-17 11:46:02 -08:00
TreeHugger Robot
c3fdc3e813 Merge "Add number of enterprise-installed apps to Privacy Settings page" 2017-01-16 10:53:11 +00:00
Fan Zhang
c7804c130b Another attempt fix for account preference screen.
Fix: 34219500
Test: RunSettingsRoboTests

Change-Id: I316e36496fc9d7eca9c718275c0f113b181d7f1e
2017-01-13 16:31:16 -08:00
Roger Xue
89b4f938ca Merge "move PreferenceController into settingsLib/core" 2017-01-13 21:59:17 +00:00
Bartosz Fabianowski
13f569ebd6 Add number of enterprise-installed apps to Privacy Settings page
This CL adds information about the number of apps that were installed
by the admin to the Enterprise Privacy Settings page.

Test: make RunSettingsRoboTests
Bug: 32692748

Change-Id: Ib710a1249db6d285da962122fd3dfb35a43752a1
2017-01-13 22:20:51 +01:00
Bartosz Fabianowski
385155f305 Merge "Add global HTTP proxy to Privacy Settings page" 2017-01-13 20:51:47 +00:00
TreeHugger Robot
e761b4c4e2 Merge "Enable time zone preference on wifi-only device." 2017-01-13 20:45:49 +00:00
TreeHugger Robot
42248f0066 Merge "Add Always on VPN to Privacy Settings page" 2017-01-13 20:03:48 +00:00
Doris Ling
0e15fe8e4a Enable time zone preference on wifi-only device.
When auto time zone preference is not available, it should be considered
disabled, so that user can still select time zone.

Change-Id: I9b17205a11ff512da02694e3bce06cfbd21dd7db
Fix: 34203177
Test: make RunSettingsRoboTests
2017-01-13 11:15:13 -08:00
Daniel Nishi
f7fc304724 Launch the Gallery app to manage photos from the Storage screen.
This replaces the old behavior of opening the Files app and
matches the latest mocks.

Bug: 33199077
Test: settings robo
Change-Id: Id6451300063fcb3f10c6272c2a2fa49fe1384ac5
2017-01-13 10:44:12 -08:00
Daniel Nishi
8f969665e3 Merge "Add ASM enabled/disabled text to the Storage settings." 2017-01-13 17:41:01 +00:00
TreeHugger Robot
9b5cd25a34 Merge "Add logging to search fragment." 2017-01-13 00:51:23 +00:00
TreeHugger Robot
08853706c5 Merge "Add activity action for Configure Wi-Fi settings." 2017-01-12 23:25:51 +00:00
Maurice Lam
92d3c1e653 [Fingerprint] Don't show warning dialog if screen lock is set up
If the keyguard is already secure (i.e. if the backup screen lock is
already set up), do not show the skip dialog which warns user about
the danger of not having a screen lock.

Bug: 34129157
Test: adb shell am instrument -w com.android.settings.tests.unit
Change-Id: I6f777631487de89ab25a08ea017dd6194dde464d
2017-01-12 14:39:29 -08:00
TreeHugger Robot
94b86a4d77 Merge "Add Settings toggle for Wi-Fi Wakeup." 2017-01-12 22:11:48 +00:00
TreeHugger Robot
235adb5aa3 Merge "Add missing copyright header to ManageApplicationsTest." 2017-01-12 21:36:10 +00:00