Searched refs:enforcingUsers (Results 1 – 4 of 4) sorted by relevance
145 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasEnforcingUser() local148 UserManager.EnforcingUser enforcingUser1 = enforcingUsers.get(0); in testGetEnforcingUsers_hasEnforcingUser()162 List<UserManager.EnforcingUser> enforcingUsers = mRestrictionsSet.getEnforcingUsers( in testGetEnforcingUsers_hasMultipleEnforcingUsers() local165 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() local188 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()
95 final List<UserManager.EnforcingUser> enforcingUsers = in checkIfRestrictionEnforced() local98 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()
2124 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local2127 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()2128 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()