Home
last modified time | relevance | path

Searched refs:expectedCount (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerListenerTest.java48 int expectedCount = 0; in testListener() local
49 assertClipChangedCount(expectedCount); in testListener()
52 expectedCount += expectedCallbackCount(); in testListener()
53 assertClipChangedCount(expectedCount); in testListener()
56 expectedCount += expectedCallbackCount(); in testListener()
57 assertClipChangedCount(expectedCount); in testListener()
60 expectedCount += expectedCallbackCount(); in testListener()
61 assertClipChangedCount(expectedCount); in testListener()
65 assertNoClipChange(expectedCount); in testListener()
68 private void assertClipChangedCount(final int expectedCount) { in assertClipChangedCount() argument
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_type.cpp135 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/tests/renderscript/src/android/renderscript/cts/
DTypeTest.java103 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/tests/util/src/android/util/cts/
DCloseGuardTest.java66 private void assertUnreleasedResources(ResourceOwner owner, int expectedCount) in assertUnreleasedResources() argument
69 CloseGuardSupport.getFinalizerChecker().accept(owner, expectedCount); in assertUnreleasedResources()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java84 int expectedCount, String activityTitle) { in findViews() argument
98 assertThat(rootNode.getChildCount()).isEqualTo(expectedCount); in findViews()
99 final ViewNode[] viewNodes = new AssistStructure.ViewNode[expectedCount]; in findViews()
100 for (int i = 0; i < expectedCount; i++) { in findViews()
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java198 final int expectedCount) { in waitForCursorCount() argument
205 return cursor != null && cursor.getCount() == expectedCount; in waitForCursorCount()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp130 static void verifyCallback(JNIEnv* env, const Callback& cb, int expectedCount, in verifyCallback() argument
133 ASSERT(cb.count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback()
134 cb.name.c_str(), expectedCount, cb.count); in verifyCallback()
138 cb.name.c_str(), expectedCount); in verifyCallback()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java447 int expectedCount = 0; in testForegroundServiceAccessAppOp() local
450 expectedCount = 3; in testForegroundServiceAccessAppOp()
453 expectedCount = 1; in testForegroundServiceAccessAppOp()
456 expectedCount = 2; in testForegroundServiceAccessAppOp()
463 assertWithMessage("Wrong count for " + opName).that(count).isEqualTo(expectedCount); in testForegroundServiceAccessAppOp()
/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java350 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder() local
351 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder()
359 int expectedCount = expectedEntry.getValue(); in assertContentsInAnyOrder() local
361 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java1105 private void verifyOverlap(long startMillis, long endMillis, int expectedCount, in verifyOverlap() argument
1109 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
1113 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
1536 private void verifyChannelCountWithCanonicalGenre(String canonicalGenre, int expectedCount) { in verifyChannelCountWithCanonicalGenre() argument
1542 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, c.getCount()); in verifyChannelCountWithCanonicalGenre()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java211 int start, int end, boolean measureForwards, float maxWidth, int expectedCount, in verifyBreakText() argument
229 assertEquals(expectedCount, p.breakText(textSlice, measureForwards, maxWidth, measured[0])); in verifyBreakText()
230 assertEquals(expectedCount, p.breakText(textChars, start, count, maxWidth, measured[1])); in verifyBreakText()
231 assertEquals(expectedCount, p.breakText(textSpan, start, end, measureForwards, maxWidth, in verifyBreakText()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java1422 private void waitForCallCount(AtomicInteger counter, int expectedCount) { in waitForCallCount() argument
1425 while (counter.get() < expectedCount) { in waitForCallCount()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java641 private void assertNotificationCount(int expectedCount) { in assertNotificationCount() argument
649 if (expectedCount == lastCount) return; in assertNotificationCount()
656 fail("Expected " + expectedCount + " posted notifications, were " + lastCount); in assertNotificationCount()
/cts/tests/tests/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java3693 private void verifyCalendar(String account, ContentValues values, long id, int expectedCount) { in verifyCalendar() argument
3696 assertEquals(expectedCount, c.getCount()); in verifyCalendar()