Home
last modified time | relevance | path

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

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityGestureDispatchTest.java209 MotionEvent downEvent = mMotionEvents.get(0); in testSwipe_shouldContainPointsInALine() local
211 assertThat(downEvent, both(IS_ACTION_DOWN).and(isAtPoint(startPoint))); in testSwipe_shouldContainPointsInALine()
213 assertEquals(gestureTime, upEvent.getEventTime() - downEvent.getEventTime()); in testSwipe_shouldContainPointsInALine()
215 long lastEventTime = downEvent.getEventTime(); in testSwipe_shouldContainPointsInALine()
220 ((float) (moveEvent.getEventTime() - downEvent.getEventTime())) / gestureTime; in testSwipe_shouldContainPointsInALine()
/cts/tests/tests/view/src/android/view/cts/
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()