Home
last modified time | relevance | path

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

/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/content/src/android/content/cts/
DClipboardManagerListenerTest.java60 private void assertClipChangedCount(final int expectedCount) { in assertClipChangedCount() argument
64 return expectedCount == mListener.getCount(); in assertClipChangedCount()
69 private void assertNoClipChange(int expectedCount) throws InterruptedException { in assertNoClipChange() argument
71 assertEquals(expectedCount, mListener.getCount()); in assertNoClipChange()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDuplicateIdActivityTest.java74 int expectedCount) { in findViews() argument
80 assertThat(rootNode.getChildCount()).isEqualTo(expectedCount); in findViews()
81 final ViewNode[] viewNodes = new AssistStructure.ViewNode[expectedCount]; in findViews()
82 for (int i = 0; i < expectedCount; i++) { in findViews()
/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java179 protected void assertRestrictBackgroundChangedReceived(int expectedCount) throws Exception { in assertRestrictBackgroundChangedReceived() argument
180 assertRestrictBackgroundChangedReceived(DYNAMIC_RECEIVER, expectedCount); in assertRestrictBackgroundChangedReceived()
184 protected void assertRestrictBackgroundChangedReceived(String receiverName, int expectedCount) in assertRestrictBackgroundChangedReceived() argument
192 assertFalse("Expected count " + expectedCount + " but actual is " + count, in assertRestrictBackgroundChangedReceived()
193 count > expectedCount); in assertRestrictBackgroundChangedReceived()
194 if (count == expectedCount) { in assertRestrictBackgroundChangedReceived()
197 Log.d(TAG, "Expecting count " + expectedCount + " but actual is " + count + " after " in assertRestrictBackgroundChangedReceived()
203 + maxAttempts * SLEEP_TIME_SEC + " seconds", expectedCount, count); in assertRestrictBackgroundChangedReceived()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp83 static void verifyCallback(JNIEnv* env, Callback* cb, int expectedCount, in verifyCallback() argument
86 ASSERT(cb->count == expectedCount, "Choreographer failed to invoke '%s' %d times - actual: %d", in verifyCallback()
87 cb->name, expectedCount, cb->count); in verifyCallback()
91 cb->name, expectedCount); in verifyCallback()
/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()
DCalendarTest.java3693 private void verifyCalendar(String account, ContentValues values, long id, int expectedCount) { in verifyCalendar() argument
3696 assertEquals(expectedCount, c.getCount()); in verifyCalendar()
/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java293 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder() local
294 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder()
302 int expectedCount = expectedEntry.getValue(); in assertContentsInAnyOrder() local
304 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java954 private void verifyOverlap(long startMillis, long endMillis, int expectedCount, in verifyOverlap() argument
958 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
962 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
1385 private void verifyChannelCountWithCanonicalGenre(String canonicalGenre, int expectedCount) { in verifyChannelCountWithCanonicalGenre() argument
1391 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.java1315 private void waitForCallCount(AtomicInteger counter, int expectedCount) { in waitForCallCount() argument
1318 while (counter.get() < expectedCount) { in waitForCallCount()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java451 private void assertNotificationCount(int expectedCount) { in assertNotificationCount() argument
459 if (expectedCount == lastCount) return; in assertNotificationCount()
466 fail("Expected " + expectedCount + " posted notifications, were " + lastCount); in assertNotificationCount()