Searched refs:DISPLAY_0 (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | WindowMagnificationGestureHandlerTest.java | 69 private static final int DISPLAY_0 = MockWindowMagnificationConnection.TEST_DISPLAY; field in WindowMagnificationGestureHandlerTest 87 /** detectTripleTap= */true, /** detectShortcutTrigger= */true, DISPLAY_0); in setUp() 94 mWindowMagnificationManager.disableWindowMagnification(DISPLAY_0, true); in tearDown() 154 verify(mMockCallback).onTripleTapped(eq(DISPLAY_0), in onTripleTap_callsOnTripleTapped() 172 check(!isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 179 check(isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 185 check(isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 218 TouchEventGenerator.twoPointersDownEvents(DISPLAY_0, in goFromStateIdleTo() 253 mWindowMagnificationManager.disableWindowMagnification(DISPLAY_0, false); in returnToNormalFrom() 302 return TouchEventGenerator.downEvent(DISPLAY_0, x, y); in downEvent() [all …]
|
D | MagnificationGestureHandlerTest.java | 47 private static final int DISPLAY_0 = 0; field in MagnificationGestureHandlerTest 57 mMgh = new TestMagnificationGestureHandler(DISPLAY_0, in setUp() 85 verify(mCallback).onTouchInteractionStart(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_downEvent_handleInteractionStart() 99 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_upEvent_handleInteractionEnd() 113 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_cancelEvent_handleInteractionEnd() 124 verify(mCallback).onShortcutTriggered(eq(DISPLAY_0), eq(mMgh.getMode())); in notifyShortcutTriggered_callsOnShortcutTriggered()
|
D | FullScreenMagnificationControllerTest.java | 87 static final int DISPLAY_0 = 0; field in FullScreenMagnificationControllerTest 133 register(DISPLAY_0); in testRegister_WindowManagerAndContextRegisterListeners() 139 eq(DISPLAY_0), (MagnificationCallbacks) anyObject()); in testRegister_WindowManagerAndContextRegisterListeners() 144 assertTrue(mFullScreenMagnificationController.isRegistered(DISPLAY_0)); in testRegister_WindowManagerAndContextRegisterListeners() 151 register(DISPLAY_0); in testRegister_WindowManagerAndContextUnregisterListeners() 153 mFullScreenMagnificationController.unregister(DISPLAY_0); in testRegister_WindowManagerAndContextUnregisterListeners() 157 verify(mMockWindowManager).setMagnificationCallbacks(eq(DISPLAY_0), eq(null)); in testRegister_WindowManagerAndContextUnregisterListeners() 159 assertFalse(mFullScreenMagnificationController.isRegistered(DISPLAY_0)); in testRegister_WindowManagerAndContextUnregisterListeners() 735 assertFalse(mFullScreenMagnificationController.isMagnifying(DISPLAY_0)); 741 register(DISPLAY_0); [all …]
|
D | FullScreenMagnificationGestureHandlerTest.java | 122 private static final int DISPLAY_0 = 0; field in FullScreenMagnificationGestureHandlerTest 152 when(mockWindowManager.setMagnificationCallbacks(eq(DISPLAY_0), any())).thenReturn(true); in setUp() 163 mFullScreenMagnificationController.register(DISPLAY_0); in setUp() 174 mFullScreenMagnificationController.unregister(DISPLAY_0); in tearDown() 184 mWindowMagnificationPromptController, DISPLAY_0); in newInstance() 458 verify(mMockCallback).onTripleTapped(DISPLAY_0, in testZoomedWithTripleTap_callsOnTripleTapped() 685 return mMgh.mFullScreenMagnificationController.isMagnifying(DISPLAY_0);
|