Searched refs:reqPolicy (Results 1 – 2 of 2) sorted by relevance
81 public abstract boolean isActiveAdminWithPolicy(int uid, int reqPolicy); in isActiveAdminWithPolicy() argument
2705 ActiveAdmin getActiveAdminForCallerLocked(ComponentName who, int reqPolicy) in getActiveAdminForCallerLocked() argument2708 reqPolicy, /* permission= */ null); in getActiveAdminForCallerLocked()2721 int reqPolicy, in getActiveAdminOrCheckPermissionForCallerLocked() argument2726 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 …]