Home
last modified time | relevance | path

Searched refs:isProfileOwner (Results 1 – 5 of 5) 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/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2740 final boolean isProfileOwner = isProfileOwner(admin.info.getComponent(), userId); in getActiveAdminOrCheckPermissionForCallerLocked()
2750 if (DA_DISALLOWED_POLICIES.contains(reqPolicy) && !isDeviceOwner && !isProfileOwner) { in getActiveAdminOrCheckPermissionForCallerLocked()
2855 final boolean ownsProfile = isProfileOwner(admin.info.getComponent(), userId); in isActiveAdminWithPolicyForUserLocked()
3462 return !isProfileOwner(deviceAdminComponent, userHandle) in shouldOverwritePoliciesFromXml()
4033 if (isProfileOwner(adminReceiver, userHandle)) { in forceRemoveActiveAdmin()
4110 || isProfileOwner(adminReceiver, userHandle)) { in removeActiveAdmin()
5476 if (!isProfileOwner(adminComponent, callingUserId)) { in lockNow()
7909 public boolean isProfileOwner(ComponentName who, int userId) { in isProfileOwner() method
9808 return !isProfileOwner(admin, userId); in isAdminAffectedByRestriction()
10786 final boolean ownsProfile = isProfileOwner(admin.info.getComponent(), userHandle); in notifyLockTaskModeChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java700 if (isProfileOwner(uid)) { in resolveAccountVisibility()
2166 && !isProfileOwner(callingUid)) { in removeAccountAsUser()
5696 if (isProfileOwner(callingUid)) {
5708 if (isProfileOwner(callingUid)) {
5725 private boolean isProfileOwner(int uid) {
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java5018 assertTrue(dpms.isProfileOwner(admin1, DpmMockContext.CALLER_USER_HANDLE)); in testRevertProfileOwnership_noMetadataFile()
/frameworks/base/services/
Dart-profile6321 PLcom/android/server/devicepolicy/DevicePolicyManagerService;->isProfileOwner(Landroid/content/Comp…