Home
last modified time | relevance | path

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

/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()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedVectorDrawableParameterizedTest.java271 int color1 = image1.getPixel(x, y); in isAlmostIdenticalInRect() local
273 int rDiff = Math.abs(Color.red(color1) - Color.red(color2)); in isAlmostIdenticalInRect()
274 int gDiff = Math.abs(Color.green(color1) - Color.green(color2)); in isAlmostIdenticalInRect()
275 int bDiff = Math.abs(Color.blue(color1) - Color.blue(color2)); in isAlmostIdenticalInRect()
/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/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.java216 final ColorStateList colorStateList = mResources.getColorStateList(R.color.color1); in testGetColorStateList()