Home
last modified time | relevance | path

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

12

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTouchUtils.java42 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/
DAppCompatMenuItemShortcutsTest.java57 final long downTime = SystemClock.uptimeMillis(); in testPerformShortcut() local
64 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut()
72 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut()
80 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testPerformShortcut()
DBaseKeyboardShortcutsTestCase.java57 final long downTime = SystemClock.uptimeMillis(); in testKeyboardShortcut() local
58 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyboardShortcut()
63 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP, in testKeyboardShortcut()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java304 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/
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
79 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);
98 nsecs_t downTime; member
107 float xPrecision, float yPrecision, nsecs_t downTime);
DInputDispatcher.cpp668 entry->metaState, entry->repeatCount + 1, entry->downTime); in synthesizeKeyRepeatLocked()
820 entry->repeatCount, entry->downTime); in logOutboundKeyDetailsLocked()
896 entry->downTime); in logOutboundMotionDetailsLocked()
1985 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2031 motionEntry->downTime, motionEntry->eventTime, in startDispatchCycleLocked()
2358 originalMotionEntry->downTime, in splitMotionEvent()
2394 args->metaState, args->downTime); in notifyKey()
2445 args->downTime, args->eventTime); in notifyKey()
2468 metaState, repeatCount, args->downTime); in notifyKey()
2490 args->edgeFlags, args->xPrecision, args->yPrecision, args->downTime); in notifyMotion()
[all …]
DInputDispatcher.h484 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
DInputReader.cpp2471 nsecs_t downTime = mDownTime; in processKey() local
2488 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime); in processKey()
2795 nsecs_t downTime = mDownTime; in sync() local
2895 mXPrecision, mYPrecision, downTime); in sync()
2904 mXPrecision, mYPrecision, downTime); in sync()
2916 mXPrecision, mYPrecision, downTime); in sync()
2930 mXPrecision, mYPrecision, downTime); in sync()
2943 mXPrecision, mYPrecision, downTime); in sync()
4664 mCurrentVirtualKey.downTime = when; in consumeRawTouches()
4711 nsecs_t downTime = mCurrentVirtualKey.downTime; in dispatchVirtualKey() local
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java258 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/
DScrollManagerTest.java124 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/
DMotionEventInjectorTest.java391 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/
DInputPublisherAndConsumer_test.cpp82 const nsecs_t downTime = 3; in PublishAndConsumeKeyEvent() local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
112 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent()
147 const nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local
171 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
199 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp48 CHECK_OFFSET(InputMessage::Body::Key, downTime, 56); in TestInputMessageAlignment()
61 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 56); in TestInputMessageAlignment()
/frameworks/support/design/tests/src/android/support/design/widget/
DAppBarHorizontalScrollingTest.java97 long downTime = SystemClock.uptimeMillis(); in emulateButtonClick() local
99 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1); in emulateButtonClick()
/frameworks/native/libs/input/
DInputTransport.cpp135 msg->body.key.downTime = body.key.downTime; in getSanitizedCopy()
162 msg->body.motion.downTime = body.motion.downTime; in getSanitizedCopy()
354 nsecs_t downTime, in publishKeyEvent() argument
362 downTime, eventTime); in publishKeyEvent()
381 msg.body.key.downTime = downTime; in publishKeyEvent()
401 nsecs_t downTime, in publishMotionEvent() argument
414 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
444 msg.body.motion.downTime = downTime; in publishMotionEvent()
1026 msg->body.key.downTime, in initializeKeyEvent()
1052 msg->body.motion.downTime, in initializeMotionEvent()
DInput.cpp63 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/java/android/view/
DKeyEvent.java1342 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1344 mDownTime = downTime; in KeyEvent()
1366 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1368 mDownTime = downTime; in KeyEvent()
1393 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1396 mDownTime = downTime; in KeyEvent()
1423 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1426 mDownTime = downTime; in KeyEvent()
1455 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1458 mDownTime = downTime; in KeyEvent()
[all …]
DMotionEvent.java1551 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/native/include/input/
DInputTransport.h84 nsecs_t downTime __attribute__((aligned(8))); member
105 nsecs_t downTime __attribute__((aligned(8))); member
235 nsecs_t downTime,
261 nsecs_t downTime,
DInput.h352 nsecs_t downTime,
417 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } in setDownTime() argument
569 nsecs_t downTime,
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DInteractionController.java709 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/support/v7/appcompat/tests/src/android/support/v7/widget/
DListPopupWindowTest.java222 long downTime = SystemClock.uptimeMillis(); in testDismissalViaTouch() local
224 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1); in testDismissalViaTouch()
332 long downTime = SystemClock.uptimeMillis(); in emulateDragDownGesture() local
334 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 1); in emulateDragDownGesture()
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp88 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/
DInputReader_test.cpp1765 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1780 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1797 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1814 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1831 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1848 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2248 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2267 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2289 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2308 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
[all …]

12