Home
last modified time | relevance | path

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

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOverscrollInputConsumer.java59 private final PointF mLastPos = new PointF(); field in OverscrollInputConsumer
127 mLastPos.set(mDownPos); in onMotionEvent()
134 mStartDragPos.set(mLastPos.x, mLastPos.y); in onMotionEvent()
151 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()
152 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()
153 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()
173 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
175 float squaredDist = squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y); in onMotionEvent()
178 mStartDragPos.set(mLastPos.x, mLastPos.y); in onMotionEvent()
241 float deltaY = abs(mLastPos.y - mDownPos.y); in isOverscrolled()
[all …]
DOneHandedModeInputConsumer.java60 private final PointF mLastPos = new PointF(); field in OneHandedModeInputConsumer
88 mLastPos.set(mDownPos); in onMotionEvent()
100 mLastPos.set(ev.getX(), ev.getY()); in onMotionEvent()
102 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent()
105 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) in onMotionEvent()
107 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y))) { in onMotionEvent()
109 mPassedSlop = isInSystemGestureRegion(mLastPos); in onMotionEvent()
116 float distance = (float) Math.hypot(mLastPos.x - mDownPos.x, in onMotionEvent()
117 mLastPos.y - mDownPos.y); in onMotionEvent()
125 if (mLastPos.y >= mDownPos.y && mPassedSlop) { in onMotionEvent()
DAssistantInputConsumer.java71 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 …]
DOtherActivityInputConsumer.java114 private final PointF mLastPos = new PointF(); field in OtherActivityInputConsumer
211 mLastPos.set(ev.getX(), ev.getY()); in onMotionEvent()
247 mLastPos.set(mDownPos); in onMotionEvent()
274 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent()
275 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent()
276 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onMotionEvent()
286 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onMotionEvent()
288 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent()
289 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent()
360 float displacementX = mLastPos.x - mDownPos.x; in onMotionEvent()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DNavBarGestureHandler.java78 private final PointF mLastPos = new PointF(); field in NavBarGestureHandler
171 mLastPos.set(mDownPos); in onTouch()
187 mLastPos.set(event.getX(), event.getY()); in onTouch()
194 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onTouch()
198 mAssistantStartDragPos.set(mLastPos.x, mLastPos.y); in onTouch()
202 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y); in onTouch()
210 mAssistantDistance = (float) Math.hypot(mLastPos.x - mAssistantStartDragPos.x, in onTouch()
211 mLastPos.y - mAssistantStartDragPos.y); in onTouch()
249 mMotionPauseDetector.setDisallowPause(mLastPos.y >= mDisplaySize.y - mBottomGestureHeight); in onTouch()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBaseSwipeDetector.java52 private final PointF mLastPos = new PointF(); field in BaseSwipeDetector
140 mLastPos.set(mDownPos); in onTouchEvent()
155 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent()
156 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent()
157 mLastPos.set(ev.getX(newPointerIdx), ev.getY(newPointerIdx)); in onTouchEvent()
179 mLastPos.set(ev.getX(pointerIndex), ev.getY(pointerIndex)); in onTouchEvent()