Searched refs:downEvent (Results 1 – 2 of 2) sorted by relevance
209 MotionEvent downEvent = mMotionEvents.get(0); in testSwipe_shouldContainPointsInALine() local211 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()
719 KeyEvent downEvent = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode); in injectKeyEvent() local720 window.injectInputEvent(downEvent); in injectKeyEvent()728 MotionEvent downEvent = MotionEvent.obtain(downTime, downTime, MotionEvent.ACTION_DOWN, in injectTouchEvent() local730 downEvent.setSource(InputDevice.SOURCE_TOUCHSCREEN); in injectTouchEvent()731 window.injectInputEvent(downEvent); in injectTouchEvent()