Home
last modified time | relevance | path

Searched refs:getEventTime (Results 1 – 25 of 74) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DFalsingDataProviderTest.java70 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackMotionEvents()
71 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_trackMotionEvents()
72 assertThat(motionEventList.get(2).getEventTime(), is(3L)); in test_trackMotionEvents()
90 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackRecentMotionEvents()
91 assertThat(motionEventList.get(1).getEventTime(), is(800L)); in test_trackRecentMotionEvents()
103 assertThat(motionEventList.get(0).getEventTime(), is(800L)); in test_trackRecentMotionEvents()
104 assertThat(motionEventList.get(1).getEventTime(), is(1200L)); in test_trackRecentMotionEvents()
113 assertThat(firstRealMotionEvent.getEventTime(), is(1L)); in test_trackRecentMotionEvents()
136 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_unpackMotionEvents()
137 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_unpackMotionEvents()
[all …]
DClassifierTest.java105 mMotionEvents.size() - 1).getEventTime() + 1; in appendMotionEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DMotionEventMatcher.java48 event.getEventTime(), in MotionEventMatcher()
62 && (event.getEventTime() == mEventTime) in matchesSafely()
72 "event.getEventTime() = " + event.getEventTime() + ", expected " + mEventTime); in matchesSafely()
/frameworks/base/core/java/android/widget/
DEditorTouchState.java126 final long millisSinceLastUp = event.getEventTime() - mLastUpMillis; in update()
156 mLastDownMillis = event.getEventTime(); in update()
165 mLastUpMillis = event.getEventTime(); in update()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java105 long deltaTime = currentTapEvent.getEventTime() - previousTapEvent.getEventTime(); in isConsecutiveTap()
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java60 assertEquals(EVENT_TIME, keyEvent.getEventTime()); in testObtain()
87 assertEquals(EVENT_TIME, keyEvent.getEventTime()); in testObtainWithDisplayId()
174 assertEquals(key1.getEventTime(), key2.getEventTime()); in compareKeys()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DGestureUtils.java64 final long deltaTime = secondUp.getEventTime() - firstUp.getEventTime(); in isTimedOut()
DEventDispatcher.java110 event.setDownTime(event.getEventTime()); in sendMotionEvent()
213 event.getEventTime(), in offsetEvent()
353 event.getEventTime(), in clickWithTouchEvents()
DSwipe.java145 mBaseTime = rawEvent.getEventTime(); in onDown()
156 final long time = rawEvent.getEventTime(); in onMove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DTimeLimitedMotionEventBuffer.java50 long mostRecentMs = mMotionEvents.getLast().getEventTime(); in ejectOldEvents()
53 if (mostRecentMs - ev.getEventTime() > mMaxAgeMs) { in ejectOldEvents()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp59 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
91 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
DInputEvent_test.cpp203 ASSERT_EQ(ARBITRARY_EVENT_TIME, event.getEventTime()); in TEST_F()
348 ASSERT_EQ(ARBITRARY_EVENT_TIME + 2, event->getEventTime()); in assertEqualsEventWithHistory()
496 ASSERT_EQ(event.getEventTime(), copy.getEventTime()); in TEST_F()
DInputPublisherAndConsumer_test.cpp123 EXPECT_EQ(eventTime, keyEvent->getEventTime()); in PublishAndConsumeKeyEvent()
232 EXPECT_EQ(eventTime, motionEvent->getEventTime()); in PublishAndConsumeMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java138 int size = (int) getSize(event.getEventTime()); in onTouchEvent()
166 mLastPokeTime = event.getEventTime();
/frameworks/base/core/java/android/view/textclassifier/
DTextClassificationSession.java212 .setDurationSinceSessionStart(now - mStartEvent.getEventTime()) in sanitizeEvent()
223 event.setDurationSincePreviousEvent(now - mPrevEvent.getEventTime()) in sanitizeEvent()
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureEventTest.java177 assertThat(event.getEventTime()).isAtLeast(MY_EPOCH); in assertSessionStartedEvent()
209 assertThat(event.getEventTime()).isAtLeast(MY_EPOCH); in assertSessionFinishedEvent()
300 assertThat(event.getEventTime()).isAtLeast(MY_EPOCH); in assertContextUpdatedEvent()
/frameworks/base/core/java/android/view/
DInputEvent.java194 public abstract long getEventTime(); in getEventTime() method in InputEvent
DScaleGestureDetector.java234 mCurrTime = event.getEventTime(); in onTouchEvent()
574 public long getEventTime() { in getEventTime() method in ScaleGestureDetector
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java108 mDownTouchTime = ev.getEventTime(); in onTouchEvent()
191 mUpTouchTime = ev.getEventTime(); in onTouchEvent()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DMouseUiController.java95 if (me.getEventTime() - SystemClock.uptimeMillis() > 10) { in injectMotionEventSequence()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java170 assertEquals(ssOther.getEventTime(j), ss.getEventTime(j)); in verifyStatus()
/frameworks/base/native/android/
Dinput.cpp82 return static_cast<const KeyEvent*>(key_event)->getEventTime(); in AKeyEvent_getEventTime()
110 return static_cast<const MotionEvent*>(motion_event)->getEventTime(); in AMotionEvent_getEventTime()
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java214 mDownTime[i] = event.getEventTime(); in captureDown()
253 final int swipe = detectSwipe(i, move.getEventTime(), move.getX(p), move.getY(p)); in detectSwipe()
/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/services/accessibility/java/com/android/server/accessibility/
DMotionEventInjector.java217 mLastScheduledEventTime = event.getEventTime(); in injectEventsMainThread()
218 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime)); in injectEventsMainThread()

123