Commit Graph

237 Commits

Author SHA1 Message Date
Jason Monk
a2e759d963 Merge "Fix Settings home lifecycle" into nyc-dev 2016-03-17 13:32:20 +00:00
Svetoslav Ganov
3084bb8719 Merge "Disallow disabling of the package installer" into nyc-dev 2016-03-16 23:32:26 +00:00
Jason Monk
14ee8d7e17 Fix Settings home lifecycle
Bug: 26268813
Bug: 27330440
Change-Id: I6f5ab4a412b129728db3e8dff134c04272909997
2016-03-16 14:26:24 -04:00
Sudheer Shanka
2893302afc Call preference.setEnabled only after updating disabledByAdmin state.
We check the value of disabledByAdmin state in setEnabled, so update it
first before calling setEnabled.

Bug: 27642236
Change-Id: Ie6c805b85a3afb87ffdaad0b80dbadc172b62d49
2016-03-14 14:59:52 -07:00
Tony Mantler
79d7e54f70 Merge "Remove redundant twiddling of Settings.Secure.ACCESSIBILITY_ENABLED" into nyc-dev 2016-03-10 16:54:10 +00:00
Sudheer Shanka
91f80006e5 Merge "Use compound drawable instead of image span." into nyc-dev 2016-03-10 15:58:25 +00:00
Sudheer Shanka
8d774b752b Minor cleanup in RestrictedPreferenceHelper.setDisabledByAdmin.
Change-Id: I573ea3a0c4565c62d47c4458b7885a8cfbdf31cc
2016-03-09 14:48:19 -08:00
Tony Mantler
d48e0d44f6 Remove redundant twiddling of Settings.Secure.ACCESSIBILITY_ENABLED
This is handled by AccessibilityManagerService now

b/27477156

Change-Id: Ib55d753ec0bd07764780a126be4bb8e4a406d22d
2016-03-09 14:28:25 -08:00
Sudheer Shanka
f271fd5199 Use compound drawable instead of image span.
Bug: 27263531
Change-Id: Id35342c6656cd4b0f4b1756c903e9cf071293a14
2016-03-09 14:21:07 -08:00
Sudheer Shanka
bc58e3faa1 Merge "Remove unused imports and variables." into nyc-dev 2016-03-09 17:03:33 +00:00
Sudheer Shanka
efbecddcb7 Remove unused imports and variables.
Bug: 27564074
Change-Id: I5eff9f673fe093a9068e94619cfe7eef10c0b4a9
2016-03-09 16:31:49 +00:00
Jason Monk
4628b6c12a Merge "Support updates to the data usage graph" into nyc-dev 2016-03-09 15:40:56 +00:00
Martijn Coenen
502bc4e7a3 Merge "SettingsLib: Always update preference state." into nyc-dev 2016-03-09 10:30:40 +00:00
Sudheer Shanka
e8cd832eea Merge "Remove RestrictedDropDownPreference class." into nyc-dev 2016-03-08 22:58:00 +00:00
Jason Monk
0193a87196 Support updates to the data usage graph
Also make the graph a little bit more smooth.

Bug: 27278313
Change-Id: Ia9ff8a69691671c57cfaf6eb43e373a8386469ea
2016-03-08 16:35:05 -05:00
Muyuan Li
19df1284d9 Making AccessibilityUtils interface multi-user aware
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)
2016-03-07 19:08:04 +00:00
Sudheer Shanka
32da6ae10c Remove RestrictedDropDownPreference class.
It is not being used any more.

Change-Id: I82919eaac21138d3466a5e152d1a1a17429609d2
2016-03-04 17:10:17 -08:00
Joe Onorato
93dcff0122 Turn down the logging a little bit.
Change-Id: I5760eb7d6d6ed5e8a3426e92c835e8a71e10cdbb
2016-03-04 12:21:30 -08:00
Svet Ganov
81fb0d4acd Disallow disabling of the package installer
bug:26426558

Change-Id: Ia40a146c37c219a6edbb5d0457b1fce45b021266
2016-03-04 09:27:26 -08:00
Udam Saini
9cf94182fc Merge "Only adds translucent status bar according to theme values." into nyc-dev 2016-03-03 21:45:10 +00:00
Udam Saini
48987f65df Only adds translucent status bar according to theme values.
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
2016-03-03 13:25:10 -08:00
Sudheer Shanka
5f4defc61d Merge "Update restricted icon." into nyc-dev 2016-03-03 18:31:52 +00:00
Sudheer Shanka
31edc5ab0f Merge "Part1: Show the restricted lock icon in place of the pref widget." into nyc-dev 2016-03-03 18:26:46 +00:00
Sudheer Shanka
40400a648f Update restricted icon.
Bug: 25603665
Bug: 27263775
Change-Id: Ib66866cf536f15130f936d03d9328ee5b0b508c7
2016-03-02 19:08:51 -08:00
Ido Ofir
d193c6729f checking additional metadata and completed categories before displaying
suggested actions in settings.

