Home
last modified time | relevance | path

Searched refs:restrictionKey (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/os/
DIUserManager.aidl72 int getUserRestrictionSource(String restrictionKey, int userHandle); in getUserRestrictionSource() argument
73 … List<UserManager.EnforcingUser> getUserRestrictionSources(String restrictionKey, int userHandle); in getUserRestrictionSources() argument
75 boolean hasBaseUserRestriction(String restrictionKey, int userHandle); in hasBaseUserRestriction() argument
76 boolean hasUserRestriction(in String restrictionKey, int userHandle); in hasUserRestriction() argument
77 boolean hasUserRestrictionOnAnyUser(in String restrictionKey); in hasUserRestrictionOnAnyUser() argument
DUserManager.java1829 public int getUserRestrictionSource(String restrictionKey, UserHandle userHandle) { in getUserRestrictionSource() argument
1831 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSource()
1848 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument
1850 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier()); in getUserRestrictionSources()
1887 public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument
1889 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier()); in hasBaseUserRestriction()
1958 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument
1959 return hasUserRestriction(restrictionKey, Process.myUserHandle()); in hasUserRestriction()
1970 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
1972 return mService.hasUserRestriction(restrictionKey, in hasUserRestriction()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java849 public static void moveRestriction(String restrictionKey, SparseArray<Bundle> srcRestrictions, in moveRestriction() argument
854 if (contains(from, restrictionKey)) { in moveRestriction()
855 from.remove(restrictionKey); in moveRestriction()
861 to.putBoolean(restrictionKey, true); in moveRestriction()
DUserManagerService.java1609 public boolean hasUserRestriction(String restrictionKey, int userId) { in hasUserRestriction() argument
1610 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction()
1614 return restrictions != null && restrictions.getBoolean(restrictionKey); in hasUserRestriction()
1619 public boolean hasUserRestrictionOnAnyUser(String restrictionKey) { in hasUserRestrictionOnAnyUser() argument
1620 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser()
1627 if (restrictions != null && restrictions.getBoolean(restrictionKey)) { in hasUserRestrictionOnAnyUser()
1648 public int getUserRestrictionSource(String restrictionKey, int userId) { in getUserRestrictionSource() argument
1649 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource()
1660 String restrictionKey, @UserIdInt int userId) { in getUserRestrictionSources() argument
1664 if (!hasUserRestriction(restrictionKey, userId)) { in getUserRestrictionSources()
[all …]
DPackageManagerService.java13165 boolean isUserRestricted(int userId, String restrictionKey) {
13167 if (restrictions.getBoolean(restrictionKey, false)) {
13168 Log.w(TAG, "User is restricted: " + restrictionKey);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java1188 private boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
1190 .getUserRestrictionSources(restrictionKey, userHandle); in hasUserRestriction()