/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/ |
D | UserSwitcherInteractorTest.kt | 110 private lateinit var userRepository: FakeUserRepository in <lambda>() variable in com.android.systemui.user.domain.interactor.UserSwitcherInteractorTest 136 userRepository = FakeUserRepository() in <lambda>() 141 repository = userRepository, in <lambda>() 179 userRepository.setUserInfos(userInfos) in <lambda>() 180 userRepository.setSelectedUserInfo(userInfos[0]) in <lambda>() 181 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>() 199 userRepository.setUserInfos(userInfos) in <lambda>() 200 userRepository.setSelectedUserInfo(userInfos[0]) in <lambda>() 201 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>() 227 userRepository.setUserInfos(userInfos) in <lambda>() [all …]
|
D | SelectedUserInteractorTest.kt | 21 private val userRepository = FakeUserRepository() constant 25 userRepository.setUserInfos(USER_INFOS) in setUp() 26 underTest = SelectedUserInteractor(userRepository) in setUp() 32 runBlocking { userRepository.setSelectedUserInfo(USER_INFOS[0]) } in getSelectedUserIdReturnsId()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/ |
D | TrustRepositoryTest.kt | 53 private lateinit var userRepository: FakeUserRepository variable in com.android.systemui.keyguard.data.repository.TrustRepositoryTest 65 userRepository = FakeUserRepository() in setUp() 66 userRepository.setUserInfos(users) in setUp() 72 TrustRepositoryImpl(testScope.backgroundScope, userRepository, trustManager, logger) in setUp() 88 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenItChanges_emitsLatestValue() 110 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenItChangesForDifferentUser_noops() 125 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_whenUserChangesWithoutRecentTrustChange_defaultsToFalse() 128 userRepository.setSelectedUserInfo(users[1]) in isCurrentUserTrustManaged_whenUserChangesWithoutRecentTrustChange_defaultsToFalse() 137 userRepository.setSelectedUserInfo(users[1]) in isCurrentUserTrustManaged_itChangesFirstBeforeUserInfoChanges_emitsCorrectValue() 142 userRepository.setSelectedUserInfo(users[0]) in isCurrentUserTrustManaged_itChangesFirstBeforeUserInfoChanges_emitsCorrectValue() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/ui/viewmodel/ |
D | StatusBarUserChipViewModelTest.kt | 86 private val userRepository = FakeUserRepository() in <lambda>() constant in com.android.systemui.user.ui.viewmodel.StatusBarUserChipViewModelTest 109 userRepository.isStatusBarUserChipEnabled = true in <lambda>() 115 repository = userRepository, in <lambda>() 124 repository = userRepository, in <lambda>() 139 userRepository.isStatusBarUserChipEnabled = false in <lambda>() 148 userRepository.isStatusBarUserChipEnabled = true in <lambda>() 157 userRepository.setUserInfos(listOf(USER_0)) in <lambda>() 158 userRepository.setSelectedUserInfo(USER_0) in <lambda>() 159 userRepository.setSettings(UserSwitcherSettingsModel(isUserSwitcherEnabled = true)) in <lambda>() 193 userRepository.setSelectedUserInfo(USER_0) in <lambda>() [all …]
|
D | UserSwitcherViewModelTest.kt | 87 private lateinit var userRepository: FakeUserRepository in <lambda>() variable in com.android.systemui.user.ui.viewmodel.UserSwitcherViewModelTest 106 userRepository = FakeUserRepository() in <lambda>() 120 userRepository.setUserInfos(userInfos) in <lambda>() 121 userRepository.setSelectedUserInfo(userInfos[0]) in <lambda>() 122 userRepository.setSettings( in <lambda>() 133 repository = userRepository, in <lambda>() 142 repository = userRepository, in <lambda>() 160 repository = userRepository, in <lambda>() 215 userRepository.setUserInfos(userInfos) in <lambda>() 216 userRepository.setSelectedUserInfo(userInfos[0]) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/data/repository/ |
D | WallpaperRepositoryImplTest.kt | 47 private val userRepository = FakeUserRepository() constant in com.android.systemui.wallpapers.data.repository.WallpaperRepositoryImplTest 55 userRepository, in <lambda>() 105 userRepository.setUserInfos(listOf(USER_WITH_SUPPORTED_WP)) in wallpaperInfo_initialValueIsFetched() 106 userRepository.setSelectedUserInfo(USER_WITH_SUPPORTED_WP) in wallpaperInfo_initialValueIsFetched() 128 userRepository.setUserInfos(listOf(user3, user4)) in wallpaperInfo_updatesOnUserChanged() 131 userRepository.setSelectedUserInfo(user3) in wallpaperInfo_updatesOnUserChanged() 137 userRepository.setSelectedUserInfo(user4) in wallpaperInfo_updatesOnUserChanged() 156 userRepository.setUserInfos(listOf(user3, user4)) in wallpaperInfo_doesNotUpdateOnUserChanging() 159 userRepository.setSelectedUserInfo(user3) in wallpaperInfo_doesNotUpdateOnUserChanging() 165 userRepository.selectedUser.value = in wallpaperInfo_doesNotUpdateOnUserChanging() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/settings/repository/ |
D | UserAwareSecureSettingsRepositoryTest.kt | 46 private val userRepository = Kosmos().fakeUserRepository constant in com.android.systemui.util.settings.repository.UserAwareSecureSettingsRepositoryTest 54 userRepository, in setup() 57 userRepository.setUserInfos(USER_INFOS) in setup() 65 userRepository.setSelectedUserInfo(SETTING_ENABLED_USER) in settingEnabledEmitsValueForCurrentUser() 76 userRepository.setSelectedUserInfo(SETTING_ENABLED_USER) in settingEnabledEmitsNewValueWhenSettingChanges() 89 userRepository.setSelectedUserInfo(SETTING_ENABLED_USER) in settingEnabledEmitsValueForNewUserWhenUserChanges() 93 userRepository.setSelectedUserInfo(SETTING_DISABLED_USER) in settingEnabledEmitsValueForNewUserWhenUserChanges()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/deviceentry/data/repository/ |
D | DeviceEntryRepositoryTest.kt | 38 private val userRepository = FakeUserRepository() constant 45 userRepository.setUserInfos(USER_INFOS) in setUp() 46 runBlocking { userRepository.setSelectedUserInfo(USER_INFOS[0]) } in setUp() 52 userRepository = userRepository, in setUp() 64 userRepository.setSelectedUserInfo(USER_INFOS[0]) in isLockscreenEnabled() 67 userRepository.setSelectedUserInfo(USER_INFOS[1]) in isLockscreenEnabled()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/ |
D | CommunalPrefsRepositoryImplTest.kt | 65 private lateinit var userRepository: FakeUserRepository variable in com.android.systemui.communal.data.repository.CommunalPrefsRepositoryImplTest 72 userRepository = kosmos.fakeUserRepository in setUp() 73 userRepository.setUserInfos(USER_INFOS) in setUp() 113 userRepository.setSelectedUserInfo(USER_INFOS[1]) in isCtaDismissedValue_whenSwitchUser() 119 userRepository.setSelectedUserInfo(USER_INFOS[0]) in isCtaDismissedValue_whenSwitchUser() 132 userRepository.setSelectedUserInfo(USER_INFOS[0]) in getSharedPreferences_whenFileRestored() 148 userRepository.getSelectedUserInfo().id in getSharedPreferences_whenFileRestored() 156 userRepository, in createCommunalPrefsRepositoryImpl()
|
D | CommunalTutorialRepositoryImplTest.kt | 51 private lateinit var userRepository: FakeUserRepository variable in com.android.systemui.communal.data.repository.CommunalTutorialRepositoryImplTest 60 userRepository = FakeUserRepository() in setUp() 62 userRepository.setUserInfos(listOfUserInfo) in setUp() 68 userRepository, in setUp()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/authentication/data/repository/ |
D | AuthenticationRepositoryTest.kt | 67 private val userRepository = FakeUserRepository() constant 78 userRepository.setUserInfos(USER_INFOS) in setUp() 79 runBlocking { userRepository.setSelectedUserInfo(USER_INFOS[0]) } in setUp() 90 userRepository = userRepository, in setUp() 133 userRepository.setSelectedUserInfo(USER_INFOS[1]) in isAutoConfirmFeatureEnabled() 147 userRepository.setSelectedUserInfo(USER_INFOS[1]) in isPatternVisible() 163 userRepository.setSelectedUserInfo(USER_INFOS[1]) in isPinEnhancedPrivacyEnabled() 176 userRepository.setSelectedUserInfo(USER_INFOS[1]) in lockoutEndTimestamp() 180 userRepository.setSelectedUserInfo(USER_INFOS[0]) in lockoutEndTimestamp()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/data/repository/ |
D | BrightnessPolicyRepositoryImplTest.kt | 34 import com.android.systemui.user.data.repository.userRepository 68 userRepository, in <lambda>() 100 eq(userRepository.getSelectedUserInfo().id) in restrictDefaultUser() 126 eq(userRepository.mainUserId) in restrictMainUser() 150 eq(userRepository.getSelectedUserInfo().id) in brightnessBaseUserRestriction_flagOff_noRestriction() 172 eq(userRepository.getSelectedUserInfo().id) in bothRestrictions_returnsSetEnforcedAdminFromCheck() 181 eq(userRepository.getSelectedUserInfo().id) in bothRestrictions_returnsSetEnforcedAdminFromCheck() 201 eq(userRepository.getSelectedUserInfo().id) in brightnessBaseUserRestriction_flagOn_emptyRestriction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/data/repository/ |
D | TrustRepository.kt | 74 private val userRepository: UserRepository, constant in com.android.systemui.keyguard.data.repository.TrustRepositoryImpl 151 combine(trust, userRepository.selectedUserInfo, ::Pair) 157 activeUnlockRunningForUser[userRepository.getSelectedUserInfo().id]?.isRunning in <lambda>() 164 combine(trust, userRepository.selectedUserInfo, ::Pair) 177 combine(trust, userRepository.selectedUserInfo, ::Pair) 187 userRepository.selectedUserInfo 196 combine(trust, userRepository.selectedUserInfo, ::Pair) in isUserTrustManaged()
|
D | BiometricSettingsRepository.kt | 130 private val userRepository: UserRepository, constant 146 private val strongAuthTracker = StrongAuthTracker(userRepository, context) 182 userRepository.selectedUserInfo.map { it.id }.distinctUntilChanged() in <lambda>() 249 userRepository.selectedUserInfo.flatMapLatest { userInfo -> in userInfo() 260 emit(devicePolicyManager.isFaceDisabled(userRepository.getSelectedUserInfo().id)) in <lambda>() 298 userRepository.getSelectedUserInfo().id 308 userRepository.getSelectedUserInfo().id 357 private class StrongAuthTracker(private val userRepository: UserRepository, context: Context?) : constant in StrongAuthTracker 361 userRepository.selectedUserInfo.map { it.id }.distinctUntilChanged() in <lambda>() 400 get() = userRepository.getSelectedUserInfo().id
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/settings/ |
D | ControlsSettingsRepositoryImplTest.kt | 58 private lateinit var userRepository: FakeUserRepository variable in com.android.systemui.controls.settings.ControlsSettingsRepositoryImplTest 63 userRepository = FakeUserRepository() in setUp() 64 userRepository.setUserInfos(ALL_USERS.values.toList()) in setUp() 73 userRepository = userRepository, in setUp() 185 userRepository.setSelectedUserInfo(ALL_USERS[id]!!) in setUser()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardDismissInteractorFactory.kt | 62 userRepository: FakeUserRepository = FakeUserRepository(), in create() 100 val selectedUserInteractor = SelectedUserInteractor(repository = userRepository) in create() 107 userRepository = userRepository, in create() 126 val userRepository: FakeUserRepository, constant in com.android.systemui.keyguard.domain.interactor.KeyguardDismissInteractorFactory.WithDependencies
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/domain/interactor/ |
D | SelectedUserInteractorKosmos.kt | 20 import com.android.systemui.user.data.repository.userRepository 22 val Kosmos.selectedUserInteractor by Kosmos.Fixture { SelectedUserInteractor(userRepository) } in <lambda>()
|
D | RefreshUsersSchedulerKosmos.kt | 22 import com.android.systemui.user.data.repository.userRepository 26 RefreshUsersScheduler(applicationCoroutineScope, testDispatcher, userRepository) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/data/repository/ |
D | QSPreferencesRepository.kt | 42 private val userRepository: UserRepository, in <lambda>() constant in com.android.systemui.qs.panels.data.repository.QSPreferencesRepository 47 userRepository.selectedUserInfo in <lambda>() 56 with(getSharedPrefs(userRepository.getSelectedUserInfo().id)) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/data/repository/ |
D | QSPreferencesRepositoryKosmos.kt | 22 import com.android.systemui.user.data.repository.userRepository 25 Kosmos.Fixture { QSPreferencesRepository(userFileManager, userRepository, testDispatcher) } in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/panels/domain/interactor/ |
D | NewTilesAvailabilityInteractorKosmos.kt | 21 import com.android.systemui.user.data.repository.userRepository 30 userRepository, in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardDismissInteractorTest.kt | 63 underTestDependencies.userRepository.setUserInfos(listOf(userInfo)) in setUp() 109 underTestDependencies.userRepository.setSelectedUserInfo(userInfo) in primaryAuthenticated_noDismissAction() 126 underTestDependencies.userRepository.setSelectedUserInfo(userInfo) in userRequestedBouncerWhenAlreadyAuthenticated_noDismissAction() 162 underTestDependencies.userRepository.setSelectedUserInfo(userInfo) in userRequestedBouncerWhenAlreadyAuthenticated_dismissActionRunImmediately() 187 underTestDependencies.userRepository.setSelectedUserInfo(userInfo) in userRequestedBouncerWhenAlreadyAuthenticated_dismissActionRunAfterKeyguardGone()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/deviceentry/domain/interactor/ |
D | DeviceEntryFaceAuthInteractorKosmos.kt | 36 import com.android.systemui.user.data.repository.userRepository 54 userRepository = userRepository, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/ |
D | QSTileViewModelFactory.kt | 57 private val userRepository: UserRepository, constant in com.android.systemui.qs.tiles.base.viewmodel.QSTileViewModelFactory.Component 83 userRepository, in create() 102 private val userRepository: UserRepository, constant in com.android.systemui.qs.tiles.base.viewmodel.QSTileViewModelFactory.Static 133 userRepository,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/ |
D | CommunalPrefsRepository.kt | 72 private val userRepository: UserRepository, constant in com.android.systemui.communal.data.repository.CommunalPrefsRepositoryImpl 94 userRepository.selectedUserInfo, 119 getSharedPrefsForUser(userRepository.getSelectedUserInfo()) in setCtaDismissedForCurrentUser() 137 getSharedPrefsForUser(userRepository.getSelectedUserInfo()) in getCtaDismissedState()
|