Home
last modified time | relevance | path

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

/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java374 private MotionEvent mDownEvent; field in MediaPickerPanel.TouchHandler
467 if (mDownEvent == null || elapsedMs == 0 || elapsedMs > TOUCH_RECAPTURE_WINDOW_MS) { in shouldAllowRecaptureTouch()
472 final float dx = ev.getRawX() - mDownEvent.getRawX(); in shouldAllowRecaptureTouch()
473 final float dy = ev.getRawY() - mDownEvent.getRawY(); in shouldAllowRecaptureTouch()
484 if (!mMoved || mDownEvent == null) { in onTouch()
487 final float dx = motionEvent.getRawX() - mDownEvent.getRawX(); in onTouch()
488 final float dy = motionEvent.getRawY() - mDownEvent.getRawY(); in onTouch()
491 (motionEvent.getEventTime() - mDownEvent.getEventTime()) / 1000.0f; in onTouch()
522 mDownEvent = MotionEvent.obtain(motionEvent); in onTouch()
531 if (mDownEvent == null) { in onTouch()
[all …]