Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockPalette.kt55 fun setColorPalette(supportsDarkText: Boolean, colorPalette: IntArray?) { in setColorPalette()
56 if (colorPalette == null || colorPalette.isEmpty()) { in setColorPalette()
62 val length = colorPalette.size in setColorPalette()
63 accentPrimary = colorPalette[Math.max(0, length - PRIMARY_INDEX)] in setColorPalette()
64 accentSecondaryLight = colorPalette[Math.max(0, length - SECONDARY_LIGHT_INDEX)] in setColorPalette()
65 accentSecondaryDark = colorPalette[Math.max(0, in setColorPalette()
DAnalogClockController.java175 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) { in setColorPalette() argument
176 mPalette.setColorPalette(supportsDarkText, colorPalette); in setColorPalette()
DBubbleClockController.java175 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) { in setColorPalette() argument
176 mPalette.setColorPalette(supportsDarkText, colorPalette); in setColorPalette()
DDefaultClockController.java162 public void setColorPalette(boolean supportsDarkText, int[] colorPalette) {} in setColorPalette() argument
/frameworks/base/core/java/com/android/internal/colorextraction/types/
DTonal.java156 int[] colorPalette = getColorPalette(h, s, l); in runTonalExtraction() local
193 outColorsNormal.setColorPalette(colorPalette); in runTonalExtraction()
207 outColorsDark.setColorPalette(colorPalette); in runTonalExtraction()
221 outColorsExtraDark.setColorPalette(colorPalette); in runTonalExtraction()
285 int[] colorPalette = new int[h.length]; in getColorPalette() local
286 for (int i = 0; i < colorPalette.length; i++) { in getColorPalette()
287 colorPalette[i] = getColorInt(i, h, s, l); in getColorPalette()
289 return colorPalette; in getColorPalette()
/frameworks/base/core/java/com/android/internal/colorextraction/
DColorExtractor.java257 public void setColorPalette(int[] colorPalette) { in setColorPalette() argument
258 mColorPalette = colorPalette; in setColorPalette()