Home
last modified time | relevance | path

Searched refs:itemCount (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/widget/src/android/widget/cts/
DAbsListView_ScrollTest.java208 final int itemCount = COUNTRY_LIST.length; in testSmoothScrollToPositionDownUpDown() local
211 verifyScrollToPosition(itemCount - 10); in testSmoothScrollToPositionDownUpDown()
215 verifyScrollToPosition(itemCount - 1); in testSmoothScrollToPositionDownUpDown()
217 verifyScrollToPosition(itemCount / 2); in testSmoothScrollToPositionDownUpDown()
222 final int itemCount = COUNTRY_LIST.length; in testSmoothScrollToPositionEveryRow() local
224 for (int i = 0; i < itemCount; i++) { in testSmoothScrollToPositionEveryRow()
229 for (int i = itemCount - 1; i >= 0; i--) { in testSmoothScrollToPositionEveryRow()
366 final int itemCount = COUNTRY_LIST.length; in testSmoothScrollToPositionFromTop() local
367 verifyScrollToPositionFromTop(itemCount - 1, 0, -1); in testSmoothScrollToPositionFromTop()
368 verifyScrollToPositionFromTop(itemCount - 1, mListView.getHeight(), -1); in testSmoothScrollToPositionFromTop()
[all …]
DGridViewTest.java619 final int itemCount = 300; in testSmoothScrollByOffset() local
621 mGridView.setAdapter(new MockGridViewAdapter(itemCount)); in testSmoothScrollByOffset()
634 final int positionToScrollTo = itemCount - 10; in testSmoothScrollByOffset()
DListViewTest.java1169 final int itemCount = mLongCountryList.length; in testSmoothScrollByOffset() local
1179 final int positionToScrollTo = itemCount - 10; in testSmoothScrollByOffset()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtilsMatchers.java40 int itemCount = item.size(); in inAscendingOrder() local
42 if (itemCount >= 2) { in inAscendingOrder()
43 for (int i = 0; i < itemCount - 1; i++) { in inAscendingOrder()