Lines Matching refs:velocity
456 float velocity = (float) Math.hypot(xVelocity, yVelocity);
458 velocity = -velocity;
464 if (Math.abs(velocity) < mMaximumTapVelocity) {
481 performFling(vertical ? top : left, velocity, false, true);
485 performFling(vertical ? top : left, velocity, false, true);
488 performFling(vertical ? top : left, velocity, false, true);
508 private void performFling(int position, float velocity, boolean always,
511 mAnimatedVelocity = velocity;
514 if (always || (velocity > mMaximumMajorVelocity ||
516 velocity > -mMaximumMajorVelocity))) {
520 if (velocity < 0) {
526 if (velocity > 0) {
531 if (!always && (velocity > mMaximumMajorVelocity ||
533 velocity > -mMaximumMajorVelocity))) {
536 if (velocity < 0) {
543 if (velocity > 0) {