Home
last modified time | relevance | path

Searched refs:colorMap (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/
DThemeColorManager.java36 private final MaterialColorMapUtils colorMap; field in ThemeColorManager
50 public ThemeColorManager(MaterialColorMapUtils colorMap) { in ThemeColorManager() argument
51 this.colorMap = colorMap; in ThemeColorManager()
73 colorMap.calculatePrimaryAndSecondaryColor(R.color.incall_call_spam_background_color); in updateThemeColors()
79 palette = colorMap.calculatePrimaryAndSecondaryColor(highlightColor); in updateThemeColors()
/packages/apps/Messaging/jni/
DGifTranscoder.cpp366 ColorMapObject* colorMap = getColorMap(gifIn); in renderImage() local
367 if (colorMap == NULL) { in renderImage()
387 if (colorIndex >= colorMap->ColorCount) { in renderImage()
389 colorMap->ColorCount); in renderImage()
404 *renderPixel = getColorARGB(colorMap, transparentColorIndex, colorIndex); in renderImage()
434 ColorMapObject* colorMap = getColorMap(gifIn); in computeNewColorIndex() local
444 return findBestColor(colorMap, transparentColorIndex, avgColor); in computeNewColorIndex()
459 GifByteType GifTranscoder::findBestColor(ColorMapObject* colorMap, int transparentColorIndex, in findBestColor() argument
469 for (int i = 0; i < colorMap->ColorCount; i++) { in findBestColor()
474 ColorARGB indexedColor = gifColorToColorARGB(colorMap->Colors[i]); in findBestColor()
[all …]
DGifTranscoder.h88 static GifByteType findBestColor(ColorMapObject* colorMap, int transparentColorIndex,
98 static ColorARGB getColorARGB(ColorMapObject* colorMap, int transparentColorIndex,
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModel.kt67 private val colorMap = ClockColorViewModel.getPresetColorMap(context.resources) in <lambda>() constant
102 val clockColorViewModel = colorMap[selectedColorId] ?: return in <lambda>()
112 val clockColorViewModel = colorMap[selectedColorId] ?: return in <lambda>()
142 colorMap.values.forEachIndexed { index, colorModel -> in <lambda>()
145 .map { colorMap.keys.indexOf(it) == index } in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/
DClockSettingsViewModelTest.kt46 private lateinit var colorMap: Map<String, ClockColorViewModel> in <lambda>() variable in com.android.customization.picker.clock.ui.viewmodel.ClockSettingsViewModelTest
91 colorMap = ClockColorViewModel.getPresetColorMap(context.resources) in <lambda>()
142 val expectedSelectedColorModel = colorMap.values.first() // RED in <lambda>()
178 val expectedSelectedColorModel = colorMap.values.first() // RED in <lambda>()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DAnimationDynamicColorsHelper.java118 Map<ColorItem, ColorItem> colorMap = getColorMap(nightMode); in setupSymmetricLayerColors() local
119 for (ColorItem targetColorItem : colorMap.keySet()) { in setupSymmetricLayerColors()
120 ColorItem otherColorItem = colorMap.get(targetColorItem); in setupSymmetricLayerColors()