Home
last modified time | relevance | path

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

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DRestrictionsSetTest.java149 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasEnforcingUser() local
152 UserManager.EnforcingUser enforcingUser1 = enforcingUsers.get(0); in testGetEnforcingUsers_hasEnforcingUser()
167 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasMultipleEnforcingUsers() local
170 assertEquals(2, enforcingUsers.size()); in testGetEnforcingUsers_hasMultipleEnforcingUsers()
171 for (UserManager.EnforcingUser enforcingUser : enforcingUsers) { in testGetEnforcingUsers_hasMultipleEnforcingUsers()
190 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_noEnforcingUsers() local
193 assertTrue(enforcingUsers.isEmpty()); in testGetEnforcingUsers_noEnforcingUsers()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DTetherUtilTest.java124 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
128 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()
130 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()
135 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java179 final List<UserManager.EnforcingUser> enforcingUsers = in checkIfRestrictionEnforced() local
182 if (enforcingUsers.isEmpty()) { in checkIfRestrictionEnforced()
186 final int size = enforcingUsers.size(); in checkIfRestrictionEnforced()
199 final EnforcingUser enforcingUser = enforcingUsers.get(0); in checkIfRestrictionEnforced()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java3400 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local
3403 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()
3404 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java16116 List<EnforcingUser> enforcingUsers = new ArrayList(); in getUserRestrictionSources() local
16117 enforcingUsers.addAll(getEnforcingUsers(localAdmins)); in getUserRestrictionSources()
16118 enforcingUsers.addAll(getEnforcingUsers(globalAdmins)); in getUserRestrictionSources()
16119 return enforcingUsers; in getUserRestrictionSources()
16143 List<EnforcingUser> enforcingUsers = new ArrayList(); in getEnforcingUsers() local
16148 enforcingUsers.add(new EnforcingUser(admin.getUserId(), in getEnforcingUsers()
16151 enforcingUsers.add(new EnforcingUser(admin.getUserId(), in getEnforcingUsers()
16155 return enforcingUsers; in getEnforcingUsers()