/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
H A D | BaseKeyboardShortcutsTestCase.java | 42 final long downTime = SystemClock.uptimeMillis(); 43 final KeyEvent downEvent = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, 48 final KeyEvent upEvent = new KeyEvent(downTime, downTime + 500, KeyEvent.ACTION_UP,
|
/frameworks/native/services/inputflinger/ |
H A D | InputListener.cpp | 48 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 D | InputListener.h | 64 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 D | InputDispatcher.cpp | 668 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); 1956 keyEntry->metaState, keyEntry->repeatCount, keyEntry->downTime, 2002 motionEntry->downTime, motionEntry->eventTime, 2329 originalMotionEntry->downTime, 2362 "flags=0x%x, keyCode=0x%x, scanCode=0x%x, metaState=0x%x, downTime=%lld", 2365 args->metaState, args->downTime); 3900 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 3935 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 D | InputDispatcher.h | 478 nsecs_t downTime; member in struct:android::InputDispatcher::KeyEntry 494 int32_t repeatCount, nsecs_t downTime); 514 nsecs_t downTime; member in struct:android::InputDispatcher::MotionEntry 524 float xPrecision, float yPrecision, nsecs_t downTime, 756 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::KeyMemento 766 nsecs_t downTime; member in struct:android::InputDispatcher::InputState::MotionMemento
|
H A D | InputReader.cpp | 2267 nsecs_t downTime = mDownTime; local 2292 AKEY_EVENT_FLAG_FROM_SYSTEM, keyCode, scanCode, newMetaState, downTime); 2548 nsecs_t downTime = mDownTime; local 2646 mXPrecision, mYPrecision, downTime); 2655 mXPrecision, mYPrecision, downTime); 2667 mXPrecision, mYPrecision, downTime); 2681 mXPrecision, mYPrecision, downTime); 2694 mXPrecision, mYPrecision, downTime); 4270 mCurrentVirtualKey.downTime = when; 4317 nsecs_t downTime local 6034 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 D | InputReader.h | 1595 nsecs_t downTime; member in struct:android::TouchInputMapper::CurrentVirtualKeyState 1701 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerGesture 1743 downTime = 0; 1772 nsecs_t downTime; member in struct:android::TouchInputMapper::PointerSimple 1781 downTime = 0; 1842 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
|
/frameworks/base/test-runner/src/android/test/ |
H A D | TouchUtils.java | 252 long downTime = SystemClock.uptimeMillis(); 255 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 262 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 268 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 292 long downTime = SystemClock.uptimeMillis(); 295 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 302 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, 327 long downTime = SystemClock.uptimeMillis(); 330 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 338 event = MotionEvent.obtain(downTime, eventTim [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
H A D | ItemTouchHelperTest.java | 268 long downTime = SystemClock.uptimeMillis(); 271 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 279 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 285 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); 309 long downTime = SystemClock.uptimeMillis(); 312 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 319 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, 344 long downTime = SystemClock.uptimeMillis(); 347 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 354 event = MotionEvent.obtain(downTime, eventTim [all...] |
/frameworks/native/libs/input/tests/ |
H A D | InputPublisherAndConsumer_test.cpp | 82 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 D | StructLayout_test.cpp | 47 CHECK_OFFSET(InputMessage::Body::Key, downTime, 48); 59 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 48);
|
/frameworks/native/include/input/ |
H A D | InputTransport.h | 74 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 D | Input.h | 333 nsecs_t downTime, 398 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } argument 550 nsecs_t downTime,
|
/frameworks/base/core/java/android/view/ |
H A D | KeyEvent.java | 1295 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1305 public KeyEvent(long downTime, long eventTime, int action, argument 1307 mDownTime = downTime; 1318 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1329 public KeyEvent(long downTime, long eventTime, int action, argument 1331 mDownTime = downTime; 1343 * @param downTime The time (in {@link android.os.SystemClock#uptimeMillis}) 1356 public KeyEvent(long downTime, long eventTime, int action, argument 1359 mDownTime = downTime; 1372 * @param downTime Th 1386 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags) argument 1418 KeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source) argument 1520 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 D | MotionEvent.java | 1409 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); argument 1470 * @param downTime The time (in ms) when the user originally pressed down to start 1494 static public MotionEvent obtain(long downTime, long eventTime, argument 1503 downTime * NS_PER_MS, eventTime * NS_PER_MS, 1512 * @param downTime The time (in ms) when the user originally pressed down to start 1538 static public MotionEvent obtain(long downTime, long eventTime, argument 1549 return obtain(downTime, eventTime, action, pointerCount, pp, 1559 * @param downTime The time (in ms) when the user originally pressed down to start 1584 static public MotionEvent obtain(long downTime, long eventTime, int action, argument 1604 downTime * NS_PER_M 1644 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 1666 obtain(long downTime, long eventTime, int action, float x, float y, int metaState) argument 1857 setDownTime(long downTime) argument [all...] |
/frameworks/native/libs/input/ |
H A D | InputTransport.cpp | 249 nsecs_t downTime, 254 "downTime=%lld, eventTime=%lld", 257 downTime, eventTime); 276 msg.body.key.downTime = downTime; 295 nsecs_t downTime, 304 "xPrecision=%f, yPrecision=%f, downTime=%lld, eventTime=%lld, " 308 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); 337 msg.body.motion.downTime = downTime; 239 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 281 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 D | Input.cpp | 63 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 D | InteractionController.java | 711 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/base/core/jni/ |
H A D | android_view_KeyEvent.cpp | 88 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); local 92 milliseconds_to_nanoseconds(downTime),
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecLocalDevice.java | 460 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 D | InputReader_test.cpp | 1592 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 1607 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 1624 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 1641 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 1658 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 1675 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 2075 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 2097 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 2823 ASSERT_EQ(ARBITRARY_TIME, args.downTime); 2839 ASSERT_EQ(ARBITRARY_TIME, args.downTime); [all...] |
/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 879 long downTime = event.getDownTime(); 895 if (downTime == 0) { 896 downTime = eventTime; 898 KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, metaState,
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | ScreenMagnifier.java | 811 final long downTime = event.getDownTime() + offset; 813 return MotionEvent.obtain(downTime, eventTime,
|
H A D | AccessibilityManagerService.java | 2839 final long downTime = SystemClock.uptimeMillis(); 2840 KeyEvent down = KeyEvent.obtain(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0, 0, 2849 KeyEvent up = KeyEvent.obtain(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0, 0,
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecyclerViewLayoutTest.java | 1167 long downTime = SystemClock.uptimeMillis(); 1176 MotionEvent event = MotionEvent.obtain(downTime, eventTime, 1183 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); 1188 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0);
|