Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationInjectedServicesPreferenceControllerTest.java122 final List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() local
123 enforcingUsers.add(new UserManager.EnforcingUser(fakeWorkProfileId, in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
130 enforcingUsers); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
146 final List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in workProfileDisallowShareLocationOff_getAllUserLocationServices() local
150 enforcingUsers); in workProfileDisallowShareLocationOff_getAllUserLocationServices()
178 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in withUserRestriction_shouldDisableLocationAccuracy() local
179 enforcingUsers.add(new UserManager.EnforcingUser(userId, in withUserRestriction_shouldDisableLocationAccuracy()
186 enforcingUsers); in withUserRestriction_shouldDisableLocationAccuracy()
DLocationEnablerTest.java190 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin() local
193 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
195 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
199 .thenReturn(enforcingUsers); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java118 List<EnforcingUser> enforcingUsers = in getUserRestrictionSources() local
120 return enforcingUsers == null ? Collections.emptyList() : enforcingUsers; in getUserRestrictionSources()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DRemoveAccountPreferenceControllerTest.java155 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog() local
156 enforcingUsers.add(new UserManager.EnforcingUser(userId, in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
163 enforcingUsers); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java167 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
170 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DAllInOneTetherSettingsTest.java221 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
224 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
DTetherSettingsTest.java367 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
370 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java610 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse() local
611 enforcingUsers.add(new UserManager.EnforcingUser(UserHandle.myUserId(), in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
616 enforcingUsers in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
DUserSettingsTest.java200 final List<UserManager.EnforcingUser> enforcingUsers = Collections.singletonList( in withDisallowRemoveUser_ShouldDisableRemoveUser() local
207 enforcingUsers); in withDisallowRemoveUser_ShouldDisableRemoveUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java282 final List<UserManager.EnforcingUser> enforcingUsers = Collections.singletonList( in isEnabled_canBeDisabledByAdmin() local
289 enforcingUsers); in isEnabled_canBeDisabledByAdmin()