Bug: 27271616
Change-Id: I855bc03337b04c5ff685c102f44dfc0d6638592b
2016-03-02 09:58:59 -08:00
Sudheer Shanka
923bc74c92 Part1: Show the restricted lock icon in place of the pref widget.
Add summary strings used for switch prefs if disabled by admin.

Bug: 25603665
Bug: 27263775
Change-Id: I88c2dd2e024f92da107bedc645641e285796d51f
2016-03-01 16:45:03 -08:00
Martijn Coenen
6f02f56f52 SettingsLib: Always update preference state.
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
2016-02-29 12:16:52 +01:00
Jason Monk
2b087ab077 Merge "Expose bssids for AccessPoints" into nyc-dev 2016-02-26 16:01:47 +00:00
Jason Monk
60a82ffe45 Expose bssids for AccessPoints
Bug: 26271353
Change-Id: Id83cb8ae8f25247e2d8eec9c4e06604b7dbb5488
2016-02-25 13:55:03 -05:00
Jason Monk
6bea950bfa Guard against monkey crash
Bug: 27337783
Change-Id: Ifa1538a0a0521789a516f8cdbc0615a057611ce7
2016-02-25 13:07:41 -05:00
Jason Monk
e6324f5eec Support changes in Settings for battery graph
Bug: 27205329
Change-Id: I5d15503099144f1c62bafed64ea4c8157e8851ee
2016-02-23 12:44:52 -05:00
Sudheer Shanka
a8fbbb30ea Part1 - Don't add padlock if the restriction is not set by admin.
Bug: 26687435
Change-Id: I2fd740b1fa0d76eceedc4dde73e41d779820bbcf
2016-02-19 19:21:57 +00:00
Jason Monk
a5d7dd9cd5 Fixes and changes to support settings using UsageView
Bug: 27213136
Change-Id: I1796d710379fc92cf21b196459f34dda4570355f
2016-02-17 10:16:31 -05:00
Andrei Stingaceanu
5ae4e73ef0 Merge "Suspend packages - new API for retrieving the suspended status" into nyc-dev 2016-02-17 11:57:51 +00:00
Jason Monk
96ab63640f Battery graph in QS Detail
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
2016-02-16 16:25:44 -05:00
Andrei Stingaceanu
355b232d79 Suspend packages - new API for retrieving the suspended status
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
2016-02-16 14:57:29 +00:00
Jason Monk
da63ceb785 Guard against monkey crash
Bug: 27099281
Change-Id: I58951ee7ff5f14f5c2d60e450ed3b0fa7bf31e8e
2016-02-11 11:37:24 -05:00
Tony Mantler
d6cc7909fd Handle null list from getPackagesForOps
b/27101914

Change-Id: I468da1a0f38f78e1cd7fec50e3bc78cec6fd2771
2016-02-09 15:17:56 -08:00
Jason Monk
cafda1f90e Settings drawer work
- Final visuals
 - Show under status bar
 - Fix activity flow surrounding drawer use

Change-Id: I161702219c26cabc6b2d1adbaa6fbfb1d9fd5b07
2016-02-08 15:12:25 +00:00
Jeremy Klein
aaa20ad134 Remove several TetherUtil functions which are no longer needed.
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
2016-02-04 19:06:59 -08:00
Sudheer Shanka
57218cbbf7 Merge "Made changes to fix some policy transparency options." 2016-02-04 19:14:14 +00:00
Sudheer Shanka
569258689a Made changes to fix some policy transparency options.
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
2016-02-04 01:12:44 +00:00
Sudheer Shanka
1d0169bd9d Add an utility method to get device owner.
Change-Id: I0856d220aa8e4b8d17b83c04b9530dc2d085d94d
2016-02-03 00:25:50 +00:00
Anna Galusza
aae7ad7496 Merge "Fix breakage due to incomplete name change." 2016-02-02 18:09:21 +00:00
Anna Galusza
fb695c633c Fix breakage due to incomplete name change.
Change-Id: Ief02bd4a994a4ff3a571fedfead05c732043500d
2016-02-02 10:06:05 -08:00
Anna Galusza
427a182be4 Merge "Allow the drawer to not be shown." 2016-02-02 17:36:37 +00:00
Anna Galusza
1774a27b84 Allow the drawer to not be shown.
Change-Id: If616c6b801382c307fa7db85bed02a4b8cae6ea5
2016-02-01 15:44:00 -08:00
Sanket Agarwal
f8a1c9121d Add Headset HF role to the settings menu
- 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
2016-02-01 21:13:37 +00:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Tony Mantler
9a115b274c Merge "Make AppRestrictionsHelper leanback-aware" 2016-01-29 19:20:33 +00:00