Home
last modified time | relevance | path

Searched refs:admins (Results 1 – 3 of 3) 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()
434 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userId); in checkIfPasswordQualityIsSet() local
435 if (admins == null) { in checkIfPasswordQualityIsSet()
440 for (ComponentName admin : admins) { in checkIfPasswordQualityIsSet()
490 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() local
491 if (admins == null) { in checkForLockSetting()
497 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.java1538 private void assertActiveAdmins(int userId, String... admins) { in assertActiveAdmins() argument
1540 if (admins == null) { in assertActiveAdmins()
1547 + "; expected=" + Arrays.toString(admins), admins.length, actualAdminApps.size()); in assertActiveAdmins()
1549 for (String admin : admins) { in assertActiveAdmins()
1553 + "; expected=" + Arrays.toString(admins), adminAppsCopy.isEmpty()); in assertActiveAdmins()
1556 private void setActiveAdmins(int userId, String... admins) { in setActiveAdmins() argument
1557 mController.setActiveAdminApps(new ArraySet<>(Arrays.asList(admins)), userId); in setActiveAdmins()