/cts/tests/tests/content/src/android/content/cts/ |
D | ClipboardManagerListenerTest.java | 58 int expectedCount = 0; in testListener() local 59 assertClipChangedCount(expectedCount); in testListener() 62 expectedCount += expectedCallbackCount(); in testListener() 63 assertClipChangedCount(expectedCount); in testListener() 66 expectedCount += expectedCallbackCount(); in testListener() 67 assertClipChangedCount(expectedCount); in testListener() 70 expectedCount += expectedCallbackCount(); in testListener() 71 assertClipChangedCount(expectedCount); in testListener() 75 assertNoClipChange(expectedCount); in testListener() 78 private void assertClipChangedCount(final int expectedCount) { in assertClipChangedCount() argument [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_type.cpp | 135 size_t expectedCount = 8 + 4 + 2 + 1; in Java_android_cts_rscpp_RSTypeTest_testGetCount() local 136 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount() 141 expectedCount = 8*8 + 4*4 + 2*2 + 1; in Java_android_cts_rscpp_RSTypeTest_testGetCount() 142 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount() 147 expectedCount = 8*4 + 4*2 + 2*1 + 1; in Java_android_cts_rscpp_RSTypeTest_testGetCount() 148 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount() 153 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount() 158 expectedCount = 7 + 3 + 1; in Java_android_cts_rscpp_RSTypeTest_testGetCount() 159 passed &= (t->getCount() == expectedCount); in Java_android_cts_rscpp_RSTypeTest_testGetCount() 164 expectedCount = 7*3 + 3*1 + 1; in Java_android_cts_rscpp_RSTypeTest_testGetCount() [all …]
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/ |
D | TestObserverCallback.java | 73 public void waitForNotificationCount(int expectedCount) throws InterruptedException { in waitForNotificationCount() argument 77 if (actualCount > expectedCount) { in waitForNotificationCount() 80 + expectedCount in waitForNotificationCount() 88 } else if (actualCount == expectedCount) { in waitForNotificationCount()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | TypeTest.java | 103 int expectedCount = 8 + 4 + 2 + 1; in testGetCount() local 104 assertTrue(t.getCount() == expectedCount); in testGetCount() 107 expectedCount = 8*8 + 4*4 + 2*2 + 1; in testGetCount() 108 assertTrue(t.getCount() == expectedCount); in testGetCount() 111 expectedCount = 8*4 + 4*2 + 2*1 + 1; in testGetCount() 112 assertTrue(t.getCount() == expectedCount); in testGetCount() 115 assertTrue(t.getCount() == expectedCount); in testGetCount() 118 expectedCount = 7 + 3 + 1; in testGetCount() 119 assertTrue(t.getCount() == expectedCount); in testGetCount() 122 expectedCount = 7*3 + 3*1 + 1; in testGetCount() [all …]
|
/cts/tests/surfacecontrol/jni/ |
D | ChoreographerTestUtils.h | 133 static void verifyCallback(JNIEnv* env, const Callback& cb, int expectedCount, in verifyCallback() argument 136 ASSERT(cb.count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback() 137 cb.name.c_str(), expectedCount, cb.count); in verifyCallback() 141 expectedCount); in verifyCallback()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarMediaManagerTest.java | 95 private void initMediaSourceTrackers(int expectedCount) { in initMediaSourceTrackers() argument 96 mPlaybackTracker = new MediaSourceTracker(expectedCount); in initMediaSourceTrackers() 97 mBrowseTracker = new MediaSourceTracker(expectedCount); in initMediaSourceTrackers() 247 MediaSourceTracker(int expectedCount) { in MediaSourceTracker() argument 248 mSources = new ArrayList<>(expectedCount); in MediaSourceTracker() 249 mCountDownLatch = new CountDownLatch(expectedCount); in MediaSourceTracker()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | CloseGuardTest.java | 73 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument 76 CloseGuardSupport.getFinalizerChecker().accept(owner, expectedCount); in assertUnreleasedResources()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | DuplicateIdActivityTest.java | 85 int expectedCount, String activityTitle) { in findViews() argument 99 assertThat(rootNode.getChildCount()).isEqualTo(expectedCount); in findViews() 100 final ViewNode[] viewNodes = new AssistStructure.ViewNode[expectedCount]; in findViews() 101 for (int i = 0; i < expectedCount; i++) { in findViews()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | SearchRecentSuggestionsTest.java | 223 final Uri uri, final String[] projection, final int expectedCount) { in waitForCursorCount() argument 230 return cursor != null && cursor.getCount() == expectedCount; in waitForCursorCount()
|
/cts/tests/tests/keystore/src/android/keystore/cts/util/ |
D | TestUtils.java | 495 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder() local 496 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder() 504 int expectedCount = expectedEntry.getValue(); in assertContentsInAnyOrder() local 506 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | UidAtomTests.java | 415 int expectedCount = 0; in testForegroundServiceAccessAppOp() local 418 expectedCount = 3; in testForegroundServiceAccessAppOp() 421 expectedCount = 1; in testForegroundServiceAccessAppOp() 424 expectedCount = 2; in testForegroundServiceAccessAppOp() 431 assertWithMessage("Wrong count for " + opName).that(count).isEqualTo(expectedCount); in testForegroundServiceAccessAppOp()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 1159 private void verifyOverlap(long startMillis, long endMillis, int expectedCount, in verifyOverlap() argument 1163 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap() 1167 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap() 1594 private void verifyChannelCountWithCanonicalGenre(String canonicalGenre, int expectedCount) { in verifyChannelCountWithCanonicalGenre() argument 1600 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, c.getCount()); in verifyChannelCountWithCanonicalGenre()
|
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/ |
D | WallpaperManagerTest.java | 670 int expectedCount = e.getValue(); in testClear() local 673 runAndAwaitChanges(5, TimeUnit.SECONDS, 0, expectedCount, 0, () -> { in testClear() 686 destroyCountDescriptions.get(expectedCount)); in testClear() 689 .isEqualTo(expectedCount); in testClear()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PaintTest.java | 220 int start, int end, boolean measureForwards, float maxWidth, int expectedCount, in verifyBreakText() argument 238 assertEquals(expectedCount, p.breakText(textSlice, measureForwards, maxWidth, measured[0])); in verifyBreakText() 239 assertEquals(expectedCount, p.breakText(textChars, start, count, maxWidth, measured[1])); in verifyBreakText() 240 assertEquals(expectedCount, p.breakText(textSpan, start, end, measureForwards, maxWidth, in verifyBreakText()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 1559 private void waitForCallCount(AtomicInteger counter, int expectedCount) { in waitForCallCount() argument 1562 while (counter.get() < expectedCount) { in waitForCallCount()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerTest.java | 388 private void assertNotificationCount(int expectedCount) { in assertNotificationCount() argument 396 if (expectedCount == lastCount) return; in assertNotificationCount() 403 fail("Expected " + expectedCount + " posted notifications, were " + lastCount); in assertNotificationCount()
|
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/ |
D | CalendarTest.java | 3692 private void verifyCalendar(String account, ContentValues values, long id, int expectedCount) { in verifyCalendar() argument 3695 assertEquals(expectedCount, c.getCount()); in verifyCalendar()
|