Home
last modified time | relevance | path

Searched refs:baseColor (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/content/res/
DColorStateList.java366 final int baseColor = a.getColor(R.styleable.ColorStateListItem_color, Color.MAGENTA); in inflate() local
399 final int color = modulateColor(baseColor, alphaMod, lStar); in inflate()
493 final int baseColor = a.getColor( in applyTheme() local
499 mColors[i] = modulateColor(baseColor, alphaMod, lStar); in applyTheme()
549 private int modulateColor(int baseColor, float alphaMod, float lStar) { in modulateColor() argument
552 return baseColor; in modulateColor()
555 final int baseAlpha = Color.alpha(baseColor); in modulateColor()
559 final Cam baseCam = ColorUtils.colorToCAM(baseColor); in modulateColor()
560 baseColor = ColorUtils.CAMToColor(baseCam.getHue(), baseCam.getChroma(), lStar); in modulateColor()
563 return (baseColor & 0xFFFFFF) | (alpha << 24); in modulateColor()
/frameworks/native/opengl/tests/angeles/
Ddemo.c209 float baseColor[3]; in createSuperShape() local
218 baseColor[a] = ((randomUInt() % 155) + 100) / 255.f; in createSuperShape()
301 color[a] = (int)(ca * baseColor[a] * 255); in createSuperShape()
/frameworks/base/core/java/com/android/internal/util/
DContrastColorUtil.java518 public static int changeColorLightness(int baseColor, int amount) { in changeColorLightness() argument
520 ColorUtilsFromCompat.colorToLAB(baseColor, result); in changeColorLightness()