Home
last modified time | relevance | path

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

/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/
DListChangeRegistryTest.java82 final int expectedCount = 3; in testNotifyChanged() local
93 assertEquals(expectedCount, count); in testNotifyChanged()
115 mListChangeRegistry.notifyChanged(null, expectedStart, expectedCount); in testNotifyChanged()
121 final int expectedCount = 3; in testNotifyInserted() local
137 assertEquals(expectedCount, count); in testNotifyInserted()
154 mListChangeRegistry.notifyInserted(null, expectedStart, expectedCount); in testNotifyInserted()
161 final int expectedCount = 3; in testNotifyMoved() local
183 assertEquals(expectedCount, count); in testNotifyMoved()
195 mListChangeRegistry.notifyMoved(null, expectedFrom, expectedTo, expectedCount); in testNotifyMoved()
201 final int expectedCount = 3; in testNotifyRemoved() local
[all …]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DAlertDialogCursorTest.java151 final int expectedCount = expectedContent.length; in verifySimpleItemsContent() local
159 assertEquals("List has " + expectedCount + " entries", in verifySimpleItemsContent()
160 expectedCount, listAdapter.getCount()); in verifySimpleItemsContent()
164 for (int i = 0; i < expectedCount; i++) { in verifySimpleItemsContent()
174 int indexToClick = expectedCount - 2; in verifySimpleItemsContent()
211 final int expectedCount = expectedContent.length; in verifyMultiChoiceItemsState() local
217 assertEquals("List has " + expectedCount + " entries", in verifyMultiChoiceItemsState()
218 expectedCount, listAdapter.getCount()); in verifyMultiChoiceItemsState()
220 for (int i = 0; i < expectedCount; i++) { in verifyMultiChoiceItemsState()
239 final int expectedCount = expectedContent.length; in verifyMultiChoiceItemsContent() local
[all …]
DAlertDialogTest.java393 final int expectedCount = expectedContent.length; in verifySimpleItemsContent() local
401 assertEquals("List has " + expectedCount + " entries", in verifySimpleItemsContent()
402 expectedCount, listAdapter.getCount()); in verifySimpleItemsContent()
403 for (int i = 0; i < expectedCount; i++) { in verifySimpleItemsContent()
409 for (int i = 0; i < expectedCount; i++) { in verifySimpleItemsContent()
417 int indexToClick = expectedCount - 2; in verifySimpleItemsContent()
479 final int expectedCount = expectedContent.length; in verifyMultiChoiceItemsState() local
485 assertEquals("List has " + expectedCount + " entries", in verifyMultiChoiceItemsState()
486 expectedCount, listAdapter.getCount()); in verifyMultiChoiceItemsState()
487 for (int i = 0; i < expectedCount; i++) { in verifyMultiChoiceItemsState()
[all …]
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/
DPreloadAppsInstaller.java75 int expectedCount = 0; in installApps() local
82 expectedCount++; in installApps()
90 expectedCount++; in installApps()
97 counter.setExpectedAppsCount(expectedCount); in installApps()
149 private int expectedCount = -1; // -1 means expectedCount not set field in PreloadAppsInstaller.AppInstallCounter
164 synchronized void setExpectedAppsCount(int expectedCount) { in setExpectedAppsCount() argument
165 this.expectedCount = expectedCount; in setExpectedAppsCount()
170 if (expectedCount == finishedCount) { in checkIfAllFinished()
/frameworks/support/core-ui/tests/java/android/support/v4/testutils/
DTestUtilsAssertions.java35 public static ViewAssertion hasDisplayedChildren(final int expectedCount) { in hasDisplayedChildren() argument
56 if (childrenDisplayedCount != expectedCount) { in hasDisplayedChildren()
57 throw new AssertionFailedError("Expected " + expectedCount + in hasDisplayedChildren()
DTestUtilsMatchers.java249 int expectedCount = expectedValues.length;
251 if (actualCount != expectedCount) {
252 mFailedDescription = "Expected " + expectedCount + " values, but got " +
257 for (int i = 0; i < expectedCount; i++) {
/frameworks/native/libs/ui/tests/
DRegion_test.cpp48 void checkTJunctionFreeFromRegion(const Region& original, int expectedCount = -1) { in checkTJunctionFreeFromRegion() argument
51 if (expectedCount != -1) { in checkTJunctionFreeFromRegion()
52 EXPECT_EQ(modified.end() - modified.begin(), expectedCount); in checkTJunctionFreeFromRegion()
/frameworks/base/libs/hwui/tests/unit/
DBakedOpDispatcherTests.cpp269 int expectedCount = 2; in RENDERTHREAD_TEST() local
270 if (debugLayersUpdates || debugOverdraw) expectedCount++; in RENDERTHREAD_TEST()
271 if (debugOverdraw) expectedCount += 4; in RENDERTHREAD_TEST()
272 EXPECT_EQ(expectedCount, glopCount); in RENDERTHREAD_TEST()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
DRadialPickerLayout.java353 int expectedCount = 8; in preparePrefer30sMap() local
360 if (count == expectedCount) { in preparePrefer30sMap()
363 expectedCount = 7; in preparePrefer30sMap()
365 expectedCount = 14; in preparePrefer30sMap()
367 expectedCount = 4; in preparePrefer30sMap()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DAsyncListUtilTest.java160 final int expectedCount, in assertLoadedItemsOnUiThread() argument
166 assertEquals(message, expectedCount, getLoadedItemCount(position, count)); in assertLoadedItemsOnUiThread()
/frameworks/base/location/tests/locationtests/src/android/location/
DGpsStatusTest.java172 private static void verifySatelliteCount(GpsStatus status, int expectedCount) { in verifySatelliteCount() argument
177 assertEquals("GpsStatus::SatelliteCount", expectedCount, satellites); in verifySatelliteCount()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCallbackRegistryTest.java215 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i); in testVeryDeepRemoveWhileNotifying() local
216 assertEquals(expectedCount, deepNotifyCount[i]); in testVeryDeepRemoveWhileNotifying()
/frameworks/data-binding/compiler/src/test/java/android/databinding/
DCallbackRegistryTest.java219 int expectedCount = Math.min(i + 1, deepNotifyCount.length - i); in testVeryDeepRemoveWhileNotifying() local
220 assertEquals(expectedCount, deepNotifyCount[i]); in testVeryDeepRemoveWhileNotifying()
/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java246 int expectedCount = 8; in preparePrefer30sMap() local
253 if (count == expectedCount) { in preparePrefer30sMap()
256 expectedCount = 7; in preparePrefer30sMap()
258 expectedCount = 14; in preparePrefer30sMap()
260 expectedCount = 4; in preparePrefer30sMap()
/frameworks/base/core/tests/coretests/src/android/content/
DContentProviderOperationTest.java431 ContentProviderOperation.Builder builder, Integer expectedCount) in builderSetExpectedCount() argument
436 field.set(builder, expectedCount); in builderSetExpectedCount()