/frameworks/base/packages/SystemUI/src/com/android/systemui/wallpapers/data/repository/ |
D | WallpaperRepository.kt | 85 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/ |
D | UserRepositoryImplTest.kt | 231 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/ |
D | FakeUserRepository.kt | 64 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/ |
D | StatusBarUserChipViewModel.kt | 48 val userName: Flow<Text> = interactor.selectedUser.mapLatest { userModel -> userModel.name } in <lambda>() 52 interactor.selectedUser.mapLatest { userModel -> userModel.image } in <lambda>()
|
D | UserSwitcherViewModel.kt | 45 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/ |
D | BouncerMessageViewModelKosmos.kt | 43 selectedUser = userSwitcherViewModel.selectedUser, in <lambda>()
|
D | BouncerViewModelKosmos.kt | 50 selectedUser = userSwitcherViewModel.selectedUser, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/data/repository/ |
D | UserRepository.kt | 74 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/ |
D | PasswordBouncerViewModel.kt | 79 selectedUserInteractor.selectedUser.stateIn( in <lambda>() 148 selectedUserInteractor.selectedUser.onEach { delay(DELAY_TO_FETCH_IMES) }, in <lambda>()
|
D | BouncerMessageViewModel.kt | 74 selectedUser: Flow<UserViewModel>, in <lambda>() 371 selectedUser.collect { startLockoutCountdown() } in <lambda>() 433 selectedUser = userSwitcherViewModel.selectedUser, in viewModel()
|
D | BouncerViewModel.kt | 80 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/ |
D | SelectedUserInteractor.kt | 19 val selectedUser = repository.selectedUserInfo.map { it.id }.distinctUntilChanged() in <lambda>() constant in com.android.systemui.user.domain.interactor.SelectedUserInteractor
|
D | UserSwitcherInteractor.kt | 153 val selectedUser: Flow<UserModel> in <lambda>() constant
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/domain/interactor/ |
D | PackageChangeInteractor.kt | 54 return userInteractor.selectedUser.flatMapLatest { userId -> in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | PasswordBouncerViewModelTest.kt | 273 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/ |
D | WallpaperRepositoryImplTest.kt | 165 userRepository.selectedUser.value = in wallpaperInfo_doesNotUpdateOnUserChanging() 355 userRepository.selectedUser.value = in wallpaperSupportsAmbientMode_doesNotUpdateOnUserChanging()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/ |
D | SystemUIDeviceEntryFaceAuthInteractor.kt | 164 .sample(userRepository.selectedUser, ::Pair) in <lambda>() 181 userRepository.selectedUser in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/ |
D | CommunalWidgetHostTest.kt | 107 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/ |
D | UserSwitcherInteractorTest.kt | 327 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/ |
D | DeviceEntryFaceAuthRepository.kt | 335 userRepository.selectedUser.map { in observeFaceAuthResettingConditions() 421 userRepository.selectedUser in gatingConditionsForAuthAndDetect()
|