Home
last modified time | relevance | path

Searched refs:cropHintsInfo (Results 1 – 3 of 3) sorted by relevance

/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModelTest.kt238 val cropHintsInfo = in fullResWallpaperViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue() constant
247 viewModel.updateCropHintsInfo(cropHintsInfo) in fullResWallpaperViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
254 assertThat(fullResWallpaperViewModel()?.fullPreviewCropModels).isEqualTo(cropHintsInfo) in fullResWallpaperViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
268 val cropHintsInfo = in subsamplingScaleImageViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue() constant
277 viewModel.updateCropHintsInfo(cropHintsInfo) in subsamplingScaleImageViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
285 .isEqualTo(cropHintsInfo) in subsamplingScaleImageViewModel_withStaticWallpaperAndCropHints_shouldEmitNonNullValue()
380 val cropHintsInfo = in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors() constant
390 viewModel.updateCropHintsInfo(cropHintsInfo) in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
422 val cropHintsInfo = in wallpaperColors_withNoStoredColorsAndNonNullCropHints_returnsClientWallpaperColors() constant
431 viewModel.updateCropHintsInfo(cropHintsInfo) in wallpaperColors_withNoStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
[all …]
DWallpaperPreviewViewModelTest.kt296 val cropHintsInfo = in clickCropButton_updatesCropHintsInfo() constant
297 wallpaperPreviewViewModel.staticWallpaperPreviewViewModel.cropHintsInfo.value in clickCropButton_updatesCropHintsInfo()
298 assertThat(cropHintsInfo).containsKey(FOLDABLE_UNFOLDED_LAND.displaySize) in clickCropButton_updatesCropHintsInfo()
299 assertThat(cropHintsInfo?.get(FOLDABLE_UNFOLDED_LAND.displaySize)?.cropHint) in clickCropButton_updatesCropHintsInfo()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModel.kt84 val cropHintsInfo: MutableStateFlow<Map<Point, FullPreviewCropModel>?> = MutableStateFlow(null) in <lambda>() constant
87 cropHintsInfo.map { cropHintsInfoMap -> in <lambda>()
112 combine(assetDetail, cropHintsInfo) { assetDetail, cropHintsInfo -> in <lambda>() method
122 cropHintsInfo, in <lambda>()
162 cropHintsInfo: Map<Point, FullPreviewCropModel>, in <lambda>()
166 this.cropHintsInfo.value?.let { currentCropHintsInfo -> in <lambda>()
169 cropHintsInfo.filterKeys { !currentCropHintsInfo.keys.contains(it) } in <lambda>()
170 else cropHintsInfo in <lambda>()
172 } ?: cropHintsInfo in <lambda>()
173 this.cropHintsInfo.value = newInfo in <lambda>()