Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DColorStateList.java332 final int baseColor = a.getColor(R.styleable.ColorStateListItem_color, Color.MAGENTA); in inflate() local
360 final int color = modulateColorAlpha(baseColor, alphaMod); in inflate()
453 final int baseColor = a.getColor( in applyTheme() local
457 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()
507 private int modulateColorAlpha(int baseColor, float alphaMod) { in modulateColorAlpha() argument
509 return baseColor; in modulateColorAlpha()
512 final int baseAlpha = Color.alpha(baseColor); in modulateColorAlpha()
514 return (baseColor & 0xFFFFFF) | (alpha << 24); in modulateColorAlpha()
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestProperties.cpp191 for (const hwc_color_t& baseColor : mBaseColors) { in update() local
192 if (baseColor.a >= baseColor.r && baseColor.a >= baseColor.g in update()
193 && baseColor.a >= baseColor.b) { in update()
194 mColors.push_back(baseColor); in update()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/utilities/
DUtilities.java168 public static int getColorWithOverlay(int baseColor, int overlayColor, float overlayAlpha) { in getColorWithOverlay() argument
170 (int) (overlayAlpha * Color.red(baseColor) + in getColorWithOverlay()
172 (int) (overlayAlpha * Color.green(baseColor) + in getColorWithOverlay()
174 (int) (overlayAlpha * Color.blue(baseColor) + in getColorWithOverlay()
/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()