Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java103 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEvent() local
105 mAutomation.injectInputEvent(downEvent, true); in testKeyEvent()
109 compareKeys(downEvent, verified); in testKeyEvent()
127 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testKeyEventWithoutHmac() local
129 mAutomation.injectInputEvent(downEvent, true); in testKeyEventWithoutHmac()
131 VerifiedInputEvent verified = mInputManager.verifyInputEvent(downEvent); in testKeyEventWithoutHmac()
149 KeyEvent downEvent = new KeyEvent(downTime, downTime, in testTamperedKeyEvent() local
151 mAutomation.injectInputEvent(downEvent, true); in testTamperedKeyEvent()
169 MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in testMotionEvent() local
171 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testMotionEvent()
[all …]
DKeyEventInjectionTest.java165 KeyEvent downEvent = in sendKeyViaInstrumentation() local
167 mAutomation.injectInputEvent(downEvent, true); in sendKeyViaInstrumentation()
DViewUnbufferedTest.java192 MotionEvent downEvent = in sendPointerEvents() local
194 downEvent.setSource(source); in sendPointerEvents()
195 mInstrumentation.sendPointerSync(downEvent); in sendPointerEvents()
DViewTest.java2497 MotionEvent downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled() local
2505 mockView.dispatchTouchEvent(downEvent); in testSetAllowClickWhenDisabled()
2519 downEvent = MotionEvent.obtain(downTime, eventTime, MotionEvent.ACTION_DOWN, in testSetAllowClickWhenDisabled()
2526 mockView.dispatchTouchEvent(downEvent); in testSetAllowClickWhenDisabled()
3372 MotionEvent downEvent = in testOnTouchListener() local
3374 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testOnTouchListener()
3375 mInstrumentation.sendPointerSync(downEvent); in testOnTouchListener()
3382 compareAndRecycleMotionEvents(downEvent, events.poll()); in testOnTouchListener()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java184 final MotionEvent downEvent = MotionEvent.obtain(downEventTime, in touchDisplay() local
186 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in touchDisplay()
187 downEvent.setDisplayId(displayId); in touchDisplay()
188 uiAutomation.injectInputEvent(downEvent, true); in touchDisplay()
/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt161 val downEvent = getMotionEvent() in assertTapToolType() constant
162 assertThat(downEvent.action).isEqualTo(MotionEvent.ACTION_DOWN) in assertTapToolType()
163 assertToolType(downEvent, toolType) in assertTapToolType()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTouchHelper.java158 final KeyEvent downEvent = in injectKeyActionDown() local
160 getInstrumentation().getUiAutomation().injectInputEvent(downEvent, sync); in injectKeyActionDown()
/cts/tests/tests/car/src/android/car/cts/
DCarInputTest.java539 var downEvent = passengerActivity.getInputEvent(); in assertReceivedKeyCode() local
544 .that(downEvent instanceof KeyEvent).isTrue(); in assertReceivedKeyCode()
551 .that(((KeyEvent) downEvent).getKeyCode()).isEqualTo(keyCode); in assertReceivedKeyCode()
554 .that(((KeyEvent) downEvent).getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in assertReceivedKeyCode()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java257 MotionEvent downEvent = mMotionEvents.get(0); in testSwipe_shouldContainPointsInALine() local
259 assertThat(downEvent, both(IS_ACTION_DOWN).and(isAtPoint(startPoint, in testSwipe_shouldContainPointsInALine()
262 assertEquals(gestureTime, upEvent.getEventTime() - downEvent.getEventTime()); in testSwipe_shouldContainPointsInALine()
264 long lastEventTime = downEvent.getEventTime(); in testSwipe_shouldContainPointsInALine()
269 ((float) (moveEvent.getEventTime() - downEvent.getEventTime())) / gestureTime; in testSwipe_shouldContainPointsInALine()
DAccessibilityDisplayProxyTest.java904 final MotionEvent downEvent = getDownMotionEvent(mProxiedVirtualDisplayActivityTitle, in testOnA11yEvent_touchProxyDisplay_proxyDoesNotReceiveInteractionEvent() local
906 mUiAutomation.injectInputEventToInputFilter(downEvent); in testOnA11yEvent_touchProxyDisplay_proxyDoesNotReceiveInteractionEvent()
928 final MotionEvent downEvent = getDownMotionEvent(getActivityTitle(sInstrumentation, in testOnA11yEvent_touchDefaultDisplay_serviceReceivesInteractionEvent() local
931 mUiAutomation.injectInputEventToInputFilter(downEvent); in testOnA11yEvent_touchDefaultDisplay_serviceReceivesInteractionEvent()
953 final MotionEvent downEvent = MotionEvent.obtain(downEventTime, in getDownMotionEvent() local
955 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in getDownMotionEvent()
956 downEvent.setDisplayId(displayId); in getDownMotionEvent()
957 return downEvent; in getDownMotionEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowTest.java821 KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in injectKeyEvent() local
822 window.injectInputEvent(downEvent); in injectKeyEvent()
830 MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in injectTouchEvent() local
832 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTouchEvent()
833 window.injectInputEvent(downEvent); in injectTouchEvent()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowFocusTests.java122 final MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, in tapOn() local
124 downEvent.setDisplayId(displayId); in tapOn()
125 getInstrumentation().sendPointerSync(downEvent); in tapOn()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DCameraEvictionTest.java370 MotionEvent downEvent = MotionEvent.obtain(systemClock, systemClock, in injectTapEvent() local
372 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTapEvent()
373 assertTrue("Failed to inject downEvent.", mUiAutomation.injectInputEvent(downEvent, true)); in injectTapEvent()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java627 final KeyEvent downEvent = in sendKeySync() local
629 mInstrumentation.getUiAutomation().injectInputEvent(downEvent, true /*sync*/); in sendKeySync()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DUiBot.java1544 final MotionEvent downEvent = getMotionEvent(downTime, downTime, MotionEvent.ACTION_DOWN,
1546 if (!mAutoman.injectInputEvent(downEvent, true)) {