Home
last modified time | relevance | path

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

/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java90 long eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local
93 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
104 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
105 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener()
114 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
115 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
DPopupWindowTest.java1568 long eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor() local
1569 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in testSetTouchInterceptor()
1575 eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor()
1576 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in testSetTouchInterceptor()
1582 eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor()
1583 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); in testSetTouchInterceptor()
DTextViewTest.java8625 long eventTime = SystemClock.uptimeMillis(); in createMouseHoverEvent() local
8632 return MotionEvent.obtain(0, eventTime, MotionEvent.ACTION_HOVER_MOVE, 1, pointerIds, in createMouseHoverEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java60 final long eventTime = SystemClock.uptimeMillis(); in touchUp() local
61 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_UP, x, y); in touchUp()
66 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, in getMotionEvent() argument
79 return MotionEvent.obtain(downTime, eventTime, action, 1, in getMotionEvent()
DLightBarTests.java147 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local
148 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java171 long eventTime = event.getEventTime(); in sendKey() local
183 if (eventTime == 0) { in sendKey()
184 eventTime = SystemClock.uptimeMillis(); in sendKey()
187 downTime = eventTime; in sendKey()
190 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
DCtsMouseUtil.java58 final long eventTime = SystemClock.uptimeMillis(); in obtainMouseEvent() local
63 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainMouseEvent()
DCtsTouchUtils.java312 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectMoveEventsForDrag() local
317 int historyEventCount = (int) ((eventTime - prevEventTime) / 10); in injectMoveEventsForDrag()
325 downTime, eventTime, MotionEvent.ACTION_MOVE, moveX, moveY, 1); in injectMoveEventsForDrag()
335 final long deltaTime = (eventTime - prevEventTime); in injectMoveEventsForDrag()
363 prevEventTime = eventTime; in injectMoveEventsForDrag()
373 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectUpEvent() local
375 downTime, eventTime, MotionEvent.ACTION_UP, xOnScreen, yOnScreen, 1); in injectUpEvent()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java171 long eventTime = event.getEventTime(); in sendKey() local
183 if (eventTime == 0) { in sendKey()
184 eventTime = SystemClock.uptimeMillis(); in sendKey()
187 downTime = eventTime; in sendKey()
190 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
DCtsMouseUtil.java58 final long eventTime = SystemClock.uptimeMillis(); in obtainMouseEvent() local
63 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainMouseEvent()
DCtsTouchUtils.java311 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectMoveEventsForDrag() local
316 int historyEventCount = (int) ((eventTime - prevEventTime) / 10); in injectMoveEventsForDrag()
324 downTime, eventTime, MotionEvent.ACTION_MOVE, moveX, moveY, 1); in injectMoveEventsForDrag()
334 final long deltaTime = (eventTime - prevEventTime); in injectMoveEventsForDrag()
362 prevEventTime = eventTime; in injectMoveEventsForDrag()
372 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectUpEvent() local
374 downTime, eventTime, MotionEvent.ACTION_UP, xOnScreen, yOnScreen, 1); in injectUpEvent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java191 final long eventTime = SystemClock.uptimeMillis(); in wakeUpOrBust() local
193 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in wakeUpOrBust()
198 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in wakeUpOrBust()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java140 long eventTime = SystemClock.uptimeMillis(); in testOnTouchEvent() local
141 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
143 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
145 final MotionEvent event3 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java201 final long eventTime = SystemClock.uptimeMillis(); in dispatchMotionEventToActivity() local
202 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, in dispatchMotionEventToActivity()
213 final long eventTime = SystemClock.uptimeMillis(); in dispatchMultiTouchMotionEventToActivity() local
227 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, pointerCount, in dispatchMultiTouchMotionEventToActivity()
DVelocityTrackerTest.java168 final long eventTime = downTime + i * 10; in testUsesRawCoordinates() local
170 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, 0, 0, 0); in testUsesRawCoordinates()
DPointerCaptureTest.java145 final long eventTime = SystemClock.uptimeMillis(); in obtainRelativeMouseEvent() local
146 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainRelativeMouseEvent()
DTooltipTest.java210 final long eventTime = SystemClock.uptimeMillis(); in obtainMotionEvent() local
213 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, in obtainMotionEvent()
DViewTest.java494 long eventTime = SystemClock.uptimeMillis(); in testMouseEventCallsGetPointerIcon() local
504 MotionEvent event = MotionEvent.obtain(0, eventTime, MotionEvent.ACTION_HOVER_MOVE, in testMouseEventCallsGetPointerIcon()
2559 long eventTime = downTime; in testOnTrackballEvent() local
2560 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testOnTrackballEvent()
2580 long eventTime = downTime; in testDispatchTrackballMoveEvent() local
2581 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testDispatchTrackballMoveEvent()
2592 eventTime = downTime; in testDispatchTrackballMoveEvent()
2593 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, 1, 2, 0); in testDispatchTrackballMoveEvent()
3083 long eventTime = SystemClock.uptimeMillis(); in testDispatchTouchEvent() local
3084 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testDispatchTouchEvent()
[all …]
DMotionEventTest.java588 long eventTime = SystemClock.uptimeMillis(); in testGetHistorySize() local
598 mMotionEvent2.addBatch(eventTime, x, y, pressure, size, 0); in testGetHistorySize()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp53 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
80 outMsg->body.motion.eventTime = msg.body.motion.eventTime; in sanitizeMessage()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java200 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local
201 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java224 long eventTime = event.getHistoricalEventTime(h); in splitBatchedMotionEvent() local
232 MotionEvent.obtain(event.getDownTime(), eventTime, event.getAction(), in splitBatchedMotionEvent()
/cts/tests/app/src/android/app/cts/
DDialogTest.java468 long eventTime = downTime; in sendTouchEvent() local
470 eventTime += 1; in sendTouchEvent()
472 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in sendTouchEvent()
535 long eventTime = SystemClock.uptimeMillis(); in testTrackballEvent() local
536 final MotionEvent trackBallEvent = MotionEvent.obtain(eventTime, eventTime, in testTrackballEvent()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java512 final long eventTime = SystemClock.uptimeMillis(); in touchAndCancelOnDisplayCenter() local
516 injectMotion(downTime, eventTime, MotionEvent.ACTION_CANCEL, tapX, tapY, displayId); in touchAndCancelOnDisplayCenter()
537 private static void injectMotion(long downTime, long eventTime, int action, in injectMotion() argument
539 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, in injectMotion()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndTest.java1031 final long eventTime = isFirstHoverEvent ? SystemClock.uptimeMillis() : downTime; in injectHoverEvent() local
1032 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_HOVER_MOVE, in injectHoverEvent()