/cts/tests/input/src/android/input/cts/ |
D | MotionPredictorTest.kt | 47 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 …]
|
D | TouchInjector.kt | 40 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()
|
D | IncompleteMotionTest.kt | 174 val eventTime = when (action) { in sendEvent() constant 179 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState) in sendEvent()
|
D | VelocityTrackerTest.kt | 205 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/ |
D | TouchHelper.java | 60 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/ |
D | SeekBarTest.java | 141 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/ |
D | android_view_cts_AInputNativeTest.cpp | 57 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/ |
D | StubMotionInterceptingAccessibilityService.java | 138 final long eventTime = SystemClock.uptimeMillis(); in createMotionEvent() local 141 return MotionEvent.obtain(eventTime, in createMotionEvent() 142 eventTime, in createMotionEvent()
|
D | AccessibilityInputConnectionTest.java | 203 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/ |
D | TouchHelper.java | 69 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/ |
D | CtsKeyEventUtil.java | 253 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()
|
D | CtsMouseUtil.java | 63 final long eventTime = SystemClock.uptimeMillis(); in obtainMouseEvent() local 68 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainMouseEvent()
|
D | CtsTouchUtils.java | 428 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/ |
D | ViewUnbufferedTest.java | 122 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()
|
D | TouchDelegateTest.java | 212 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/ |
D | TestUtils.java | 385 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/ |
D | StretchEdgeUtil.kt | 268 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/ |
D | TouchTest.java | 152 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/ |
D | ActivityLaunchUtils.java | 252 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/ |
D | TouchableInsetsProviderTest.java | 173 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/ |
D | InputEventMatchers.kt | 138 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/ |
D | poc.cpp | 54 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/ |
D | CarDisplayInputLockTest.java | 296 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/ |
D | MotionEventTest.java | 198 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local 199 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
|
D | FlagSlipperyTest.kt | 361 val eventTime = when (action) { in sendEvent() constant 365 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
|