Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DFalsingDataProviderTest.java72 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackMotionEvents()
73 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_trackMotionEvents()
74 assertThat(motionEventList.get(2).getEventTime(), is(3L)); in test_trackMotionEvents()
92 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_trackRecentMotionEvents()
93 assertThat(motionEventList.get(1).getEventTime(), is(800L)); in test_trackRecentMotionEvents()
105 assertThat(motionEventList.get(0).getEventTime(), is(800L)); in test_trackRecentMotionEvents()
106 assertThat(motionEventList.get(1).getEventTime(), is(1200L)); in test_trackRecentMotionEvents()
115 assertThat(firstRealMotionEvent.getEventTime(), is(1L)); in test_trackRecentMotionEvents()
138 assertThat(motionEventList.get(0).getEventTime(), is(1L)); in test_unpackMotionEvents()
139 assertThat(motionEventList.get(1).getEventTime(), is(2L)); in test_unpackMotionEvents()
[all …]
DClassifierTest.java105 mMotionEvents.size() - 1).getEventTime() + 1; in appendMotionEvent()
/frameworks/base/core/tests/coretests/src/android/view/
DKeyEventTest.java50 assertEquals(EVENT_TIME, keyEvent.getEventTime()); in testObtain()
69 assertEquals(keyEvent.getEventTime(), keyEvent2.getEventTime()); in testObtainFromKeyEvent()
88 assertEquals(EVENT_TIME, keyEvent.getEventTime()); in testObtainWithDisplayId()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetector.java105 long deltaTime = currentTapEvent.getEventTime() - previousTapEvent.getEventTime(); in isConsecutiveTap()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGestureUtils.java39 final long deltaTime = secondUp.getEventTime() - firstUp.getEventTime(); in isTimedOut()
DAccessibilityGestureDetector.java275 final long time = rawEvent.getEventTime(); in onMotionEvent()
634 return MotionEvent.obtain(mSecondPointerDownTime, event.getEventTime(), action, in mapSecondPointerToFirstPointer()
DMagnificationGestureHandler.java303 while (!queue.isEmpty() && (event.getEventTime() - queue.peek().getEventTime() > 5000)) { in storeEventInto()
783 return event != null ? event.getEventTime() : Long.MIN_VALUE; in timeOf()
DMotionEventInjector.java215 mLastScheduledEventTime = event.getEventTime(); in injectEventsMainThread()
216 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime)); in injectEventsMainThread()
/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/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.java181 .setDurationSinceSessionStart(now - mStartEvent.getEventTime()) in sanitizeEvent()
192 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/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipTouchState.java105 mDownTouchTime = ev.getEventTime(); in onTouchEvent()
188 mUpTouchTime = ev.getEventTime(); in onTouchEvent()
/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/core/tests/coretests/src/android/widget/espresso/
DMouseUiController.java93 if (me.getEventTime() - SystemClock.uptimeMillis() > 10) { in injectMotionEventSequence()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java419 long secondSequenceStart = events.get(2).getEventTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
420 assertTrue(secondSequenceStart >= events.get(1).getEventTime()); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
778 this(event.getDownTime(), event.getEventTime(), event.getActionMasked(), in MotionEventMatcher()
789 if ((event.getDownTime() == mDownTime) && (event.getEventTime() == mEventTime) in matchesSafely()
797 Log.e(LOG_TAG, "event.getEventTime() = " + event.getEventTime() in matchesSafely()
890 return event.getEventTime() == eventTime;
904 return (event.getEventTime() - event.getDownTime()) == timeFromDown;
/frameworks/base/services/core/java/com/android/server/wm/
DSystemGesturesPointerEventListener.java204 mDownTime[i] = event.getEventTime(); in captureDown()
243 final int swipe = detectSwipe(i, move.getEventTime(), move.getX(p), move.getY(p)); in detectSwipe()
/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/native/libs/input/tests/
DInputEvent_test.cpp196 ASSERT_EQ(ARBITRARY_EVENT_TIME, event.getEventTime()); in TEST_F()
334 ASSERT_EQ(ARBITRARY_EVENT_TIME + 2, event->getEventTime()); in assertEqualsEventWithHistory()
482 ASSERT_EQ(event.getEventTime(), copy.getEventTime()); in TEST_F()
DInputPublisherAndConsumer_test.cpp114 EXPECT_EQ(eventTime, keyEvent->getEventTime()); in PublishAndConsumeKeyEvent()
203 EXPECT_EQ(eventTime, motionEvent->getEventTime()); in PublishAndConsumeMotionEvent()
/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/native/include/input/
DInput.h382 inline nsecs_t getEventTime() const { return mEventTime; } in getEventTime() function
480 inline nsecs_t getEventTime() const { return mSampleEventTimes[getHistorySize()]; } in getEventTime() function
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp60 nanoseconds_to_milliseconds(event->getEventTime()), in android_view_KeyEvent_fromNative()
/frameworks/base/services/core/java/com/android/server/
DGestureLauncherService.java370 powerTapInterval = event.getEventTime() - mLastPowerDown; in interceptPowerKeyDown()
381 mLastPowerDown = event.getEventTime(); in interceptPowerKeyDown()

123