Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DAbsListView.java7823 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); in start() local
7824 if (clampedPosition < firstPos) { in start()
7825 viewTravelCount = firstPos - clampedPosition + 1; in start()
7827 } else if (clampedPosition > lastPos) { in start()
7828 viewTravelCount = clampedPosition - lastPos + 1; in start()
7831 scrollToVisible(clampedPosition, INVALID_POSITION, SCROLL_DURATION); in start()
7840 mTargetPos = clampedPosition; in start()
7876 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); in start() local
7877 if (clampedPosition < firstPos) { in start()
7884 final int posTravel = firstPos - clampedPosition + 1; in start()
[all …]