Searched refs:WallpaperColorsModel (Results 1 – 9 of 9) sorted by relevance
19 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel28 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()
28 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>()
27 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>()
26 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()135 val wallpaperColors: Flow<WallpaperColorsModel> = in <lambda>()140 WallpaperColorsModel.Loaded( in <lambda>()
5 sealed class WallpaperColorsModel { class7 object Loading : WallpaperColorsModel()9 data class Loaded(val colors: WallpaperColors?) : WallpaperColorsModel()
33 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel311 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()
29 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>()
30 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel in <lambda>()128 WallpaperColorsModel.Loaded(colors) in <lambda>()
40 import com.android.wallpaper.picker.customization.shared.model.WallpaperColorsModel124 is WallpaperColorsModel.Loading in onCreateView()175 is WallpaperColorsModel.Loading in onCreateView()