Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java122 ArgumentCaptor<MotionEvent> mCaptor1 = ArgumentCaptor.forClass(MotionEvent.class); field in MotionEventInjectorTest
186 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(FLAG_PASS_TO_USER)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
192 Matcher<MotionEvent> hasRightDownTime = hasDownTime(mCaptor1.getValue().getDownTime()); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
251 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
252 assertThat(mCaptor1.getAllValues().get(0), mIsClickDown); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
253 assertThat(mCaptor1.getAllValues().get(1), IS_ACTION_CANCEL); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
271 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
272 assertThat(mCaptor1.getAllValues().get(0), isMouseEvent); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
273 assertThat(mCaptor1.getAllValues().get(1), mIsLineStart); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
283 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
[all …]
DAccessibilityInputFilterTest.java87 private EventCaptor mCaptor1; field in AccessibilityInputFilterTest
209 mCaptor1 = new EventCaptor(); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
211 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
218 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers()
229 mCaptor1 = new EventCaptor(); in testInputEvent_shouldClearEventsForAllEventHandlers()
230 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldClearEventsForAllEventHandlers()
234 assertEquals(2, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers()
239 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForAllEventHandlers()