Lines Matching refs:velocity
440 float velocity = (float) Math.hypot(xVelocity, yVelocity);
442 velocity = -velocity;
448 if (Math.abs(velocity) < mMaximumTapVelocity) {
465 performFling(vertical ? top : left, velocity, false);
469 performFling(vertical ? top : left, velocity, false);
472 performFling(vertical ? top : left, velocity, false);
492 private void performFling(int position, float velocity, boolean always) {
494 mAnimatedVelocity = velocity;
497 if (always || (velocity > mMaximumMajorVelocity ||
499 velocity > -mMaximumMajorVelocity))) {
503 if (velocity < 0) {
509 if (velocity > 0) {
514 if (!always && (velocity > mMaximumMajorVelocity ||
516 velocity > -mMaximumMajorVelocity))) {
519 if (velocity < 0) {
526 if (velocity > 0) {