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.java211 private static EnforcedAdmin findEnforcedAdmin(@Nullable List<ComponentName> admins, in findEnforcedAdmin() argument
214 if (admins == null) { in findEnforcedAdmin()
220 for (ComponentName admin : admins) { in findEnforcedAdmin()
507 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfPasswordQualityIsSet() local
508 if (admins == null) { in checkIfPasswordQualityIsSet()
513 for (ComponentName admin : admins) { in checkIfPasswordQualityIsSet()
563 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() local
564 if (admins == null) { in checkForLockSetting()
570 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/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3282 List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(userHandle);
3283 final int N = admins.size();
3285 ActiveAdmin admin = admins.get(i);
3912 List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(
3914 final int N = admins.size();
3916 ActiveAdmin admin = admins.get(i);
3964 ArrayList<ActiveAdmin> admins = new ArrayList<>();
3969 admins.addAll(policy.mAdminList);
3974 admins.add(admin.getParentActiveAdmin());
3977 admins.add(admin);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java2141 private void assertActiveAdmins(int userId, String... admins) { in assertActiveAdmins() argument
2143 if (admins == null) { in assertActiveAdmins()
2150 + "; expected=" + Arrays.toString(admins), admins.length, actualAdminApps.size()); in assertActiveAdmins()
2152 for (String admin : admins) { in assertActiveAdmins()
2156 + "; expected=" + Arrays.toString(admins), adminAppsCopy.isEmpty()); in assertActiveAdmins()
2159 private void setActiveAdmins(int userId, String... admins) { in setActiveAdmins() argument
2160 mController.setActiveAdminApps(new ArraySet<>(Arrays.asList(admins)), userId); in setActiveAdmins()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java583 List<ComponentName> admins = dpm.getActiveAdmins(); in testSetActiveAdmin() local
584 assertThat(admins.size()).isEqualTo(2); in testSetActiveAdmin()
585 assertThat(admins.get(0)).isEqualTo(admin1); in testSetActiveAdmin()
586 assertThat(admins.get(1)).isEqualTo(admin2); in testSetActiveAdmin()