Home
last modified time | relevance | path

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

/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.java1649 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local
1652 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()
1653 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()