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

/frameworks/base/services/core/java/com/android/server/
H A DMountService.java1109 Slog.w(TAG, "User has restriction DISALLOW_MOUNT_PHYSICAL_MEDIA; cannot mount volume.");
1312 private boolean hasUserRestriction(String restriction) { argument
1314 return um.hasUserRestriction(restriction, Binder.getCallingUserHandle());
1317 private void validateUserRestriction(String restriction) { argument
1318 if (hasUserRestriction(restriction)) {
1319 throw new SecurityException("User has restriction " + restriction);
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerService.java2440 void enforceShellRestriction(String restriction, int callingUid, int userHandle) { argument
2443 && sUserManager.hasUserRestriction(restriction, userHandle)) {
5982 // with it. Better to just have the restriction here, be
11179 // Regardless of writeSettings we need to ensure that this restriction
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityManagerService.java2651 // Don't allow the client index restriction to push it down farther in the
3230 void enforceShellRestriction(String restriction, int userHandle) { argument
3233 || mUserManager.hasUserRestriction(restriction, userHandle)) {

Completed in 464 milliseconds