Searched refs:baseColor (Results 1 – 5 of 5) sorted by relevance
333 final int baseColor = a.getColor(R.styleable.ColorStateListItem_color, Color.MAGENTA); in inflate() local361 final int color = modulateColorAlpha(baseColor, alphaMod); in inflate()454 final int baseColor = a.getColor( in applyTheme() local458 mColors[i] = modulateColorAlpha(baseColor, alphaMod); in applyTheme()508 private int modulateColorAlpha(int baseColor, float alphaMod) { in modulateColorAlpha() argument510 return baseColor; in modulateColorAlpha()513 final int baseAlpha = Color.alpha(baseColor); in modulateColorAlpha()515 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()