Lines Matching refs:velocity
494 boolean setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) {
530 scrollToItem(item, smoothScroll, velocity, dispatchSelected);
536 private void scrollToItem(int position, boolean smoothScroll, int velocity,
541 smoothScrollTo(destX, 0, velocity);
763 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise)
765 void smoothScrollTo(int x, int y, int velocity) {
792 velocity = Math.abs(velocity);
793 if (velocity > 0) {
794 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
2219 * @param velocity the velocity of the touch event stream
2223 private int determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) {
2225 if (Math.abs(deltaX) > mFlingDistance && Math.abs(velocity) > mMinimumVelocity) {
2226 targetPage = currentPage - (velocity < 0 ? mLeftIncr : 0);