Searched refs:xVelocity (Results 1 – 4 of 4) sorted by relevance
441 float xVelocity = velocityTracker.getXVelocity(); in onTouchEvent() local447 if (xVelocity < 0) { in onTouchEvent()448 xVelocity = -xVelocity; in onTouchEvent()450 if (xVelocity > mMaximumMinorVelocity) { in onTouchEvent()451 xVelocity = mMaximumMinorVelocity; in onTouchEvent()454 negative = xVelocity < 0; in onTouchEvent()463 float velocity = (float) Math.hypot(xVelocity, yVelocity); in onTouchEvent()
350 float xVelocity = mVelocityTracker.getXVelocity();354 xVelocity = deltaX / ((ev.getEventTime() - ev.getDownTime()) / 1000);361 * xVelocity / mMinFlingVelocity // scale x-velocity with fling velocity366 || xVelocity >= mMinFlingVelocity) {373 if (xVelocity < -mMinFlingVelocity) {
650 float xVelocity = mVelocityTracker.getXVelocity(); in handleMoveEvent() local652 float velocity = MathUtils.mag(xVelocity, yVelocity); in handleMoveEvent()654 ARROW_MAX_ANGLE_SPEED_OFFSET_DEGREES) * Math.signum(xVelocity); in handleMoveEvent()
1203 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkHorizontalSwipe() local1205 final int velDirFlag = xVelocity > 0f ? RIGHT : LEFT; in checkHorizontalSwipe()1206 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()1230 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkVerticalSwipe() local1236 && absYVelocity > Math.abs(xVelocity)) { in checkVerticalSwipe()