Searched refs:mLastDownTime (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/policy/ |
D | SingleKeyGestureDetector.java | 56 private long mLastDownTime = 0; field in SingleKeyGestureDetector 270 mLastDownTime = 0; in interceptKeyDown() 276 final long keyDownInterval = event.getDownTime() - mLastDownTime; in interceptKeyDown() 277 mLastDownTime = event.getDownTime(); in interceptKeyDown() 329 if (eventTime < mLastDownTime + mActiveRule.getLongPressTimeoutMs()) { in interceptKeyUp() 335 if (eventTime < mLastDownTime + mActiveRule.getVeryLongPressTimeoutMs()) { in interceptKeyUp() 455 rule.onKeyUp(mLastDownTime, pressCount, displayId); in handleMessage() 461 rule.onLongPress(mLastDownTime); in handleMessage() 468 rule.onVeryLongPress(mLastDownTime); in handleMessage() 476 rule.onPress(mLastDownTime, displayId); in handleMessage() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 108 private long mLastDownTime = Integer.MIN_VALUE; field in TouchExplorerTest 603 mLastDownTime = SystemClock.uptimeMillis(); in cancelEvent() 605 MotionEvent.obtain(mLastDownTime, mLastDownTime, ACTION_CANCEL, in cancelEvent() 610 mLastDownTime = SystemClock.uptimeMillis(); in downEvent() 612 MotionEvent.obtain(mLastDownTime, mLastDownTime, ACTION_DOWN, x, y, 0)); in downEvent() 616 mLastDownTime = SystemClock.uptimeMillis(); in downEvent() 619 mLastDownTime, mLastDownTime, ACTION_DOWN, DEFAULT_X, DEFAULT_Y, 0)); in downEvent() 674 return manyPointerEvent(action, x, y, mLastDownTime); in manyPointerEvent()
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
D | DemoModeController.java | 47 private long mLastDownTime; field in DemoModeController 98 if (now - mLastDownTime < 200) { in onTouch() 101 mLastDownTime = now; in onTouch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityInputFilterTest.java | 104 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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationGestureHandlerTest.java | 210 private long mLastDownTime = Integer.MIN_VALUE; field in FullScreenMagnificationGestureHandlerTest 1751 MotionEvent.obtain(mLastDownTime, mClock.now(), ACTION_MOVE, x, y, 0)); in moveEvent() 1759 mLastDownTime = mClock.now(); in downEvent() 1760 return fromTouchscreen(MotionEvent.obtain(mLastDownTime, mLastDownTime, in downEvent() 1765 return upEvent(DEFAULT_X, DEFAULT_Y, mLastDownTime); in upEvent() 1769 return upEvent(x, y, mLastDownTime); in upEvent()
|