Home
last modified time | relevance | path

Searched refs:isProfileOwner (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsAccess.java129 boolean isProfileOwner = dpmi != null && dpmi.isActiveAdminWithPolicy(callingUid, in checkAccessLevel()
131 if (isProfileOwner) { in checkAccessLevel()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java703 if (isProfileOwner(uid)) { in resolveAccountVisibility()
2141 && !isProfileOwner(callingUid)) { in removeAccountAsUser()
5670 if (isProfileOwner(callingUid)) {
5682 if (isProfileOwner(callingUid)) {
5699 private boolean isProfileOwner(int uid) {
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2681 final boolean ownsProfile = isProfileOwner(admin.info.getComponent(), userId); in isActiveAdminWithPolicyForUserLocked()
3836 if (isProfileOwner(adminReceiver, userHandle)) { in forceRemoveActiveAdmin()
3913 || isProfileOwner(adminReceiver, userHandle)) { in removeActiveAdmin()
5137 if (!isProfileOwner(adminComponent, callingUserId)) { in lockNow()
7274 public boolean isProfileOwner(ComponentName who, int userId) { in isProfileOwner() method in DevicePolicyManagerService
9019 return !isProfileOwner(admin, userId); in isAdminAffectedByRestriction()
9929 final boolean ownsProfile = isProfileOwner(admin.info.getComponent(), userHandle); in notifyLockTaskModeChanged()
12721 if (isProfileOwner(admin, callingUserId)) { in transferOwnership()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java4953 assertTrue(dpms.isProfileOwner(admin1, DpmMockContext.CALLER_USER_HANDLE)); in testRevertProfileOwnership_noMetadataFile()