Home
last modified time | relevance | path

Searched refs:getDownTime (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DMotionEventMatcher.java47 event.getDownTime(), in MotionEventMatcher()
61 if ((event.getDownTime() == mDownTime) in matchesSafely()
69 Log.e(LOG_TAG, "event.getDownTime() = " + event.getDownTime() + ", expected " + mDownTime); in matchesSafely()
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java59 assertEquals(DOWN_TIME, keyEvent.getDownTime()); in testObtain()
86 assertEquals(DOWN_TIME, keyEvent.getDownTime()); in testObtainWithDisplayId()
173 assertEquals(key1.getDownTime(), key2.getDownTime()); in compareKeys()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DGestureRecorder.java101 mDownTime = ev.getDownTime(); in add()
103 if (mDownTime != ev.getDownTime()) { in add()
105 +ev.getDownTime()+") does not match gesture downTime ("+mDownTime+")"); in add()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp64 ASSERT_EQ(event.getDownTime(), verified.downTimeNanos); in TEST()
98 ASSERT_EQ(event.getDownTime(), verified.downTimeNanos); in TEST()
DInputPublisherAndConsumer_test.cpp122 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent()
231 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
DInputEvent_test.cpp202 ASSERT_EQ(ARBITRARY_DOWN_TIME, event.getDownTime()); in TEST_F()
335 ASSERT_EQ(ARBITRARY_DOWN_TIME, event->getDownTime()); in assertEqualsEventWithHistory()
/frameworks/base/core/java/android/view/
DGestureDetector.java653 mCurrentDownEvent.getDownTime() in onTouchEvent()
657 mCurrentDownEvent.getDownTime() + TAP_TIMEOUT); in onTouchEvent()
701 ev.getDownTime() in onTouchEvent()
915 (int) (SystemClock.uptimeMillis() - mCurrentMotionEvent.getDownTime()), in recordGestureClassification()
DMotionEvent.java2189 public final long getDownTime() { in getDownTime() method in MotionEvent
3578 msg.append(", downTime=").append(getDownTime()); in toString()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java195 Matcher<MotionEvent> hasRightDownTime = hasDownTime(mCaptor1.getValue().getDownTime()); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
415 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
455 long downTime = events.get(0).getDownTime(); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
488 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesWhileDispatching_gestureCompletes()
528 long downTime = events.get(0).getDownTime(); in testContinuedGesture_twoContinuationsArriveWhileDispatching_gestureCompletes()
830 return event.getDownTime() == downTime;
858 return (event.getEventTime() - event.getDownTime()) == timeFromDown;
/frameworks/base/core/jni/
Dandroid_view_InputEventSender.cpp122 event->getDownTime(), event->getEventTime()); in sendKeyEvent()
153 event->getDownTime(), in sendMotionEvent()
Dandroid_view_KeyEvent.cpp101 nanoseconds_to_milliseconds(event->getDownTime()), in android_view_KeyEvent_fromNative()
/frameworks/base/native/android/
Dinput.cpp77 return static_cast<const KeyEvent*>(key_event)->getDownTime(); in AKeyEvent_getDownTime()
106 return static_cast<const MotionEvent*>(motion_event)->getDownTime(); in AMotionEvent_getDownTime()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DEventDispatcher.java212 event.getDownTime(), in offsetEvent()
352 event.getDownTime(), in clickWithTouchEvents()
DTouchState.java135 mLastInjectedDownEventTime = event.getDownTime(); in onInjectedMotionEvent()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
DSwarm.java220 if (e.getEventTime() - e.getDownTime() > 100) { in onTouchEvent()
233 if (e.getEventTime() - e.getDownTime() < 200) { in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DFalsingDataProvider.java237 motionEvent.getDownTime(), in unpackMotionEvent()
DBrightLineFalsingManager.java224 (int) (motionEvent.getEventTime() - motionEvent.getDownTime()))) in isFalseTouch()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DFullScreenMagnificationGestureHandler.java595 mLastDelegatedDownEventTime = event.getDownTime(); in onMotionEvent()
680 mLastDetectingDownEventTime = event.getDownTime(); in onMotionEvent()
909 info.event.setDownTime(info.event.getDownTime() + offset); in sendDelayedMotionEvents()
/frameworks/native/include/input/
DInput.h452 inline nsecs_t getDownTime() const { return mDownTime; } in getDownTime() function
544 inline nsecs_t getDownTime() const { return mDownTime; } in getDownTime() function
/frameworks/native/libs/input/
DInput.cpp93 event.getDownTime(), in verifiedKeyEventFromKeyEvent()
107 event.getDownTime(), in verifiedMotionEventFromMotionEvent()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DDragAction.java329 long desiredTime = downEvent.getDownTime() + delayBetweenMovements * i; in sendLinearDrag()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationSwipeHelper.java197 final double timeForGesture = ev.getEventTime() - ev.getDownTime(); in handleSwipeFromClosedState()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java2501 && mTrackingFirstDownKeyEvent.getDownTime() == keyEvent.getDownTime() in cancelTrackingIfNeeded()
2531 } else if (mTrackingFirstDownKeyEvent.getDownTime() != keyEvent.getDownTime() in needTracking()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DEdgeBackGestureHandler.java539 if ((ev.getEventTime() - ev.getDownTime()) > mLongPressTimeout) { in onMotionEvent()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java915 mScreenshotChordPowerKeyTime = event.getDownTime(); in interceptPowerKeyDown()
978 wakeUpFromPowerKey(event.getDownTime()); in interceptPowerKeyDown()
1026 final long eventTime = event.getDownTime(); in interceptPowerKeyUp()
3098 event.getDownTime(), event.getEventTime(), in dispatchUnhandledKey()
3695 mScreenshotChordVolumeDownKeyTime = event.getDownTime(); in interceptKeyBeforeQueueing()
3711 mA11yShortcutChordVolumeUpKeyTime = event.getDownTime(); in interceptKeyBeforeQueueing()

12