/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/ |
D | OneHandedModeInputConsumer.java | 59 private final PointF mDownPos = new PointF(); field in OneHandedModeInputConsumer 87 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 88 mLastPos.set(mDownPos); 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() 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()
|
D | OverscrollInputConsumer.java | 58 private final PointF mDownPos = new PointF(); field in OverscrollInputConsumer 126 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 127 mLastPos.set(mDownPos); in onMotionEvent() 150 mDownPos.set( in onMotionEvent() 151 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 152 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 175 float squaredDist = squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y); in onMotionEvent() 241 float deltaY = abs(mLastPos.y - mDownPos.y); in isOverscrolled() 242 float deltaX = mLastPos.x - mDownPos.x; in isOverscrolled() 270 return (int) (mLastPos.x - mDownPos.x); in getHorizontalDistancePx() [all …]
|
D | OtherActivityInputConsumer.java | 113 private final PointF mDownPos = new PointF(); field in OtherActivityInputConsumer 246 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 247 mLastPos.set(mDownPos); in onMotionEvent() 273 mDownPos.set( in onMotionEvent() 274 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 275 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); 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() 361 float displacementY = mLastPos.y - mDownPos.y; in onMotionEvent() [all …]
|
D | AssistantInputConsumer.java | 70 private final PointF mDownPos = new PointF(); field in AssistantInputConsumer 129 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 130 mLastPos.set(mDownPos); in onMotionEvent() 145 mDownPos.set( in onMotionEvent() 146 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onMotionEvent() 147 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onMotionEvent() 169 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onMotionEvent() 177 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y)) { in onMotionEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | BaseSwipeDetector.java | 51 private final PointF mDownPos = new PointF(); field in BaseSwipeDetector 93 return (int) mDownPos.x; in getDownX() 97 return (int) mDownPos.y; in getDownY() 139 mDownPos.set(ev.getX(), ev.getY()); in onTouchEvent() 140 mLastPos.set(mDownPos); in onTouchEvent() 154 mDownPos.set( in onTouchEvent() 155 ev.getX(newPointerIdx) - (mLastPos.x - mDownPos.x), in onTouchEvent() 156 ev.getY(newPointerIdx) - (mLastPos.y - mDownPos.y)); in onTouchEvent() 166 mDisplacement.set(ev.getX(pointerIndex) - mDownPos.x, in onTouchEvent() 167 ev.getY(pointerIndex) - mDownPos.y); in onTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | TriggerSwipeUpTouchTracker.java | 39 private final PointF mDownPos = new PointF(); field in TriggerSwipeUpTouchTracker 90 mDownPos.set(ev.getX(), ev.getY()); in onMotionEvent() 95 float displacementX = ev.getX() - mDownPos.x; in onMotionEvent() 96 float displacementY = ev.getY() - mDownPos.y; in onMotionEvent() 149 float displacementX = mDisableHorizontalSwipe ? 0 : (ev.getX() - mDownPos.x); in onGestureEnd() 150 float displacementY = ev.getY() - mDownPos.y; in onGestureEnd()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | NavBarGestureHandler.java | 77 private final PointF mDownPos = new PointF(); field in NavBarGestureHandler 170 mDownPos.set(event.getX(), event.getY()); in onTouch() 171 mLastPos.set(mDownPos); in onTouch() 177 && mDownPos.y >= mDisplaySize.y - mBottomGestureHeight; in onTouch() 194 if (squaredHypot(mLastPos.x - mDownPos.x, mLastPos.y - mDownPos.y) in onTouch() 202 mDownPos.x - mLastPos.x, mDownPos.y - mLastPos.y); in onTouch() 244 mGestureCallback.setNavBarGestureProgress(event.getY() - mDownPos.y); in onTouch()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | AbsSwipeUpHandler.java | 244 private PointF mDownPos; field in AbsSwipeUpHandler 845 mDownPos = downPos; 1084 if (dp == null || mDownPos == null) {
|