Searched refs:mCaptor1 (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MotionEventInjectorTest.java | 135 ArgumentCaptor<MotionEvent> mCaptor1 = ArgumentCaptor.forClass(MotionEvent.class); field in MotionEventInjectorTest 205 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(expectedFlags)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 210 Matcher<MotionEvent> hasRightDownTime = hasDownTime(mCaptor1.getValue().getDownTime()); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming() 270 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 271 assertThat(mCaptor1.getAllValues().get(0), mIsClickDown); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 272 assertThat(mCaptor1.getAllValues().get(1), IS_ACTION_CANCEL); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected() 291 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected() 292 assertThat(mCaptor1.getAllValues().get(0), isMouseEvent); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected() 293 assertThat(mCaptor1.getAllValues().get(1), mIsLineStart); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected() 303 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected() [all …]
|
D | AccessibilityInputFilterTest.java | 102 private EventCaptor mCaptor1; field in AccessibilityInputFilterTest 267 mCaptor1 = new EventCaptor(); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 269 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 276 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldDispatchToCorrespondingEventHandlers() 287 mCaptor1 = new EventCaptor(); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 288 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 292 assertEquals(2, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 297 assertEquals(1, mCaptor1.mEvents.size()); in testInputEvent_shouldClearEventsForDisplayEventHandlers() 308 mCaptor1 = new EventCaptor(); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() 310 mEventHandler.put(DEFAULT_DISPLAY, mCaptor1); in testInputEvent_shouldNotClearEventsForOtherDisplayEventHandlers() [all …]
|