Home
last modified time | relevance | path

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

/cts/tests/tests/view/src/android/view/cts/
DKeyEventInjectionTest.java156 KeyEvent downEvent = in sendKeyViaInstrumentation() local
158 mAutomation.injectInputEvent(downEvent, true); in sendKeyViaInstrumentation()
DViewTest.java3178 MotionEvent downEvent = in testOnTouchListener() local
3180 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in testOnTouchListener()
3181 mInstrumentation.getUiAutomation().injectInputEvent(downEvent, true); in testOnTouchListener()
3188 compareAndRecycleMotionEvents(downEvent, events.poll()); in testOnTouchListener()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowFocusTests.java112 final MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, in tapOnCenterOfDisplay() local
114 downEvent.setDisplayId(displayId); in tapOnCenterOfDisplay()
115 getInstrumentation().sendPointerSync(downEvent); in tapOnCenterOfDisplay()
DWindowTest.java719 KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in injectKeyEvent() local
720 window.injectInputEvent(downEvent); in injectKeyEvent()
728 MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in injectTouchEvent() local
730 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTouchEvent()
731 window.injectInputEvent(downEvent); in injectTouchEvent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java216 MotionEvent downEvent = mMotionEvents.get(0); in testSwipe_shouldContainPointsInALine() local
218 assertThat(downEvent, both(IS_ACTION_DOWN).and(isAtPoint(startPoint))); in testSwipe_shouldContainPointsInALine()
220 assertEquals(gestureTime, upEvent.getEventTime() - downEvent.getEventTime()); in testSwipe_shouldContainPointsInALine()
222 long lastEventTime = downEvent.getEventTime(); in testSwipe_shouldContainPointsInALine()
227 ((float) (moveEvent.getEventTime() - downEvent.getEventTime())) / gestureTime; in testSwipe_shouldContainPointsInALine()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java698 final KeyEvent downEvent = in sendKeySync() local
700 mInstrumentation.getUiAutomation().injectInputEvent(downEvent, true /*sync*/); in sendKeySync()