/packages/apps/ThemePicker/src/com/android/customization/picker/clock/domain/interactor/ |
D | ClockPickerInteractor.kt | 52 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>()
|
D | ClockPickerSnapshotRestorer.kt | 49 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/ |
D | FakeClockPickerRepository.kt | 37 @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/ |
D | ClockPickerRepositoryImpl.kt | 99 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>()
|
D | ClockPickerRepository.kt | 48 @ColorInt seedColor: Int?,
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/ |
D | ClockSettingsViewModel.kt | 92 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>()
|
D | ClockCarouselViewModel.kt | 77 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/ |
D | ColorOption.java | 111 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()
|
D | ColorCustomizationManager.java | 245 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/ |
D | SysUiStatsLogger.kt | 58 private var seedColor = 0 variable 145 fun setSeedColor(seedColor: Int) = apply { this.seedColor = seedColor } in <lambda>() 188 seedColor, in log()
|
D | ThemesUserEventLogger.kt | 26 fun logThemeColorApplied(@ColorSource source: Int, style: Int, seedColor: Int) in logThemeColorApplied() 32 fun logClockColorApplied(seedColor: Int) in logThemeColorApplied()
|
D | ThemesUserEventLoggerImpl.kt | 170 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/ |
D | TestThemesUserEventLogger.kt | 39 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/ |
D | ClockViewFactoryImpl.kt | 120 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>()
|
D | ClockViewFactory.kt | 42 fun updateColorForAllClocks(@ColorInt seedColor: Int?) 44 fun updateColor(clockId: String, @ColorInt seedColor: Int?)
|
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/ |
D | FakeColorPickerRepository.kt | 163 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/ |
D | FakeClockViewFactory.kt | 54 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/ |
D | ClockSettingsBinder.kt | 119 viewModel.seedColor.collect { seedColor -> in <lambda>() method 121 clockViewFactory.updateColor(selectedClockId, seedColor) in <lambda>()
|
D | ClockCarouselViewBinder.kt | 97 viewModel.seedColor.collect { clockViewFactory.updateColorForAllClocks(it) } in <lambda>()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/shared/model/ |
D | ClockMetadataModel.kt | 29 @ColorInt val seedColor: Int?, constant in com.android.customization.picker.clock.shared.model.ClockMetadataModel
|
D | ClockSnapshotModel.kt | 30 @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/ |
D | ClockSettingsViewModelTest.kt | 122 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>() 159 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
|
D | ClockCarouselViewModelTest.kt | 59 seedColor = null, in <lambda>()
|
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/domain/interactor/ |
D | ClockPickerInteractorTest.kt | 71 val observedSeedColor = collectLastValue(underTest.seedColor) in <lambda>()
|