/cts/tests/tests/view/src/android/view/cts/ |
D | TouchDelegateTest.java | 85 final long downTime = SystemClock.uptimeMillis(); in testCancelEvent() local 87 downTime); in testCancelEvent() 89 downTime); in testCancelEvent() 104 final long downTime = SystemClock.uptimeMillis(); in testTwoPointers() local 105 dispatchTouchEventToActivity(MotionEvent.ACTION_DOWN, mActivity.touchDelegateY, downTime); in testTwoPointers() 106 dispatchTouchEventToActivity(MotionEvent.ACTION_MOVE, mActivity.touchDelegateY, downTime); in testTwoPointers() 110 mActivity.touchDelegateY, downTime); in testTwoPointers() 112 mActivity.touchDelegateY, downTime); in testTwoPointers() 116 mActivity.touchDelegateY, downTime); in testTwoPointers() 117 dispatchTouchEventToActivity(MotionEvent.ACTION_UP, mActivity.touchDelegateY, downTime); in testTwoPointers() [all …]
|
D | KeyEventInterceptTest.java | 99 final long downTime = SystemClock.uptimeMillis(); in testKeyCodeHomeShortcut() local 100 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeHomeShortcut() 102 injectEvent(new KeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, in testKeyCodeHomeShortcut() 109 long downTime = SystemClock.uptimeMillis(); in testKeyCodeBackShortcut() local 110 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeBackShortcut() 112 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in testKeyCodeBackShortcut() 126 long downTime = SystemClock.uptimeMillis(); in sendKey() local 127 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKey() 129 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in sendKey()
|
D | VerifyInputEventTest.java | 91 final long downTime = SystemClock.uptimeMillis(); in testKeyEvent() local 93 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEvent() 102 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEvent() 115 final long downTime = SystemClock.uptimeMillis(); in testKeyEventWithoutHmac() local 117 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEventWithoutHmac() 125 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEventWithoutHmac() 137 final long downTime = SystemClock.uptimeMillis(); in testTamperedKeyEvent() local 139 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testTamperedKeyEvent() 148 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testTamperedKeyEvent() 158 final long downTime = SystemClock.uptimeMillis(); in testMotionEvent() local [all …]
|
D | KeyEventInjectionTest.java | 154 final long downTime = SystemClock.uptimeMillis(); in sendKeyViaInstrumentation() local 157 new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, repeatCount); in sendKeyViaInstrumentation() 161 KeyEvent repeatEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation() 165 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation()
|
D | VelocityTrackerTest.java | 167 final long downTime = SystemClock.uptimeMillis(); in testUsesRawCoordinates() local 169 final long eventTime = downTime + i * 10; in testUsesRawCoordinates() 171 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, 0, 0, 0); in testUsesRawCoordinates()
|
D | ViewUnbufferedTest.java | 181 final long downTime = SystemClock.uptimeMillis(); in sendPointerEvents() local 183 MotionEvent.obtain(downTime, downTime, actions[0], x, y, 0); in sendPointerEvents() 197 final MotionEvent moveEvent = MotionEvent.obtain(downTime, eventTime, in sendPointerEvents() 205 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in sendPointerEvents()
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | StretchEdgeUtil.kt | 126 val downTime = SystemClock.uptimeMillis() in dragAndHoldExecute() constant 129 downTime, in dragAndHoldExecute() 138 downTime, in dragAndHoldExecute() 139 downTime + 10, in dragAndHoldExecute() 219 val downTime = SystemClock.uptimeMillis() in emulateDragGesture() constant 220 injectDownEvent(uiAutomation, downTime, dragStartX, dragStartY) in emulateDragGesture() 225 injectMoveEventsForDrag(uiAutomation, downTime, downTime, dragStartX, dragStartY, in emulateDragGesture() 227 injectUpEvent(uiAutomation, downTime, downTime + dragDurationMs, dragEndX, dragEndY) in emulateDragGesture() 240 downTime: Long, in injectMoveEventsForDrag() 241 dragStartTime: Long = downTime, in injectMoveEventsForDrag() [all …]
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | TouchHelper.java | 65 final long downTime = SystemClock.uptimeMillis(); in touchAndCancelOnDisplayCenterSync() local 66 injectMotion(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, displayId, true /* sync */); in touchAndCancelOnDisplayCenterSync() 72 injectMotion(downTime, eventTime, MotionEvent.ACTION_CANCEL, tapX, tapY, displayId, in touchAndCancelOnDisplayCenterSync() 85 final long downTime = SystemClock.uptimeMillis(); in tapOnDisplay() local 86 injectMotion(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, displayId, sync, in tapOnDisplay() 90 injectMotion(downTime, upTime, MotionEvent.ACTION_UP, x, y, displayId, sync, in tapOnDisplay() 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() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | CtsTouchUtils.java | 129 final long downTime = SystemClock.uptimeMillis(); in emulateTapOnView() local 131 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, waitForAnimations, null); in emulateTapOnView() 132 … injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen, waitForAnimations); in emulateTapOnView() 133 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, in emulateTapOnView() 176 final long downTime = SystemClock.uptimeMillis(); in emulateDoubleTapOnView() local 178 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 179 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen, true); in emulateDoubleTapOnView() 180 injectUpEvent(uiAutomation, downTime, false, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 181 injectDownEvent(uiAutomation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView() 182 injectMoveEventForTap(uiAutomation, downTime, touchSlop, xOnScreen, yOnScreen, true); in emulateDoubleTapOnView() [all …]
|
D | CtsKeyEventUtil.java | 176 long downTime = event.getDownTime(); in sendKey() local 192 if (downTime == 0) { in sendKey() 193 downTime = eventTime; in sendKey() 196 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey() 219 final long downTime = SystemClock.uptimeMillis(); in sendKeyWhileHoldingModifier() local 221 final KeyEvent holdKeyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier() 225 final KeyEvent keyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier() 229 final KeyEvent keyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier() 233 final KeyEvent holdKeyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
|
D | CtsMouseUtil.java | 79 final long downTime = SystemClock.uptimeMillis(); in emulateHoverOnView() local 86 injectHoverEvent(uiAutomation, downTime, x, y); in emulateHoverOnView() 89 private static void injectHoverEvent(UiAutomation uiAutomation, long downTime, int xOnScreen, in injectHoverEvent() argument 91 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_HOVER_MOVE, in injectHoverEvent()
|
/cts/tests/input/src/android/input/cts/ |
D | IncompleteMotionTest.kt | 97 val downTime = SystemClock.uptimeMillis() in testIncompleteMotion() constant 101 sendEvent(downTime, ACTION_DOWN, x, y, true /*sync*/) in testIncompleteMotion() 106 sendEvent(downTime, ACTION_MOVE, x, y + 10, false /*sync*/) in testIncompleteMotion() 143 private fun sendEvent(downTime: Long, action: Int, x: Float, y: Float, sync: Boolean) { in sendEvent() 145 ACTION_DOWN -> downTime in sendEvent() 148 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SeekBarTest.java | 122 long downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local 126 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener() 136 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() 138 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener() 146 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() 148 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_AInputNativeTest.cpp | 54 jlong downTime = env->CallLongMethod(obj, gMotionEventMethodIds.getDownTime) * NS_PER_MS; in nativeMotionEventTest() local 65 ASSERT(downTime == AMotionEvent_getDownTime(event), in nativeMotionEventTest() 67 downTime); in nativeMotionEventTest() 95 jlong downTime = env->CallLongMethod(obj, gKeyEventMethodIds.getDownTime) * NS_PER_MS; in nativeKeyEventTest() local 105 ASSERT(downTime == AKeyEvent_getDownTime(event), in nativeKeyEventTest() 107 downTime); in nativeKeyEventTest()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | FlagSlipperyTest.kt | 312 val downTime = SystemClock.uptimeMillis() in assertBottomWindowDoesNotReceiveSlipperyTouch() constant 313 sendEvent(downTime, MotionEvent.ACTION_DOWN, x, y) in assertBottomWindowDoesNotReceiveSlipperyTouch() 315 sendEvent(downTime, MotionEvent.ACTION_MOVE, x + 1, y + 1) in assertBottomWindowDoesNotReceiveSlipperyTouch() 356 private fun sendEvent(downTime: Long, action: Int, x: Float, y: Float) { in sendEvent() 358 MotionEvent.ACTION_DOWN -> downTime in sendEvent() 361 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
|
D | MotionEventTest.java | 195 long downTime = SystemClock.uptimeMillis(); in injectTap() local 196 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectTap() 197 injectEvent(MotionEvent.ACTION_UP, x, y, downTime); in injectTap() 200 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() argument 203 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | TouchHelper.java | 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 | 274 long downTime = SystemClock.uptimeMillis(); in injectCanceledTap() local 275 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectCanceledTap() 276 injectEvent(MotionEvent.ACTION_CANCEL, x, y, downTime); in injectCanceledTap() 279 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() argument 282 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 139 long downTime = 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/media/src/android/media/cts/ |
D | MediaActivityTest.java | 254 final long downTime = SystemClock.uptimeMillis(); in sendKeyEvent() local 255 final KeyEvent down = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0); in sendKeyEvent() 257 final KeyEvent up = new KeyEvent(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0); in sendKeyEvent()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityEndToEndTest.java | 882 final long downTime = SystemClock.uptimeMillis(); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() local 885 () -> injectHoverEvent(downTime, false, hoverLeft, hoverY), in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() 891 injectHoverEvent(downTime, true, hoverMiddle, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() 892 injectHoverEvent(downTime, true, hoverRight, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() 893 injectHoverEvent(downTime, true, hoverMiddle, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() 894 injectHoverEvent(downTime, true, hoverLeft, hoverY); in testTouchDelegateWithEbtBetweenView_ReHoverDelegate_FocusTargetAgain() 944 final long downTime = SystemClock.uptimeMillis(); in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain() local 948 () -> injectHoverEvent(downTime, false, delegateX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain() 953 () -> injectHoverEvent(downTime, true, textX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain() 957 () -> injectHoverEvent(downTime, true, delegateX, textY), in testTouchDelegateCoverParentWithEbt_HoverChildAndBack_FocusTargetAgain() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarAudioManagerTest.java | 262 long downTime = SystemClock.uptimeMillis(); in injectKeyEvent() local 263 KeyEvent volumeDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in injectKeyEvent()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 76 outMsg->body.key.downTime = msg.body.key.downTime; in sanitizeMessage() 107 outMsg->body.motion.downTime = msg.body.motion.downTime; in sanitizeMessage()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowFocusTests.java | 108 final long downTime = SystemClock.elapsedRealtime(); in tapOn() local 109 final MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, in tapOn() 113 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.elapsedRealtime(), in tapOn()
|
/cts/tests/app/src/android/app/cts/ |
D | DialogTest.java | 445 private MotionEvent sendTouchEvent(long downTime, int action, float x, float y) { in sendTouchEvent() argument 446 long eventTime = downTime; in sendTouchEvent() 450 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in sendTouchEvent() 480 long downTime = SystemClock.uptimeMillis(); in testTouchEvent() local 482 sendTouchEvent(downTime, MotionEvent.ACTION_DOWN, x, y).recycle(); in testTouchEvent() 483 MotionEvent touchMotionEvent = sendTouchEvent(downTime, MotionEvent.ACTION_UP, x, y); in testTouchEvent() 495 downTime = SystemClock.uptimeMillis(); in testTouchEvent() 497 sendTouchEvent(downTime, MotionEvent.ACTION_DOWN, x, y).recycle(); in testTouchEvent() 498 touchMotionEvent = sendTouchEvent(downTime, MotionEvent.ACTION_UP, x, y); in testTouchEvent()
|