Searched refs:restrictionKey (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 70 int getUserRestrictionSource(String restrictionKey, int userHandle); in getUserRestrictionSource() argument 71 … List<UserManager.EnforcingUser> getUserRestrictionSources(String restrictionKey, int userHandle); in getUserRestrictionSources() argument 73 boolean hasBaseUserRestriction(String restrictionKey, int userHandle); in hasBaseUserRestriction() argument 74 boolean hasUserRestriction(in String restrictionKey, int userHandle); in hasUserRestriction() argument 75 boolean hasUserRestrictionOnAnyUser(in String restrictionKey); in hasUserRestrictionOnAnyUser() argument
|
D | UserManager.java | 1617 public int getUserRestrictionSource(String restrictionKey, UserHandle userHandle) { in getUserRestrictionSource() argument 1619 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSource() 1636 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument 1638 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSources() 1673 public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument 1675 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction() 1744 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument 1745 return hasUserRestriction(restrictionKey, Process.myUserHandle()); in hasUserRestriction() 1755 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument 1757 return mService.hasUserRestriction(restrictionKey, in hasUserRestriction() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 775 public static void moveRestriction(String restrictionKey, SparseArray<Bundle> srcRestrictions, in moveRestriction() argument 780 if (contains(from, restrictionKey)) { in moveRestriction() 781 from.remove(restrictionKey); in moveRestriction() 787 to.putBoolean(restrictionKey, true); in moveRestriction()
|
D | UserManagerService.java | 1499 public boolean hasUserRestriction(String restrictionKey, int userId) { in hasUserRestriction() argument 1500 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction() 1504 return restrictions != null && restrictions.getBoolean(restrictionKey); in hasUserRestriction() 1509 public boolean hasUserRestrictionOnAnyUser(String restrictionKey) { in hasUserRestrictionOnAnyUser() argument 1510 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser() 1517 if (restrictions != null && restrictions.getBoolean(restrictionKey)) { in hasUserRestrictionOnAnyUser() 1538 public int getUserRestrictionSource(String restrictionKey, int userId) { in getUserRestrictionSource() argument 1539 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() 1550 String restrictionKey, @UserIdInt int userId) { in getUserRestrictionSources() argument 1554 if (!hasUserRestriction(restrictionKey, userId)) { in getUserRestrictionSources() [all …]
|
D | PackageManagerService.java | 14129 boolean isUserRestricted(int userId, String restrictionKey) { 14131 if (restrictions.getBoolean(restrictionKey, false)) { 14132 Log.w(TAG, "User is restricted: " + restrictionKey);
|