Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/os/
DUserManager.java349 public boolean hasUserRestriction(String restrictionKey) { in hasUserRestriction() argument
350 return hasUserRestriction(restrictionKey, Process.myUserHandle()); in hasUserRestriction()
360 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
361 return getUserRestrictions(userHandle).getBoolean(restrictionKey, false); in hasUserRestriction()
/frameworks/base/services/java/com/android/server/pm/
DUserManagerService.java851 String restrictionKey) { in readBoolean() argument
852 String value = parser.getAttributeValue(null, restrictionKey); in readBoolean()
854 restrictions.putBoolean(restrictionKey, Boolean.parseBoolean(value)); in readBoolean()
858 private void writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey) in writeBoolean() argument
860 if (restrictions.containsKey(restrictionKey)) { in writeBoolean()
861 xml.attribute(null, restrictionKey, in writeBoolean()
862 Boolean.toString(restrictions.getBoolean(restrictionKey))); in writeBoolean()
DPackageManagerService.java6737 private boolean isUserRestricted(int userId, String restrictionKey) { in isUserRestricted() argument
6739 if (restrictions.getBoolean(restrictionKey, false)) { in isUserRestricted()
6740 Log.w(TAG, "User is restricted: " + restrictionKey); in isUserRestricted()