Home
last modified time | relevance | path

Searched refs:observed (Results 1 – 7 of 7) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java30 public static void verifyColor(int expected, int observed) { in verifyColor() argument
31 verifyColor(expected, observed, 0); in verifyColor()
34 public static void verifyColor(int expected, int observed, int tolerance) { in verifyColor() argument
35 verifyColor("", expected, observed, tolerance); in verifyColor()
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) { in verifyColor() argument
48 + ", observed 0x" + Integer.toHexString(observed) in verifyColor()
50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i)); in verifyColor()
51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i)); in verifyColor()
52 String blue = verifyChannel("blue", expected, observed, tolerance, (i) -> Color.blue(i)); in verifyColor()
53 String alpha = verifyChannel("alpha", expected, observed, tolerance, (i) -> Color.alpha(i)); in verifyColor()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DColorUtils.java30 public static void verifyColor(int expected, int observed) { in verifyColor() argument
31 verifyColor(expected, observed, 0); in verifyColor()
34 public static void verifyColor(int expected, int observed, int tolerance) { in verifyColor() argument
35 verifyColor("", expected, observed, tolerance); in verifyColor()
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) { in verifyColor() argument
48 + ", observed 0x" + Integer.toHexString(observed) in verifyColor()
50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i)); in verifyColor()
51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i)); in verifyColor()
52 String blue = verifyChannel("blue", expected, observed, tolerance, (i) -> Color.blue(i)); in verifyColor()
53 String alpha = verifyChannel("alpha", expected, observed, tolerance, (i) -> Color.alpha(i)); in verifyColor()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteStatementTest.java332 byte[] observed = new byte[expected.length]; in assertInputStreamContent()
333 int count = is.read(observed); in assertInputStreamContent()
336 MoreAsserts.assertEquals(expected, observed); in assertInputStreamContent()
/cts/tests/tests/os/src/android/os/cts/
DBundleTest.java838 private void assertBundleEquals(Bundle expected, Bundle observed) { in assertBundleEquals() argument
839 assertEquals(expected.size(), observed.size()); in assertBundleEquals()
841 assertEquals(expected.get(key), observed.get(key)); in assertBundleEquals()
845 private void assertIntentEquals(Intent expected, Intent observed) { in assertIntentEquals() argument
846 assertEquals(expected.toUri(0), observed.toUri(0)); in assertIntentEquals()
849 private void assertSpannableEquals(Spannable expected, CharSequence observed) { in assertSpannableEquals() argument
850 Spannable s = (Spannable) observed; in assertSpannableEquals()
851 assertEquals(expected.toString(), observed.toString()); in assertSpannableEquals()
DParcelFileDescriptorTest.java146 byte[] observed = new byte[expected.length]; in assertInputStreamContent()
147 int count = is.read(observed); in assertInputStreamContent()
150 MoreAsserts.assertEquals(expected, observed); in assertInputStreamContent()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java654 byte[] observed = new byte[expected.length]; in assertInputStreamContent()
655 int count = is.read(observed); in assertInputStreamContent()
658 MoreAsserts.assertEquals(expected, observed); in assertInputStreamContent()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapTest.java343 private static void verify2x2BitmapContents(int[] expected, Bitmap observed) { in verify2x2BitmapContents() argument
344 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents()
345 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents()
346 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents()
347 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents()