Home
last modified time | relevance | path

Searched refs:firstVisiblePosition (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListManagedCursorTest.java62 int firstVisiblePosition = arrowScroll(inst); in testKeyScrolling() local
69 firstVisiblePosition == mListView.getFirstVisiblePosition()); in testKeyScrolling()
79 int firstVisiblePosition = touchScroll(inst); in testTouchScrolling() local
86 firstVisiblePosition == mListView.getFirstVisiblePosition()); in testTouchScrolling()
97 int firstVisiblePosition = arrowScroll(inst); in testKeyScrollingToTouchMode() local
105 firstVisiblePosition == mListView.getFirstVisiblePosition()); in testKeyScrollingToTouchMode()
118 int firstVisiblePosition = touchScroll(inst); in testTouchScrollingToTrackballMode() local
127 assertTrue("List did not preserve scroll position", firstVisiblePosition == mListView in testTouchScrollingToTrackballMode()
139 int firstVisiblePosition = mListView.getFirstVisiblePosition(); in arrowScroll() local
140 assertTrue("Arrow scroll did not happen", firstVisiblePosition > 0); in arrowScroll()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfThinItemsTest.java97 final int firstVisiblePosition = firstChild.getId(); in testScrollToTop() local
100 int topThreshold = (firstVisiblePosition > 0) ? in testScrollToTop()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDayPickerView.java474 int firstVisiblePosition = getFirstVisiblePosition(); in performAccessibilityAction() local
475 int month = firstVisiblePosition % 12; in performAccessibilityAction()
476 int year = firstVisiblePosition / 12 + mController.getMinYear(); in performAccessibilityAction()
/frameworks/base/core/java/android/widget/
DDayPickerView.java498 final int firstVisiblePosition = getFirstVisiblePosition(); in performAccessibilityAction() local
499 final int month = firstVisiblePosition % 12; in performAccessibilityAction()
500 final int year = firstVisiblePosition / 12 + mMinDate.get(Calendar.YEAR); in performAccessibilityAction()
DAbsListView.java1475 final int firstVisiblePosition = getFirstVisiblePosition(); in sendAccessibilityEvent() local
1477 if (mLastAccessibilityScrollEventFromIndex == firstVisiblePosition in sendAccessibilityEvent()
1481 mLastAccessibilityScrollEventFromIndex = firstVisiblePosition; in sendAccessibilityEvent()
6821 final int firstVisiblePosition = getFirstVisiblePosition(); in getHeightForPosition() local
6823 final int index = position - firstVisiblePosition; in getHeightForPosition()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java482 + boundsLog, visibleChildren.firstVisiblePosition, in getFirstLastChildrenTest()
860 int firstVisiblePosition = RecyclerView.NO_POSITION; field in LinearLayoutManagerTest.VisibleChildren
871 "firstVisiblePosition=" + firstVisiblePosition + in toString()
1021 if (position < visibleChildren.firstVisiblePosition || in traverseAndFindVisibleChildren()
1022 visibleChildren.firstVisiblePosition == RecyclerView.NO_POSITION) { in traverseAndFindVisibleChildren()
1023 visibleChildren.firstVisiblePosition = position; in traverseAndFindVisibleChildren()