Home
last modified time | relevance | path

Searched refs:seedColor (Results 1 – 24 of 24) sorted by relevance

/packages/apps/ThemePicker/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractor.kt52 val seedColor: Flow<Int?> = repository.selectedClock.map { clock -> clock.seedColor } in <lambda>() constant in com.android.customization.picker.clock.domain.interactor.ClockPickerInteractor
64 @ColorInt seedColor: Int?, in <lambda>()
71 seedColor = seedColor, in <lambda>()
91 seedColor = clockSnapshotModel.seedColor in <lambda>()
113 seedColor = latestOption?.colorToneProgress?.let { latestOption.seedColor } in <lambda>()
114 ?: seedColor.firstOrNull(), in <lambda>()
DClockPickerSnapshotRestorer.kt49 optionToRestore.seedColor?.toString() != snapshot.args[KEY_SEED_COLOR] || in <lambda>()
80 clockSnapshotModel.seedColor?.let { put(KEY_SEED_COLOR, it.toString()) } in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/data/repository/
DFakeClockPickerRepository.kt37 @ColorInt private val seedColor = MutableStateFlow<Int?>(null) in <lambda>() constant
43 seedColor, in <lambda>()
44 ) { selectedClockId, selectedColor, colorTone, seedColor -> in <lambda>() method
52 seedColor = seedColor, in <lambda>()
66 @ColorInt seedColor: Int?, in <lambda>()
70 this.seedColor.value = seedColor in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/data/repository/
DClockPickerRepositoryImpl.kt99 seedColor = registry.seedColor in <lambda>()
132 @ColorInt seedColor: Int?, in <lambda>()
135 val newSettings = oldSettings.copy(seedColor = seedColor) in <lambda>()
186 @ColorInt seedColor: Int? = null, in <lambda>()
193 seedColor = seedColor, in <lambda>()
DClockPickerRepository.kt48 @ColorInt seedColor: Int?,
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt92 val seedColor: Flow<Int?> = merge(clockPickerInteractor.seedColor, _seedColor) in <lambda>() constant
113 val seedColor = in <lambda>() constant
121 seedColor = seedColor, in <lambda>()
123 logger.logClockColorApplied(seedColor) in <lambda>()
178 val seedColor = in <lambda>() constant
189 seedColor = seedColor, in <lambda>()
191 logger.logClockColorApplied(seedColor) in <lambda>()
253 seedColor = null, in <lambda>()
DClockCarouselViewModel.kt77 val seedColor: Flow<Int?> = interactor.seedColor in <lambda>() constant in com.android.customization.picker.clock.ui.viewmodel.ClockCarouselViewModel
80 return interactor.seedColor.map { in <lambda>()
81 it.let { seedColor -> in <lambda>() method
83 if (seedColor == null) { in <lambda>()
92 val luminance = Color.luminance(seedColor) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorOption.java111 String seedColor = mPackagesByCategory.get(OVERLAY_CATEGORY_SYSTEM_PALETTE); in getSeedColorForLogging() local
112 if (seedColor == null || seedColor.isEmpty()) { in getSeedColorForLogging()
115 if (!seedColor.startsWith("#")) { in getSeedColorForLogging()
116 seedColor = "#" + seedColor; in getSeedColorForLogging()
118 return Color.parseColor(seedColor); in getSeedColorForLogging()
DColorCustomizationManager.java245 String seedColor = getCurrentOverlays().get(OVERLAY_CATEGORY_SYSTEM_PALETTE); in getCurrentSeedColorForLogging() local
246 if (seedColor == null || seedColor.isEmpty()) { in getCurrentSeedColorForLogging()
249 if (!seedColor.startsWith("#")) { in getCurrentSeedColorForLogging()
250 seedColor = "#" + seedColor; in getCurrentSeedColorForLogging()
252 return Color.parseColor(seedColor); in getCurrentSeedColorForLogging()
/packages/apps/ThemePicker/src/com/android/customization/module/logging/
DSysUiStatsLogger.kt58 private var seedColor = 0 variable
145 fun setSeedColor(seedColor: Int) = apply { this.seedColor = seedColor } in <lambda>()
188 seedColor, in log()
DThemesUserEventLogger.kt26 fun logThemeColorApplied(@ColorSource source: Int, style: Int, seedColor: Int) in logThemeColorApplied()
32 fun logClockColorApplied(seedColor: Int) in logThemeColorApplied()
DThemesUserEventLoggerImpl.kt170 seedColor: Int, in logThemeColorApplied()
176 .setSeedColor(seedColor) in logThemeColorApplied()
194 override fun logClockColorApplied(seedColor: Int) { in logClockColorApplied()
197 .setSeedColor(seedColor) in logClockColorApplied()
/packages/apps/ThemePicker/tests/common/src/com/android/customization/module/logging/
DTestThemesUserEventLogger.kt39 override fun logThemeColorApplied(@ColorSource source: Int, style: Int, seedColor: Int) { in logThemeColorApplied()
42 this.themeSeedColor = seedColor in logThemeColorApplied()
49 override fun logClockColorApplied(seedColor: Int) {} in logClockColorApplied()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactoryImpl.kt120 override fun updateColorForAllClocks(@ColorInt seedColor: Int?) { in <lambda>()
121 clockControllers.values.forEach { it.events.onSeedColorChanged(seedColor = seedColor) } in <lambda>()
124 override fun updateColor(clockId: String, @ColorInt seedColor: Int?) { in <lambda>()
125 clockControllers[clockId]?.events?.onSeedColorChanged(seedColor) in <lambda>()
DClockViewFactory.kt42 fun updateColorForAllClocks(@ColorInt seedColor: Int?)
44 fun updateColor(clockId: String, @ColorInt seedColor: Int?)
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/
DFakeColorPickerRepository.kt163 fun buildPresetOption(style: Style, seedColor: String): ColorOptionImpl { in <lambda>()
175 .addOverlayPackage(ResourceConstants.OVERLAY_CATEGORY_SYSTEM_PALETTE, seedColor) in <lambda>()
195 fun buildWallpaperOption(source: String, style: Style, seedColor: String): ColorOptionImpl { in <lambda>()
207 .addOverlayPackage(ResourceConstants.OVERLAY_CATEGORY_SYSTEM_PALETTE, seedColor) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/
DFakeClockViewFactory.kt54 override fun updateColorForAllClocks(seedColor: Int?) { in <lambda>()
58 override fun updateColor(clockId: String, seedColor: Int?) { in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockSettingsBinder.kt119 viewModel.seedColor.collect { seedColor -> in <lambda>() method
121 clockViewFactory.updateColor(selectedClockId, seedColor) in <lambda>()
DClockCarouselViewBinder.kt97 viewModel.seedColor.collect { clockViewFactory.updateColorForAllClocks(it) } in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/shared/model/
DClockMetadataModel.kt29 @ColorInt val seedColor: Int?, constant in com.android.customization.picker.clock.shared.model.ClockMetadataModel
DClockSnapshotModel.kt30 @ColorInt val seedColor: Int? = null, constant in com.android.customization.picker.clock.shared.model.ClockSnapshotModel
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModelTest.kt122 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
159 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
DClockCarouselViewModelTest.kt59 seedColor = null, in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerInteractorTest.kt71 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()