Home
last modified time | relevance | path

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

/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/color/
DColorOptionTest.kt51 val colorOption: ColorOption = in testColorOptionSource() constant
62 assertThat(colorOption.source).isEqualTo(source) in testColorOptionSource()
74 val colorOption: ColorOption = in testColorOptionStyle() constant
85 assertThat(colorOption.style).isEqualTo(style) in testColorOptionStyle()
97 val colorOption: ColorOption = in testColorOptionIndex() constant
108 assertThat(colorOption.index).isEqualTo(index) in testColorOptionIndex()
137 val colorOption = setUpWallpaperColorOption(false, source) in wallpaperColorOption_isActive_notDefault_SourceSet() constant
140 assertThat(colorOption.isActive(manager)).isTrue() in wallpaperColorOption_isActive_notDefault_SourceSet()
145 val colorOption = setUpWallpaperColorOption(false) in wallpaperColorOption_isActive_notDefault_NoSource() constant
148 assertThat(colorOption.isActive(manager)).isTrue() in wallpaperColorOption_isActive_notDefault_NoSource()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/picker/color/data/repository/
DFakeColorPickerRepository.kt63 for ((index, colorOption) in wallpaperOptions.withIndex()) { in <lambda>() method
70 colorOption = colorOption, in <lambda>()
81 for ((index, colorOption) in presetOptions.withIndex()) { in <lambda>() method
88 colorOption = colorOption, in <lambda>()
114 val colorOption = in <lambda>() constant
117 colorOption = buildWallpaperOption(index), in <lambda>()
121 selectedColorOption = colorOption in <lambda>()
123 add(colorOption) in <lambda>()
132 val colorOption = in <lambda>() constant
135 colorOption = buildPresetOption(index), in <lambda>()
[all …]
DColorPickerRepositoryImpl.kt124 colorOptionModel.colorOption, in <lambda>()
155 val colorOption = colorOptionBuilder.build() in <lambda>() constant
158 colorOption = colorOption, in <lambda>()
170 colorOption = this, in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/viewmodel/
DColorPickerViewModel.kt101 val colorOption: ColorOptionImpl = in <lambda>() constant
102 colorOptionModel.colorOption as ColorOptionImpl in <lambda>()
104 colorOption.previewInfo.resolveColors(/* darkTheme= */ false) in <lambda>()
106 colorOption.previewInfo.resolveColors(/* darkTheme= */ true) in <lambda>()
110 it?.colorOption?.isEquivalent(colorOptionModel.colorOption) in <lambda>()
129 colorOption.getContentDescription(context).toString() in <lambda>()
142 colorOptionModel.colorOption in <lambda>()
144 colorOptionModel.colorOption in <lambda>()
146 colorOptionModel.colorOption in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/domain/interactor/
DColorPickerSnapshotRestorer.kt50 optionToRestore.colorOption.serializedPackages != optionPackagesFromSnapshot || in <lambda>()
51 optionToRestore.colorOption.style.toString() != in <lambda>()
70 snapshotMap[KEY_COLOR_OPTION_PACKAGES] = colorOptionModel.colorOption.serializedPackages in <lambda>()
71 snapshotMap[KEY_COLOR_OPTION_STYLE] = colorOptionModel.colorOption.style.toString() in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/model/color/
DColorCustomizationManager.java147 private void applyOverlays(ColorOption colorOption, Callback callback) { in applyOverlays() argument
156 JSONObject colorJson = colorOption.getJsonPackages(true); in applyOverlays()
164 overlaysJson.put(OVERLAY_COLOR_SOURCE, colorOption.getSource()); in applyOverlays()
165 overlaysJson.put(OVERLAY_COLOR_INDEX, String.valueOf(colorOption.getIndex())); in applyOverlays()
167 String.valueOf(colorOption.getStyle().toString())); in applyOverlays()
170 if (!COLOR_SOURCE_PRESET.equals(colorOption.getSource())) { in applyOverlays()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt205 combine(colorOptions.map { colorOption -> colorOption.isSelected }) { selectedFlags -> in <lambda>() method
214 (colorOption as ColorOptionImpl) in <lambda>()
221 colorOption.previewInfo.resolveColors( in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/shared/model/
DColorOptionModel.kt27 val colorOption: ColorOption, constant in com.android.customization.picker.color.shared.model.ColorOptionModel
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/binder/
DClockSettingsBinder.kt146 colorOptions.forEachIndexed { index, colorOption -> in <lambda>() method
147 colorOption.payload?.let { payload -> in <lambda>()