diff options
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 7e7af1a12299..185620066454 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -1678,6 +1678,18 @@ public class UserManager { } /** + * @hide + * Returns whether any user on the device has the given user restriction set. + */ + public boolean hasUserRestrictionOnAnyUser(String restrictionKey) { + try { + return mService.hasUserRestrictionOnAnyUser(restrictionKey); + } catch (RemoteException re) { + throw re.rethrowFromSystemServer(); + } + } + + /** * Return the serial number for a user. This is a device-unique * number assigned to that user; if the user is deleted and then a new * user created, the new users will not be given the same serial number. |
