Home
last modified time | relevance | path

Searched refs:eventTimeNanos (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/services/inputflinger/reader/mapper/
DSlopController.cpp36 float SlopController::consumeEvent(nsecs_t eventTimeNanos, float value) { in consumeEvent() argument
41 if (shouldResetSlopTracking(eventTimeNanos, value)) { in consumeEvent()
46 mLastEventTimeNanos = eventTimeNanos; in consumeEvent()
67 bool SlopController::shouldResetSlopTracking(nsecs_t eventTimeNanos, float value) const { in shouldResetSlopTracking() argument
68 const nsecs_t ageNanos = eventTimeNanos - mLastEventTimeNanos; in shouldResetSlopTracking()
DSlopController.h42 bool shouldResetSlopTracking(nsecs_t eventTimeNanos, float value) const;
/frameworks/base/core/java/android/hardware/input/
DVirtualMouseRelativeEvent.java40 private VirtualMouseRelativeEvent(float relativeX, float relativeY, long eventTimeNanos) { in VirtualMouseRelativeEvent() argument
43 mEventTimeNanos = eventTimeNanos; in VirtualMouseRelativeEvent()
142 public @NonNull Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
143 if (eventTimeNanos < 0L) { in setEventTimeNanos()
146 this.mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualMouseScrollEvent.java44 long eventTimeNanos) { in VirtualMouseScrollEvent() argument
47 mEventTimeNanos = eventTimeNanos; in VirtualMouseScrollEvent()
153 public @NonNull Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
154 if (eventTimeNanos < 0L) { in setEventTimeNanos()
157 mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualStylusButtonEvent.java78 long eventTimeNanos) { in VirtualStylusButtonEvent() argument
81 mEventTimeNanos = eventTimeNanos; in VirtualStylusButtonEvent()
195 public Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
196 if (eventTimeNanos < 0L) { in setEventTimeNanos()
199 this.mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualMouseButtonEvent.java89 long eventTimeNanos) { in VirtualMouseButtonEvent() argument
92 mEventTimeNanos = eventTimeNanos; in VirtualMouseButtonEvent()
204 public @NonNull Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
205 if (eventTimeNanos < 0L) { in setEventTimeNanos()
208 this.mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualStylusMotionEvent.java98 int pressure, int tiltX, int tiltY, long eventTimeNanos) { in VirtualStylusMotionEvent() argument
106 mEventTimeNanos = eventTimeNanos; in VirtualStylusMotionEvent()
385 public Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
386 if (eventTimeNanos < 0L) { in setEventTimeNanos()
389 mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualTouchEvent.java102 float x, float y, float pressure, float majorAxisSize, long eventTimeNanos) { in VirtualTouchEvent() argument
110 mEventTimeNanos = eventTimeNanos; in VirtualTouchEvent()
361 public @NonNull Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
362 if (eventTimeNanos < 0L) { in setEventTimeNanos()
365 mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
DVirtualKeyEvent.java185 private VirtualKeyEvent(@Action int action, int keyCode, long eventTimeNanos) { in VirtualKeyEvent() argument
188 mEventTimeNanos = eventTimeNanos; in VirtualKeyEvent()
293 public @NonNull Builder setEventTimeNanos(long eventTimeNanos) { in setEventTimeNanos() argument
294 if (eventTimeNanos < 0L) { in setEventTimeNanos()
297 mEventTimeNanos = eventTimeNanos; in setEventTimeNanos()
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DInputController.java454 long eventTimeNanos); in nativeWriteDpadKeyEvent() argument
456 long eventTimeNanos); in nativeWriteKeyEvent() argument
458 long eventTimeNanos); in nativeWriteButtonEvent() argument
461 long eventTimeNanos); in nativeWriteTouchEvent() argument
463 float relativeY, long eventTimeNanos); in nativeWriteRelativeEvent() argument
465 float yAxisMovement, long eventTimeNanos); in nativeWriteScrollEvent() argument
467 int locationX, int locationY, int pressure, int tiltX, int tiltY, long eventTimeNanos); in nativeWriteStylusMotionEvent() argument
469 long eventTimeNanos); in nativeWriteStylusButtonEvent() argument
503 long eventTimeNanos) { in writeDpadKeyEvent() argument
504 return nativeWriteDpadKeyEvent(ptr, androidKeyCode, action, eventTimeNanos); in writeDpadKeyEvent()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_companion_virtual_InputController.cpp322 jint action, jlong eventTimeNanos) { in nativeWriteDpadKeyEvent() argument
325 std::chrono::nanoseconds(eventTimeNanos)); in nativeWriteDpadKeyEvent()
330 jint action, jlong eventTimeNanos) { in nativeWriteKeyEvent() argument
333 std::chrono::nanoseconds(eventTimeNanos)); in nativeWriteKeyEvent()
339 jfloat pressure, jfloat majorAxisSize, jlong eventTimeNanos) { in nativeWriteTouchEvent() argument
343 std::chrono::nanoseconds(eventTimeNanos)); in nativeWriteTouchEvent()
348 jint action, jlong eventTimeNanos) { in nativeWriteButtonEvent() argument
351 std::chrono::nanoseconds(eventTimeNanos)); in nativeWriteButtonEvent()
355 jfloat relativeY, jlong eventTimeNanos) { in nativeWriteRelativeEvent() argument
358 std::chrono::nanoseconds(eventTimeNanos)); in nativeWriteRelativeEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DVerifiedKeyEventTest.kt42 assertEquals(EVENT_TIME_NANOS, event.eventTimeNanos) in testConstructor()
154 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedKeyEvents()
DVerifiedMotionEventTest.kt47 assertEquals(EVENT_TIME_NANOS, event.eventTimeNanos) in testConstructor()
178 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedMotionEvents()
/frameworks/base/core/java/android/view/
DVerifiedInputEvent.java62 protected VerifiedInputEvent(int type, int deviceId, long eventTimeNanos, int source, in VerifiedInputEvent() argument
66 mEventTimeNanos = eventTimeNanos; in VerifiedInputEvent()
DVerifiedKeyEvent.java187 long eventTimeNanos, in VerifiedKeyEvent() argument
197 super(VERIFIED_KEY, deviceId, eventTimeNanos, source, displayId);
DVerifiedMotionEvent.java177 int deviceId, long eventTimeNanos, int source, int displayId, in VerifiedMotionEvent() argument
185 super(VERIFIED_MOTION, deviceId, eventTimeNanos, source, displayId);
DMotionEvent.java1810 long downTimeNanos, long eventTimeNanos, in nativeInitialize() argument
1813 private static native void nativeAddBatch(long nativePtr, long eventTimeNanos, in nativeAddBatch() argument
2319 long downTimeNanos, long eventTimeNanos, in initialize() argument
2326 xPrecision, yPrecision, downTimeNanos, eventTimeNanos, pointerCount, pointerIds, in initialize()
3777 final long eventTimeNanos = nativeGetEventTimeNanos(event.mNativePtr, historyPos); in addBatch() local
3778 nativeAddBatch(mNativePtr, eventTimeNanos, pc, metaState); in addBatch()
DKeyEvent.java1789 private static KeyEvent obtain(int id, long downTimeNanos, long eventTimeNanos, int action, in obtain() argument
1796 ev.mEventTime = eventTimeNanos; in obtain()
/frameworks/native/libs/input/tests/
DVerifiedInputEvent_test.cpp63 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
95 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
DStructLayout_test.cpp175 sizeof(VerifiedInputEvent::deviceId) + sizeof(VerifiedInputEvent::eventTimeNanos) + in TestVerifiedEventSize()
/frameworks/base/core/jni/
Dandroid_view_VerifiedKeyEvent.cpp35 event.deviceId, event.eventTimeNanos, event.source, event.displayId, in android_view_VerifiedKeyEvent()
Dandroid_view_VerifiedMotionEvent.cpp36 event.eventTimeNanos, event.source, event.displayId, event.rawX, in android_view_VerifiedMotionEvent()
Dandroid_view_MotionEvent.cpp327 jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, in android_view_MotionEvent_nativeInitialize() argument
380 eventTimeNanos, pointerCount, pointerProperties.data(), in android_view_MotionEvent_nativeInitialize()
393 jlong nativePtr, jlong eventTimeNanos, jobjectArray pointerCoordsObjArray, in android_view_MotionEvent_nativeAddBatch() argument
418 event->addSample(eventTimeNanos, rawPointerCoords.data()); in android_view_MotionEvent_nativeAddBatch()
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/virtual/
DVirtualDeviceManagerServiceTest.java1301 final long eventTimeNanos = 5000L; in sendKeyEvent_hasFd_writesEvent() local
1310 .setEventTimeNanos(eventTimeNanos) in sendKeyEvent_hasFd_writesEvent()
1313 verify(mNativeWrapperMock).writeKeyEvent(fd, keyCode, action, eventTimeNanos); in sendKeyEvent_hasFd_writesEvent()
1331 final long eventTimeNanos = 5000L; in sendButtonEvent_hasFd_writesEvent() local
1339 .setEventTimeNanos(eventTimeNanos) in sendButtonEvent_hasFd_writesEvent()
1342 verify(mNativeWrapperMock).writeButtonEvent(fd, buttonCode, action, eventTimeNanos); in sendButtonEvent_hasFd_writesEvent()
1360 final long eventTimeNanos = 5000L; in sendRelativeEvent_hasFd_writesEvent() local
1368 .setEventTimeNanos(eventTimeNanos) in sendRelativeEvent_hasFd_writesEvent()
1371 verify(mNativeWrapperMock).writeRelativeEvent(fd, x, y, eventTimeNanos); in sendRelativeEvent_hasFd_writesEvent()
1390 final long eventTimeNanos = 5000L; in sendScrollEvent_hasFd_writesEvent() local
[all …]
/frameworks/native/include/input/
DInput.h1085 nsecs_t eventTimeNanos; member

12