Home
last modified time | relevance | path

Searched refs:mPrevSpan (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/core/java/android/view/
DScaleGestureDetector.java136 private float mPrevSpan; field in ScaleGestureDetector
351 mInitialSpan = mPrevSpan = mCurrSpan = span; in onTouchEvent()
359 mPrevSpan = mCurrSpan = span; in onTouchEvent()
379 mPrevSpan = mCurrSpan; in onTouchEvent()
514 return mPrevSpan; in getPreviousSpan()
550 (mEventBeforeOrAboveStartingGestureEvent && (mCurrSpan < mPrevSpan)) || in getScaleFactor()
551 (!mEventBeforeOrAboveStartingGestureEvent && (mCurrSpan > mPrevSpan)); in getScaleFactor()
552 final float spanDiff = (Math.abs(1 - (mCurrSpan / mPrevSpan)) * SCALE_FACTOR); in getScaleFactor()
553 return mPrevSpan <= 0 ? 1 : scaleUp ? (1 + spanDiff) : (1 - spanDiff); in getScaleFactor()
555 return mPrevSpan > 0 ? mCurrSpan / mPrevSpan : 1; in getScaleFactor()