Home
last modified time | relevance | path

Searched refs:collectLastValue (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/ui/viewmodel/
DCustomizationPickerViewModelTest.kt30 import com.android.wallpaper.testing.collectLastValue
88 val homeScreenTab = collectLastValue(underTest.homeScreenTab) in initial tab is lock screen()
89 val lockScreenTab = collectLastValue(underTest.lockScreenTab) in initial tab is lock screen()
90 val isOnLockScreen = collectLastValue(underTest.isOnLockScreen) in initial tab is lock screen()
102 val homeScreenTab = collectLastValue(underTest.homeScreenTab) in setInitialScreen - home screen()
103 val lockScreenTab = collectLastValue(underTest.lockScreenTab) in setInitialScreen - home screen()
104 val isOnLockScreen = collectLastValue(underTest.isOnLockScreen) in setInitialScreen - home screen()
117 collectLastValue(underTest.lockScreenTab)()?.onClicked?.invoke() in setInitialScreen - home screen - but lock screen already selected from before()
126 val newIsOnLockScreen = collectLastValue(newUnderTest.isOnLockScreen) in setInitialScreen - home screen - but lock screen already selected from before()
136 val homeScreenTab = collectLastValue(underTest.homeScreenTab) in switching to the home screen()
[all …]
DWallpaperQuickSwitchViewModelTest.kt27 import com.android.wallpaper.testing.collectLastValue in <lambda>()
88 val options = collectLastValue(underTest.options) in <lambda>()
98 val options = collectLastValue(underTest.options) in <lambda>()
132 val options = collectLastValue(underTest.options) in <lambda>()
157 val options = collectLastValue(underTest.options) in <lambda>()
163 val onSelected = collectLastValue(optionToSelect.onSelected) in <lambda>()
217 .that(collectLastValue(option.isLarge)()) in <lambda>()
223 .that(collectLastValue(option.isSelectionIndicatorVisible)()) in <lambda>()
226 .that(collectLastValue(option.onSelected)() != null) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModelTest.kt17 import com.android.wallpaper.testing.collectLastValue in <lambda>()
105 val tabs = collectLastValue(underTest.tabs) in <lambda>()
118 val observedClockColorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
120 collectLastValue(underTest.selectedColorOptionPosition) in <lambda>()
121 val observedSliderProgress = collectLastValue(underTest.sliderProgress) in <lambda>()
122 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
125 val option0IsSelected = collectLastValue(observedClockColorOptions()!![0].isSelected) in <lambda>()
126 val option0OnClicked = collectLastValue(observedClockColorOptions()!![0].onClicked) in <lambda>()
131 val option1OnClickedBefore = collectLastValue(observedClockColorOptions()!![1].onClicked) in <lambda>()
135 val option1IsSelected = collectLastValue(observedClockColorOptions()!![1].isSelected) in <lambda>()
[all …]
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModelTest.kt46 import com.android.wallpaper.testing.collectLastValue in <lambda>()
132 val slots = collectLastValue(underTest.slots) in <lambda>()
133 val quickAffordances = collectLastValue(underTest.quickAffordances) in <lambda>()
214 val slots = collectLastValue(underTest.slots) in <lambda>()
215 val quickAffordances = collectLastValue(underTest.quickAffordances) in <lambda>()
250 val slots = collectLastValue(underTest.slots) in <lambda>()
251 val quickAffordances = collectLastValue(underTest.quickAffordances) in <lambda>()
252 val dialog = collectLastValue(underTest.dialog) in <lambda>()
253 val activityStartRequest = collectLastValue(underTest.activityStartRequests) in <lambda>()
307 val quickAffordances = collectLastValue(underTest.quickAffordances) in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/data/repository/
DWallpaperRepositoryTest.kt25 import com.android.wallpaper.testing.collectLastValue
67 collectLastValue( in setWallpaper()
71 collectLastValue( in setWallpaper()
75 collectLastValue(underTest.selectedWallpaperId(WallpaperDestination.HOME)) in setWallpaper()
77 collectLastValue(underTest.selectedWallpaperId(WallpaperDestination.LOCK)) in setWallpaper()
79 collectLastValue( in setWallpaper()
83 collectLastValue( in setWallpaper()
162 collectLastValue( in setWallpaper_recentsKeyFallback()
166 collectLastValue( in setWallpaper_recentsKeyFallback()
170 collectLastValue(underTest.selectedWallpaperId(WallpaperDestination.HOME)) in setWallpaper_recentsKeyFallback()
[all …]
DImageEffectsRepositoryImplTest.kt41 import com.android.wallpaper.testing.collectLastValue in <lambda>()
127 val wallpaperEffect = collectLastValue(underTest.wallpaperEffect) in <lambda>()
151 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
169 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
189 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
212 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
231 val wallpaperEffect = collectLastValue(underTest.wallpaperEffect) in <lambda>()
277 val imageEffectsModel = collectLastValue(underTest.imageEffectsModel) in <lambda>()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperInteractorTest.kt28 import com.android.wallpaper.testing.collectLastValue
71 collectLastValue( in previews - limits to maximum results()
94 collectLastValue(underTest.wallpaperUpdateEvents(Screen.HOME_SCREEN)) in previews - handles empty recents list()
103 collectLastValue(underTest.wallpaperUpdateEvents(Screen.HOME_SCREEN)) in wallpaperUpdateEvents()
105 collectLastValue(underTest.wallpaperUpdateEvents(Screen.LOCK_SCREEN)) in wallpaperUpdateEvents()
146 collectLastValue( in setWallpaper()
153 collectLastValue( in setWallpaper()
160 collectLastValue(underTest.selectedWallpaperId(WallpaperDestination.HOME)) in setWallpaper()
162 collectLastValue(underTest.selectedWallpaperId(WallpaperDestination.LOCK)) in setWallpaper()
164 collectLastValue(underTest.selectingWallpaperId(WallpaperDestination.HOME)) in setWallpaper()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt19 import com.android.intentresolver.coroutines.collectLastValue
56 val launchedAsProfile by collectLastValue(profileInteractor.launchedAsProfile) in <lambda>()
68 val profiles by collectLastValue(profileInteractor.launchedAsProfile) in <lambda>()
81 val profiles by collectLastValue(profileInteractor.profiles) in <lambda>()
92 val profiles by collectLastValue(profileInteractor.profiles) in <lambda>()
106 val profiles by collectLastValue(profileInteractor.profiles) in <lambda>()
119 val profiles by collectLastValue(profileInteractor.profiles) in <lambda>()
138 val profiles by collectLastValue(profileInteractor.profiles) in <lambda>()
155 val availability by collectLastValue(interactor.availability) in <lambda>()
166 val availability by collectLastValue(interactor.availability) in <lambda>()
[all …]
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DPreviewActionsViewModelTest.kt46 import com.android.wallpaper.testing.collectLastValue
130 collectLastValue(viewModel.onInformationClicked)()?.invoke() in <lambda>()
132 val preview = collectLastValue(viewModel.previewFloatingSheetViewModel)() in <lambda>()
141 val isInformationButtonVisible = collectLastValue(viewModel.isInformationVisible) in <lambda>()
150 val isInformationButtonVisible = collectLastValue(viewModel.isInformationVisible) in <lambda>()
167 val isInformationButtonChecked = collectLastValue(viewModel.isInformationChecked) in <lambda>()
170 collectLastValue(viewModel.onInformationClicked)()?.invoke() in <lambda>()
186 collectLastValue(viewModel.onEffectsClicked)()?.invoke() in <lambda>()
188 val preview = collectLastValue(viewModel.previewFloatingSheetViewModel)() in <lambda>()
197 val isDownloadVisible = collectLastValue(viewModel.isDownloadVisible) in <lambda>()
[all …]
DWallpaperPreviewViewModelTest.kt57 import com.android.wallpaper.testing.collectLastValue
181 val isClickable = collectLastValue(wallpaperPreviewViewModel.isSmallPreviewClickable)() in smallPreviewClickable_byDefault()
192 val isClickable = collectLastValue(wallpaperPreviewViewModel.isSmallPreviewClickable)() in smallPreviewNotClickable_whenEffectInProgress()
202 collectLastValue( in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
212 collectLastValue(wallpaperPreviewViewModel.fullWorkspacePreviewConfigViewModel)() in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
228 collectLastValue( in clickSmallPreview_isSelectedPreview_updatesFullWallpaperPreviewConfig()
237 val fullWallpaper = collectLastValue(wallpaperPreviewViewModel.fullWallpaper)() in clickSmallPreview_isSelectedPreview_updatesFullWallpaperPreviewConfig()
254 collectLastValue( in clickSmallPreview_isNotSelectedPreview_doesNotUpdateFullWorkspacePreviewConfig()
264 collectLastValue(wallpaperPreviewViewModel.fullWorkspacePreviewConfigViewModel)() in clickSmallPreview_isNotSelectedPreview_doesNotUpdateFullWorkspacePreviewConfig()
294 collectLastValue(wallpaperPreviewViewModel.onCropButtonClick)()?.invoke() in clickCropButton_updatesCropHintsInfo()
DStaticWallpaperPreviewViewModelTest.kt44 import com.android.wallpaper.testing.collectLastValue
149 val staticWallpaperModel = collectLastValue(viewModel.staticWallpaperModel) in staticWallpaperModel_withStaticWallpaper_shouldEmitNonNullValue()
167 val staticWallpaperModel = collectLastValue(viewModel.staticWallpaperModel) in staticWallpaperModel_withLiveWallpaper_shouldNotEmit()
195 val lowResBitmap = collectLastValue(viewModel.lowResBitmap) in lowResBitmap_withStaticWallpaper_shouldEmitNonNullValue()
212 val fullResWallpaperViewModel = collectLastValue(viewModel.fullResWallpaperViewModel) in fullResWallpaperViewModel_withStaticWallpaperAndNullCropHints_shouldEmitNonNullValue()
232 val fullResWallpaperViewModel = collectLastValue(viewModel.fullResWallpaperViewModel) in fullResWallpaperViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
262 collectLastValue(viewModel.subsamplingScaleImageViewModel) in subsamplingScaleImageViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
299 val wallpaperColors = collectLastValue(viewModel.wallpaperColors) in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
334 val wallpaperColors = collectLastValue(viewModel.wallpaperColors) in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
374 val wallpaperColors = collectLastValue(viewModel.wallpaperColors) in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt24 import com.android.intentresolver.coroutines.collectLastValue
47 val users by collectLastValue(repo.users) in <lambda>()
57 val users by collectLastValue(repo.users) in <lambda>()
70 val users by collectLastValue(repo.users) in <lambda>()
86 val available by collectLastValue(repo.availability) in <lambda>()
102 val users by collectLastValue(repo.users) in <lambda>()
120 val available by collectLastValue(repo.availability) in <lambda>()
148 val users by collectLastValue(repo.users) in <lambda>()
167 val users by collectLastValue(repo.users) in <lambda>()
180 val users by collectLastValue(repo.users) in <lambda>()
[all …]
DFakeUserRepositoryTest.kt19 import com.android.intentresolver.coroutines.collectLastValue
38 val users by collectLastValue(repo.users) in <lambda>()
46 val users by collectLastValue(repo.users) in <lambda>()
60 val users by collectLastValue(repo.users) in <lambda>()
72 val available by collectLastValue(repo.availability) in <lambda>()
85 val available by collectLastValue(repo.availability) in <lambda>()
99 val available by collectLastValue(repo.availability) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/color/ui/viewmodel/
DColorPickerViewModelTest.kt36 import com.android.wallpaper.testing.collectLastValue in <lambda>()
105 val colorSectionOptions = collectLastValue(underTest.colorSectionOptions) in <lambda>()
141 val colorTypes = collectLastValue(underTest.colorTypeTabs) in <lambda>()
142 val colorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
172 val colorTypes = collectLastValue(underTest.colorTypeTabs) in <lambda>()
173 val colorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
189 val colorTypes = collectLastValue(underTest.colorTypeTabs) in <lambda>()
190 val colorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
238 onClickedFlow?.let { collectLastValue(it) } in <lambda>()
290 val isSelected: Boolean? = collectLastValue(colorOptions[i].isSelected).invoke() in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractorTest.kt7 import com.android.wallpaper.testing.collectLastValue
51 val observedSelectedClockId = collectLastValue(underTest.selectedClockId) in <lambda>()
59 val observedClockSize = collectLastValue(underTest.selectedClockSize) in <lambda>()
69 val observedSelectedColor = collectLastValue(underTest.selectedColorId) in <lambda>()
70 val observedColorToneProgress = collectLastValue(underTest.colorToneProgress) in <lambda>()
71 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/domain/usecase/
DGetPermissionUsageUseCaseTest.kt37 import com.android.permissioncontroller.tests.mocking.coroutines.collectLastValue
122 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
152 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
184 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
212 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
238 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
261 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
288 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
331 val permissionGroupUsages by collectLastValue(underTest()) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/notifications/domain/interactor/
DNotificationsSnapshotRestorerTest.kt27 import com.android.wallpaper.testing.collectLastValue
77 val showNotifs = collectLastValue(interactor.isShowNotificationsOnLockScreenEnabled()) in setUpAndRestore_Active()
91 val showNotifs = collectLastValue(interactor.isShowNotificationsOnLockScreenEnabled()) in setUpAndRestore_Inactive()
104 val showNotifs = collectLastValue(interactor.isShowNotificationsOnLockScreenEnabled()) in <lambda>()
118 val showNotifs = collectLastValue(interactor.isShowNotificationsOnLockScreenEnabled()) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/domain/interactor/
DGridInteractorTest.kt26 import com.android.wallpaper.testing.collectLastValue in <lambda>()
79 val options = collectLastValue(underTest.options) in <lambda>()
106 val options = collectLastValue(underTest.options) in <lambda>()
124 val options = collectLastValue(underTest.options) in <lambda>()
145 val options = collectLastValue(underTest.options) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/ui/viewmodel/
DGridScreenViewModelTest.kt29 import com.android.wallpaper.testing.collectLastValue in <lambda>()
82 val optionItemsValueProvider = collectLastValue(underTest.optionItems) in <lambda>()
103 collectLastValue(optionItem.isSelected).invoke() == true in <lambda>()
110 return collectLastValue(optionItem.onClicked).invoke() in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/color/domain/interactor/
DColorPickerInteractorTest.kt27 import com.android.wallpaper.testing.collectLastValue
66 val colorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
85 val colorOptions = collectLastValue(underTest.colorOptions) in <lambda>()
103 val colorOptions = collectLastValue(underTest.colorOptions) in snapshotRestorer_doesNotUpdateSnapshotOnExternalUpdates()
DColorPickerSnapshotRestorerTest.kt29 import com.android.wallpaper.testing.collectLastValue
67 val colorOptions = collectLastValue(repository.colorOptions) in <lambda>()
83 val colorOptions = collectLastValue(repository.colorOptions) in <lambda>()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/undo/ui/viewmodel/
DUndoViewModelTest.kt25 import com.android.wallpaper.testing.collectLastValue
67 val isRevertButtonVisible = collectLastValue(underTest.isRevertButtonVisible) in revert()
68 val dialog = collectLastValue(underTest.dialog) in revert()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordancePickerInteractorTest.kt28 import com.android.wallpaper.testing.collectLastValue
86 val selections = collectLastValue(underTest.selections) in select()
121 val selections = collectLastValue(underTest.selections) in unselectAll()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/themedicon/domain/interactor/
DThemedIconInteractorTest.kt22 import com.android.wallpaper.testing.collectLastValue
48 val isActivated = collectLastValue(underTest.isActivated) in <lambda>()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/
DPermissionUsageViewModelTest.kt37 import com.android.permissioncontroller.tests.mocking.coroutines.collectLastValue
120 collectLastValue(permissionUsageViewModel.getPermissionUsagesUiDataFlow()).invoke() in <lambda>()
156 collectLastValue(permissionUsageViewModel.getPermissionUsagesUiDataFlow()).invoke() in <lambda>()
188 collectLastValue(permissionUsageViewModel.getPermissionUsagesUiDataFlow()).invoke() in <lambda>()

12