Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/touch/
DSwipeDetector.java231 private float mDisplacement; field in SwipeDetector
274 > Math.abs(mDisplacement)) { in shouldScrollStart()
279 if (((mScrollConditions & DIRECTION_NEGATIVE) > 0 && mDir.isNegative(mDisplacement)) || in shouldScrollStart()
280 ((mScrollConditions & DIRECTION_POSITIVE) > 0 && mDir.isPositive(mDisplacement))) { in shouldScrollStart()
302 mDisplacement = 0; in onTouchEvent()
326 mDisplacement = mDir.getDisplacement(ev, pointerIndex, mDownPos, mIsRtl); in onTouchEvent()
374 if (mDisplacement > 0) { in initializeDragging()
392 if (mDisplacement != mLastDisplacement) { in reportDragging()
394 Log.d(TAG, String.format("onDrag disp=%.1f", mDisplacement)); in reportDragging()
397 mLastDisplacement = mDisplacement; in reportDragging()
[all …]