/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 30 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/ |
D | SimPhonebookContract_ContentNotificationsTest.java | 84 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/ |
D | SQLiteStatementTest.java | 332 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/ |
D | ParcelFileDescriptorTest.java | 229 byte[] observed = new byte[expected.length]; in assertInputStreamContent() 230 int count = is.read(observed); in assertInputStreamContent() 233 assertArrayEquals(expected, observed); in assertInputStreamContent()
|
D | BundleTest.java | 1270 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/ |
D | DatabaseUtilsTest.java | 783 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/ |
D | SystemPaletteTest.kt | 621 private fun assertColor(@ColorInt observed: Int, @ColorInt expected: Int) { in <lambda>() 626 observed in <lambda>()
|
D | BitmapTest.java | 450 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()
|