Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/policy/
H A DSingleKeyGestureDetector.java54 private long mLastDownTime = 0; field in SingleKeyGestureDetector
252 mLastDownTime = 0; in interceptKeyDown()
258 final long keyDownInterval = event.getDownTime() - mLastDownTime; in interceptKeyDown()
259 mLastDownTime = event.getDownTime(); in interceptKeyDown()
308 if (eventTime < mLastDownTime + mActiveRule.getLongPressTimeoutMs()) { in interceptKeyUp()
314 if (eventTime < mLastDownTime + mActiveRule.getVeryLongPressTimeoutMs()) { in interceptKeyUp()
418 rule.onLongPress(mLastDownTime); in handleMessage()
425 rule.onVeryLongPress(mLastDownTime); in handleMessage()
433 rule.onPress(mLastDownTime); in handleMessage()
435 rule.onMultiPress(mLastDownTime, pressCount); in handleMessage()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
H A DTouchExplorerTest.java108 private long mLastDownTime = Integer.MIN_VALUE; field in TouchExplorerTest
602 mLastDownTime = SystemClock.uptimeMillis(); in cancelEvent()
604 MotionEvent.obtain(mLastDownTime, mLastDownTime, ACTION_CANCEL, in cancelEvent()
609 mLastDownTime = SystemClock.uptimeMillis(); in downEvent()
611 MotionEvent.obtain(mLastDownTime, mLastDownTime, ACTION_DOWN, x, y, 0)); in downEvent()
615 mLastDownTime = SystemClock.uptimeMillis(); in downEvent()
618 mLastDownTime, mLastDownTime, ACTION_DOWN, DEFAULT_X, DEFAULT_Y, 0)); in downEvent()
673 return manyPointerEvent(action, x, y, mLastDownTime); in manyPointerEvent()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityInputFilterTest.java104 private long mLastDownTime = Integer.MIN_VALUE; field in AccessibilityInputFilterTest
441 mLastDownTime = SystemClock.uptimeMillis(); in downEvent()
442 final MotionEvent ev = MotionEvent.obtain(mLastDownTime, mLastDownTime, in downEvent()
/aosp14/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java47 private long mLastDownTime; field in DemoModeController
98 if (now - mLastDownTime < 200) { in onTouch()
101 mLastDownTime = now; in onTouch()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DFullScreenMagnificationGestureHandlerTest.java154 private long mLastDownTime = Integer.MIN_VALUE; field in FullScreenMagnificationGestureHandlerTest
936 MotionEvent.obtain(mLastDownTime, mClock.now(), ACTION_MOVE, x, y, 0)); in moveEvent()
944 mLastDownTime = mClock.now(); in downEvent()
945 return fromTouchscreen(MotionEvent.obtain(mLastDownTime, mLastDownTime, in downEvent()
950 return upEvent(DEFAULT_X, DEFAULT_Y, mLastDownTime); in upEvent()
954 return upEvent(x, y, mLastDownTime); in upEvent()