Home
last modified time | relevance | path

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

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java33 public SamplePointWideGamutVerifier(Point[] points, Color[] colors, float eps) { in SamplePointWideGamutVerifier() argument
36 mEps = eps; in SamplePointWideGamutVerifier()
71 private static boolean floatCompare(float a, float b, float eps) { in floatCompare() argument
72 return Float.compare(a, b) == 0 || Math.abs(a - b) <= eps; in floatCompare()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorTest.java251 float eps = 0.000001f; in testLuminance() local
252 assertEquals(0.0722, Color.luminance(Color.BLUE), eps); in testLuminance()
253 assertEquals(0.2126, Color.luminance(Color.RED), eps); in testLuminance()
254 assertEquals(0.7152, Color.luminance(Color.GREEN), eps); in testLuminance()
DColorSpaceTest.java795 private static void assertArrayNotEquals(float[] a, float[] b, float eps) { in assertArrayNotEquals() argument
797 if (Float.compare(a[i], b[i]) == 0 || Math.abs(a[i] - b[i]) < eps) { in assertArrayNotEquals()
803 private static void assertArrayEquals(float[] a, float[] b, float eps) { in assertArrayEquals() argument
805 if (Float.compare(a[i], b[i]) != 0 && Math.abs(a[i] - b[i]) > eps) { in assertArrayEquals()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java88 private BitmapVerifier getVerifier(Point[] points, Color[] colors, float eps) { in getVerifier() argument
90 return new SamplePointWideGamutVerifier(points, colors, eps); in getVerifier()
94 (int) (eps * 255.0f + 0.5f)); in getVerifier()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java235 float eps = 0.005f; in evaluateLightBarBitmap() local
264 if (hueDiff < eps || hueDiff > 1 - eps) { in evaluateLightBarBitmap()