Home
last modified time | relevance | path

Searched refs:admins (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtils.java175 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin() argument
178 if (admins == null) { in findEnforcedAdmin()
182 for (ComponentName admin : admins) { in findEnforcedAdmin()
427 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfPasswordQualityIsSet() local
428 if (admins == null) { in checkIfPasswordQualityIsSet()
432 for (ComponentName admin : admins) { in checkIfPasswordQualityIsSet()
482 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() local
483 if (admins == null) { in checkForLockSetting()
488 for (ComponentName admin : admins) { in checkForLockSetting()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java286 private UserInfo setUpUser(int userId, ComponentName[] admins) { in setUpUser() argument
289 setUpActiveAdmins(userId, admins); in setUpUser()
293 private UserInfo setUpManagedProfile(int userId, ComponentName[] admins) { in setUpManagedProfile() argument
296 setUpActiveAdmins(userId, admins); in setUpManagedProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java808 private void assertActiveAdmins(int userId, String... admins) { in assertActiveAdmins() argument
810 if (admins == null) { in assertActiveAdmins()
817 + "; expected=" + Arrays.toString(admins), admins.length, actualAdminApps.size()); in assertActiveAdmins()
819 for (String admin : admins) { in assertActiveAdmins()
823 + "; expected=" + Arrays.toString(admins), adminAppsCopy.isEmpty()); in assertActiveAdmins()
826 private void setActiveAdmins(int userId, String... admins) { in setActiveAdmins() argument
827 mController.setActiveAdminApps(new ArraySet<>(Arrays.asList(admins)), userId); in setActiveAdmins()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3527 List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked( in handlePasswordExpirationNotification() local
3529 final int N = admins.size(); in handlePasswordExpirationNotification()
3531 ActiveAdmin admin = admins.get(i); in handlePasswordExpirationNotification()
3997 List<ActiveAdmin> admins = in getPasswordQuality() local
3999 final int N = admins.size(); in getPasswordQuality()
4001 ActiveAdmin admin = admins.get(i); in getPasswordQuality()
4018 ArrayList<ActiveAdmin> admins = new ArrayList<ActiveAdmin>(); in getActiveAdminsForLockscreenPoliciesLocked() local
4022 admins.addAll(policy.mAdminList); in getActiveAdminsForLockscreenPoliciesLocked()
4032 admins.add(admin.getParentActiveAdmin()); in getActiveAdminsForLockscreenPoliciesLocked()
4035 admins.add(admin); in getActiveAdminsForLockscreenPoliciesLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java449 List<ComponentName> admins = dpm.getActiveAdmins(); in testSetActiveAdmin() local
450 assertEquals(2, admins.size()); in testSetActiveAdmin()
451 assertEquals(admin1, admins.get(0)); in testSetActiveAdmin()
452 assertEquals(admin2, admins.get(1)); in testSetActiveAdmin()