Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationGestureHandlerTest.java46 private TestMagnificationGestureHandler mMgh; field in MagnificationGestureHandlerTest
57 mMgh = new TestMagnificationGestureHandler(DISPLAY_0, in setUp()
68 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_isFromScreen_onMotionEventInternal()
71 assertTrue(mMgh.mIsInternalMethodCalled); in onMotionEvent_isFromScreen_onMotionEventInternal()
82 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_downEvent_handleInteractionStart()
85 verify(mCallback).onTouchInteractionStart(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_downEvent_handleInteractionStart()
96 mMgh.onMotionEvent(upEvent, upEvent, /* policyFlags= */ 0); in onMotionEvent_upEvent_handleInteractionEnd()
99 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_upEvent_handleInteractionEnd()
110 mMgh.onMotionEvent(cancelEvent, cancelEvent, /* policyFlags= */ 0); in onMotionEvent_cancelEvent_handleInteractionEnd()
113 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_cancelEvent_handleInteractionEnd()
[all …]
DFullScreenMagnificationGestureHandlerTest.java134 private FullScreenMagnificationGestureHandler mMgh; field in FullScreenMagnificationGestureHandlerTest
168 mMgh = newInstance(detectTripleTap, detectShortcutTrigger); in setUp()
173 mMgh.onDestroy(); in tearDown()
245 mMgh.mDetectingState.transitionToDelegatingStateAndClear(); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
246 assertFalse(mMgh.mDetectingState.mShortcutTriggered); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
249 mMgh.mDetectingState.transitionToDelegatingStateAndClear(); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
250 assertTrue(mMgh.mDetectingState.mShortcutTriggered); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
321 mMgh = newInstance(/* detect3tap */ false, /* detectShortcut */ true); in testDisablingTripleTap_removesInputLag()
326 verify(mMgh.getNext(), times(2)).onMotionEvent(any(), any(), anyInt()); in testDisablingTripleTap_removesInputLag()
357 mMgh.setNext(eventCaptor); in testTwoFingersOneTap_zoomedState_dispatchMotionEvents()
[all …]