Home
last modified time | relevance | path

Searched refs:isDeviceOwner (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java114 boolean isDeviceOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in checkAccessLevel()
116 if (hasCarrierPrivileges || isDeviceOwner in checkAccessLevel()
/frameworks/base/core/java/android/os/
DUserManagerInternal.java54 boolean isDeviceOwner, int cameraRestrictionScope); in setDevicePolicyUserRestrictions() argument
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java362 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()
DUserManagerService.java1389 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/
DDevicePolicyManagerService.java2463 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/
DDevicePolicyManagerTest.java4913 assertTrue(dpms.isDeviceOwner(admin1, UserHandle.USER_SYSTEM)); in testRevertDeviceOwnership_noMetadataFile()