Searched refs:restrictionKey (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 71 int getUserRestrictionSource(String restrictionKey, int userHandle); in getUserRestrictionSource() argument 72 … List<UserManager.EnforcingUser> getUserRestrictionSources(String restrictionKey, int userHandle); in getUserRestrictionSources() argument 74 boolean hasBaseUserRestriction(String restrictionKey, int userHandle); in hasBaseUserRestriction() argument 75 boolean hasUserRestriction(in String restrictionKey, int userHandle); in hasUserRestriction() argument 76 boolean hasUserRestrictionOnAnyUser(in String restrictionKey); in hasUserRestrictionOnAnyUser() argument
|
D | UserManager.java | 1815 public int getUserRestrictionSource(String restrictionKey, UserHandle userHandle) { in getUserRestrictionSource() argument 1817 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSource() 1834 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument 1836 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSources() 1873 public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument 1875 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction() 1944 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument 1945 return hasUserRestriction(restrictionKey, Process.myUserHandle()); in hasUserRestriction() 1956 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument 1958 return mService.hasUserRestriction(restrictionKey, in hasUserRestriction() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 845 public static void moveRestriction(String restrictionKey, SparseArray<Bundle> srcRestrictions, in moveRestriction() argument 850 if (contains(from, restrictionKey)) { in moveRestriction() 851 from.remove(restrictionKey); in moveRestriction() 857 to.putBoolean(restrictionKey, true); in moveRestriction()
|
D | UserManagerService.java | 1550 public boolean hasUserRestriction(String restrictionKey, int userId) { in hasUserRestriction() argument 1551 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction() 1555 return restrictions != null && restrictions.getBoolean(restrictionKey); in hasUserRestriction() 1560 public boolean hasUserRestrictionOnAnyUser(String restrictionKey) { in hasUserRestrictionOnAnyUser() argument 1561 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser() 1568 if (restrictions != null && restrictions.getBoolean(restrictionKey)) { in hasUserRestrictionOnAnyUser() 1589 public int getUserRestrictionSource(String restrictionKey, int userId) { in getUserRestrictionSource() argument 1590 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() 1601 String restrictionKey, @UserIdInt int userId) { in getUserRestrictionSources() argument 1605 if (!hasUserRestriction(restrictionKey, userId)) { in getUserRestrictionSources() [all …]
|
D | PackageManagerService.java | 13608 boolean isUserRestricted(int userId, String restrictionKey) { 13610 if (restrictions.getBoolean(restrictionKey, false)) { 13611 Log.w(TAG, "User is restricted: " + restrictionKey);
|