Home
last modified time | relevance | path

Searched refs:motionEvents (Results 1 – 4 of 4) sorted by relevance

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DEventCapturingMotionEventListener.java133 List<MotionEvent> motionEvents = new ArrayList<>(); in getRawEvents() local
138 motionEvents.add(ev); in getRawEvents()
144 assertThat(motionEvents).isNotEmpty(); in getRawEvents()
145 return motionEvents; in getRawEvents()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceControlInputReceiverTests.java134 final LinkedBlockingQueue<MotionEvent> motionEvents = new LinkedBlockingQueue<>(); in testLocalSurfaceControlReceivesInput() local
140 motionEvents.put(MotionEvent.obtain((MotionEvent) event)); in testLocalSurfaceControlReceivesInput()
160 assertMotionEventInWindow(motionEvents, centerCoordRelativeToWindow); in testLocalSurfaceControlReceivesInput()
202 final LinkedBlockingQueue<MotionEvent> motionEvents = new LinkedBlockingQueue<>(); in testRemoteSurfaceControlReceivesInput() local
211 motionEvents.put(motionEvent); in testRemoteSurfaceControlReceivesInput()
232 assertMotionEventInWindow(motionEvents, centerCoordRelativeToWindow); in testRemoteSurfaceControlReceivesInput()
263 final LinkedBlockingQueue<MotionEvent> motionEvents = new LinkedBlockingQueue<>(); in testNonBatchedSurfaceControlReceivesInput() local
269 motionEvents.put(MotionEvent.obtain((MotionEvent) event)); in testNonBatchedSurfaceControlReceivesInput()
290 assertMotionEventInWindow(motionEvents, centerCoordRelativeToWindow); in testNonBatchedSurfaceControlReceivesInput()
337 private void assertMotionEventInWindow(BlockingQueue<MotionEvent> motionEvents, in assertMotionEventInWindow() argument
[all …]
DASurfaceControlInputReceiverTest.java117 final LinkedBlockingQueue<MotionEvent> motionEvents = new LinkedBlockingQueue<>(); in testLocalASurfaceControlReceivesInput() local
122 motionEvents.put(MotionEvent.obtain(motionEvent)); in testLocalASurfaceControlReceivesInput()
140 assertMotionEventOnWindowCenter(motionEvents, bounds); in testLocalASurfaceControlReceivesInput()
143 private void assertMotionEventOnWindowCenter(BlockingQueue<MotionEvent> motionEvents, in assertMotionEventOnWindowCenter() argument
145 MotionEvent motionEvent = motionEvents.poll(WAIT_TIME_S, TimeUnit.SECONDS); in assertMotionEventOnWindowCenter()
174 final LinkedBlockingQueue<MotionEvent> motionEvents = new LinkedBlockingQueue<>(); in testRemoteASurfaceControlReceivesInput() local
179 motionEvents.put(MotionEvent.obtain(motionEvent)); in testRemoteASurfaceControlReceivesInput()
193 assertMotionEventOnWindowCenter(motionEvents, bounds); in testRemoteASurfaceControlReceivesInput()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DTouchExplorerTest.java250 List<MotionEvent> motionEvents = getMotionEventsForLastGesture(); in testFastSwipe_doesNotInitiateTouchExploration() local
251 assertThat(motionEvents.get(0), both(IS_ACTION_DOWN).and(isRawAtPoint(mTapLocation, 1.0f))); in testFastSwipe_doesNotInitiateTouchExploration()
253 motionEvents.get(motionEvents.size() - 1), in testFastSwipe_doesNotInitiateTouchExploration()
346 List<MotionEvent> motionEvents = getMotionEventsForLastGesture(); in testDoubleTapNoFocus_doesNotPerformClick() local
347 assertThat(motionEvents.get(0), both(IS_ACTION_DOWN).and(isRawAtPoint(mTapLocation, 1.0f))); in testDoubleTapNoFocus_doesNotPerformClick()
348 assertThat(motionEvents.get(1), both(IS_ACTION_UP).and(isRawAtPoint(mTapLocation, 1.0f))); in testDoubleTapNoFocus_doesNotPerformClick()
349 assertThat(motionEvents.get(2), both(IS_ACTION_DOWN).and(isRawAtPoint(mTapLocation, 1.0f))); in testDoubleTapNoFocus_doesNotPerformClick()
350 assertThat(motionEvents.get(3), both(IS_ACTION_UP).and(isRawAtPoint(mTapLocation, 1.0f))); in testDoubleTapNoFocus_doesNotPerformClick()