Searched refs:enforcingUsers (Results 1 – 3 of 3) sorted by relevance
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()
1649 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local1652 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()1653 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()