Searched defs:color2 (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DMultiProducerActivity.java283 public ColorPulse(int color1, int color2, Rect rect) { argument
285 mColorEnd = color2;
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingTextHelper.java640 * Blend {@code color1} and {@code color2} using the given ratio.
643 * 1.0 will return {@code color2}.
645 private static int blendColors(int color1, int color2, float ratio) { argument
647 float a = (Color.alpha(color1) * inverseRatio) + (Color.alpha(color2) * ratio);
648 float r = (Color.red(color1) * inverseRatio) + (Color.red(color2) * ratio);
649 float g = (Color.green(color1) * inverseRatio) + (Color.green(color2) * ratio);
650 float b = (Color.blue(color1) * inverseRatio) + (Color.blue(color2) * ratio);
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java84 * @param color2 Integer representation of a color.
88 void setColorScheme(int color1, int color2, int color3, int color4) { argument
90 mColor2 = color2;
/frameworks/support/v4/java/android/support/v4/graphics/
H A DColorUtils.java534 * 1.0 will result in {@code color2}.</p>
537 * @param color2 the second ARGB color
538 * @param ratio the blend ratio of {@code color1} to {@code color2}
541 public static int blendARGB(@ColorInt int color1, @ColorInt int color2, argument
544 float a = Color.alpha(color1) * inverseRatio + Color.alpha(color2) * ratio;
545 float r = Color.red(color1) * inverseRatio + Color.red(color2) * ratio;
546 float g = Color.green(color1) * inverseRatio + Color.green(color2) * ratio;
547 float b = Color.blue(color1) * inverseRatio + Color.blue(color2) * ratio;

Completed in 1909 milliseconds