Home
last modified time | relevance | path

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

12

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
DTouchUtils.java43 long downTime = SystemClock.uptimeMillis(); in tapView() local
46 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView()
53 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView()
59 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView()
74 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local
77 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView()
84 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView()
101 long downTime = SystemClock.uptimeMillis(); in clickView() local
104 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView()
111 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView()
[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.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
DInputDispatcher.cpp668 entry->metaState, entry->repeatCount + 1, entry->downTime); in synthesizeKeyRepeatLocked()
820 entry->repeatCount, entry->downTime); in logOutboundKeyDetailsLocked()
899 entry->downTime); in logOutboundMotionDetailsLocked()
1987 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, in startDispatchCycleLocked()
2033 motionEntry->downTime, motionEntry->eventTime, in startDispatchCycleLocked()
2360 originalMotionEntry->downTime, in splitMotionEvent()
2396 args->metaState, args->downTime); in notifyKey()
2447 args->downTime, args->eventTime); in notifyKey()
2470 metaState, repeatCount, args->downTime); in notifyKey()
2492 args->edgeFlags, args->xPrecision, args->yPrecision, args->downTime); in notifyMotion()
[all …]
DInputReader.cpp2309 nsecs_t downTime = mDownTime; in processKey() local
2330 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime); in processKey()
2604 nsecs_t downTime = mDownTime; in sync() local
2704 mXPrecision, mYPrecision, downTime); in sync()
2713 mXPrecision, mYPrecision, downTime); in sync()
2725 mXPrecision, mYPrecision, downTime); in sync()
2739 mXPrecision, mYPrecision, downTime); in sync()
2752 mXPrecision, mYPrecision, downTime); in sync()
4427 mCurrentVirtualKey.downTime = when; in consumeRawTouches()
4474 nsecs_t downTime = mCurrentVirtualKey.downTime; in dispatchVirtualKey() local
[all …]
DInputReader.h1625 nsecs_t downTime; member
1731 nsecs_t downTime; member
1773 downTime = 0; in reset()
1802 nsecs_t downTime; member
1811 downTime = 0; in reset()
1872 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyboardShortcutsTestCase.java51 final long downTime = SystemClock.uptimeMillis(); in testKeyboardShortcut() local
52 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyboardShortcut()
57 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP, in testKeyboardShortcut()
/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/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()
145 const nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local
169 downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
196 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp47 CHECK_OFFSET(InputMessage::Body::Key, downTime, 48); in TestInputMessageAlignment()
59 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 48); in TestInputMessageAlignment()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java558 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime(); in appendMoveEventIfNeeded() local
559 motionEvents.add(obtainMotionEvent(downTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded()
575 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime(); in appendUpEvents() local
579 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, in appendUpEvents()
601 long downTime = (action == MotionEvent.ACTION_DOWN) ? currentTime : in appendDownEvents() local
604 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, in appendDownEvents()
611 private static MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, in obtainMotionEvent() argument
624 return MotionEvent.obtain(downTime, eventTime, action, touchPointsSize, in obtainMotionEvent()
/frameworks/base/core/java/android/view/
DKeyEvent.java1339 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 …]
DMotionEvent.java1474 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); in nativeSetDownTimeNanos() argument
1559 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1568 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1603 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1614 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1649 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1669 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1709 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1712 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
1731 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
[all …]
/frameworks/native/include/input/
DInputTransport.h74 nsecs_t downTime __attribute__((aligned(8))); member
92 nsecs_t downTime __attribute__((aligned(8))); member
220 nsecs_t downTime,
245 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/support/v7/appcompat/tests/src/android/support/v7/widget/
DListPopupWindowTest.java202 long downTime = SystemClock.uptimeMillis(); in testDismissalViaTouch() local
204 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1); in testDismissalViaTouch()
312 long downTime = SystemClock.uptimeMillis(); in emulateDragDownGesture() local
314 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 1); in emulateDragDownGesture()
DPopupMenuTest.java340 long downTime = SystemClock.uptimeMillis();
342 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
/frameworks/base/cmds/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.cpp253 nsecs_t downTime, in publishKeyEvent() argument
261 downTime, eventTime); in publishKeyEvent()
280 msg.body.key.downTime = downTime; in publishKeyEvent()
299 nsecs_t downTime, in publishMotionEvent() argument
312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
341 msg.body.motion.downTime = downTime; in publishMotionEvent()
910 msg->body.key.downTime, in initializeKeyEvent()
936 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/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.cpp1596 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1611 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1628 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1645 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1662 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
1679 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2079 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2101 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2827 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
2843 ASSERT_EQ(ARBITRARY_TIME, args.downTime); in TEST_F()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevice.java460 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()
/frameworks/base/core/java/android/app/
DInstrumentation.java890 long downTime = event.getDownTime(); in sendKeySync() local
906 if (downTime == 0) { in sendKeySync()
907 downTime = eventTime; in sendKeySync()
909 KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, metaState, in sendKeySync()

12