Home
last modified time | relevance | path

Searched refs:color2 (Results 1 – 8 of 8) 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
31 mColor2 = color2; in AntiAliasBitmapVerifier()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColor_ColorLongTest.java141 Color color2 = valueOf(0.5f, 0.7f, 1.0f); in testValueOf() local
142 assertEquals(0.5f, color2.red(), 0.01f); in testValueOf()
143 assertEquals(0.7f, color2.green(), 0.01f); in testValueOf()
144 assertEquals(1.0f, color2.blue(), 0.01f); in testValueOf()
145 assertEquals(1.0f, color2.alpha(), 0.01f); in testValueOf()
146 assertTrue(color2.getColorSpace().isSrgb()); in testValueOf()
275 long color2 = pack(0.5f, 0.0f, 1.0f, 1.0f); in testPackSrgb() local
278 assertEquals(color1, color2); in testPackSrgb()
DSystemPaletteTest.kt674 private fun isColorDifferenceTooLarge(color1: Int?, color2: Int?, threshold: Int): Boolean { in <lambda>()
675 if (color1 == null || color2 == null) return true in <lambda>()
678 val hct2 = Hct.fromInt(color2) in <lambda>()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java276 int color2 = image2.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
1014 mColor2 = color2; in AntiAliasPixelCounter()
/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/cts/
DContextTest.java590 final ColorStateList colorStateList = mContext.getColorStateList(R.color.color2); in testGetColorStateList()
605 final int color = mContext.getColor(R.color.color2); in testGetColor()