Lines Matching defs:velocity
520 boolean setCurrentItemInternal(int item, boolean smoothScroll, boolean always, int velocity) {
556 scrollToItem(item, smoothScroll, velocity, dispatchSelected);
562 private void scrollToItem(int position, boolean smoothScroll, int velocity,
567 smoothScrollTo(destX, 0, velocity);
789 * @param velocity the velocity associated with a fling, if applicable. (0 otherwise)
791 void smoothScrollTo(int x, int y, int velocity) {
818 velocity = Math.abs(velocity);
819 if (velocity > 0) {
820 duration = 4 * Math.round(1000 * Math.abs(distance / velocity));
2244 * @param velocity the velocity of the touch event stream
2248 private int determineTargetPage(int currentPage, float pageOffset, int velocity, int deltaX) {
2250 if (Math.abs(deltaX) > mFlingDistance && Math.abs(velocity) > mMinimumVelocity) {
2251 targetPage = currentPage - (velocity < 0 ? mLeftIncr : 0);