/frameworks/base/libs/hwui/ |
D | PropertyValuesHolder.cpp | 38 void ColorEvaluator::evaluate(SkColor* outColor, const SkColor& fromColor, const SkColor& toColor, 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()
|
D | PropertyValuesHolder.h | 112 static SkColor interpolateColors(SkColor fromColor, SkColor toColor, float fraction);
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/ |
D | ColorTest.kt | 30 val (r, g, b, a) = 0x337f3010.toColor() in destructuringColor() 46 @Test fun intToColor() = assertEquals(Color.valueOf(0x337f3010), 0x337f3010.toColor()) in intToColor() 61 assertEquals(Color.valueOf(0x337f3010), Color.pack(0x337f3010).toColor()) in intToColor() 119 val (r, g, b, a) = 0x7f7f0000.toColor() + 0x7f007f00.toColor() in addColorsSameColorSpace()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImpl.java | 162 private void animateGrayScale(int fromColor, int toColor, ImageView iv, in animateGrayScale() argument 166 .setFinalImageTintList(ColorStateList.valueOf(toColor)); in animateGrayScale() 170 final float toAlpha = Color.alpha(toColor); in animateGrayScale() 172 final float toChannel = Color.red(toColor); in animateGrayScale() 191 setTint(iv, toColor); in animateGrayScale()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
D | GLCanvas.java | 109 public abstract void drawMixed(BasicTexture from, int toColor, in drawMixed() argument 116 public abstract void drawMixed(BasicTexture from, int toColor, in drawMixed() argument
|
D | GLES20Canvas.java | 758 …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()
|
/frameworks/support/core/ktx/src/main/java/androidx/core/graphics/ |
D | Color.kt | 206 inline fun @receiver:ColorInt Int.toColor(): Color = Color.valueOf(this) method 319 inline fun @receiver:ColorLong Long.toColor(): Color = Color.valueOf(this) method
|
/frameworks/support/core/ktx/api/ |
D | 0.1.txt | 146 method @RequiresApi(26) public static final android.graphics.Color toColor(int); 147 method @RequiresApi(26) public static final android.graphics.Color toColor(long);
|
D | current.txt | 149 method @RequiresApi(26) public static android.graphics.Color toColor(int); 150 method @RequiresApi(26) public static android.graphics.Color toColor(long);
|
D | 0.2.txt | 148 method @RequiresApi(26) public static android.graphics.Color toColor(int); 149 method @RequiresApi(26) public static android.graphics.Color toColor(long);
|