Home
last modified time | relevance | path

Searched refs:color1 (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/
DAlphaTestView.java76 private int blendColor(int color1, int color2, float ratio) { in blendColor() argument
78 float a = (float) Color.alpha(color1) * inverseRatio + (float) Color.alpha(color2) * ratio; in blendColor()
79 float r = (float) Color.red(color1) * inverseRatio + (float) Color.red(color2) * ratio; in blendColor()
80 float g = (float) Color.green(color1) * inverseRatio + (float) Color.green(color2) * ratio; in blendColor()
81 float b = (float) Color.blue(color1) * inverseRatio + (float) Color.blue(color2) * ratio; in blendColor()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DAntiAliasBitmapVerifier.java29 public AntiAliasBitmapVerifier(int color1, int color2) { in AntiAliasBitmapVerifier() argument
30 mColor1 = color1; in AntiAliasBitmapVerifier()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java134 Color color1 = valueOf(0x7fff00ff); in testValueOf() local
135 assertEquals(1.0f, color1.red(), 0.01f); in testValueOf()
136 assertEquals(0.0f, color1.green(), 0.01f); in testValueOf()
137 assertEquals(1.0f, color1.blue(), 0.01f); in testValueOf()
138 assertEquals(0.5f, color1.alpha(), 0.01f); in testValueOf()
139 assertTrue(color1.getColorSpace().isSrgb()); in testValueOf()
274 long color1 = pack(0.5f, 0.0f, 1.0f); in testPackSrgb() local
278 assertEquals(color1, color2); in testPackSrgb()
279 assertEquals(color1, color3); in testPackSrgb()
281 assertEquals(0xff8000ff, (int) (color1 >>> 32)); in testPackSrgb()
[all …]
DRadialGradientTest.java181 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs2() local
182 new RadialGradient(0.5f, 0.5f, 1, color0, color1, TileMode.CLAMP); in testMismatchColorLongs2()
DLinearGradientTest.java203 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3));
204 new LinearGradient(0.5f, 0, 1.5f, 0, color0, color1, TileMode.CLAMP);
DSweepGradientTest.java218 long color1 = Color.pack(.5f, .5f, .5f, 1.0f, ColorSpace.get(ColorSpace.Named.DISPLAY_P3)); in testMismatchColorLongs2() local
219 new SweepGradient(1, 0.5f, color0, color1); in testMismatchColorLongs2()
DSystemPaletteTest.kt674 private fun isColorDifferenceTooLarge(color1: Int?, color2: Int?, threshold: Int): Boolean { in <lambda>()
675 if (color1 == null || color2 == null) return true in <lambda>()
677 val hct1 = Hct.fromInt(color1) in <lambda>()
DBitmapTest.java2760 long color1 = Color.pack(1, 0, 0, 0, cs); in drawGradient() local
2761 LinearGradient gradient = new LinearGradient(0, 0, 10, 10, color0, color1, in drawGradient()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java275 int color1 = image1.getPixel(x, y); in isAlmostIdenticalInRect() local
277 int rDiff = Math.abs(Color.red(color1) - Color.red(color2)); in isAlmostIdenticalInRect()
278 int gDiff = Math.abs(Color.green(color1) - Color.green(color2)); in isAlmostIdenticalInRect()
279 int bDiff = Math.abs(Color.blue(color1) - Color.blue(color2)); in isAlmostIdenticalInRect()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DCanvasTests.java1004 public static AntiAliasPixelCounter aaVerifier(int color1, int color2, int countThreshold) { in aaVerifier() argument
1005 return new AntiAliasPixelCounter(color1, color2, countThreshold, false); in aaVerifier()
1008 public static AntiAliasPixelCounter noAAVerifier(int color1, int color2) { in noAAVerifier() argument
1009 return new AntiAliasPixelCounter(color1, color2, 0, true); in noAAVerifier()
1012 AntiAliasPixelCounter(int color1, int color2, int countThreshold, boolean thresholdIsMax) { in AntiAliasPixelCounter() argument
1013 mColor1 = color1; in AntiAliasPixelCounter()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp350 static uint32_t LerpColor(uint32_t color0, uint32_t color1, float t) { in LerpColor() argument
355 float r1 = (color1 & 0xff) / 255.0f; in LerpColor()
356 float g1 = ((color1 >> 8) & 0xff) / 255.0f; in LerpColor()
357 float b1 = ((color1 >> 16) & 0xff) / 255.0f; in LerpColor()
358 float a1 = ((color1 >> 24) & 0xff) / 255.0f; in LerpColor()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java115 int operate(@ColorInt int color1, @ColorInt int color2); in operate() argument
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java244 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testGetColorStateList()