Searched refs:enforcingUsers (Results 1 – 5 of 5) sorted by relevance
149 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasEnforcingUser() local152 UserManager.EnforcingUser enforcingUser1 = enforcingUsers.get(0); in testGetEnforcingUsers_hasEnforcingUser()167 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasMultipleEnforcingUsers() local170 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() local193 assertTrue(enforcingUsers.isEmpty()); in testGetEnforcingUsers_noEnforcingUsers()
124 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local128 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()130 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()135 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
179 final List<UserManager.EnforcingUser> enforcingUsers = in checkIfRestrictionEnforced() local182 if (enforcingUsers.isEmpty()) { in checkIfRestrictionEnforced()186 final int size = enforcingUsers.size(); in checkIfRestrictionEnforced()199 final EnforcingUser enforcingUser = enforcingUsers.get(0); in checkIfRestrictionEnforced()
3400 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local3403 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()3404 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()
16116 List<EnforcingUser> enforcingUsers = new ArrayList(); in getUserRestrictionSources() local16117 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() local16148 enforcingUsers.add(new EnforcingUser(admin.getUserId(), in getEnforcingUsers()16151 enforcingUsers.add(new EnforcingUser(admin.getUserId(), in getEnforcingUsers()16155 return enforcingUsers; in getEnforcingUsers()