/frameworks/native/services/inputflinger/reader/mapper/ |
D | SlopController.cpp | 36 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()
|
D | SlopController.h | 42 bool shouldResetSlopTracking(nsecs_t eventTimeNanos, float value) const;
|
/frameworks/base/core/java/android/hardware/input/ |
D | VirtualMouseRelativeEvent.java | 40 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()
|
D | VirtualMouseScrollEvent.java | 44 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()
|
D | VirtualStylusButtonEvent.java | 78 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()
|
D | VirtualMouseButtonEvent.java | 89 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()
|
D | VirtualStylusMotionEvent.java | 98 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()
|
D | VirtualTouchEvent.java | 102 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()
|
D | VirtualKeyEvent.java | 185 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/ |
D | InputController.java | 454 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/ |
D | com_android_server_companion_virtual_InputController.cpp | 322 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/ |
D | VerifiedKeyEventTest.kt | 42 assertEquals(EVENT_TIME_NANOS, event.eventTimeNanos) in testConstructor() 154 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedKeyEvents()
|
D | VerifiedMotionEventTest.kt | 47 assertEquals(EVENT_TIME_NANOS, event.eventTimeNanos) in testConstructor() 178 assertEquals(event1.eventTimeNanos, event2.eventTimeNanos) in compareVerifiedMotionEvents()
|
/frameworks/base/core/java/android/view/ |
D | VerifiedInputEvent.java | 62 protected VerifiedInputEvent(int type, int deviceId, long eventTimeNanos, int source, in VerifiedInputEvent() argument 66 mEventTimeNanos = eventTimeNanos; in VerifiedInputEvent()
|
D | VerifiedKeyEvent.java | 187 long eventTimeNanos, in VerifiedKeyEvent() argument 197 super(VERIFIED_KEY, deviceId, eventTimeNanos, source, displayId);
|
D | VerifiedMotionEvent.java | 177 int deviceId, long eventTimeNanos, int source, int displayId, in VerifiedMotionEvent() argument 185 super(VERIFIED_MOTION, deviceId, eventTimeNanos, source, displayId);
|
D | MotionEvent.java | 1810 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()
|
D | KeyEvent.java | 1789 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/ |
D | VerifiedInputEvent_test.cpp | 63 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST() 95 ASSERT_EQ(event.getEventTime(), verified.eventTimeNanos); in TEST()
|
D | StructLayout_test.cpp | 175 sizeof(VerifiedInputEvent::deviceId) + sizeof(VerifiedInputEvent::eventTimeNanos) + in TestVerifiedEventSize()
|
/frameworks/base/core/jni/ |
D | android_view_VerifiedKeyEvent.cpp | 35 event.deviceId, event.eventTimeNanos, event.source, event.displayId, in android_view_VerifiedKeyEvent()
|
D | android_view_VerifiedMotionEvent.cpp | 36 event.eventTimeNanos, event.source, event.displayId, event.rawX, in android_view_VerifiedMotionEvent()
|
D | android_view_MotionEvent.cpp | 327 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/ |
D | VirtualDeviceManagerServiceTest.java | 1301 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/ |
D | Input.h | 1085 nsecs_t eventTimeNanos; member
|