Home
last modified time | relevance | path

Searched refs:userRepository (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractorTest.kt110 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 …]
DSelectedUserInteractorTest.kt21 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/
DTrustRepositoryTest.kt53 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/
DStatusBarUserChipViewModelTest.kt86 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 …]
DUserSwitcherViewModelTest.kt87 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/
DWallpaperRepositoryImplTest.kt47 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/
DUserAwareSecureSettingsRepositoryTest.kt46 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/
DDeviceEntryRepositoryTest.kt38 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/
DCommunalPrefsRepositoryImplTest.kt65 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()
DCommunalTutorialRepositoryImplTest.kt51 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/
DAuthenticationRepositoryTest.kt67 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/
DBrightnessPolicyRepositoryImplTest.kt34 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/
DTrustRepository.kt74 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()
DBiometricSettingsRepository.kt130 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/
DControlsSettingsRepositoryImplTest.kt58 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/
DKeyguardDismissInteractorFactory.kt62 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/
DSelectedUserInteractorKosmos.kt20 import com.android.systemui.user.data.repository.userRepository
22 val Kosmos.selectedUserInteractor by Kosmos.Fixture { SelectedUserInteractor(userRepository) } in <lambda>()
DRefreshUsersSchedulerKosmos.kt22 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/
DQSPreferencesRepository.kt42 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/
DQSPreferencesRepositoryKosmos.kt22 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/
DNewTilesAvailabilityInteractorKosmos.kt21 import com.android.systemui.user.data.repository.userRepository
30 userRepository, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DKeyguardDismissInteractorTest.kt63 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/
DDeviceEntryFaceAuthInteractorKosmos.kt36 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/
DQSTileViewModelFactory.kt57 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/
DCommunalPrefsRepository.kt72 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()

123