We check the value of disabledByAdmin state in setEnabled, so update it
first before calling setEnabled.
Bug: 27642236
Change-Id: Ie6c805b85a3afb87ffdaad0b80dbadc172b62d49
The getEnabledServices and setAccessibilityServiceState now have an
overloaded version to take in a userId parameter.
Bug: 27383941
Change-Id: I3ea648fd5f22cd2e9402686b83ca42976b5306f8
(cherry picked from commit 2d1c0154b1f9aeeb991dc96efb29aa53c76f4957)
On SUW screens, we do not want to add a translucent status bar. This
also affects ime insets when keyboards are shown.
bug:27479424
bug:27063940
Change-Id: Ic339a9d931f6580a9af8deea85ec5e5bb60f6cca
In case a RestrictedPreference can also be disabled
for other reasons than device admin, the state
of RestrictedPreferenceHelper may not be up-to-date
with the actual preference state. For example, the
"Android Beam" checkbox can be disabled by device
policy, but it can also be disabled by Settings itself
because NFC was turned off by the user.
To fix that, always update the Preference state.
Bug: 26907006
Change-Id: I27cde70beb82721dd4d423943a9898e022df8862
Add new usage graph view to SettingsLib that shows usage with
same labels and whatnot.
Use that graph in the battery detail panel to show more stuffs.
Change-Id: I397b1314f65f668df566e93bdbc15420e1b3a280
Instead of always rebuilding the full ApplicationInfo for a
package when callers are only interested in the suspended status
add a new fast API in Packagemanager (which only checks the
suspended user setting for the requested package and returns
a boolean) and change the appropriate caller code too.
Bug: 26794775
Bug: 22776761
Change-Id: Ide8428ef734479360d5a8a75fd8e0ed8ddf2da7a
Slowly chipping away at TetherUtil to clean up this code.
This CL also adds an admin check to
ConnectivityService.isTetheringSupported to get parity with the
TetherUtil function before removing it.
Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
Add isInputMethodPermittedByAdmin and
isAccessibilityServicePermittedByAdmin APIs in DevicePolicyManager.
And update utility methods in RestrictedLockUtils to use the correct
userId when checking if disabled by admin.
Bug: 26897250
Bug: 26767564
Bug: 26966213
Change-Id: I0b74b3e57904a82f8ce72d856769d35b5e8403e5
- Makes the HF client a configurable item in Settings. You can
enable/disable HF per item.
- Disconnect works cleanly since Settings now disconnects HF and hence
tear down the ACL.
Bug: b/26808830
Change-Id: I062b64beac4c009a6075756b7f163c6455d77af2