Searched refs:restrictionKey (Results 1 - 3 of 3) sorted by relevance
/frameworks/base/core/java/android/os/ |
H A D | UserManager.java | 347 * @param restrictionKey the string key representing the restriction 349 public boolean hasUserRestriction(String restrictionKey) { argument 350 return hasUserRestriction(restrictionKey, Process.myUserHandle()); 357 * @param restrictionKey the string key representing the restriction 360 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { argument 361 return getUserRestrictions(userHandle).getBoolean(restrictionKey, false);
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | UserManagerService.java | 851 String restrictionKey) { 852 String value = parser.getAttributeValue(null, restrictionKey); 854 restrictions.putBoolean(restrictionKey, Boolean.parseBoolean(value)); 858 private void writeBoolean(XmlSerializer xml, Bundle restrictions, String restrictionKey) argument 860 if (restrictions.containsKey(restrictionKey)) { 861 xml.attribute(null, restrictionKey, 862 Boolean.toString(restrictions.getBoolean(restrictionKey))); 850 readBoolean(XmlPullParser parser, Bundle restrictions, String restrictionKey) argument
|
H A D | PackageManagerService.java | 6737 private boolean isUserRestricted(int userId, String restrictionKey) { argument 6739 if (restrictions.getBoolean(restrictionKey, false)) { 6740 Log.w(TAG, "User is restricted: " + restrictionKey);
|
Completed in 101 milliseconds