Searched refs:isDeviceOwner (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 114 boolean isDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in checkAccessLevel() 116 if (hasCarrierPrivileges || isDeviceOwner in checkAccessLevel()
|
/frameworks/base/core/java/android/os/ |
D | UserManagerInternal.java | 54 boolean isDeviceOwner, int cameraRestrictionScope); in setDevicePolicyUserRestrictions() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 362 public static void sortToGlobalAndLocal(@Nullable Bundle in, boolean isDeviceOwner, in sortToGlobalAndLocal() argument 378 if (isGlobal(isDeviceOwner, key)) { in sortToGlobalAndLocal() 389 private static boolean isGlobal(boolean isDeviceOwner, String key) { in isGlobal() argument 390 return (isDeviceOwner && in isGlobal()
|
D | UserManagerService.java | 1389 boolean isDeviceOwner, int cameraRestrictionScope) { in setDevicePolicyUserRestrictionsInner() argument 1394 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner() 1405 if (isDeviceOwner) { in setDevicePolicyUserRestrictionsInner() 3734 boolean isDeviceOwner, int cameraRestrictionScope) { in setDevicePolicyUserRestrictions() argument 3736 isDeviceOwner, cameraRestrictionScope); in setDevicePolicyUserRestrictions()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 2463 Set<String> exceptionList, boolean isDeviceOwner) { in migrateUserRestrictionsForUser() argument 2474 final boolean canOwnerChange = isDeviceOwner in migrateUserRestrictionsForUser() 2680 final boolean ownsDevice = isDeviceOwner(admin.info.getComponent(), userId); in isActiveAdminWithPolicyForUserLocked() 3833 if (isDeviceOwner(adminReceiver, userHandle)) { in forceRemoveActiveAdmin() 3912 if (isDeviceOwner(adminReceiver, userHandle) in removeActiveAdmin() 5997 if (!isDeviceOwner(admin, userId)) { in wipeDataNoLock() 7247 boolean isDeviceOwner(ActiveAdmin admin) { in isDeviceOwner() method in DevicePolicyManagerService 7248 return isDeviceOwner(admin.info.getComponent(), admin.getUserHandle().getIdentifier()); in isDeviceOwner() 7251 public boolean isDeviceOwner(ComponentName who, int userId) { in isDeviceOwner() method in DevicePolicyManagerService 9017 return !isDeviceOwner(admin, userId); in isAdminAffectedByRestriction() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 4913 assertTrue(dpms.isDeviceOwner(admin1, UserHandle.USER_SYSTEM)); in testRevertDeviceOwnership_noMetadataFile()
|