Home
last modified time | relevance | path

Searched refs:downTime (Results 1 – 25 of 50) sorted by relevance

12

/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java96 final long downTime = SystemClock.uptimeMillis(); in testCancelEvent() local
98 downTime); in testCancelEvent()
100 downTime); in testCancelEvent()
115 final long downTime = SystemClock.uptimeMillis(); in testTwoPointers() local
116 dispatchTouchEventToActivity(MotionEvent.ACTION_DOWN, mActivity.touchDelegateY, downTime); in testTwoPointers()
117 dispatchTouchEventToActivity(MotionEvent.ACTION_MOVE, mActivity.touchDelegateY, downTime); in testTwoPointers()
121 mActivity.touchDelegateY, downTime); in testTwoPointers()
123 mActivity.touchDelegateY, downTime); in testTwoPointers()
127 mActivity.touchDelegateY, downTime); in testTwoPointers()
128 dispatchTouchEventToActivity(MotionEvent.ACTION_UP, mActivity.touchDelegateY, downTime); in testTwoPointers()
[all …]
DVerifyInputEventTest.java101 final long downTime = SystemClock.uptimeMillis(); in testKeyEvent() local
103 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEvent()
112 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEvent()
125 final long downTime = SystemClock.uptimeMillis(); in testKeyEventWithoutHmac() local
127 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEventWithoutHmac()
135 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEventWithoutHmac()
147 final long downTime = SystemClock.uptimeMillis(); in testTamperedKeyEvent() local
149 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testTamperedKeyEvent()
158 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testTamperedKeyEvent()
168 final long downTime = SystemClock.uptimeMillis(); in testMotionEvent() local
[all …]
DKeyEventInterceptTest.java121 final long downTime = SystemClock.uptimeMillis(); in testKeyCodeHomeShortcut() local
122 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in testKeyCodeHomeShortcut()
124 injectEvent(new KeyEvent(downTime, SystemClock.uptimeMillis(), KeyEvent.ACTION_UP, in testKeyCodeHomeShortcut()
136 long downTime = SystemClock.uptimeMillis(); in sendKey() local
137 injectEvent(new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKey()
139 injectEvent(new KeyEvent(downTime, downTime + 1, KeyEvent.ACTION_UP, in sendKey()
DKeyEventInjectionTest.java163 final long downTime = SystemClock.uptimeMillis(); in sendKeyViaInstrumentation() local
166 new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, repeatCount); in sendKeyViaInstrumentation()
170 KeyEvent repeatEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation()
174 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation()
DViewUnbufferedTest.java191 final long downTime = SystemClock.uptimeMillis(); in sendPointerEvents() local
193 MotionEvent.obtain(downTime, downTime, actions[0], x, y, 0); in sendPointerEvents()
207 final MotionEvent moveEvent = MotionEvent.obtain(downTime, eventTime, in sendPointerEvents()
215 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in sendPointerEvents()
/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt129 val downTime = SystemClock.uptimeMillis() in dragAndHoldExecute() constant
132 downTime, in dragAndHoldExecute()
141 downTime, in dragAndHoldExecute()
142 downTime + 10, in dragAndHoldExecute()
229 val downTime = SystemClock.uptimeMillis() in emulateDragGesture() constant
230 injectDownEvent(uiAutomation, downTime, dragStartX, dragStartY) in emulateDragGesture()
235 injectMoveEventsForDrag(uiAutomation, downTime, downTime, dragStartX, dragStartY, in emulateDragGesture()
237 injectUpEvent(uiAutomation, downTime, downTime + dragDurationMs, dragEndX, dragEndY) in emulateDragGesture()
250 downTime: Long, in injectMoveEventsForDrag()
251 dragStartTime: Long = downTime, in injectMoveEventsForDrag()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java66 final long downTime = SystemClock.uptimeMillis(); in touchAndCancelOnDisplayCenterSync() local
67 injectMotion(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, displayId, true /* sync */); in touchAndCancelOnDisplayCenterSync()
73 injectMotion(downTime, eventTime, MotionEvent.ACTION_CANCEL, tapX, tapY, displayId, in touchAndCancelOnDisplayCenterSync()
86 final long downTime = SystemClock.uptimeMillis(); in tapOnDisplay() local
87 injectMotion(downTime, downTime, MotionEvent.ACTION_DOWN, x, y, displayId, sync, in tapOnDisplay()
91 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/
DCtsTouchUtils.java115 final long downTime = SystemClock.uptimeMillis(); in emulateTapOnView() local
117 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen, in emulateTapOnView()
119 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateTapOnView()
120 injectUpEvent(instrumentation, downTime, /* useCurrentEventTime= */ false, in emulateTapOnView()
162 final long downTime = SystemClock.uptimeMillis(); in emulateDoubleTapOnView() local
164 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
165 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
166 injectUpEvent(instrumentation, downTime, false, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
167 injectDownEvent(instrumentation, downTime, xOnScreen, yOnScreen, null); in emulateDoubleTapOnView()
168 injectMoveEventForTap(instrumentation, downTime, touchSlop, xOnScreen, yOnScreen); in emulateDoubleTapOnView()
[all …]
DCtsKeyEventUtil.java252 long downTime = event.getDownTime(); in sendKey() local
268 if (downTime == 0) { in sendKey()
269 downTime = eventTime; in sendKey()
272 final KeyEvent newEvent = new KeyEvent(downTime, eventTime, action, code, repeatCount, in sendKey()
310 final long downTime = SystemClock.uptimeMillis(); in sendKeyWhileHoldingModifier() local
312 final KeyEvent holdKeyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
316 final KeyEvent keyDown = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, in sendKeyWhileHoldingModifier()
320 final KeyEvent keyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
324 final KeyEvent holdKeyUp = new KeyEvent(downTime, downTime, KeyEvent.ACTION_UP, in sendKeyWhileHoldingModifier()
DCtsMouseUtil.java85 final long downTime = SystemClock.uptimeMillis(); in emulateHoverOnView() local
90 injectHoverEvent(instrumentation, downTime, x, y); in emulateHoverOnView()
93 private static void injectHoverEvent(Instrumentation instrumentation, long downTime, in injectHoverEvent() argument
95 MotionEvent event = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_HOVER_MOVE, in injectHoverEvent()
/cts/tests/input/src/android/input/cts/
DTouchInjector.kt34 private var downTime: Long = 0 variable
42 downTime = SystemClock.uptimeMillis() in sendEvent()
43 downTime in sendEvent()
47 val event = MotionEvent.obtain(downTime, eventTime, action, pt.x, pt.y, 0 /*metaState*/) in sendEvent()
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.kt102 val downTime = SystemClock.uptimeMillis() in testIncompleteMotion() constant
106 sendEvent(downTime, ACTION_DOWN, x, y, sync = true) in testIncompleteMotion()
113 sendEvent(downTime, ACTION_MOVE, x, y + 10, sync = false) in testIncompleteMotion()
167 sendEvent(downTime, ACTION_CANCEL, x, y, sync = true) in testIncompleteMotion()
173 private fun sendEvent(downTime: Long, action: Int, x: Float, y: Float, sync: Boolean) { in sendEvent()
175 ACTION_DOWN -> downTime in sendEvent()
179 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, metaState) in sendEvent()
DInputInjectionTest.kt186 val downTime = SystemClock.uptimeMillis() in <lambda>() constant
188 KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_A, 0), in <lambda>()
192 KeyEvent(downTime, upTime, KeyEvent.ACTION_UP, KeyEvent.KEYCODE_A, 0), in <lambda>()
223 val downTime = SystemClock.uptimeMillis() in <lambda>() constant
225 MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in <lambda>()
229 MotionEvent.obtain(downTime, upTime, MotionEvent.ACTION_UP, in <lambda>()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAbstractWebViewActivity.java54 final long downTime = SystemClock.uptimeMillis(); in dispatchKeyPress() local
55 KeyEvent keyEvent = new KeyEvent(/* downTime= */ downTime, in dispatchKeyPress()
59 keyEvent = new KeyEvent(/* downTime= */ downTime, in dispatchKeyPress()
/cts/tests/tests/widget/src/android/widget/cts/
DSeekBarTest.java140 long downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener() local
144 MotionEvent event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetOnSeekBarChangeListener()
155 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
157 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_MOVE, in testSetOnSeekBarChangeListener()
166 downTime = SystemClock.uptimeMillis(); in testSetOnSeekBarChangeListener()
168 event = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetOnSeekBarChangeListener()
/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp56 jlong downTime = env->CallLongMethod(obj, gMotionEventMethodIds.getDownTime) * NS_PER_MS; in nativeMotionEventTest() local
69 ASSERT(downTime == AMotionEvent_getDownTime(event), in nativeMotionEventTest()
71 downTime); in nativeMotionEventTest()
126 jlong downTime = env->CallLongMethod(obj, gKeyEventMethodIds.getDownTime) * NS_PER_MS; in nativeKeyEventTest() local
136 ASSERT(downTime == AKeyEvent_getDownTime(event), in nativeKeyEventTest()
138 downTime); in nativeKeyEventTest()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java191 long downTime = SystemClock.uptimeMillis(); in injectTap() local
192 injectEvent(MotionEvent.ACTION_DOWN, x, y, downTime); in injectTap()
193 injectEvent(MotionEvent.ACTION_UP, x, y, downTime); in injectTap()
196 private void injectEvent(int action, int x, int y, long downTime) { in injectEvent() argument
199 MotionEvent event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0); in injectEvent()
DFlagSlipperyTest.kt316 val downTime = SystemClock.uptimeMillis() in assertBottomWindowDoesNotReceiveSlipperyTouch() constant
317 sendEvent(downTime, MotionEvent.ACTION_DOWN, x, y) in assertBottomWindowDoesNotReceiveSlipperyTouch()
319 sendEvent(downTime, MotionEvent.ACTION_MOVE, x + 1, y + 1) in assertBottomWindowDoesNotReceiveSlipperyTouch()
360 private fun sendEvent(downTime: Long, action: Int, x: Float, y: Float) { in sendEvent()
362 MotionEvent.ACTION_DOWN -> downTime in sendEvent()
365 val event = MotionEvent.obtain(downTime, eventTime, action, x, y, 0 /*metaState*/) in sendEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java66 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/text/src/android/text/method/cts/
DBaseMovementMethodTest.java233 long downTime = SystemClock.uptimeMillis(); in previousParagraphCall() local
235 downTime, downTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_UP, 0, in previousParagraphCall()
249 long downTime = SystemClock.uptimeMillis(); in nextParagraphCall() local
251 downTime, downTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_DOWN, 0, in nextParagraphCall()
DTouchTest.java151 long downTime = 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/libs/input/src/com/android/cts/input/
DInputEventMatchers.kt193 fun withDownTime(downTime: Long): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withDownTime()
195 description.appendText("With down time = $downTime") in withDownTime()
199 return event.downTime == downTime in withDownTime()
/cts/tests/framework/base/windowmanager/src/android/server/wm/backnavigation/
DOnBackInvokedCallbackGestureTest.java161 long downTime = TouchHelper.injectKeyActionDown(KeyEvent.KEYCODE_BACK, in invokesCallbackInButtonsNav_invoked() local
171 /* downTime = */ downTime, in invokesCallbackInButtonsNav_invoked()
183 long downTime = TouchHelper.injectKeyActionDown(KeyEvent.KEYCODE_BACK, in invokesCallbackInButtonsNav_cancelled() local
188 /* downTime = */ downTime, in invokesCallbackInButtonsNav_cancelled()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaActivityTest.java294 final long downTime = SystemClock.uptimeMillis(); in sendKeyEvent() local
295 final KeyEvent down = new KeyEvent(downTime, downTime, KeyEvent.ACTION_DOWN, keyCode, 0); in sendKeyEvent()
297 final KeyEvent up = new KeyEvent(downTime, upTime, KeyEvent.ACTION_UP, keyCode, 0); in sendKeyEvent()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java405 final long downTime = SystemClock.uptimeMillis(); in injectFingerEventOnViewCenter() local
408 downTime, downTime, action, x, y, MotionEvent.TOOL_TYPE_FINGER); in injectFingerEventOnViewCenter()
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()

12