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

12

/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DAppCompatMenuItemShortcutsTest.java57 final long downTime = SystemClock.uptimeMillis();
64 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN,
72 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN,
80 keyEventToSend = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN,
H A DBaseKeyboardShortcutsTestCase.java57 final long downTime = SystemClock.uptimeMillis();
58 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN,
63 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP,
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DTouchUtils.java42 long downTime = SystemClock.uptimeMillis();
45 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
52 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE,
58 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
73 long downTime = SystemClock.uptimeMillis();
76 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
83 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL,
100 long downTime = SystemClock.uptimeMillis();
103 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
110 event = MotionEvent.obtain(downTime, eventTim
[all...]
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java304 final long downTime = SystemClock.uptimeMillis();
306 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen);
307 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen);
308 injectUpEvent(instrumentation, downTime, false, xOnScreen, yOnScreen);
314 private static long injectDownEvent(Instrumentation instrumentation, long downTime, argument
317 downTime, downTime, MotionEvent.ACTION_DOWN, xOnScreen, yOnScreen, 1);
321 return downTime;
324 private static void injectMoveEventForTap(Instrumentation instrumentation, long downTime, argument
326 MotionEvent eventMove = MotionEvent.obtain(downTime, downTim
334 injectUpEvent(Instrumentation instrumentation, long downTime, boolean useCurrentEventTime, int xOnScreen, int yOnScreen) argument
[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);
890 "edgeFlags=0x%x, xPrecision=%f, yPrecision=%f, downTime=%lld",
896 entry->downTime);
1985 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime,
2031 motionEntry->downTime, motionEntry->eventTime,
2358 originalMotionEntry->downTime,
2391 "flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, downTime=%lld",
2394 args->metaState, args->downTime);
3930 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
3965 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
/frameworks/support/wear/tests/src/android/support/wear/widget/
H A DScrollManagerTest.java124 long downTime = SystemClock.uptimeMillis();
133 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
140 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0);
145 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
151 long downTime = SystemClock.uptimeMillis();
163 MotionEvent event = MotionEvent.obtain(downTime, eventTime,
171 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0);
176 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
/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/support/design/tests/src/android/support/design/widget/
H A DAppBarHorizontalScrollingTest.java97 long downTime = SystemClock.uptimeMillis();
99 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DMotionEventInjectorTest.java391 long downTime = events.get(0).getDownTime();
393 hasEventTime(downTime)));
394 assertThat(events, everyItem(hasDownTime(downTime)));
396 hasEventTime(downTime + CONTINUED_LINE_INTERVAL)));
431 long downTime = events.get(0).getDownTime();
434 IS_ACTION_DOWN, hasEventTime(downTime)));
435 assertThat(events, everyItem(hasDownTime(downTime)));
437 IS_ACTION_POINTER_DOWN, hasEventTime(downTime)));
439 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL)));
441 IS_ACTION_MOVE, hasEventTime(downTime
748 MotionEventMatcher(long downTime, long eventTime, int actionMasked, int x, int y) argument
851 hasDownTime(final long downTime) argument
[all...]
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp82 const nsecs_t downTime = 3; local
86 keyCode, scanCode, metaState, repeatCount, downTime, eventTime);
112 EXPECT_EQ(downTime, keyEvent->getDownTime());
147 const nsecs_t downTime = 3; local
171 downTime, eventTime, pointerCount,
199 EXPECT_EQ(downTime, motionEvent->getDownTime());
H A DStructLayout_test.cpp48 CHECK_OFFSET(InputMessage::Body::Key, downTime, 56);
61 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 56);
/frameworks/native/include/input/
H A DInputTransport.h75 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Key
94 nsecs_t downTime __attribute__((aligned(8))); member in struct:android::InputMessage::Body::Motion
222 nsecs_t downTime,
248 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.java1332 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1342 public KeyEvent(long downTime, long eventTime, int action, argument
1344 mDownTime = downTime;
1355 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1366 public KeyEvent(long downTime, long eventTime, int action, argument
1368 mDownTime = downTime;
1380 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis})
1393 public KeyEvent(long downTime, long eventTime, int action, argument
1396 mDownTime = downTime;
1409 * @param downTime Th
1423 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument
1455 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument
1557 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.java1551 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); argument
1600 * @param downTime The time (in ms) when the user originally pressed down to start
1624 static public MotionEvent obtain(long downTime, long eventTime, argument
1633 downTime * NS_PER_MS, eventTime * NS_PER_MS,
1642 * @param downTime The time (in ms) when the user originally pressed down to start
1668 static public MotionEvent obtain(long downTime, long eventTime, argument
1679 return obtain(downTime, eventTime, action, pointerCount, pp,
1689 * @param downTime The time (in ms) when the user originally pressed down to start
1714 static public MotionEvent obtain(long downTime, long eventTime, int action, argument
1734 downTime * NS_PER_M
1774 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
1796 obtain(long downTime, long eventTime, int action, float x, float y, int metaState) argument
2001 setDownTime(long downTime) argument
[all...]
/frameworks/native/libs/input/
H A DInputTransport.cpp252 nsecs_t downTime,
257 "downTime=%lld, eventTime=%lld",
260 downTime, eventTime);
279 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);
342 msg.body.motion.downTime = downTime;
242 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
284 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t displayId, 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.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/
H A DListPopupWindowTest.java222 long downTime = SystemClock.uptimeMillis();
224 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedTapX, emulatedTapY, 1);
332 long downTime = SystemClock.uptimeMillis();
334 downTime, downTime, MotionEvent.ACTION_DOWN, emulatedX, emulatedStartY, 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/base/services/tests/servicestests/src/com/android/server/wm/
H A DDisplayContentTests.java440 final long downTime = SystemClock.uptimeMillis();
445 downTime,

Completed in 700 milliseconds

12