Home
last modified time | relevance | path

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

/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java15 public static boolean isMultiTap(MotionEvent firstUp, MotionEvent secondUp, in isMultiTap() argument
17 if (firstUp == null || secondUp == null) return false; in isMultiTap()
18 return eventsWithinTimeAndDistanceSlop(firstUp, secondUp, multiTapTimeSlop, in isMultiTap()
38 public static boolean isTimedOut(MotionEvent firstUp, MotionEvent secondUp, int timeout) { in isTimedOut() argument
39 final long deltaTime = secondUp.getEventTime() - firstUp.getEventTime(); in isTimedOut()
/frameworks/support/compat/src/main/java/androidx/core/view/
DGestureDetectorCompat.java442 private boolean isConsideredDoubleTap(MotionEvent firstDown, MotionEvent firstUp, in isConsideredDoubleTap() argument
448 if (secondDown.getEventTime() - firstUp.getEventTime() > DOUBLE_TAP_TIMEOUT) { in isConsideredDoubleTap()
/frameworks/base/core/java/android/view/
DGestureDetector.java756 private boolean isConsideredDoubleTap(MotionEvent firstDown, MotionEvent firstUp, in isConsideredDoubleTap() argument
762 final long deltaTime = secondDown.getEventTime() - firstUp.getEventTime(); in isConsideredDoubleTap()