210 Commits

Author SHA1 Message Date
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
Andrei Stingaceanu
30c33e09b6 Merge "RestrictedLockUtils - introduce check for suspended apps" 2016-01-28 21:01:53 +00:00
Andrei Stingaceanu
44af4828c3 RestrictedLockUtils - introduce check for suspended apps
Used in Settings for restricting preferences.

Bug: 22776761
Change-Id: I6aad4400981cee00c734060ea3d6cf2641a721d9
2016-01-28 20:56:04 +00:00
Tony Mantler
14d7b39544 Merge "Change AccessPoint sorting to bucket signal levels" 2016-01-28 17:15:12 +00:00
Sudheer Shanka
978fc0d44c Add a DPM method to allow system to query parent profile instance.
Bug: 26830384
Change-Id: Ib12b171b1032bd86488f32f8d22eb0a9efb75e8f
2016-01-28 16:36:00 +00:00
Tony Mantler
a0e03ddd5f Change AccessPoint sorting to bucket signal levels
Keeps the list from jumping around for non-user-visible reasons

Change-Id: I2a47fa2f8e3dfcd95c17c5ffbb552332273eb425
2016-01-27 15:57:03 -08:00
Shishir Agrawal
05a7dfc48d Merge "Unhiding MSIM APIs." 2016-01-27 00:32:26 +00:00
Sudheer Shanka
39cef94f1a Made checkIfkeyguardNotificationFeaturesDisabled more generic.
Currently, it can be only used for checking the status of keyguard
notification features, made it generic so that it can be used for
other keyguard features like disable_fingerprint etc.

Change-Id: Ib2adfc12d7866cce248af78cc8b159cada9a6cad
2016-01-26 22:34:41 +00:00
Sudheer Shanka
6e3e9fc359 Merge "Add util method to get the admin who set maximum time to lock." 2016-01-26 22:29:41 +00:00
Jason Monk
ca7ec8a547 Make suggestions handle string or int
Evidently metadata bundles turn a single int into an integer rather than a
string without telling you.

Change-Id: I5c6557bad51981f27a7e213052e2be5bcc3a0a93
2016-01-26 17:01:00 -05:00
Shishir Agrawal
7ea3e8bf89 Unhiding MSIM APIs.
1. Unhide MSIM APIs in TelephonyManager that already have non-MSIM equivalent
   APIs public.
2. Make MSIM API naming consistent (overloaded, no suffix).
3. Unhide APIs in SubscriptionManager that are necessary for MSIM.

Bug: 26772894
Change-Id: Ibebab7379ea79c8e4812bbd190342827048e30e2
2016-01-26 13:47:27 -08:00
Jason Monk
294efa57ca Updates to SuggestionParser
Added support for feature requirements and return after dismiss delays.

Change-Id: I80e80a55817cd4d9717876e34fc591b3dd3228f1
2016-01-26 14:40:16 -05:00
Jason Monk
37e65a409f Merge "Only show settings drawer on top level items" 2016-01-26 14:46:02 +00:00
Sudheer Shanka
1b92aefaae Merge "Add support for adding preference summary when disabled by admin." 2016-01-26 14:42:04 +00:00
Sudheer Shanka
2d4e09750d Merge "Check for null condition in case there is no DPM support." 2016-01-26 14:29:29 +00:00
Sudheer Shanka
c61087106e Check for null condition in case there is no DPM support.
Change-Id: Ie7c70737d0c36ae9efd1920498d9f07b8a7016b1
2016-01-26 14:00:16 +00:00
Jeremy Klein
0301cd9523 Merge "Expose a simple tethering API which includes provision checks." 2016-01-26 03:59:51 +00:00
Jeremy Klein
36c7aa0325 Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2016-01-25 16:37:09 -08:00
Sudheer Shanka
1450173034 Add support for adding preference summary when disabled by admin.
Change-Id: I455c3180266734fa4ba6b5bf7cb5fc2f34177759
2016-01-25 22:40:10 +00:00
Sudheer Shanka
45e298f4b9 Add util method to get the admin who set maximum time to lock.
Added util method checkIfMaximumTimeToLockIsSet in RestrictedLockUtils
to get the admin who set maximum time to lock. Also, made a few updates
to the javadocs of other methods.

Change-Id: Ide3048b277f854360aa92d975963b61dff2387bb
2016-01-25 13:00:35 +00:00
Tony Mantler
98608e43eb Move AccessPointPreference to SettingsLib
Change-Id: I4461d5bbe6dd6d78acb8c135150e15e982bb1fab
2016-01-22 14:58:48 -08:00
Jason Monk
946483a69e Only show settings drawer on top level items
Bug: 26080590
Change-Id: Id8d387492e2e1e09fc87f4123bf7c399a2c1380e
2016-01-22 15:19:44 -05:00
Sudheer Shanka
0fa741253d Add a guard against NullPointerException in RestrictedLockUtils.
Change-Id: I1eb7852cf58a4435a2c7627a569ade5f44855bf7
2016-01-21 13:47:51 +00:00
Ruben Brunk
742721389c Fix admin check in Settings.
- This check is broken when there are no Admins on the device.
- Blocks enabling NotificationListenerServices in Settings.

Change-Id: I2c30daf2fc4632d55e84f0e499e3ceedbe162b98
2016-01-21 06:02:32 +00:00
Jason Monk
34ac1d6c6f Merge "Support data usage changes in Settings" 2016-01-19 19:03:19 +00:00
Neil Fuller
4370fba554 Merge "Fix for Settings timezone names when boot time is wrong" 2016-01-18 19:01:41 +00:00
Sudheer Shanka
e50cad066e Merge "Add an util method and update setMenuItemAsDisabledByAdmin." 2016-01-18 18:28:55 +00:00
Sudheer Shanka
a8f8fb4f8a Merge "Add extra utility method to RestrictedLockUtils." 2016-01-18 18:00:44 +00:00