Searched defs:restrictionKey (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/core/java/android/os/
H A DUserManager.java665 * @param restrictionKey The string key representing the restriction.
668 public boolean hasUserRestriction(String restrictionKey) { argument
669 return hasUserRestriction(restrictionKey, Process.myUserHandle());
676 * @param restrictionKey the string key representing the restriction
679 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { argument
681 return mService.hasUserRestriction(restrictionKey,
/frameworks/base/services/core/java/com/android/server/pm/
H A DUserManagerService.java499 public boolean hasUserRestriction(String restrictionKey, int userId) { argument
502 return restrictions != null ? restrictions.getBoolean(restrictionKey) : false;
1055 String restrictionKey) {
1056 String value = parser.getAttributeValue(null, restrictionKey);
1058 restrictions.putBoolean(restrictionKey, Boolean.parseBoolean(value));
1062 private void writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey) argument
1064 if (restrictions.containsKey(restrictionKey)) {
1065 xml.attribute(null, restrictionKey,
1066 Boolean.toString(restrictions.getBoolean(restrictionKey)));
1054 readBoolean(XmlPullParser parser, Bundle restrictions, String restrictionKey) argument
H A DPackageManagerService.java8299 boolean isUserRestricted(int userId, String restrictionKey) { argument
8301 if (restrictions.getBoolean(restrictionKey, false)) {
8302 Log.w(TAG, "User is restricted: " + restrictionKey);

Completed in 34 milliseconds