Home
last modified time | relevance | path

Searched refs:upEvent (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java112 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEvent() local
114 mAutomation.injectInputEvent(upEvent, true); in testKeyEvent()
135 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testKeyEventWithoutHmac() local
137 mAutomation.injectInputEvent(upEvent, true); in testKeyEventWithoutHmac()
158 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in testTamperedKeyEvent() local
160 mAutomation.injectInputEvent(upEvent, true); in testTamperedKeyEvent()
180 MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in testMotionEvent() local
182 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testMotionEvent()
183 mAutomation.injectInputEvent(upEvent, true); in testMotionEvent()
206 MotionEvent upEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_UP, in testMotionEventWithoutHmac() local
[all …]
DKeyEventInjectionTest.java174 KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in sendKeyViaInstrumentation() local
176 mAutomation.injectInputEvent(upEvent, true); in sendKeyViaInstrumentation()
DViewUnbufferedTest.java215 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.uptimeMillis(), in sendPointerEvents() local
217 upEvent.setSource(source); in sendPointerEvents()
218 mInstrumentation.sendPointerSync(upEvent); in sendPointerEvents()
DViewTest.java2501 MotionEvent upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled() local
2506 mockView.dispatchTouchEvent(upEvent); in testSetAllowClickWhenDisabled()
2523 upEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_UP, in testSetAllowClickWhenDisabled()
2527 mockView.dispatchTouchEvent(upEvent); in testSetAllowClickWhenDisabled()
3377 MotionEvent upEvent = in testOnTouchListener() local
3379 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testOnTouchListener()
3380 mInstrumentation.sendPointerSync(upEvent); in testOnTouchListener()
3383 compareAndRecycleMotionEvents(upEvent, events.poll()); in testOnTouchListener()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java191 final MotionEvent upEvent = MotionEvent.obtain(downEventTime, upEventTime, in touchDisplay() local
193 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in touchDisplay()
194 upEvent.setDisplayId(displayId); in touchDisplay()
195 uiAutomation.injectInputEvent(upEvent, true); in touchDisplay()
/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt165 val upEvent = getMotionEvent() in assertTapToolType() constant
166 assertThat(upEvent.action).isEqualTo(MotionEvent.ACTION_UP) in assertTapToolType()
167 assertToolType(upEvent, toolType) in assertTapToolType()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java178 final KeyEvent upEvent = new KeyEvent(downTime, SystemClock.uptimeMillis(), in injectKeyActionUp() local
181 getInstrumentation().getUiAutomation().injectInputEvent(upEvent, sync); in injectKeyActionUp()
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java540 var upEvent = passengerActivity.getInputEvent(); in assertReceivedKeyCode() local
548 .that(upEvent instanceof KeyEvent).isTrue(); in assertReceivedKeyCode()
557 .that(((KeyEvent) upEvent).getKeyCode()).isEqualTo(keyCode); in assertReceivedKeyCode()
560 .that(((KeyEvent) upEvent).getAction()).isEqualTo(KeyEvent.ACTION_UP); in assertReceivedKeyCode()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowTest.java823 KeyEvent upEvent = new KeyEvent(KeyEvent.ACTION_UP, keyCode); in injectKeyEvent() local
824 window.injectInputEvent(upEvent); in injectKeyEvent()
835 MotionEvent upEvent = MotionEvent.obtain(downTime, upTime, MotionEvent.ACTION_UP, in injectTouchEvent() local
837 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTouchEvent()
838 window.injectInputEvent(upEvent); in injectTouchEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowFocusTests.java126 final MotionEvent upEvent = MotionEvent.obtain(downTime, SystemClock.elapsedRealtime(), in tapOn() local
128 upEvent.setDisplayId(displayId); in tapOn()
129 getInstrumentation().sendPointerSync(upEvent); in tapOn()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java375 MotionEvent upEvent = MotionEvent.obtain(systemClock, in injectTapEvent() local
378 upEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTapEvent()
379 assertTrue("Failed to inject upEvent.", mUiAutomation.injectInputEvent(upEvent, true)); in injectTapEvent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java258 MotionEvent upEvent = mMotionEvents.get(numEvents - 1); in testSwipe_shouldContainPointsInALine() local
261 assertThat(upEvent, both(IS_ACTION_UP).and(isAtPoint(endPoint, pointTolerance))); in testSwipe_shouldContainPointsInALine()
262 assertEquals(gestureTime, upEvent.getEventTime() - downEvent.getEventTime()); in testSwipe_shouldContainPointsInALine()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java631 final KeyEvent upEvent = in sendKeySync() local
633 mInstrumentation.getUiAutomation().injectInputEvent(upEvent, true /*sync*/); in sendKeySync()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java1557 final MotionEvent upEvent = getMotionEvent(downTime, SystemClock.uptimeMillis(),
1559 return mAutoman.injectInputEvent(upEvent, true);
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DStylusHandwritingTest.java1458 MotionEvent upEvent = in testOnViewClicked_withStylusHandwriting() local
1460 int toolTypeFinger = upEvent.getToolType(upEvent.getActionIndex()); in testOnViewClicked_withStylusHandwriting()