Home
last modified time | relevance | path

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

12

/cts/tests/input/src/android/input/cts/
DMotionPredictorTest.kt47 eventTime: Duration, in getStylusMotionEvent()
55 eventTime, action, STYLUS_DEVICE_ID, x, y, tilt, orientation, in getStylusMotionEvent()
60 eventTime: Duration, in getTouchMotionEvent()
68 eventTime, action, TOUCH_DEVICE_ID, x, y, tilt, orientation, in getTouchMotionEvent()
73 eventTime: Duration, in getMotionEvent()
100 eventTime.toMillis(), in getMotionEvent()
130 var eventTime = Duration.ofMillis(0) in testFeatureDisabled() variable
131 predictor.record(getStylusMotionEvent(eventTime, ACTION_DOWN, x = 10f, y = 20f)) in testFeatureDisabled()
133 eventTime += Duration.ofMillis(8) in testFeatureDisabled()
135 predictor.record(getStylusMotionEvent(eventTime, ACTION_MOVE, x = 11f, y = 24f)) in testFeatureDisabled()
[all …]
DTouchInjector.kt40 val eventTime = when (action) { in sendEvent() constant
47 val event = MotionEvent.obtain(downTime, eventTime, action, pt.x, pt.y, 0 /*metaState*/) in sendEvent()
59 val eventTime = SystemClock.uptimeMillis() in sendMultiTouchEvent() constant
76 var event = MotionEvent.obtain(downTime, eventTime, PointerConstants.ACTION_POINTER_1_DOWN, in sendMultiTouchEvent()
86 event = MotionEvent.obtain(downTime, eventTime, PointerConstants.ACTION_POINTER_1_UP, in sendMultiTouchEvent()
DIncompleteMotionTest.kt174 val eventTime = when (action) { in sendEvent() constant
179 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState) in sendEvent()
DVelocityTrackerTest.kt205 val eventTime = downTime + i * 10 in testUsesRawCoordinates() constant
207 val event = MotionEvent.obtain(downTime, eventTime, action, 0f, 0f, 0) in testUsesRawCoordinates()
/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()
/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java141 long eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local
144 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
156 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
157 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener()
167 eventTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
168 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp57 jlong eventTime = env->CallLongMethod(obj, gMotionEventMethodIds.getEventTime) * NS_PER_MS; in nativeMotionEventTest() local
73 ASSERT(eventTime == AMotionEvent_getEventTime(event), in nativeMotionEventTest()
75 eventTime); in nativeMotionEventTest()
127 jlong eventTime = env->CallLongMethod(obj, gKeyEventMethodIds.getEventTime) * NS_PER_MS; in nativeKeyEventTest() local
140 ASSERT(eventTime == AKeyEvent_getEventTime(event), in nativeKeyEventTest()
142 eventTime); in nativeKeyEventTest()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DStubMotionInterceptingAccessibilityService.java138 final long eventTime = SystemClock.uptimeMillis(); in createMotionEvent() local
141 return MotionEvent.obtain(eventTime, in createMotionEvent()
142 eventTime, in createMotionEvent()
DAccessibilityInputConnectionTest.java203 final long eventTime = SystemClock.uptimeMillis(); in testSendKeyEvent() local
204 final KeyEvent keyEvent = new KeyEvent(eventTime, eventTime, in testSendKeyEvent()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java69 final long eventTime = SystemClock.uptimeMillis(); in touchAndCancelOnDisplayCenterSync() local
73 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.java253 long eventTime = event.getEventTime(); in sendKey() local
265 if (eventTime == 0) { in sendKey()
266 eventTime = SystemClock.uptimeMillis(); in sendKey()
269 downTime = eventTime; in sendKey()
272 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
DCtsMouseUtil.java63 final long eventTime = SystemClock.uptimeMillis(); in obtainMouseEvent() local
68 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainMouseEvent()
DCtsTouchUtils.java428 final long eventTime = SystemClock.uptimeMillis(); in injectMoveEventsForDrag() local
433 int historyEventCount = (int) ((eventTime - prevEventTime) / 10); in injectMoveEventsForDrag()
441 downTime, eventTime, MotionEvent.ACTION_MOVE, moveX, moveY, 1); in injectMoveEventsForDrag()
452 final long deltaTime = (eventTime - prevEventTime); in injectMoveEventsForDrag()
481 prevEventTime = eventTime; in injectMoveEventsForDrag()
500 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectUpEvent() local
502 downTime, eventTime, MotionEvent.ACTION_UP, xOnScreen, yOnScreen, 1); in injectUpEvent()
/cts/tests/tests/view/src/android/view/cts/
DViewUnbufferedTest.java122 ReceivedEvent(long eventTime, int action, int x, int y, int source) { in ReceivedEvent() argument
123 mEventTime = eventTime; in ReceivedEvent()
206 final long eventTime = SystemClock.uptimeMillis(); in sendPointerEvents() local
207 final MotionEvent moveEvent = MotionEvent.obtain(downTime, eventTime, in sendPointerEvents()
232 final long eventTime = SystemClock.uptimeMillis(); in sendJoystickEvents() local
233 final MotionEvent moveEvent = MotionEvent.obtain(eventTime, eventTime, in sendJoystickEvents()
DTouchDelegateTest.java212 final long eventTime = SystemClock.uptimeMillis(); in dispatchMotionEventToActivity() local
213 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, in dispatchMotionEventToActivity()
224 final long eventTime = SystemClock.uptimeMillis(); in dispatchMultiTouchMotionEventToActivity() local
238 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, pointerCount, in dispatchMultiTouchMotionEventToActivity()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java385 long eventTime = SystemClock.uptimeMillis(); in injectStylusEvent() local
387 getMotionEvent(eventTime, eventTime, action, x, y, in injectStylusEvent()
527 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, in getMotionEvent() argument
529 return getMotionEvent(downTime, eventTime, action, (int) x, (int) y, 0, toolType); in getMotionEvent()
532 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, in getMotionEvent() argument
545 final MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, in getMotionEvent()
597 final long eventTime = event.getHistoricalEventTime(h); in splitBatchedMotionEvent() local
605 MotionEvent.obtain(event.getDownTime(), eventTime, event.getAction(), in splitBatchedMotionEvent()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt268 val eventTime = dragStartTime + (dragDurationMs * i / moveEventCount) in injectMoveEventsForDrag() constant
269 injectEvent(uiAutomation, MotionEvent.ACTION_MOVE, downTime, eventTime, moveX, moveY) in injectMoveEventsForDrag()
308 eventTime: Long, in injectUpEvent()
313 downTime, eventTime, action, xOnScreen.toFloat(), yOnScreen.toFloat(), 1) in injectUpEvent()
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java152 long eventTime = SystemClock.uptimeMillis(); in testOnTouchEvent() local
153 final MotionEvent event1 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
155 final MotionEvent event2 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
157 final MotionEvent event3 = MotionEvent.obtain(downTime, eventTime, in testOnTouchEvent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java252 final long eventTime = SystemClock.uptimeMillis(); in wakeUpOrBust() local
254 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_DOWN, in wakeUpOrBust()
259 new KeyEvent(eventTime, eventTime, KeyEvent.ACTION_UP, in wakeUpOrBust()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/view/
DTouchableInsetsProviderTest.java173 long eventTime = SystemClock.uptimeMillis(); in obtainMotionEvent() local
176 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, in obtainMotionEvent()
/cts/libs/input/src/com/android/cts/input/
DInputEventMatchers.kt138 fun withEventTime(eventTime: Long): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withEventTime()
140 description.appendText("With eventTime = $eventTime") in withEventTime()
144 return event.getEventTime() == eventTime in withEventTime()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp54 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
85 outMsg->body.motion.eventTime = msg.body.motion.eventTime; in sanitizeMessage()
/cts/tests/tests/car/src/android/car/cts/
DCarDisplayInputLockTest.java296 long eventTime = SystemClock.uptimeMillis(); in obtainMotionEvent() local
299 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, in obtainMotionEvent()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java198 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local
199 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
DFlagSlipperyTest.kt361 val eventTime = when (action) { in sendEvent() constant
365 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()

12