Searched refs:baseColor (Results 1 – 5 of 5) sorted by relevance
332 final int baseColor = a.getColor(R.styleable.ColorStateListItem_color, Color.MAGENTA); in inflate() local360 final int color = modulateColorAlpha(baseColor, alphaMod); in inflate()453 final int baseColor = a.getColor( in applyTheme() local457 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()507 private int modulateColorAlpha(int baseColor, float alphaMod) { in modulateColorAlpha() argument509 return baseColor; in modulateColorAlpha()512 final int baseAlpha = Color.alpha(baseColor); in modulateColorAlpha()514 return (baseColor & 0xFFFFFF) | (alpha << 24); in modulateColorAlpha()
191 for (const hwc_color_t& baseColor : mBaseColors) { in update() local192 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()
168 public static int getColorWithOverlay(int baseColor, int overlayColor, float overlayAlpha) { in getColorWithOverlay() argument170 (int) (overlayAlpha * Color.red(baseColor) + in getColorWithOverlay()172 (int) (overlayAlpha * Color.green(baseColor) + in getColorWithOverlay()174 (int) (overlayAlpha * Color.blue(baseColor) + in getColorWithOverlay()
209 float baseColor[3]; in createSuperShape() local218 baseColor[a] = ((randomUInt() % 155) + 100) / 255.f; in createSuperShape()301 color[a] = (int)(ca * baseColor[a] * 255); in createSuperShape()
518 public static int changeColorLightness(int baseColor, int amount) { in changeColorLightness() argument520 ColorUtilsFromCompat.colorToLAB(baseColor, result); in changeColorLightness()