Searched refs:mLastPos (Results 1 – 3 of 3) sorted by relevance
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | AssistantTouchConsumer.java | 73 private final PointF mLastPos = new PointF(); field in AssistantTouchConsumer 129 mLastPos.set(mDownPos); in onMotionEvent() 145 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 146 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 147 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 164 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 168 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent() 172 mStartDragPos.set(mLastPos.x, mLastPos.y); in onMotionEvent() 176 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) { in onMotionEvent() 184 mDistance = (float) Math.hypot(mLastPos.x - mStartDragPos.x, in onMotionEvent() [all …]
|
D | OtherActivityInputConsumer.java | 99 private final PointF mLastPos = new PointF(); field in OtherActivityInputConsumer 201 mLastPos.set(mDownPos); in onMotionEvent() 228 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 229 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 230 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 240 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 242 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent() 260 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 48 private final PointF mLastPos = new PointF(); field in BaseSwipeDetector 134 mLastPos.set(mDownPos); in onTouchEvent() 149 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent() 150 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 151 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent() 173 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
|