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/
DRestrictedLockUtilsInternal.java194 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin() argument
197 if (admins == null) { in findEnforcedAdmin()
203 for (ComponentName admin : admins) { in findEnforcedAdmin()
451 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfPasswordQualityIsSet() local
452 if (admins == null) { in checkIfPasswordQualityIsSet()
457 for (ComponentName admin : admins) { in checkIfPasswordQualityIsSet()
507 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() local
508 if (admins == null) { in checkForLockSetting()
514 for (ComponentName admin : admins) { in checkForLockSetting()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java310 private UserInfo setUpUser(int userId, ComponentName[] admins) { in setUpUser() argument
313 setUpActiveAdmins(userId, admins); in setUpUser()
317 private UserInfo setUpManagedProfile(int userId, ComponentName[] admins) { in setUpManagedProfile() argument
320 setUpActiveAdmins(userId, admins); in setUpManagedProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java988 private void assertActiveAdmins(int userId, String... admins) { in assertActiveAdmins() argument
990 if (admins == null) { in assertActiveAdmins()
997 + "; expected=" + Arrays.toString(admins), admins.length, actualAdminApps.size()); in assertActiveAdmins()
999 for (String admin : admins) { in assertActiveAdmins()
1003 + "; expected=" + Arrays.toString(admins), adminAppsCopy.isEmpty()); in assertActiveAdmins()
1006 private void setActiveAdmins(int userId, String... admins) { in setActiveAdmins() argument
1007 mController.setActiveAdminApps(new ArraySet<>(Arrays.asList(admins)), userId); in setActiveAdmins()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3724 List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked( in handlePasswordExpirationNotification() local
3726 final int N = admins.size(); in handlePasswordExpirationNotification()
3728 ActiveAdmin admin = admins.get(i); in handlePasswordExpirationNotification()
4236 List<ActiveAdmin> admins = in getPasswordQuality() local
4238 final int N = admins.size(); in getPasswordQuality()
4240 ActiveAdmin admin = admins.get(i); in getPasswordQuality()
4257 ArrayList<ActiveAdmin> admins = new ArrayList<ActiveAdmin>(); in getActiveAdminsForLockscreenPoliciesLocked() local
4261 admins.addAll(policy.mAdminList); in getActiveAdminsForLockscreenPoliciesLocked()
4271 admins.add(admin.getParentActiveAdmin()); in getActiveAdminsForLockscreenPoliciesLocked()
4274 admins.add(admin); in getActiveAdminsForLockscreenPoliciesLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java451 List<ComponentName> admins = dpm.getActiveAdmins(); in testSetActiveAdmin() local
452 assertEquals(2, admins.size()); in testSetActiveAdmin()
453 assertEquals(admin1, admins.get(0)); in testSetActiveAdmin()
454 assertEquals(admin2, admins.get(1)); in testSetActiveAdmin()