Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPropertyValuesHolder.cpp39 const SkColor& fromColor, const SkColor& toColor, float fraction) const { in evaluate() argument
40 float a = lerp(SkColorGetA(fromColor) / 255.0f, SkColorGetA(toColor) / 255.0f, fraction); in evaluate()
41 float r = lerp(linearize(SkColorGetR(fromColor)), linearize(SkColorGetR(toColor)), fraction); in evaluate()
42 float g = lerp(linearize(SkColorGetG(fromColor)), linearize(SkColorGetG(toColor)), fraction); in evaluate()
43 float b = lerp(linearize(SkColorGetB(fromColor)), linearize(SkColorGetB(toColor)), fraction); in evaluate()
DPropertyValuesHolder.h113 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java158 public static void animateGrayScale(int fromColor, int toColor, ImageView iv) { in animateGrayScale() argument
161 .setFinalImageTintList(ColorStateList.valueOf(toColor)); in animateGrayScale()
165 final float toAlpha = Color.alpha(toColor); in animateGrayScale()
167 final float toChannel = Color.red(toColor); in animateGrayScale()
181 setTint(iv, toColor); in animateGrayScale()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLCanvas.java109 public abstract void drawMixed(BasicTexture from, int toColor, in drawMixed() argument
116 public abstract void drawMixed(BasicTexture from, int toColor, in drawMixed() argument
DGLES20Canvas.java758 …public void drawMixed(BasicTexture texture, int toColor, float ratio, int x, int y, int w, int h) { in drawMixed() argument
761 drawMixed(texture, toColor, ratio, mTempSourceRect, mTempTargetRect); in drawMixed()
765 …public void drawMixed(BasicTexture texture, int toColor, float ratio, RectF source, RectF target) { in drawMixed() argument
780 fillRect(target.left, target.top, target.width(), target.height(), toColor); in drawMixed()