/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()
|
D | LightBarTests.java | 281 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/ |
D | SeekBarTest.java | 123 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()
|
D | PopupMenuTest.java | 481 long eventTime = SystemClock.uptimeMillis(); in injectMouseEvent() local 482 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in injectMouseEvent()
|
D | PopupWindowTest.java | 1614 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/ |
D | android_view_cts_AInputNativeTest.cpp | 55 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/ |
D | TouchHelper.java | 68 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/ |
D | CtsKeyEventUtil.java | 177 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()
|
D | CtsMouseUtil.java | 58 final long eventTime = SystemClock.uptimeMillis(); in obtainMouseEvent() local 63 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainMouseEvent()
|
D | CtsTouchUtils.java | 457 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectMoveEventsForDrag() local 462 int historyEventCount = (int) ((eventTime - prevEventTime) / 10); in injectMoveEventsForDrag() 470 downTime, eventTime, MotionEvent.ACTION_MOVE, moveX, moveY, 1); in injectMoveEventsForDrag() 480 final long deltaTime = (eventTime - prevEventTime); in injectMoveEventsForDrag() 508 prevEventTime = eventTime; in injectMoveEventsForDrag() 548 long eventTime = useCurrentEventTime ? SystemClock.uptimeMillis() : downTime; in injectUpEvent() local 550 downTime, eventTime, MotionEvent.ACTION_UP, xOnScreen, yOnScreen, 1); in injectUpEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewUnbufferedTest.java | 112 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()
|
D | TouchDelegateTest.java | 201 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()
|
D | VelocityTrackerTest.java | 169 final long eventTime = downTime + i * 10; in testUsesRawCoordinates() local 171 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, 0, 0, 0); in testUsesRawCoordinates()
|
D | PointerCaptureTest.java | 145 final long eventTime = SystemClock.uptimeMillis(); in obtainRelativeMouseEvent() local 146 MotionEvent event = MotionEvent.obtain(eventTime, eventTime, action, x, y, 0); in obtainRelativeMouseEvent()
|
D | ViewTest.java | 498 long eventTime = SystemClock.uptimeMillis(); in testMouseEventCallsGetPointerIcon() local 508 MotionEvent event = MotionEvent.obtain(0, eventTime, MotionEvent.ACTION_HOVER_MOVE, in testMouseEventCallsGetPointerIcon() 2374 long eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled() local 2375 MotionEvent downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled() 2378 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled() 2379 MotionEvent upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled() 2396 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled() 2397 downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled() 2400 eventTime = SystemClock.uptimeMillis(); in testSetAllowClickWhenDisabled() 2401 upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 140 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/widget/src/android/widget/cts/util/ |
D | StretchEdgeUtil.kt | 258 val eventTime = dragStartTime + (dragDurationMs * i / moveEventCount) in injectMoveEventsForDrag() constant 259 injectEvent(uiAutomation, MotionEvent.ACTION_MOVE, downTime, eventTime, moveX, moveY) in injectMoveEventsForDrag() 298 eventTime: Long, in injectUpEvent() 303 downTime, eventTime, action, xOnScreen.toFloat(), yOnScreen.toFloat(), 1) in injectUpEvent()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ActivityLaunchUtils.java | 210 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/ |
D | IncompleteMotionTest.kt | 144 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/ |
D | poc.cpp | 54 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/ |
D | MotionEventTest.java | 202 final long eventTime = SystemClock.uptimeMillis(); in injectEvent() local 203 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
|
D | FlagSlipperyTest.kt | 357 val eventTime = when (action) { in sendEvent() constant 361 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 446 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/ |
D | InputTestCase.java | 327 long eventTime = event.getHistoricalEventTime(h); in splitBatchedMotionEvent() local 335 MotionEvent.obtain(event.getDownTime(), eventTime, event.getAction(), in splitBatchedMotionEvent()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInputTests.java | 758 final long eventTime = SystemClock.uptimeMillis(); in testInjectFromThread() local 760 downTime, eventTime, MotionEvent.ACTION_MOVE, testPoint.x, testPoint.y, 1); in testInjectFromThread()
|