Searched refs:admins (Results 1 – 7 of 7) sorted by relevance
182 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin() argument185 if (admins == null) { in findEnforcedAdmin()191 for (ComponentName admin : admins) { in findEnforcedAdmin()471 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfPasswordQualityIsSet() local472 if (admins == null) { in checkIfPasswordQualityIsSet()477 for (ComponentName admin : admins) { in checkIfPasswordQualityIsSet()526 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() local527 if (admins == null) { in checkForLockSetting()533 for (ComponentName admin : admins) { in checkForLockSetting()
155 final List<ComponentName> admins = devicePolicyManager.getActiveAdmins(); in hasActiveAdmins() local156 return (admins != null && !admins.isEmpty()); in hasActiveAdmins()
157 List<ComponentName> admins = devicePolicyManager.getActiveAdmins(); in isCallingAppAdmin() local158 if (admins == null) { in isCallingAppAdmin()161 for (ComponentName componentName : admins) { in isCallingAppAdmin()
77 List<ComponentName> admins = context.getSystemService(DevicePolicyManager.class) in getAdminWithinPackage() local79 if (admins == null) { in getAdminWithinPackage()83 return admins.stream().filter(i -> i.getPackageName().equals(packageName)).findAny() in getAdminWithinPackage()
355 List<ComponentName> admins = mDPM.getActiveAdmins(); in findAdminWithPackageName() local356 if (admins == null) { in findAdminWithPackageName()359 return admins.stream().filter(i -> i.getPackageName().equals(packageName)).findAny(); in findAdminWithPackageName()
846 List<ComponentName> admins = mDPM.getActiveAdmins(); in findAdminWithPackageName() local847 if (admins == null) { in findAdminWithPackageName()850 return admins.stream().filter(i -> i.getPackageName().equals(packageName)).findAny(); in findAdminWithPackageName()