Searched refs:mLastPos (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OneHandedModeInputConsumer.java | 59 private final PointF mLastPos = new PointF(); field in OneHandedModeInputConsumer 87 mLastPos.set(mDownPos); in onMotionEvent() 99 mLastPos.set(ev.getX(), ev.getY()); in onMotionEvent() 101 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent() 104 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) in onMotionEvent() 106 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y))) { in onMotionEvent() 108 mPassedSlop = isInSystemGestureRegion(mLastPos); in onMotionEvent() 115 float distance = (float) Math.hypot(mLastPos.x - mDownPos.x, in onMotionEvent() 116 mLastPos.y - mDownPos.y); in onMotionEvent() 124 if (mLastPos.y >= mDownPos.y && mPassedSlop) { in onMotionEvent()
|
D | AssistantInputConsumer.java | 71 private final PointF mLastPos = new PointF(); field in AssistantInputConsumer 130 mLastPos.set(mDownPos); in onMotionEvent() 146 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 147 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 148 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 165 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 169 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent() 173 mStartDragPos.set(mLastPos.x, mLastPos.y); in onMotionEvent() 177 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) { in onMotionEvent() 185 mDistance = (float) Math.hypot(mLastPos.x - mStartDragPos.x, in onMotionEvent() [all …]
|
D | TaskbarUnstashInputConsumer.java | 78 private final PointF mLastPos = new PointF(); field in TaskbarUnstashInputConsumer 154 mLastPos.set(mDownPos); in onMotionEvent() 172 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 173 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 174 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 183 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 185 float dX = mLastPos.x - mDownPos.x; in onMotionEvent() 186 float dY = mLastPos.y - mDownPos.y; in onMotionEvent() 251 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 253 float dY = mLastPos.y - mDownPos.y; in onMotionEvent()
|
D | OtherActivityInputConsumer.java | 101 private final PointF mLastPos = new PointF(); field in OtherActivityInputConsumer 229 mLastPos.set(mDownPos); in onMotionEvent() 256 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 257 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 258 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent() 268 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent() 270 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent() 271 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent() 365 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent() 366 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 54 private final PointF mLastPos = new PointF(); field in BaseSwipeDetector 147 mLastPos.set(mDownPos); in onTouchEvent() 162 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent() 163 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 164 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent() 186 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | NavBarGestureHandler.java | 54 private final PointF mLastPos = new PointF(); field in NavBarGestureHandler 113 mLastPos.set(mDownPos); in onTouch() 123 mLastPos.set(event.getX(), event.getY()); in onTouch() 141 mMotionPauseDetector.setDisallowPause(mLastPos.y >= mDisplaySize.y - mBottomGestureHeight); in onTouch()
|