Home
last modified time | relevance | path

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

/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerListenerTest.java59 private void assertClipChangedCount(final int expectedCount) { in assertClipChangedCount() argument
63 return expectedCount == mListener.getCount(); in assertClipChangedCount()
68 private void assertNoClipChange(int expectedCount) throws InterruptedException { in assertNoClipChange() argument
70 assertEquals(expectedCount, mListener.getCount()); in assertNoClipChange()
/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/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java108 protected void assertRestrictBackgroundChangedReceived(int expectedCount) throws Exception { in assertRestrictBackgroundChangedReceived() argument
109 assertRestrictBackgroundChangedReceived(DYNAMIC_RECEIVER, expectedCount); in assertRestrictBackgroundChangedReceived()
113 protected void assertRestrictBackgroundChangedReceived(String receiverName, int expectedCount) in assertRestrictBackgroundChangedReceived() argument
121 if (count == expectedCount) { in assertRestrictBackgroundChangedReceived()
124 Log.d(TAG, "Expecting count " + expectedCount + " but actual is " + count + " after " in assertRestrictBackgroundChangedReceived()
130 + maxAttempts * SLEEP_TIME_SEC + " seconds", expectedCount, count); in assertRestrictBackgroundChangedReceived()
/cts/tests/tests/provider/src/android/provider/cts/
DSearchRecentSuggestionsTest.java197 final int expectedCount) { in waitForCursorCount() argument
204 return cursor != null && cursor.getCount() == expectedCount; in waitForCursorCount()
DCalendarTest.java3692 private void verifyCalendar(String account, ContentValues values, long id, int expectedCount) { in verifyCalendar() argument
3695 assertEquals(expectedCount, c.getCount()); in verifyCalendar()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityRecordTest.java204 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { in assertNoNewNonStaticFieldsAdded() argument
217 assertEquals(message, expectedCount, nonStaticFieldCount); in assertNoNewNonStaticFieldsAdded()
/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java272 Integer expectedCount = expectedFreq.get(actualEntry.getKey()); in assertContentsInAnyOrder() local
273 int diff = actualCount - ((expectedCount != null) ? expectedCount : 0); in assertContentsInAnyOrder()
281 int expectedCount = expectedEntry.getValue(); in assertContentsInAnyOrder() local
283 int diff = expectedCount - ((actualCount != null) ? actualCount : 0); in assertContentsInAnyOrder()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java472 private void verifyOverlap(long startMillis, long endMillis, int expectedCount, in verifyOverlap() argument
476 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
480 assertEquals(expectedCount, cursor.getCount()); in verifyOverlap()
907 private void verifyChannelCountWithCanonicalGenre(String canonicalGenre, int expectedCount) { in verifyChannelCountWithCanonicalGenre() argument
913 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, c.getCount()); in verifyChannelCountWithCanonicalGenre()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPaintTest.java148 int start, int end, boolean measureForwards, float maxWidth, int expectedCount, in assertBreakText() argument
166 assertEquals(expectedCount, p.breakText(textSlice, measureForwards, maxWidth, measured[0])); in assertBreakText()
167 assertEquals(expectedCount, p.breakText(textChars, start, count, maxWidth, measured[1])); in assertBreakText()
168 assertEquals(expectedCount, p.breakText(textSpan, start, end, measureForwards, maxWidth, in assertBreakText()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java1296 private void waitForCallCount(AtomicInteger counter, int expectedCount) { in waitForCallCount() argument
1299 while (counter.get() < expectedCount) { in waitForCallCount()