Searched refs:enforcingUsers (Results 1 – 3 of 3) sorted by relevance
131 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local135 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()137 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()142 .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()
1590 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local1593 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()1594 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()