Searched refs:enforcingUsers (Results 1 – 10 of 10) sorted by relevance
122 final List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly() local123 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() local150 enforcingUsers); in workProfileDisallowShareLocationOff_getAllUserLocationServices()178 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in withUserRestriction_shouldDisableLocationAccuracy() local179 enforcingUsers.add(new UserManager.EnforcingUser(userId, in withUserRestriction_shouldDisableLocationAccuracy()186 enforcingUsers); in withUserRestriction_shouldDisableLocationAccuracy()
190 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setRestriction_getShareLocationEnforcedAdmin_shouldReturnEnforcedAdmin() local193 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()
118 List<EnforcingUser> enforcingUsers = in getUserRestrictionSources() local120 return enforcingUsers == null ? Collections.emptyList() : enforcingUsers; in getUserRestrictionSources()
155 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog() local156 enforcingUsers.add(new UserManager.EnforcingUser(userId, in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()163 enforcingUsers); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
167 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local170 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
221 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local224 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
367 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in setupIsTetherAvailable() local370 .thenReturn(enforcingUsers); in setupIsTetherAvailable()
610 List<UserManager.EnforcingUser> enforcingUsers = new ArrayList<>(); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse() local611 enforcingUsers.add(new UserManager.EnforcingUser(UserHandle.myUserId(), in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()616 enforcingUsers in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
200 final List<UserManager.EnforcingUser> enforcingUsers = Collections.singletonList( in withDisallowRemoveUser_ShouldDisableRemoveUser() local207 enforcingUsers); in withDisallowRemoveUser_ShouldDisableRemoveUser()
282 final List<UserManager.EnforcingUser> enforcingUsers = Collections.singletonList( in isEnabled_canBeDisabledByAdmin() local289 enforcingUsers); in isEnabled_canBeDisabledByAdmin()