Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicePreferenceControllerTest.java149 final List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() local
150 enforcingUsers.add(new UserManager.EnforcingUser(fakeWorkProfileId, in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
157 enforcingUsers); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
174 final List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in workProfileDisallowShareLocationOff_getAllUserLocationServices() local
178 enforcingUsers); in workProfileDisallowShareLocationOff_getAllUserLocationServices()
207 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in withUserRestriction_shouldDisableLocationAccuracy() local
208 enforcingUsers.add(new UserManager.EnforcingUser(userId, in withUserRestriction_shouldDisableLocationAccuracy()
215 enforcingUsers); in withUserRestriction_shouldDisableLocationAccuracy()
DLocationEnablerTest.java194 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin() local
197 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
199 enforcingUsers.add(new UserManager.EnforcingUser(userId, in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
203 .thenReturn(enforcingUsers); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java119 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in testUpdateStateWithAdminTimeoutsAndRestriction() local
122 enforcingUsers.add(new UserManager.EnforcingUser(userId, in testUpdateStateWithAdminTimeoutsAndRestriction()
124 enforcingUsers.add(new UserManager.EnforcingUser(userId, in testUpdateStateWithAdminTimeoutsAndRestriction()
128 .thenReturn(enforcingUsers); in testUpdateStateWithAdminTimeoutsAndRestriction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowUserManager.java102 List<EnforcingUser> enforcingUsers = in getUserRestrictionSources() local
104 return enforcingUsers == null ? Collections.emptyList() : enforcingUsers; in getUserRestrictionSources()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DRemoveAccountPreferenceControllerTest.java153 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog() local
154 enforcingUsers.add(new UserManager.EnforcingUser(userId, in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
161 enforcingUsers); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTetherSettingsTest.java139 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
142 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DWifiTetherSettingsTest.java156 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local
159 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java231 final List<UserManager.EnforcingUser> enforcingUsers = Collections.singletonList( in withDisallowRemoveUser_ShouldDisableRemoveUser() local
238 enforcingUsers); in withDisallowRemoveUser_ShouldDisableRemoveUser()