Home
last modified time | relevance | path

Searched refs:selectedUser (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/data/repository/
DWallpaperRepository.kt85 private val selectedUser: Flow<SelectedUserModel> = constant
86 userRepository.selectedUser
94 combine(wallpaperChanged, selectedUser, ::Pair)
95 .mapLatestConflated { (_, selectedUser) -> getWallpaper(selectedUser) } in selectedUser() method
119 private suspend fun getWallpaper(selectedUser: SelectedUserModel): WallpaperInfo? { in getWallpaper()
121 wallpaperManager.getWallpaperInfoForUser(selectedUser.userInfo.id) in getWallpaper()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/
DUserRepositoryImplTest.kt231 var selectedUser: SelectedUserModel? = null in <lambda>() variable
232 underTest.selectedUser.onEach { selectedUser = it }.launchIn(this) in <lambda>()
239 assertThat(selectedUser!!.selectionStatus).isEqualTo(SelectionStatus.SELECTION_IN_PROGRESS) in <lambda>()
245 assertThat(selectedUser!!.selectionStatus).isEqualTo(SelectionStatus.SELECTION_COMPLETE) in <lambda>()
248 assertThat(selectedUser!!.selectionStatus).isEqualTo(SelectionStatus.SELECTION_COMPLETE) in <lambda>()
253 assertThat(selectedUser!!.selectionStatus).isEqualTo(SelectionStatus.SELECTION_IN_PROGRESS) in <lambda>()
259 assertThat(selectedUser!!.selectionStatus).isEqualTo(SelectionStatus.SELECTION_IN_PROGRESS) in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/data/repository/
DFakeUserRepository.kt64 override val selectedUser = constant in com.android.systemui.user.data.repository.FakeUserRepository
68 override val selectedUserInfo: Flow<UserInfo> = selectedUser.map { it.userInfo } in <lambda>()
99 return selectedUser.value.userInfo in getSelectedUserInfo()
122 selectedUser.value = SelectedUserModel(userInfo, selectionStatus) in setSelectedUserInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/ui/viewmodel/
DStatusBarUserChipViewModel.kt48 val userName: Flow<Text> = interactor.selectedUser.mapLatest { userModel -> userModel.name } in <lambda>()
52 interactor.selectedUser.mapLatest { userModel -> userModel.image } in <lambda>()
DUserSwitcherViewModel.kt45 val selectedUser: Flow<UserViewModel> = in <lambda>() constant in com.android.systemui.user.ui.viewmodel.UserSwitcherViewModel
46 userSwitcherInteractor.selectedUser.map { user -> toViewModel(user) } in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/bouncer/ui/viewmodel/
DBouncerMessageViewModelKosmos.kt43 selectedUser = userSwitcherViewModel.selectedUser, in <lambda>()
DBouncerViewModelKosmos.kt50 selectedUser = userSwitcherViewModel.selectedUser, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/
DUserRepository.kt74 val selectedUser: StateFlow<SelectedUserModel> constant
184 override val selectedUser: StateFlow<SelectedUserModel> = run { in refreshUsers() constant in com.android.systemui.user.data.repository.UserRepositoryImpl
228 override val selectedUserInfo: Flow<UserInfo> = selectedUser.map { it.userInfo } in refreshUsers()
248 return selectedUser.value.userInfo in refreshUsers()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bouncer/ui/viewmodel/
DPasswordBouncerViewModel.kt79 selectedUserInteractor.selectedUser.stateIn( in <lambda>()
148 selectedUserInteractor.selectedUser.onEach { delay(DELAY_TO_FETCH_IMES) }, in <lambda>()
DBouncerMessageViewModel.kt74 selectedUser: Flow<UserViewModel>, in <lambda>()
371 selectedUser.collect { startLockoutCountdown() } in <lambda>()
433 selectedUser = userSwitcherViewModel.selectedUser, in viewModel()
DBouncerViewModel.kt80 selectedUser: Flow<UserViewModel>, in <lambda>()
86 selectedUser in <lambda>()
443 selectedUser = userSwitcherViewModel.selectedUser, in viewModel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DSelectedUserInteractor.kt19 val selectedUser = repository.selectedUserInfo.map { it.id }.distinctUntilChanged() in <lambda>() constant in com.android.systemui.user.domain.interactor.SelectedUserInteractor
DUserSwitcherInteractor.kt153 val selectedUser: Flow<UserModel> in <lambda>() constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/domain/interactor/
DPackageChangeInteractor.kt54 return userInteractor.selectedUser.flatMapLatest { userId -> in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DPasswordBouncerViewModelTest.kt273 val selectedUserId by collectLastValue(selectedUserInteractor.selectedUser) in isImeSwitcherButtonVisible()
353 kosmos.fakeUserRepository.selectedUser.value = in TestScope()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/data/repository/
DWallpaperRepositoryImplTest.kt165 userRepository.selectedUser.value = in wallpaperInfo_doesNotUpdateOnUserChanging()
355 userRepository.selectedUser.value = in wallpaperSupportsAmbientMode_doesNotUpdateOnUserChanging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DSystemUIDeviceEntryFaceAuthInteractor.kt164 .sample(userRepository.selectedUser, ::Pair) in <lambda>()
181 userRepository.selectedUser in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/
DCommunalWidgetHostTest.kt107 val userId by collectLastValue(selectedUserInteractor.selectedUser) in allocateIdAndBindWidget_withCurrentUser()
434 kosmos.fakeUserRepository.selectedUser.value = in selectUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractorTest.kt327 fun selectedUser() { in <lambda>() method in com.android.systemui.user.domain.interactor.UserSwitcherInteractorTest
335 val value = collectLastValue(underTest.selectedUser) in <lambda>()
997 val selectedUser = collectLastValue(underTest.selectedUser) in <lambda>() constant
998 assertThat(selectedUser()).isNotNull() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/data/repository/
DDeviceEntryFaceAuthRepository.kt335 userRepository.selectedUser.map { in observeFaceAuthResettingConditions()
421 userRepository.selectedUser in gatingConditionsForAuthAndDetect()