Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java34 private int mFirstVisibleItem = -1; field in GridScrollListenerTest
56 assertEquals(0, mFirstVisibleItem); in testPreconditions()
63 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
69 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
71 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
75 assertTrue("Page scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
77 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
86 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
88 mFirstVisibleItem + mVisibleItemCount); in testKeyScrolling()
95 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java33 private int mFirstVisibleItem = -1; field in ListScrollListenerTest
55 assertEquals(0, mFirstVisibleItem); in testPreconditions()
62 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
67 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
69 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
72 assertTrue("Page scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
74 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
83 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
85 mFirstVisibleItem + mVisibleItemCount); in testKeyScrolling()
90 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DAsyncListUtilTest.java223 int mFirstVisibleItem; field in AsyncListUtilTest.TestViewCallback
233 outRange[0] = mFirstVisibleItem; in getItemRangeInto()
281 mLastVisibleItem += position - mFirstVisibleItem; in scrollTo()
282 mFirstVisibleItem = position; in scrollTo()
293 mFirstVisibleItem = Math.max(0, mLastVisibleItem - VIEWPORT_SIZE + 1); in updateViewport()
/frameworks/base/core/java/android/widget/
DFastScroller.java160 private int mFirstVisibleItem; field in FastScroller
942 if (mFirstVisibleItem != firstVisibleItem) { in onScroll()
943 mFirstVisibleItem = firstVisibleItem; in onScroll()