/frameworks/native/services/inputflinger/ |
D | InputListener.cpp | 56 int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime) in NotifyKeyArgs() argument 67 downTime(downTime) {} in NotifyKeyArgs() 80 downTime(other.downTime) {} in NotifyKeyArgs() 86 scanCode == rhs.scanCode && metaState == rhs.metaState && downTime == rhs.downTime; in operator ==() 104 nsecs_t downTime, in NotifyMotionArgs() argument 123 downTime(downTime), in NotifyMotionArgs() 149 downTime(other.downTime), in NotifyMotionArgs() 172 downTime == rhs.downTime && videoFrames == rhs.videoFrames; in operator ==()
|
D | InputClassifier.cpp | 259 void MotionClassifier::updateLastDownTime(int32_t deviceId, nsecs_t downTime) { in updateLastDownTime() argument 261 mLastDownTimes[deviceId] = downTime; in updateLastDownTime() 273 updateLastDownTime(args.deviceId, args.downTime); in classify() 327 const nsecs_t downTime = getValueForKey(mLastDownTimes, deviceId, static_cast<nsecs_t>(0)); in dump() local 329 deviceId, motionClassificationToString(classification), downTime); in dump()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 276 long downTime = SystemClock.uptimeMillis(); in tapView() local 279 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in tapView() 286 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in tapView() 292 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in tapView() 316 long downTime = SystemClock.uptimeMillis(); in touchAndCancelView() local 319 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in touchAndCancelView() 326 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, in touchAndCancelView() 351 long downTime = SystemClock.uptimeMillis(); in clickView() local 354 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in clickView() 362 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in clickView() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 415 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() local 417 hasEventTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 418 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 420 hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() 455 long downTime = events.get(0).getDownTime(); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() local 458 IS_ACTION_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 459 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 461 IS_ACTION_POINTER_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 463 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() 465 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL * 2))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorCursorDragTest.java | 654 long downTime = sTicker.addAndGet(10_000); in tapAtPoint() local 655 dispatchTouchEvent(tv, downEvent(tv, downTime, downTime, x, y)); in tapAtPoint() 656 dispatchTouchEvent(tv, upEvent(tv, downTime, downTime + 1, x, y)); in tapAtPoint() 665 long downTime = sTicker.addAndGet(10_000); in dragDownUntilLineChange() local 666 long eventTime = downTime; in dragDownUntilLineChange() 668 dispatchTouchEvent(view, downEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() 669 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX + 50, startY)); in dragDownUntilLineChange() 670 dispatchTouchEvent(view, moveEvent(view, downTime, eventTime++, startX, startY)); in dragDownUntilLineChange() 673 MotionEvent ev = moveEvent(view, downTime, eventTime++, startX, startY + i * 5); in dragDownUntilLineChange() 683 dispatchTouchEvent(view, upEvent(view, downTime, eventTime, startX, startY)); in dragDownUntilLineChange() [all …]
|
D | EditorTouchStateTest.java | 492 private static MotionEvent downEvent(long downTime, long eventTime, float x, float y) { in downEvent() argument 493 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); in downEvent() 496 private static MotionEvent upEvent(long downTime, long eventTime, float x, float y) { in upEvent() argument 497 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in upEvent() 500 private static MotionEvent moveEvent(long downTime, long eventTime, float x, float y) { in moveEvent() argument 501 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, x, y, 0); in moveEvent() 504 private static MotionEvent cancelEvent(long downTime, long eventTime, float x, float y) { in cancelEvent() argument 505 return MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_CANCEL, x, y, 0); in cancelEvent()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | Entry.cpp | 35 entry.downTime, in verifiedKeyEventFromKeyEntry() 52 entry.downTime, in verifiedMotionEventFromMotionEntry() 136 nsecs_t downTime) in KeyEntry() argument 147 downTime(downTime), in KeyEntry() 182 float xCursorPosition, float yCursorPosition, nsecs_t downTime, in MotionEntry() argument 201 downTime(downTime), in MotionEntry()
|
D | InputState.cpp | 227 memento.downTime = entry.downTime; in addKeyMemento() 242 memento.downTime = entry.downTime; in addMotionMemento() 278 memento.downTime)); in synthesizeCancelationEvents() 292 memento.yCursorPosition, memento.downTime, in synthesizeCancelationEvents() 342 memento.yCursorPosition, memento.downTime, in synthesizePointerDownEvents()
|
D | Entry.h | 133 nsecs_t downTime; member 148 int32_t metaState, int32_t repeatCount, nsecs_t downTime); 172 nsecs_t downTime; member 181 float yCursorPosition, nsecs_t downTime, uint32_t pointerCount,
|
D | InputState.h | 88 nsecs_t downTime; member 101 nsecs_t downTime; member
|
/frameworks/native/services/inputflinger/tests/ |
D | InputClassifierConverter_test.cpp | 40 static constexpr nsecs_t downTime = 2; in generateBasicMotionArgs() local 41 NotifyMotionArgs motionArgs(1 /*sequenceNum*/, downTime /*eventTime*/, 3 /*deviceId*/, in generateBasicMotionArgs() 48 AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, in generateBasicMotionArgs()
|
D | InputClassifier_test.cpp | 43 static constexpr nsecs_t downTime = 2; in generateBasicMotionArgs() local 44 NotifyMotionArgs motionArgs(1 /*sequenceNum*/, downTime /*eventTime*/, 3 /*deviceId*/, in generateBasicMotionArgs() 51 AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, in generateBasicMotionArgs()
|
/frameworks/base/core/java/android/view/ |
D | KeyEvent.java | 1386 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1389 mDownTime = downTime; in KeyEvent() 1411 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1414 mDownTime = downTime; in KeyEvent() 1439 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1443 mDownTime = downTime; in KeyEvent() 1470 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1474 mDownTime = downTime; in KeyEvent() 1503 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument 1507 mDownTime = downTime; in KeyEvent() [all …]
|
D | MotionEvent.java | 1624 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); in nativeSetDownTimeNanos() argument 1698 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument 1706 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain() 1744 public static MotionEvent obtain(long downTime, long eventTime, in obtain() argument 1749 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain() 1784 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument 1795 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain() 1830 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument 1833 return obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in obtain() 1870 public static MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | SystemActionPerformer.java | 313 final long downTime = SystemClock.uptimeMillis(); in sendDownAndUpKeyEvents() local 314 sendKeyEventIdentityCleared(keyCode, KeyEvent.ACTION_DOWN, downTime, downTime); in sendDownAndUpKeyEvents() 316 keyCode, KeyEvent.ACTION_UP, downTime, SystemClock.uptimeMillis()); in sendDownAndUpKeyEvents() 321 private void sendKeyEventIdentityCleared(int keyCode, int action, long downTime, long time) { in sendKeyEventIdentityCleared() argument 322 KeyEvent event = KeyEvent.obtain(downTime, time, action, keyCode, 0, 0, in sendKeyEventIdentityCleared()
|
/frameworks/native/services/inputflinger/include/ |
D | InputListener.h | 74 nsecs_t downTime; member 80 int32_t keyCode, int32_t scanCode, int32_t metaState, nsecs_t downTime); 121 nsecs_t downTime; member 132 float yCursorPosition, nsecs_t downTime,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | SystemActions.java | 304 final long downTime = SystemClock.uptimeMillis(); in sendDownAndUpKeyEvents() local 305 sendKeyEventIdentityCleared(keyCode, KeyEvent.ACTION_DOWN, downTime, downTime); in sendDownAndUpKeyEvents() 307 keyCode, KeyEvent.ACTION_UP, downTime, SystemClock.uptimeMillis()); in sendDownAndUpKeyEvents() 310 private void sendKeyEventIdentityCleared(int keyCode, int action, long downTime, long time) { in sendKeyEventIdentityCleared() argument 311 KeyEvent event = KeyEvent.obtain(downTime, time, action, keyCode, 0, 0, in sendKeyEventIdentityCleared()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | MotionEventMatcher.java | 37 MotionEventMatcher(long downTime, long eventTime, int actionMasked, int x, int y) { in MotionEventMatcher() argument 38 mDownTime = downTime; in MotionEventMatcher()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | CursorInputMapper.cpp | 281 nsecs_t downTime = mDownTime; in sync() local 383 xCursorPosition, yCursorPosition, downTime, in sync() 393 xCursorPosition, yCursorPosition, downTime, in sync() 408 xCursorPosition, yCursorPosition, downTime, in sync() 423 yCursorPosition, downTime, /* videoFrames */ {}); in sync() 437 yCursorPosition, downTime, /* videoFrames */ {}); in sync()
|
D | TouchInputMapper.h | 505 nsecs_t downTime; member 611 nsecs_t downTime; member 653 downTime = 0; in reset() 680 nsecs_t downTime; member 689 downTime = 0; in reset() 749 int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime);
|
/frameworks/native/libs/input/tests/ |
D | InputPublisherAndConsumer_test.cpp | 89 constexpr nsecs_t downTime = 3; in PublishAndConsumeKeyEvent() local 93 flags, keyCode, scanCode, metaState, repeatCount, downTime, in PublishAndConsumeKeyEvent() 122 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent() 166 constexpr nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local 192 yCursorPosition, downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent() 231 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
|
D | StructLayout_test.cpp | 50 CHECK_OFFSET(InputMessage::Body::Key, downTime, 88); in TestInputMessageAlignment() 66 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 88); in TestInputMessageAlignment()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | InteractionController.java | 709 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/native/include/input/ |
D | InputTransport.h | 98 nsecs_t downTime __attribute__((aligned(8))); member 119 nsecs_t downTime __attribute__((aligned(8))); member 284 int32_t repeatCount, nsecs_t downTime, nsecs_t eventTime); 300 float xCursorPosition, float yCursorPosition, nsecs_t downTime,
|
/frameworks/native/libs/input/ |
D | InputTransport.cpp | 167 msg->body.key.downTime = body.key.downTime; in getSanitizedCopy() 200 msg->body.motion.downTime = body.motion.downTime; in getSanitizedCopy() 444 int32_t metaState, int32_t repeatCount, nsecs_t downTime, in publishKeyEvent() argument 456 metaState, repeatCount, downTime, eventTime); in publishKeyEvent() 478 msg.body.key.downTime = downTime; in publishKeyEvent() 489 float yCursorPosition, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, in publishMotionEvent() argument 508 xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent() 545 msg.body.motion.downTime = downTime; in publishMotionEvent() 1168 msg->body.key.metaState, msg->body.key.repeatCount, msg->body.key.downTime, in initializeKeyEvent() 1194 msg->body.motion.yCursorPosition, msg->body.motion.downTime, in initializeMotionEvent()
|