/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | GlobalActionPerformer.java | 112 final long downTime = SystemClock.uptimeMillis(); 113 sendKeyEventIdentityCleared(keyCode, KeyEvent.ACTION_DOWN, downTime, downTime); 115 keyCode, KeyEvent.ACTION_UP, downTime, SystemClock.uptimeMillis()); 120 private void sendKeyEventIdentityCleared(int keyCode, int action, long downTime, long time) { argument 121 KeyEvent event = KeyEvent.obtain(downTime, time, action, keyCode, 0, 0,
|
H A D | MotionEventInjector.java | 436 private MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, argument 464 return MotionEvent.obtain(downTime, eventTime, action, touchPointsSize,
|
/frameworks/base/core/jni/ |
H A D | android_view_KeyEvent.cpp | 88 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); local 92 milliseconds_to_nanoseconds(downTime),
|
/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 82 const nsecs_t downTime = 3; local 86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); 113 EXPECT_EQ(downTime, keyEvent->getDownTime()); 148 const nsecs_t downTime = 3; local 172 downTime, eventTime, pointerCount, 200 EXPECT_EQ(downTime, motionEvent->getDownTime());
|
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 48 int32_t metaState, nsecs_t downTime) : 51 metaState(metaState), downTime(downTime) { 59 metaState(other.metaState), downTime(other.downTime) { 75 float xPrecision, float yPrecision, nsecs_t downTime) : 81 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime) { 95 xPrecision(other.xPrecision), yPrecision(other.yPrecision), downTime(other.downTime) { 45 NotifyKeyArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) argument 69 NotifyMotionArgs(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, int32_t displayId, uint32_t deviceTimestamp, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument [all...] |
H A D | InputListener.h | 64 nsecs_t downTime; member in struct:android::NotifyKeyArgs 70 int32_t metaState, nsecs_t downTime); 105 nsecs_t downTime; member in struct:android::NotifyMotionArgs 114 float xPrecision, float yPrecision, nsecs_t downTime);
|
H A D | InputDispatcher.h | 483 nsecs_t downTime; member in struct:android::InputDispatcher::KeyEntry 499 int32_t repeatCount, nsecs_t downTime); 519 nsecs_t downTime; member in struct:android::InputDispatcher::MotionEntry 529 float xPrecision, float yPrecision, nsecs_t downTime, 761 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::KeyMemento 771 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::MotionMemento
|
H A D | InputDispatcher.cpp | 707 entry->metaState, entry->repeatCount + 1, entry->downTime); 856 "repeatCount=%d, downTime=%" PRId64, 860 entry->repeatCount, entry->downTime); 930 "edgeFlags=0x%x, xPrecision=%f, yPrecision=%f, downTime=%" PRId64, 936 entry->downTime); 2023 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, 2068 motionEntry->downTime, motionEntry->eventTime, 2396 originalMotionEntry->downTime, 2430 "flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, downTime=%" PRId64, 2433 args->metaState, args->downTime); 3993 KeyEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime) argument 4028 MotionEntry(nsecs_t eventTime, int32_t deviceId, uint32_t source, uint32_t policyFlags, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, float xPrecision, float yPrecision, nsecs_t downTime, int32_t displayId, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xOffset, float yOffset) argument [all...] |
H A D | InputReader.cpp | 2477 nsecs_t downTime = mDownTime; local 2494 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime); 2801 nsecs_t downTime = mDownTime; local 2901 mXPrecision, mYPrecision, downTime); 2910 mXPrecision, mYPrecision, downTime); 2922 mXPrecision, mYPrecision, downTime); 2936 mXPrecision, mYPrecision, downTime); 2949 mXPrecision, mYPrecision, downTime); 4672 mCurrentVirtualKey.downTime = when; 4719 nsecs_t downTime local 6449 dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t metaState, int32_t buttonState, int32_t edgeFlags, uint32_t deviceTimestamp, const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) argument [all...] |
H A D | InputReader.h | 1603 nsecs_t downTime; member in struct:android::TouchInputMapper::CurrentVirtualKeyState 1709 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerGesture 1751 downTime = 0; 1780 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerSimple 1789 downTime = 0; 1851 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
H A D | TestUtils.java | 305 final long downTime = SystemClock.uptimeMillis(); 307 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen); 308 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); 309 injectUpEvent(instrumentation, downTime, false, xOnScreen, yOnScreen); 315 private static long injectDownEvent(Instrumentation instrumentation, long downTime, argument 318 downTime, downTime, MotionEvent.ACTION_DOWN, xOnScreen, yOnScreen, 1); 322 return downTime; 325 private static void injectMoveEventForTap(Instrumentation instrumentation, long downTime, argument 327 MotionEvent eventMove = MotionEvent.obtain(downTime, downTim 335 injectUpEvent(Instrumentation instrumentation, long downTime, boolean useCurrentEventTime, int xOnScreen, int yOnScreen) argument [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | MagnificationGestureHandlerTest.java | 562 private MotionEvent upEvent(long downTime) { argument 563 return fromTouchscreen(MotionEvent.obtain(downTime, mClock.now(), 583 /* downTime */ mClock.now(),
|
H A D | MotionEventInjectorTest.java | 390 long downTime = events.get(0).getDownTime(); 392 hasEventTime(downTime))); 393 assertThat(events, everyItem(hasDownTime(downTime))); 395 hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); 430 long downTime = events.get(0).getDownTime(); 433 IS_ACTION_DOWN, hasEventTime(downTime))); 434 assertThat(events, everyItem(hasDownTime(downTime))); 436 IS_ACTION_POINTER_DOWN, hasEventTime(downTime))); 438 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); 440 IS_ACTION_MOVE, hasEventTime(downTime 747 MotionEventMatcher(long downTime, long eventTime, int actionMasked, int x, int y) argument 850 hasDownTime(final long downTime) argument [all...] |
/frameworks/native/include/input/ |
H A D | InputTransport.h | 74 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Key 93 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Motion 221 nsecs_t downTime, 247 nsecs_t downTime,
|
H A D | Input.h | 352 nsecs_t downTime, 417 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } argument 569 nsecs_t downTime,
|
/frameworks/native/libs/input/ |
H A D | Input.cpp | 63 nsecs_t downTime, 72 mDownTime = downTime; 228 nsecs_t downTime, 244 mDownTime = downTime; 54 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime) argument 215 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, size_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
|
H A D | InputTransport.cpp | 252 nsecs_t downTime, 257 "downTime=%" PRId64 ", eventTime=%" PRId64, 260 downTime, eventTime); 279 msg.body.key.downTime = downTime; 299 nsecs_t downTime, 308 "xPrecision=%f, yPrecision=%f, downTime=%" PRId64 ", eventTime=%" PRId64 ", " 312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); 342 msg.body.motion.downTime = downTime; 242 publishKeyEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t action, int32_t flags, int32_t keyCode, int32_t scanCode, int32_t metaState, int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime) argument 284 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t displayId, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | MotionEvent.java | 1555 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); argument 1604 * @param downTime The time (in ms) when the user originally pressed down to start 1628 static public MotionEvent obtain(long downTime, long eventTime, argument 1637 downTime * NS_PER_MS, eventTime * NS_PER_MS, 1646 * @param downTime The time (in ms) when the user originally pressed down to start 1672 static public MotionEvent obtain(long downTime, long eventTime, argument 1683 return obtain(downTime, eventTime, action, pointerCount, pp, 1693 * @param downTime The time (in ms) when the user originally pressed down to start 1718 static public MotionEvent obtain(long downTime, long eventTime, int action, argument 1738 downTime * NS_PER_M 1778 obtain(long downTime, long eventTime, int action, int pointerCount, float x, float y, float pressure, float size, int metaState, float xPrecision, float yPrecision, int deviceId, int edgeFlags) argument 1800 obtain(long downTime, long eventTime, int action, float x, float y, int metaState) argument 2005 setDownTime(long downTime) argument [all...] |
H A D | KeyEvent.java | 1333 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1343 public KeyEvent(long downTime, long eventTime, int action, argument 1345 mDownTime = downTime; 1356 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1367 public KeyEvent(long downTime, long eventTime, int action, argument 1369 mDownTime = downTime; 1381 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1394 public KeyEvent(long downTime, long eventTime, int action, argument 1397 mDownTime = downTime; 1410 * @param downTime Th 1424 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument 1456 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument 1558 obtain(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source, String characters) argument [all...] |