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