Home
last modified time | relevance | path

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

/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DParametersTest.java85 private void verifyChannelCountWithPreview(int expectedCount, boolean preview) { in verifyChannelCountWithPreview() argument
88 verifyChannelCount(channelUri, expectedCount); in verifyChannelCountWithPreview()
91 private void verifyChannelCount(Uri channelUri, int expectedCount) { in verifyChannelCount() argument
95 assertEquals("Query:{Uri=" + channelUri + "}", expectedCount, cursor.getCount()); in verifyChannelCount()
105 private void verifyChannelQuery(Uri channelsUri, int expectedCount, boolean expectedException) { in verifyChannelQuery() argument
107 verifyChannelCount(channelsUri, expectedCount); in verifyChannelQuery()
119 int expectedCount, boolean expectedException) { in verifyChannelUpdate() argument
125 assertEquals(expectedCount, count); in verifyChannelUpdate()
133 private void verifyChannelDelete(Uri channelsUri, int expectedCount, in verifyChannelDelete() argument
140 assertEquals(expectedCount, count); in verifyChannelDelete()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DFileManagementUiTest.java176 final int expectedCount = Shared.MAX_DOCS_IN_INTENT + 1; in testCopyLargeAmountOfFiles()
178 if (children.size() == expectedCount) { in testCopyLargeAmountOfFiles()
187 if (newChildren.size() == expectedCount) { in testCopyLargeAmountOfFiles()
191 if (newChildren.size() > expectedCount) { in testCopyLargeAmountOfFiles()
194 + newChildren.size() + " exceeds expected number " + expectedCount); in testCopyLargeAmountOfFiles()
199 + " files, expected to copy " + expectedCount + " files."); in testCopyLargeAmountOfFiles()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBarrierConsumer.java43 public BarrierConsumer(int expectedCount) { in BarrierConsumer() argument
44 mExpectedCount = expectedCount; in BarrierConsumer()
45 mValues = new ArrayList<A>(expectedCount); in BarrierConsumer()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java198 protected void assertRestrictBackgroundChangedReceived(int expectedCount) throws Exception { in assertRestrictBackgroundChangedReceived() argument
199 assertRestrictBackgroundChangedReceived(DYNAMIC_RECEIVER, expectedCount); in assertRestrictBackgroundChangedReceived()
203 protected void assertRestrictBackgroundChangedReceived(String receiverName, int expectedCount) in assertRestrictBackgroundChangedReceived() argument
211 assertFalse("Expected count " + expectedCount + " but actual is " + count, in assertRestrictBackgroundChangedReceived()
212 count > expectedCount); in assertRestrictBackgroundChangedReceived()
213 if (count == expectedCount) { in assertRestrictBackgroundChangedReceived()
216 Log.d(TAG, "Expecting count " + expectedCount + " but actual is " + count + " after " in assertRestrictBackgroundChangedReceived()
222 + maxAttempts * SLEEP_TIME_SEC + " seconds", expectedCount, count); in assertRestrictBackgroundChangedReceived()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DLatchedConsumer.java18 public LatchedConsumer(int expectedCount) { in LatchedConsumer() argument
19 latch = new CountDownLatch(expectedCount); in LatchedConsumer()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DPaletteListPreferenceTest.java60 final int expectedCount = in initPaletteView_success() local
62 assertEquals(expectedCount, viewGroup.getChildCount()); in initPaletteView_success()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLogEventChecker.java66 final int expectedCount = mExpectedEvents.entrySet() in finishSync() local
68 if (rawEvents.size() >= expectedCount in finishSync()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DIntHistogramTest.java58 private void incrementValueAndVerify(int value, int expectedBucketIndex, int expectedCount) { in incrementValueAndVerify() argument
61 mHistogram.getBucketByIndex(expectedBucketIndex).count, equalTo(expectedCount)); in incrementValueAndVerify()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSpannableStringUtilsTests.java76 private static void assertSpanCount(final int expectedCount, final CharSequence cs) { in assertSpanCount() argument
84 assertEquals(expectedCount, actualCount); in assertSpanCount()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DLocaleSpanCompatUtilsTests.java69 private static void assertSpanCount(final int expectedCount, final Spanned spanned) { in assertSpanCount() argument
71 assertEquals(expectedCount, spans.length); in assertSpanCount()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java1352 protected void assertRowCount(int expectedCount, Uri uri, String selection, String[] args) { in assertRowCount() argument
1356 assertEquals(expectedCount, cursor.getCount()); in assertRowCount()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java3121 private void checkCalendarCount(int expectedCount) { in checkCalendarCount() argument
3127 assertEquals(expectedCount, cursor.getCount()); in checkCalendarCount()