Home
last modified time | relevance | path

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

12

/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.java281 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local
282 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java123 long eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local
126 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
137 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
138 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener()
147 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
148 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
DPopupMenuTest.java481 long eventTime = SystemClock.uptimeMillis(); in injectMouseEvent() local
482 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in injectMouseEvent()
DPopupWindowTest.java1614 long eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor() local
1615 MotionEvent event = MotionEvent.obtain(downTime, eventTime, in testSetTouchInterceptor()
1621 eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor()
1622 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, x, y, 0); in testSetTouchInterceptor()
1628 eventTime = SystemClock.uptimeMillis(); in testSetTouchInterceptor()
1629 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, x, y, 0); in testSetTouchInterceptor()
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp55 jlong eventTime = env->CallLongMethod(obj, gMotionEventMethodIds.getEventTime) * NS_PER_MS; in nativeMotionEventTest() local
69 ASSERT(eventTime == AMotionEvent_getEventTime(event), in nativeMotionEventTest()
71 eventTime); in nativeMotionEventTest()
96 jlong eventTime = env->CallLongMethod(obj, gKeyEventMethodIds.getEventTime) * NS_PER_MS; in nativeKeyEventTest() local
109 ASSERT(eventTime == AKeyEvent_getEventTime(event), in nativeKeyEventTest()
111 eventTime); in nativeKeyEventTest()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java68 final long eventTime = SystemClock.uptimeMillis(); in touchAndCancelOnDisplayCenterSync() local
72 injectMotion(downTime, eventTime, MotionEvent.ACTION_CANCEL, tapX, tapY, displayId, in touchAndCancelOnDisplayCenterSync()
135 public static void injectMotion(long downTime, long eventTime, int action, in injectMotion() argument
137 injectMotion(downTime, eventTime, action, x, y, displayId, sync, in injectMotion()
141 public static void injectMotion(long downTime, long eventTime, int action, in injectMotion() argument
143 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, in injectMotion()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java177 long eventTime = event.getEventTime(); in sendKey() local
189 if (eventTime == 0) { in sendKey()
190 eventTime = SystemClock.uptimeMillis(); in sendKey()
193 downTime = eventTime; in sendKey()
196 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.java408 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectMoveEventsForDrag() local
413 int historyEventCount = (int) ((eventTime - prevEventTime) / 10); in injectMoveEventsForDrag()
421 downTime, eventTime, MotionEvent.ACTION_MOVE, moveX, moveY, 1); in injectMoveEventsForDrag()
431 final long deltaTime = (eventTime - prevEventTime); in injectMoveEventsForDrag()
459 prevEventTime = eventTime; in injectMoveEventsForDrag()
499 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectUpEvent() local
501 downTime, eventTime, MotionEvent.ACTION_UP, xOnScreen, yOnScreen, 1); in injectUpEvent()
/cts/tests/tests/view/src/android/view/cts/
DViewUnbufferedTest.java112 ReceivedEvent(long eventTime, int action, int x, int y, int source) { in ReceivedEvent() argument
113 mEventTime = eventTime; in ReceivedEvent()
196 final long eventTime = SystemClock.uptimeMillis(); in sendPointerEvents() local
197 final MotionEvent moveEvent = MotionEvent.obtain(downTime, eventTime, in sendPointerEvents()
222 final long eventTime = SystemClock.uptimeMillis(); in sendJoystickEvents() local
223 final MotionEvent moveEvent = MotionEvent.obtain(eventTime, eventTime, in sendJoystickEvents()
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()
DViewTest.java498 long eventTime = SystemClock.uptimeMillis(); in testMouseEventCallsGetPointerIcon() local
508 MotionEvent event = MotionEvent.obtain(0, eventTime, MotionEvent.ACTION_HOVER_MOVE, in testMouseEventCallsGetPointerIcon()
2370 long eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled() local
2371 MotionEvent downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled()
2374 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled()
2375 MotionEvent upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled()
2392 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled()
2393 downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled()
2396 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled()
2397 upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled()
[all …]
DTooltipTest.java210 final long eventTime = SystemClock.uptimeMillis(); in obtainMotionEvent() local
213 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, in obtainMotionEvent()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt255 val eventTime = dragStartTime + (dragDurationMs * i / moveEventCount) in injectMoveEventsForDrag() constant
256 injectEvent(uiAutomation, MotionEvent.ACTION_MOVE, downTime, eventTime, moveX, moveY) in injectMoveEventsForDrag()
295 eventTime: Long, in injectUpEvent()
300 downTime, eventTime, action, xOnScreen.toFloat(), yOnScreen.toFloat(), 1) in injectUpEvent()
/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/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java210 final long eventTime = SystemClock.uptimeMillis(); in wakeUpOrBust() local
212 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in wakeUpOrBust()
217 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in wakeUpOrBust()
/cts/tests/input/src/android/input/cts/
DIncompleteMotionTest.kt144 val eventTime = when (action) { in sendEvent() constant
148 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp54 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
83 outMsg->body.motion.eventTime = msg.body.motion.eventTime; in sanitizeMessage()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java202 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local
203 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
/cts/tests/app/src/android/app/cts/
DDialogTest.java446 long eventTime = downTime; in sendTouchEvent() local
448 eventTime += 1; in sendTouchEvent()
450 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in sendTouchEvent()
511 long eventTime = SystemClock.uptimeMillis(); in testTrackballEvent() local
512 final MotionEvent trackBallEvent = MotionEvent.obtain(eventTime, eventTime, in testTrackballEvent()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java328 long eventTime = event.getHistoricalEventTime(h); in splitBatchedMotionEvent() local
336 MotionEvent.obtain(event.getDownTime(), eventTime, event.getAction(), in splitBatchedMotionEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInputTests.java753 final long eventTime = SystemClock.uptimeMillis(); in testInjectFromThread() local
755 downTime, eventTime, MotionEvent.ACTION_MOVE, testPoint.x, testPoint.y, 1); in testInjectFromThread()

12