Searched refs:clampedPosition (Results 1 – 1 of 1) sorted by relevance
7439 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); in start() local7440 if (clampedPosition < firstPos) { in start()7441 viewTravelCount = firstPos - clampedPosition + 1; in start()7443 } else if (clampedPosition > lastPos) { in start()7444 viewTravelCount = clampedPosition - lastPos + 1; in start()7447 scrollToVisible(clampedPosition, INVALID_POSITION, SCROLL_DURATION); in start()7456 mTargetPos = clampedPosition; in start()7492 int clampedPosition = Math.max(0, Math.min(getCount() - 1, position)); in start() local7493 if (clampedPosition < firstPos) { in start()7500 final int posTravel = firstPos - clampedPosition + 1; in start()[all …]