Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DRestrictionsSetTest.java145 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasEnforcingUser() local
148 UserManager.EnforcingUser enforcingUser1 = enforcingUsers.get(0); in testGetEnforcingUsers_hasEnforcingUser()
162 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasMultipleEnforcingUsers() local
165 assertEquals(2, enforcingUsers.size()); in testGetEnforcingUsers_hasMultipleEnforcingUsers()
166 for (UserManager.EnforcingUser enforcingUser : enforcingUsers) { in testGetEnforcingUsers_hasMultipleEnforcingUsers()
185 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_noEnforcingUsers() local
188 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.java95 final List<UserManager.EnforcingUser> enforcingUsers = in checkIfRestrictionEnforced() local
98 if (enforcingUsers.isEmpty()) { in checkIfRestrictionEnforced()
101 } else if (enforcingUsers.size() > 1) { in checkIfRestrictionEnforced()
105 final int restrictionSource = enforcingUsers.get(0).getUserRestrictionSource(); in checkIfRestrictionEnforced()
106 final int adminUserId = enforcingUsers.get(0).getUserHandle().getIdentifier(); in checkIfRestrictionEnforced()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java2124 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local
2127 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()
2128 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()