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

12

/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DBaseKeyboardShortcutsTestCase.java51 final long downTime = SystemClock.uptimeMillis();
52 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN,
57 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP,
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DTouchUtils.java43 long downTime = SystemClock.uptimeMillis();
46 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
53 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE,
59 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
74 long downTime = SystemClock.uptimeMillis();
77 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
84 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL,
101 long downTime = SystemClock.uptimeMillis();
104 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
111 event = MotionEvent.obtain(downTime, eventTim
[all...]
/frameworks/native/services/inputflinger/
H A DInputListener.cpp48 int32_t metaState, nsecs_t downTime) :
51 metaState(metaState), downTime(downTime) {
59 metaState(other.metaState), downTime(other.downTime) {
74 float xPrecision, float yPrecision, nsecs_t downTime) :
79 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime) {
92 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 pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords, float xPrecision, float yPrecision, nsecs_t downTime) argument
[all...]
H A DInputListener.h64 nsecs_t downTime; member in struct:android::NotifyKeyArgs
70 int32_t metaState, nsecs_t downTime);
98 nsecs_t downTime; member in struct:android::NotifyMotionArgs
107 float xPrecision, float yPrecision, nsecs_t downTime);
H A DInputDispatcher.cpp668 entry->metaState, entry->repeatCount + 1, entry->downTime);
816 "repeatCount=%d, downTime=%lld",
820 entry->repeatCount, entry->downTime);
893 "edgeFlags=0x%x, xPrecision=%f, yPrecision=%f, downTime=%lld",
899 entry->downTime);
1980 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime,
2026 motionEntry->downTime, motionEntry->eventTime,
2353 originalMotionEntry->downTime,
2386 "flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, downTime=%lld",
2389 args->metaState, args->downTime);
3924 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
3959 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 DInputDispatcher.h484 nsecs_t downTime; member in struct:android::InputDispatcher::KeyEntry
500 int32_t repeatCount, nsecs_t downTime);
520 nsecs_t downTime; member in struct:android::InputDispatcher::MotionEntry
530 float xPrecision, float yPrecision, nsecs_t downTime,
762 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::KeyMemento
772 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::MotionMemento
H A DInputReader.cpp2309 nsecs_t downTime = mDownTime; local
2330 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, keyMetaState, downTime);
2604 nsecs_t downTime = mDownTime; local
2704 mXPrecision, mYPrecision, downTime);
2713 mXPrecision, mYPrecision, downTime);
2725 mXPrecision, mYPrecision, downTime);
2739 mXPrecision, mYPrecision, downTime);
2752 mXPrecision, mYPrecision, downTime);
4427 mCurrentVirtualKey.downTime = when;
4474 nsecs_t downTime local
6210 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, 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 DInputReader.h1625 nsecs_t downTime; member in struct:android::TouchInputMapper::CurrentVirtualKeyState
1731 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerGesture
1773 downTime = 0;
1802 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerSimple
1811 downTime = 0;
1872 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java258 long downTime = SystemClock.uptimeMillis();
261 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE,
274 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
298 long downTime = SystemClock.uptimeMillis();
301 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
308 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL,
333 long downTime = SystemClock.uptimeMillis();
336 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
344 event = MotionEvent.obtain(downTime, eventTim
[all...]
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp82 const nsecs_t downTime = 3; local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime);
111 EXPECT_EQ(downTime, keyEvent->getDownTime());
145 const nsecs_t downTime = 3; local
169 downTime, eventTime, pointerCount,
196 EXPECT_EQ(downTime, motionEvent->getDownTime());
H A DStructLayout_test.cpp47 CHECK_OFFSET(InputMessage::Body::Key, downTime, 48);
59 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 48);
/frameworks/base/core/java/android/accessibilityservice/
H A DGestureDescription.java558 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime();
559 motionEvents.add(obtainMotionEvent(downTime, currentTime, MotionEvent.ACTION_MOVE,
575 long downTime = motionEvents.get(motionEvents.size() - 1).getDownTime();
579 motionEvents.add(obtainMotionEvent(downTime, currentTime, action,
601 long downTime = (action == MotionEvent.ACTION_DOWN) ? currentTime :
604 motionEvents.add(obtainMotionEvent(downTime, currentTime, action,
611 private static MotionEvent obtainMotionEvent(long downTime, long eventTime, int action, argument
624 return MotionEvent.obtain(downTime, eventTime, action, touchPointsSize,
/frameworks/native/include/input/
H A DInputTransport.h74 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Key
92 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Motion
220 nsecs_t downTime,
245 nsecs_t downTime,
H A DInput.h352 nsecs_t downTime,
417 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } argument
569 nsecs_t downTime,
/frameworks/base/core/java/android/view/
H A DKeyEvent.java1329 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1339 public KeyEvent(long downTime, long eventTime, int action, argument
1341 mDownTime = downTime;
1352 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1363 public KeyEvent(long downTime, long eventTime, int action, argument
1365 mDownTime = downTime;
1377 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1390 public KeyEvent(long downTime, long eventTime, int action, argument
1393 mDownTime = downTime;
1406 * @param downTime Th
1420 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument
1452 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument
1554 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...]
H A DMotionEvent.java1474 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); argument
1535 * @param downTime The time (in ms) when the user originally pressed down to start
1559 static public MotionEvent obtain(long downTime, long eventTime, argument
1568 downTime * NS_PER_MS, eventTime * NS_PER_MS,
1577 * @param downTime The time (in ms) when the user originally pressed down to start
1603 static public MotionEvent obtain(long downTime, long eventTime, argument
1614 return obtain(downTime, eventTime, action, pointerCount, pp,
1624 * @param downTime The time (in ms) when the user originally pressed down to start
1649 static public MotionEvent obtain(long downTime, long eventTime, int action, argument
1669 downTime * NS_PER_M
1709 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
1731 obtain(long downTime, long eventTime, int action, float x, float y, int metaState) argument
1922 setDownTime(long downTime) argument
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp253 nsecs_t downTime,
258 "downTime=%lld, eventTime=%lld",
261 downTime, eventTime);
280 msg.body.key.downTime = downTime;
299 nsecs_t downTime,
308 "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, "
312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount);
341 msg.body.motion.downTime = downTime;
243 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
285 publishMotionEvent( uint32_t seq, 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, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
[all...]
H A DInput.cpp63 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
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A 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/support/v7/appcompat/tests/src/android/support/v7/widget/
H A DListPopupWindowTest.java202 long downTime = SystemClock.uptimeMillis();
204 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
312 long downTime = SystemClock.uptimeMillis();
314 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 1);
H A DPopupMenuTest.java340 long downTime = SystemClock.uptimeMillis();
342 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
/frameworks/base/core/jni/
H A Dandroid_view_KeyEvent.cpp88 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); local
92 milliseconds_to_nanoseconds(downTime),
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecLocalDevice.java460 final long downTime = SystemClock.uptimeMillis();
468 injectKeyEvent(downTime, KeyEvent.ACTION_UP, mLastKeycode, 0);
475 injectKeyEvent(downTime, KeyEvent.ACTION_DOWN, keycode, keyRepeatCount);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp1596 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
1611 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
1628 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
1645 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
1662 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
1679 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
2079 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
2101 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
2827 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
2843 ASSERT_EQ(ARBITRARY_TIME, args.downTime);
[all...]
/frameworks/base/core/java/android/app/
H A DInstrumentation.java890 long downTime = event.getDownTime();
906 if (downTime == 0) {
907 downTime = eventTime;
909 KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, metaState,

Completed in 348 milliseconds

12