Searched refs:mLastPos (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | AssistantTouchConsumer.java | 72 private final PointF mLastPos = new PointF(); field in AssistantTouchConsumer 126 mLastPos.set(mDownPos); in onMotionEvent() 142 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 143 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 144 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 161 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 165 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent() 169 mStartDragPos.set(mLastPos.x, mLastPos.y); in onMotionEvent() 173 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) { in onMotionEvent() 181 mDistance = (float) Math.hypot(mLastPos.x - mStartDragPos.x, in onMotionEvent() [all …]
|
D | FallbackNoButtonInputConsumer.java | 88 private final PointF mLastPos = new PointF(); field in FallbackNoButtonInputConsumer 156 mLastPos.set(mDownPos); in onMotionEvent() 175 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 176 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 177 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 187 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 191 if (mDisableHorizontalSwipe && Math.abs(mLastPos.x - mDownPos.x) in onMotionEvent() 192 > Math.abs(mLastPos.y - mDownPos.y)) { in onMotionEvent()
|
D | OtherActivityInputConsumer.java | 107 private final PointF mLastPos = new PointF(); field in OtherActivityInputConsumer 211 mLastPos.set(mDownPos); in onMotionEvent() 238 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 239 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 240 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 250 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 252 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent() 266 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | SwipeDetector.java | 218 private final PointF mLastPos = new PointF(); field in SwipeDetector 300 mLastPos.set(mDownPos); in onTouchEvent() 315 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent() 316 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 317 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent() 341 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
|