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/
DFullScreenMagnificationGestureHandlerTest.java207 private FullScreenMagnificationGestureHandler mMgh; field in FullScreenMagnificationGestureHandlerTest
268 mMgh = newInstance(detectSingleFingerTripleTap, detectTwoFingerTripleTap, in setUp()
274 mMgh.onDestroy(); in tearDown()
373 mMgh.mDetectingState.transitionToDelegatingStateAndClear(); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
374 assertFalse(mMgh.mDetectingState.mShortcutTriggered); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
377 mMgh.mDetectingState.transitionToDelegatingStateAndClear(); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
378 assertTrue(mMgh.mDetectingState.mShortcutTriggered); in testTransitionToDelegatingStateAndClear_preservesShortcutTriggeredState()
473 mMgh = newInstance(/* detectSingleFingerTripleTap */ false, in testDisablingTripleTap_removesInputLag()
479 verify(mMgh.getNext(), times(2)).onMotionEvent(any(), any(), anyInt()); in testDisablingTripleTap_removesInputLag()
485 mMgh = newInstance(/* detectSingleFingerTripleTap */ false, in testDisablingSingleFingerTripleTapAndTwoFingerTripleTap_removesInputLag()
[all …]
DMagnificationGestureHandlerTest.java48 private TestMagnificationGestureHandler mMgh; field in MagnificationGestureHandlerTest
61 mMgh = new TestMagnificationGestureHandler(DISPLAY_0, in setUp()
74 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_isFromScreen_onMotionEventInternal()
77 assertTrue(mMgh.mIsInternalMethodCalled); in onMotionEvent_isFromScreen_onMotionEventInternal()
88 mMgh.onMotionEvent(downEvent, downEvent, /* policyFlags= */ 0); in onMotionEvent_downEvent_handleInteractionStart()
91 verify(mCallback).onTouchInteractionStart(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_downEvent_handleInteractionStart()
102 mMgh.onMotionEvent(upEvent, upEvent, /* policyFlags= */ 0); in onMotionEvent_upEvent_handleInteractionEnd()
105 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_upEvent_handleInteractionEnd()
116 mMgh.onMotionEvent(cancelEvent, cancelEvent, /* policyFlags= */ 0); in onMotionEvent_cancelEvent_handleInteractionEnd()
119 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_cancelEvent_handleInteractionEnd()