Home
last modified time | relevance | path

Searched refs:downTime (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/services/input/
DInputListener.cpp48 int32_t metaState, nsecs_t downTime) : in NotifyKeyArgs() argument
51 metaState(metaState), downTime(downTime) { in NotifyKeyArgs()
59 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs()
74 float xPrecision, float yPrecision, nsecs_t downTime) : in NotifyMotionArgs() argument
78 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime) { in NotifyMotionArgs()
92 xPrecision(other.xPrecision), yPrecision(other.yPrecision), downTime(other.downTime) { in NotifyMotionArgs()
DInputListener.h64 nsecs_t downTime; member
70 int32_t metaState, nsecs_t downTime);
97 nsecs_t downTime; member
105 float xPrecision, float yPrecision, nsecs_t downTime);
DInputDispatcher.h481 nsecs_t downTime; member
497 int32_t repeatCount, nsecs_t downTime);
516 nsecs_t downTime; member
527 nsecs_t downTime, int32_t displayId, uint32_t pointerCount,
750 nsecs_t downTime; member
760 nsecs_t downTime; member
DInputDispatcher.cpp664 entry->metaState, entry->repeatCount + 1, entry->downTime); in synthesizeKeyRepeatLocked()
816 entry->repeatCount, entry->downTime); in logOutboundKeyDetailsLocked()
888 entry->downTime); in logOutboundMotionDetailsLocked()
1952 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
1998 motionEntry->downTime, motionEntry->eventTime, in startDispatchCycleLocked()
2317 originalMotionEntry->downTime, in splitMotionEvent()
2353 args->metaState, args->downTime); in notifyKey()
2387 args->downTime, args->eventTime); in notifyKey()
2414 metaState, repeatCount, args->downTime); in notifyKey()
2436 args->edgeFlags, args->xPrecision, args->yPrecision, args->downTime); in notifyMotion()
[all …]
DInputReader.cpp2146 nsecs_t downTime = mDownTime; in processKey() local
2168 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, newMetaState, downTime); in processKey()
2424 nsecs_t downTime = mDownTime; in sync() local
2514 mXPrecision, mYPrecision, downTime); in sync()
2524 mXPrecision, mYPrecision, downTime); in sync()
2537 mXPrecision, mYPrecision, downTime); in sync()
3898 mCurrentVirtualKey.downTime = when; in consumeRawTouches()
3944 nsecs_t downTime = mCurrentVirtualKey.downTime; in dispatchVirtualKey() local
3949 keyEventAction, keyEventFlags, keyCode, scanCode, metaState, downTime); in dispatchVirtualKey()
4466 0, 0, mPointerGesture.downTime); in dispatchPointerGestures()
[all …]
DInputReader.h1438 nsecs_t downTime; member
1544 nsecs_t downTime; member
1586 downTime = 0; in reset()
1615 nsecs_t downTime; member
1624 downTime = 0; in reset()
1672 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java264 long downTime = SystemClock.uptimeMillis(); in tapView() local
267 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView()
274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView()
280 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView()
304 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local
307 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView()
314 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView()
339 long downTime = SystemClock.uptimeMillis(); in clickView() local
342 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView()
350 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView()
[all …]
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp82 const nsecs_t downTime = 3; in PublishAndConsumeKeyEvent() local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
111 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent()
144 const nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local
168 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
195 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
/frameworks/native/include/input/
DInputTransport.h67 nsecs_t downTime; member
84 nsecs_t downTime; member
211 nsecs_t downTime,
235 nsecs_t downTime,
DInput.h302 nsecs_t downTime,
361 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } in setDownTime() argument
512 nsecs_t downTime,
/frameworks/base/core/java/android/view/
DMotionEvent.java1348 private static native void nativeSetDownTimeNanos(int nativePtr, long downTime); in nativeSetDownTimeNanos() argument
1430 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1439 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1474 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1485 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1520 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1540 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1580 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1583 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
1602 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
[all …]
DKeyEvent.java1391 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1393 mDownTime = downTime; in KeyEvent()
1415 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1417 mDownTime = downTime; in KeyEvent()
1442 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1445 mDownTime = downTime; in KeyEvent()
1472 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1475 mDownTime = downTime; in KeyEvent()
1504 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1507 mDownTime = downTime; in KeyEvent()
[all …]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java711 long downTime = SystemClock.uptimeMillis();
713 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 1,
718 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(),
735 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(),
749 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(),
757 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, 1,
/frameworks/native/libs/input/
DInputTransport.cpp248 nsecs_t downTime, in publishKeyEvent() argument
256 downTime, eventTime); in publishKeyEvent()
275 msg.body.key.downTime = downTime; in publishKeyEvent()
293 nsecs_t downTime, in publishMotionEvent() argument
306 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
334 msg.body.motion.downTime = downTime; in publishMotionEvent()
892 msg->body.key.downTime, in initializeKeyEvent()
917 msg->body.motion.downTime, in initializeMotionEvent()
DInput.cpp132 nsecs_t downTime, in initialize() argument
141 mDownTime = downTime; in initialize()
296 nsecs_t downTime, in initialize() argument
311 mDownTime = downTime; in initialize()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp85 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); in android_view_KeyEvent_toNative() local
89 milliseconds_to_nanoseconds(downTime), in android_view_KeyEvent_toNative()
/frameworks/base/services/input/tests/
DInputReader_test.cpp1578 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1593 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1610 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1627 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1644 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1661 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2061 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2083 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2789 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2805 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
[all …]
/frameworks/base/core/java/android/app/
DInstrumentation.java873 long downTime = event.getDownTime(); in sendKeySync() local
889 if (downTime == 0) { in sendKeySync()
890 downTime = eventTime; in sendKeySync()
892 KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, metaState, in sendKeySync()
/frameworks/base/services/java/com/android/server/accessibility/
DScreenMagnifier.java815 final long downTime = event.getDownTime() + offset; in obtainEventWithOffsetTimeAndDownTime() local
817 return MotionEvent.obtain(downTime, eventTime, in obtainEventWithOffsetTimeAndDownTime()
DAccessibilityManagerService.java2415 final long downTime = SystemClock.uptimeMillis(); in sendDownAndUpKeyEvents() local
2416 KeyEvent down = KeyEvent.obtain(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0, 0, in sendDownAndUpKeyEvents()
2425 KeyEvent up = KeyEvent.obtain(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0, 0, in sendDownAndUpKeyEvents()