Home
last modified time | relevance | path

Searched refs:reqPolicy (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/app/admin/
DDevicePolicyManagerInternal.java81 public abstract boolean isActiveAdminWithPolicy(int uid, int reqPolicy); in isActiveAdminWithPolicy() argument
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2705 ActiveAdmin getActiveAdminForCallerLocked(ComponentName who, int reqPolicy) in getActiveAdminForCallerLocked() argument
2708 reqPolicy, /* permission= */ null); in getActiveAdminForCallerLocked()
2721 int reqPolicy, in getActiveAdminOrCheckPermissionForCallerLocked() argument
2726 ActiveAdmin result = getActiveAdminWithPolicyForUidLocked(who, reqPolicy, callingUid); in getActiveAdminOrCheckPermissionForCallerLocked()
2742 if (reqPolicy == DeviceAdminInfo.USES_POLICY_DEVICE_OWNER) { in getActiveAdminOrCheckPermissionForCallerLocked()
2746 if (reqPolicy == DeviceAdminInfo.USES_POLICY_PROFILE_OWNER) { in getActiveAdminOrCheckPermissionForCallerLocked()
2750 if (DA_DISALLOWED_POLICIES.contains(reqPolicy) && !isDeviceOwner && !isProfileOwner) { in getActiveAdminOrCheckPermissionForCallerLocked()
2753 + admin.info.getTagForPolicy(reqPolicy)); in getActiveAdminOrCheckPermissionForCallerLocked()
2757 + admin.info.getTagForPolicy(reqPolicy)); in getActiveAdminOrCheckPermissionForCallerLocked()
2760 + callingUid + " for policy #" + reqPolicy); in getActiveAdminOrCheckPermissionForCallerLocked()
[all …]