Home
last modified time | relevance | path

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

/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/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_ContentNotificationsTest.java84 assertThat(mObserver.observed).isEmpty(); in setUp()
111 DEFAULT_TIMEOUT, () -> !mObserver.observed.isEmpty()); in insert_notifiesObserver()
122 DEFAULT_TIMEOUT, () -> mObserver.observed.size() == 1); in update_notifiesObserver()
129 DEFAULT_TIMEOUT, () -> mObserver.observed.size() > 1); in update_notifiesObserver()
140 DEFAULT_TIMEOUT, () -> mObserver.observed.size() == 1); in delete_notifiesObserver()
146 DEFAULT_TIMEOUT, () -> mObserver.observed.size() > 1); in delete_notifiesObserver()
151 List<Uri> observed = new CopyOnWriteArrayList<>(); field in SimPhonebookContract_ContentNotificationsTest.RecordingContentObserver
159 observed.add(uri); in onChange()
/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/
DParcelFileDescriptorTest.java229 byte[] observed = new byte[expected.length]; in assertInputStreamContent()
230 int count = is.read(observed); in assertInputStreamContent()
233 assertArrayEquals(expected, observed); in assertInputStreamContent()
DBundleTest.java1270 private void assertBundleEquals(Bundle expected, Bundle observed) { in assertBundleEquals() argument
1271 assertEquals(expected.size(), observed.size()); in assertBundleEquals()
1273 assertEquals(expected.get(key), observed.get(key)); in assertBundleEquals()
1277 private void assertSpannableEquals(Spannable expected, CharSequence observed) { in assertSpannableEquals() argument
1278 final Spannable observedSpan = (Spannable) observed; in assertSpannableEquals()
1279 assertEquals(expected.toString(), observed.toString()); in assertSpannableEquals()
/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java783 byte[] observed = new byte[expected.length]; in assertInputStreamContent()
784 int count = is.read(observed); in assertInputStreamContent()
787 MoreAsserts.assertEquals(expected, observed); in assertInputStreamContent()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSystemPaletteTest.kt621 private fun assertColor(@ColorInt observed: Int, @ColorInt expected: Int) { in <lambda>()
626 observed in <lambda>()
DBitmapTest.java450 private static void verify2x2BitmapContents(int[] expected, Bitmap observed) { in verify2x2BitmapContents() argument
451 ColorUtils.verifyColor(expected[0], observed.getPixel(0, 0)); in verify2x2BitmapContents()
452 ColorUtils.verifyColor(expected[1], observed.getPixel(1, 0)); in verify2x2BitmapContents()
453 ColorUtils.verifyColor(expected[2], observed.getPixel(0, 1)); in verify2x2BitmapContents()
454 ColorUtils.verifyColor(expected[3], observed.getPixel(1, 1)); in verify2x2BitmapContents()