Home
last modified time | relevance | path

Searched refs:WallpaperColorsModel (Results 1 – 9 of 9) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/repository/
DWallpaperColorsRepository.kt19 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel
28 MutableStateFlow<WallpaperColorsModel>(WallpaperColorsModel.Loading)
30 val homeWallpaperColors: StateFlow<WallpaperColorsModel> = _homeWallpaperColors.asStateFlow()
33 MutableStateFlow<WallpaperColorsModel>(WallpaperColorsModel.Loading)
35 val lockWallpaperColors: StateFlow<WallpaperColorsModel> = _lockWallpaperColors.asStateFlow()
38 _homeWallpaperColors.value = WallpaperColorsModel.Loaded(colors) in setHomeWallpaperColors()
42 _lockWallpaperColors.value = WallpaperColorsModel.Loaded(colors) in setLockWallpaperColors()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/
DColorPickerRepositoryImpl.kt28 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()
44 private val homeWallpaperColors: StateFlow<WallpaperColorsModel?> = in <lambda>()
46 private val lockWallpaperColors: StateFlow<WallpaperColorsModel?> = in <lambda>()
62 homeColors is WallpaperColorsModel.Loading || in <lambda>()
63 lockColors is WallpaperColorsModel.Loading in <lambda>()
75 val homeColorsLoaded = homeColors as WallpaperColorsModel.Loaded in <lambda>()
76 val lockColorsLoaded = lockColors as WallpaperColorsModel.Loaded in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModel.kt27 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()
184 private val _wallpaperConnectionColors: MutableStateFlow<WallpaperColorsModel> = in <lambda>()
185 MutableStateFlow(WallpaperColorsModel.Loading as WallpaperColorsModel).apply { in <lambda>()
188 if (value == WallpaperColorsModel.Loading) { in <lambda>()
189 emit(WallpaperColorsModel.Loaded(null)) in <lambda>()
193 private val liveWallpaperColors: Flow<WallpaperColorsModel> = in <lambda>()
199 val wallpaperColorsModel: Flow<WallpaperColorsModel> = in <lambda>()
203 if (isEnabled) colors else WallpaperColorsModel.Loaded(null) in <lambda>()
374 fun setWallpaperConnectionColors(wallpaperColors: WallpaperColorsModel) { in <lambda>()
DStaticWallpaperPreviewViewModel.kt26 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()
135 val wallpaperColors: Flow<WallpaperColorsModel> = in <lambda>()
140 WallpaperColorsModel.Loaded( in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/shared/model/
DWallpaperColorsModel.kt5 sealed class WallpaperColorsModel { class
7 object Loading : WallpaperColorsModel()
9 data class Loaded(val colors: WallpaperColors?) : WallpaperColorsModel()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DStaticWallpaperPreviewViewModelTest.kt33 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel
311 assertThat(wallpaperColors()).isInstanceOf(WallpaperColorsModel.Loaded::class.java) in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
312 val actualWallpaperColors = (wallpaperColors() as WallpaperColorsModel.Loaded).colors in wallpaperColors_withStoredColorsAndNullCropHints_returnsColorsStoredInPreferences()
346 assertThat(wallpaperColors()).isInstanceOf(WallpaperColorsModel.Loaded::class.java) in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
347 val actualWallpaperColors = (wallpaperColors() as WallpaperColorsModel.Loaded).colors in wallpaperColors_withNoStoredColorsAndNullCropHints_returnsClientWallpaperColors()
395 assertThat(wallpaperColors()).isInstanceOf(WallpaperColorsModel.Loaded::class.java) in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
396 val actualWallpaperColors = (wallpaperColors() as WallpaperColorsModel.Loaded).colors in wallpaperColors_withStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
436 assertThat(wallpaperColors()).isInstanceOf(WallpaperColorsModel.Loaded::class.java) in wallpaperColors_withNoStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
437 val actualWallpaperColors = (wallpaperColors() as WallpaperColorsModel.Loaded).colors in wallpaperColors_withNoStoredColorsAndNonNullCropHints_returnsClientWallpaperColors()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DWorkspacePreviewBinder.kt29 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()
90 if (it is WallpaperColorsModel.Loaded) { in <lambda>()
172 if (colorsModel is WallpaperColorsModel.Loaded) { in <lambda>()
DSmallWallpaperPreviewBinder.kt30 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()
128 WallpaperColorsModel.Loaded(colors) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/fragment/
DColorPickerFragment.kt40 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel
124 is WallpaperColorsModel.Loading in onCreateView()
175 is WallpaperColorsModel.Loading in onCreateView()