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.java131 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
135 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()
137 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setupIsTetherAvailable()
142 .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.java1590 List<EnforcingUser> enforcingUsers = getUserRestrictionSources(restrictionKey, userId); in getUserRestrictionSource() local
1593 for (int i = enforcingUsers.size() - 1; i >= 0; i--) { in getUserRestrictionSource()
1594 result |= enforcingUsers.get(i).getUserRestrictionSource(); in getUserRestrictionSource()