Home
last modified time | relevance | path

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

12

/frameworks/native/services/inputflinger/
DInputListener.cpp53 int32_t metaState, nsecs_t downTime) : in NotifyKeyArgs() argument
57 metaState(metaState), downTime(downTime) { in NotifyKeyArgs()
65 metaState(other.metaState), downTime(other.downTime) { in NotifyKeyArgs()
80 && downTime == rhs.downTime; in operator ==()
96 float xPrecision, float yPrecision, nsecs_t downTime, in NotifyMotionArgs() argument
104 xPrecision(xPrecision), yPrecision(yPrecision), downTime(downTime), in NotifyMotionArgs()
119 xPrecision(other.xPrecision), yPrecision(other.yPrecision), downTime(other.downTime), in NotifyMotionArgs()
147 && downTime == rhs.downTime in operator ==()
DInputClassifier.cpp259 void MotionClassifier::updateLastDownTime(int32_t deviceId, nsecs_t downTime) { in updateLastDownTime() argument
261 mLastDownTimes[deviceId] = downTime; in updateLastDownTime()
267 updateLastDownTime(args.deviceId, args.downTime); in classify()
321 const nsecs_t downTime = getValueForKey(mLastDownTimes, deviceId, static_cast<nsecs_t>(0)); in dump() local
323 deviceId, motionClassificationToString(classification), downTime); in dump()
/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/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java412 long downTime = events.get(0).getDownTime(); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes() local
414 hasEventTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
415 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
417 hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_continuationArrivesAfterDispatched_gestureCompletes()
452 long downTime = events.get(0).getDownTime(); in testContinuedGesture_withTwoTouchPoints_gestureCompletes() local
455 IS_ACTION_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
456 assertThat(events, everyItem(hasDownTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
458 IS_ACTION_POINTER_DOWN, hasEventTime(downTime))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
460 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
462 IS_ACTION_MOVE, hasEventTime(downTime + CONTINUED_LINE_INTERVAL * 2))); in testContinuedGesture_withTwoTouchPoints_gestureCompletes()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DGlobalActionPerformer.java109 final long downTime = SystemClock.uptimeMillis(); in sendDownAndUpKeyEvents() local
110 sendKeyEventIdentityCleared(keyCode, KeyEvent.ACTION_DOWN, downTime, downTime); in sendDownAndUpKeyEvents()
112 keyCode, KeyEvent.ACTION_UP, downTime, SystemClock.uptimeMillis()); in sendDownAndUpKeyEvents()
117 private void sendKeyEventIdentityCleared(int keyCode, int action, long downTime, long time) { in sendKeyEventIdentityCleared() argument
118 KeyEvent event = KeyEvent.obtain(downTime, time, action, keyCode, 0, 0, in sendKeyEventIdentityCleared()
/frameworks/native/services/inputflinger/dispatcher/
DEntry.cpp119 nsecs_t downTime) in KeyEntry() argument
130 downTime(downTime), in KeyEntry()
164 int32_t edgeFlags, float xPrecision, float yPrecision, nsecs_t downTime, in MotionEntry() argument
181 downTime(downTime), in MotionEntry()
DEntry.h93 nsecs_t downTime; member
109 nsecs_t downTime);
131 nsecs_t downTime; member
140 float yPrecision, nsecs_t downTime, uint32_t pointerCount,
DInputState.cpp222 memento.downTime = entry->downTime; in addKeyMemento()
235 memento.downTime = entry->downTime; in addMotionMemento()
260 0, memento.downTime)); in synthesizeCancelationEvents()
274 memento.yPrecision, memento.downTime, memento.pointerCount, in synthesizeCancelationEvents()
DInputState.h86 nsecs_t downTime; member
97 nsecs_t downTime; member
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_test.cpp40 static constexpr nsecs_t downTime = 2; in generateBasicMotionArgs() local
41 NotifyMotionArgs motionArgs(1/*sequenceNum*/, downTime/*eventTime*/, 3/*deviceId*/, in generateBasicMotionArgs()
46 downTime, {}/*videoFrames*/); in generateBasicMotionArgs()
DInputClassifier_test.cpp43 static constexpr nsecs_t downTime = 2; in generateBasicMotionArgs() local
44 NotifyMotionArgs motionArgs(1/*sequenceNum*/, downTime/*eventTime*/, 3/*deviceId*/, in generateBasicMotionArgs()
49 downTime, {}/*videoFrames*/); in generateBasicMotionArgs()
/frameworks/base/core/java/android/view/
DKeyEvent.java1382 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1384 mDownTime = downTime; in KeyEvent()
1406 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1408 mDownTime = downTime; in KeyEvent()
1433 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1436 mDownTime = downTime; in KeyEvent()
1463 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1466 mDownTime = downTime; in KeyEvent()
1495 public KeyEvent(long downTime, long eventTime, int action, in KeyEvent() argument
1498 mDownTime = downTime; in KeyEvent()
[all …]
DMotionEvent.java1612 private static native void nativeSetDownTimeNanos(long nativePtr, long downTime); in nativeSetDownTimeNanos() argument
1688 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1697 downTime * NS_PER_MS, eventTime * NS_PER_MS, in obtain()
1735 public static MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1740 return obtain(downTime, eventTime, action, pointerCount, pointerProperties, pointerCoords, in obtain()
1775 static public MotionEvent obtain(long downTime, long eventTime, in obtain() argument
1786 return obtain(downTime, eventTime, action, pointerCount, pp, in obtain()
1821 static public MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
1824 return obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in obtain()
1861 public static MotionEvent obtain(long downTime, long eventTime, int action, in obtain() argument
[all …]
/frameworks/native/services/inputflinger/include/
DInputListener.h76 nsecs_t downTime; member
82 int32_t scanCode, int32_t metaState, nsecs_t downTime);
122 nsecs_t downTime; member
133 float xPrecision, float yPrecision, nsecs_t downTime,
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp83 constexpr nsecs_t downTime = 3; in PublishAndConsumeKeyEvent() local
87 keyCode, scanCode, metaState, repeatCount, downTime, eventTime); in PublishAndConsumeKeyEvent()
113 EXPECT_EQ(downTime, keyEvent->getDownTime()); in PublishAndConsumeKeyEvent()
149 constexpr nsecs_t downTime = 3; in PublishAndConsumeMotionEvent() local
173 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
202 EXPECT_EQ(downTime, motionEvent->getDownTime()); in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp48 CHECK_OFFSET(InputMessage::Body::Key, downTime, 56); in TestInputMessageAlignment()
62 CHECK_OFFSET(InputMessage::Body::Motion, downTime, 56); in TestInputMessageAlignment()
/frameworks/native/services/inputflinger/reader/mapper/
DCursorInputMapper.cpp303 nsecs_t downTime = mDownTime; in sync() local
404 &pointerCoords, mXPrecision, mYPrecision, downTime, in sync()
415 mXPrecision, mYPrecision, downTime, /* videoFrames */ {}); in sync()
429 &pointerCoords, mXPrecision, mYPrecision, downTime, in sync()
444 &pointerCoords, mXPrecision, mYPrecision, downTime, in sync()
460 &pointerCoords, mXPrecision, mYPrecision, downTime, in sync()
DTouchInputMapper.h569 nsecs_t downTime; member
675 nsecs_t downTime; member
717 downTime = 0; in reset()
744 nsecs_t downTime; member
753 downTime = 0; in reset()
817 float xPrecision, float yPrecision, nsecs_t downTime);
DTouchInputMapper.cpp1805 mCurrentVirtualKey.downTime = when; in consumeRawTouches()
1852 nsecs_t downTime = mCurrentVirtualKey.downTime; in dispatchVirtualKey() local
1858 scanCode, metaState, downTime); in dispatchVirtualKey()
2452 mPointerGesture.downTime); in dispatchPointerGestures()
2471 0, mPointerGesture.downTime); in dispatchPointerGestures()
2485 mPointerGesture.downTime); in dispatchPointerGestures()
2497 mPointerGesture.downTime = when; in dispatchPointerGestures()
2505 0, mPointerGesture.downTime); in dispatchPointerGestures()
2516 mPointerGesture.currentGestureIdBits, -1, 0, 0, mPointerGesture.downTime); in dispatchPointerGestures()
2541 mPointerGesture.downTime, /* videoFrames */ {}); in dispatchPointerGestures()
[all …]
/frameworks/native/libs/input/
DInputTransport.cpp156 msg->body.key.downTime = body.key.downTime; in getSanitizedCopy()
185 msg->body.motion.downTime = body.motion.downTime; in getSanitizedCopy()
429 nsecs_t downTime, in publishKeyEvent() argument
442 downTime, eventTime); in publishKeyEvent()
462 msg.body.key.downTime = downTime; in publishKeyEvent()
483 nsecs_t downTime, in publishMotionEvent() argument
504 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
535 msg.body.motion.downTime = downTime; in publishMotionEvent()
1125 msg->body.key.downTime, in initializeKeyEvent()
1153 msg->body.motion.downTime, in initializeMotionEvent()
DInput.cpp77 nsecs_t downTime, in initialize() argument
86 mDownTime = downTime; in initialize()
253 nsecs_t downTime, in initialize() argument
270 mDownTime = downTime; in initialize()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
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/native/include/input/
DInputTransport.h89 nsecs_t downTime __attribute__((aligned(8))); member
111 nsecs_t downTime __attribute__((aligned(8))); member
253 nsecs_t downTime,
280 nsecs_t downTime,
DInput.h397 nsecs_t downTime,
464 inline void setDownTime(nsecs_t downTime) { mDownTime = downTime; } in setDownTime() argument
618 nsecs_t downTime,
/frameworks/base/core/jni/
Dandroid_view_KeyEvent.cpp91 jlong downTime = env->GetLongField(eventObj, gKeyEventClassInfo.mDownTime); in android_view_KeyEvent_toNative() local
96 milliseconds_to_nanoseconds(downTime), in android_view_KeyEvent_toNative()

12