/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | TouchUtils.java | 42 long downTime = SystemClock.uptimeMillis(); in tapView() local 45 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 52 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 58 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 73 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local 76 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 83 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 100 long downTime = SystemClock.uptimeMillis(); in clickView() local 103 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 110 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView() [all …]
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | AppCompatMenuItemShortcutsTest.java | 61 final long downTime = SystemClock.uptimeMillis(); in testPerformShortcut() local 68 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut() 76 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut() 84 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut()
|
D | BaseKeyboardShortcutsTestCase.java | 48 final long downTime = SystemClock.uptimeMillis(); in testKeyboardShortcut() local 49 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyboardShortcut() 54 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP, in testKeyboardShortcut()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
D | TestUtils.java | 304 final long downTime = SystemClock.uptimeMillis(); in emulateTapOnView() local 306 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen); in emulateTapOnView() 307 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView() 308 injectUpEvent(instrumentation, downTime, false, xOnScreen, yOnScreen); in emulateTapOnView() 314 private static long injectDownEvent(Instrumentation instrumentation, long downTime, in injectDownEvent() argument 317 downTime, downTime, MotionEvent.ACTION_DOWN, xOnScreen, yOnScreen, 1); in injectDownEvent() 321 return downTime; in injectDownEvent() 324 private static void injectMoveEventForTap(Instrumentation instrumentation, long downTime, in injectMoveEventForTap() argument 326 MotionEvent eventMove = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_MOVE, in injectMoveEventForTap() 334 private static void injectUpEvent(Instrumentation instrumentation, long downTime, in injectUpEvent() argument [all …]
|
/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 48 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 79 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime) { in NotifyMotionArgs() 92 xPrecision(other.xPrecision), yPrecision(other.yPrecision), downTime(other.downTime) { in NotifyMotionArgs()
|
D | InputListener.h | 64 nsecs_t downTime; member 70 int32_t metaState, nsecs_t downTime); 98 nsecs_t downTime; member 107 float xPrecision, float yPrecision, nsecs_t downTime);
|
D | InputDispatcher.h | 484 nsecs_t downTime; member 500 int32_t repeatCount, nsecs_t downTime); 520 nsecs_t downTime; member 530 float xPrecision, float yPrecision, nsecs_t downTime, 762 nsecs_t downTime; member 772 nsecs_t downTime; member
|
D | InputDispatcher.cpp | 668 entry->metaState, entry->repeatCount + 1, entry->downTime); in synthesizeKeyRepeatLocked() 820 entry->repeatCount, entry->downTime); in logOutboundKeyDetailsLocked() 899 entry->downTime); in logOutboundMotionDetailsLocked() 1988 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked() 2034 motionEntry->downTime, motionEntry->eventTime, in startDispatchCycleLocked() 2361 originalMotionEntry->downTime, in splitMotionEvent() 2397 args->metaState, args->downTime); in notifyKey() 2448 args->downTime, args->eventTime); in notifyKey() 2471 metaState, repeatCount, args->downTime); in notifyKey() 2493 args->edgeFlags, args->xPrecision, args->yPrecision, args->downTime); in notifyMotion() [all …]
|
D | InputReader.cpp | 2360 nsecs_t downTime = mDownTime; in processKey() local 2377 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime); in processKey() 2684 nsecs_t downTime = mDownTime; in sync() local 2784 mXPrecision, mYPrecision, downTime); in sync() 2793 mXPrecision, mYPrecision, downTime); in sync() 2805 mXPrecision, mYPrecision, downTime); in sync() 2819 mXPrecision, mYPrecision, downTime); in sync() 2832 mXPrecision, mYPrecision, downTime); in sync() 4541 mCurrentVirtualKey.downTime = when; in consumeRawTouches() 4588 nsecs_t downTime = mCurrentVirtualKey.downTime; in dispatchVirtualKey() local [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 258 long downTime = SystemClock.uptimeMillis(); in tapView() local 261 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 298 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local 301 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 308 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 333 long downTime = SystemClock.uptimeMillis(); in clickView() local 336 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 344 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView() [all …]
|
/frameworks/support/wear/tests/src/android/support/wear/widget/ |
D | ScrollManagerTest.java | 124 long downTime = SystemClock.uptimeMillis(); in scroll() local 133 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in scroll() 140 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); in scroll() 145 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in scroll() 151 long downTime = SystemClock.uptimeMillis(); in scrollOnArch() local 163 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in scrollOnArch() 171 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); in scrollOnArch() 176 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in scrollOnArch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 391 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() local 393 hasEventTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 394 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 396 hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 431 long downTime = events.get(0).getDownTime(); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() local 434 IS_ACTION_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 435 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 437 IS_ACTION_POINTER_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 439 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 441 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL * 2))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() [all …]
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 82 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() 145 const nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local 169 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent() 196 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
|
D | StructLayout_test.cpp | 47 CHECK_OFFSET(InputMessage::Body::Key, downTime, 48); in TestInputMessageAlignment() 59 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 48); in TestInputMessageAlignment()
|
/frameworks/native/include/input/ |
D | InputTransport.h | 74 nsecs_t downTime __attribute__((aligned(8))); member 92 nsecs_t downTime __attribute__((aligned(8))); member 220 nsecs_t downTime, 245 nsecs_t downTime,
|
D | Input.h | 352 nsecs_t downTime, 417 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } in setDownTime() argument 569 nsecs_t downTime,
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1339 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1341 mDownTime = downTime; in KeyEvent() 1363 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1365 mDownTime = downTime; in KeyEvent() 1390 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1393 mDownTime = downTime; in KeyEvent() 1420 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1423 mDownTime = downTime; in KeyEvent() 1452 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1455 mDownTime = downTime; in KeyEvent() [all …]
|
D | MotionEvent.java | 1551 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); in nativeSetDownTimeNanos() argument 1624 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument 1633 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain() 1668 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument 1679 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain() 1714 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument 1734 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain() 1774 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument 1777 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain() 1796 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument [all …]
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | ListPopupWindowTest.java | 212 long downTime = SystemClock.uptimeMillis(); in testDismissalViaTouch() local 214 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1); in testDismissalViaTouch() 322 long downTime = SystemClock.uptimeMillis(); in emulateDragDownGesture() local 324 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 1); in emulateDragDownGesture()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 709 long downTime = SystemClock.uptimeMillis(); 711 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_DOWN, 1, 716 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), 733 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), 747 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), 755 event = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, 1,
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 252 nsecs_t downTime, in publishKeyEvent() argument 260 downTime, eventTime); in publishKeyEvent() 279 msg.body.key.downTime = downTime; in publishKeyEvent() 298 nsecs_t downTime, in publishMotionEvent() argument 311 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent() 340 msg.body.motion.downTime = downTime; in publishMotionEvent() 909 msg->body.key.downTime, in initializeKeyEvent() 935 msg->body.motion.downTime, in initializeMotionEvent()
|
D | Input.cpp | 63 nsecs_t downTime, in initialize() argument 72 mDownTime = downTime; in initialize() 228 nsecs_t downTime, in initialize() argument 244 mDownTime = downTime; in initialize()
|
/frameworks/base/core/jni/ |
D | android_view_KeyEvent.cpp | 88 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); in android_view_KeyEvent_toNative() local 92 milliseconds_to_nanoseconds(downTime), in android_view_KeyEvent_toNative()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputReader_test.cpp | 1632 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 1647 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 1664 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 1681 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 1698 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 1715 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 2115 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 2134 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 2156 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() 2175 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecLocalDevice.java | 460 final long downTime = SystemClock.uptimeMillis(); in handleUserControlPressed() local 468 injectKeyEvent(downTime, KeyEvent.ACTION_UP, mLastKeycode, 0); in handleUserControlPressed() 475 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount); in handleUserControlPressed()
|