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 | 89 private static final int DISPLAY_0 = MockMagnificationConnection.TEST_DISPLAY; field in WindowMagnificationGestureHandlerTest 114 /** detectShortcutTrigger= */ true, DISPLAY_0); in setUp() 123 mMagnificationConnectionManager.disableWindowMagnification(DISPLAY_0, true); in tearDown() 253 check(!isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 261 check(isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 269 check(isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 275 check(isWindowMagnifierEnabled(DISPLAY_0), state); in assertIn() 308 TouchEventGenerator.twoPointersDownEvents(DISPLAY_0, in goFromStateIdleTo() 378 mMagnificationConnectionManager.disableWindowMagnification(DISPLAY_0, false); in returnToNormalFrom() 444 return TouchEventGenerator.downEvent(DISPLAY_0, x, y); in downEvent() [all …]
|
D | MagnificationGestureHandlerTest.java | 49 private static final int DISPLAY_0 = 0; field in MagnificationGestureHandlerTest 61 mMgh = new TestMagnificationGestureHandler(DISPLAY_0, in setUp() 91 verify(mCallback).onTouchInteractionStart(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_downEvent_handleInteractionStart() 105 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_upEvent_handleInteractionEnd() 119 verify(mCallback).onTouchInteractionEnd(eq(DISPLAY_0), eq(mMgh.getMode())); in onMotionEvent_cancelEvent_handleInteractionEnd()
|
D | FullScreenMagnificationGestureHandlerTest.java | 180 private static final int DISPLAY_0 = 0; field in FullScreenMagnificationGestureHandlerTest 228 when(mockWindowManager.setMagnificationCallbacks(eq(DISPLAY_0), any())).thenReturn(true); in setUp() 261 mFullScreenMagnificationController.register(DISPLAY_0); in setUp() 275 mFullScreenMagnificationController.unregister(DISPLAY_0); in tearDown() 299 DISPLAY_0, in newInstance() 698 mFullScreenMagnificationController.reset(DISPLAY_0, /* animate= */ false); in testMagnifierDeactivates_shortcutTriggeredState_returnToIdleState() 875 DISPLAY_0, INITIAL_MAGNIFICATION_BOUNDS.left, centerY, false, 1); in testSingleFingerOverscrollAtLeftEdge_isNotWatch_transitionToDelegatingState() 898 DISPLAY_0, centerX, INITIAL_MAGNIFICATION_BOUNDS.bottom, false, 1); in testSingleFingerOverscrollAtBottomEdge_isNotWatch_transitionToDelegatingState() 921 DISPLAY_0, INITIAL_MAGNIFICATION_BOUNDS.left, centerY, false, 1); in testSingleFingerOverscrollAtLeftEdge_isWatch_expectedOverscrollState() 925 mFullScreenMagnificationController.getCenterX(DISPLAY_0), in testSingleFingerOverscrollAtLeftEdge_isWatch_expectedOverscrollState() [all …]
|
D | FullScreenMagnificationControllerTest.java | 109 static final int DISPLAY_0 = 0; field in FullScreenMagnificationControllerTest 207 register(DISPLAY_0); in testRegister_WindowManagerAndContextRegisterListeners() 213 eq(DISPLAY_0), any(MagnificationCallbacks.class)); in testRegister_WindowManagerAndContextRegisterListeners() 218 assertTrue(mFullScreenMagnificationController.isRegistered(DISPLAY_0)); in testRegister_WindowManagerAndContextRegisterListeners() 225 register(DISPLAY_0); in testRegister_WindowManagerAndContextUnregisterListeners() 227 mFullScreenMagnificationController.unregister(DISPLAY_0); in testRegister_WindowManagerAndContextUnregisterListeners() 231 verify(mMockWindowManager).setMagnificationCallbacks(eq(DISPLAY_0), eq(null)); in testRegister_WindowManagerAndContextUnregisterListeners() 233 assertFalse(mFullScreenMagnificationController.isRegistered(DISPLAY_0)); in testRegister_WindowManagerAndContextUnregisterListeners() 905 register(DISPLAY_0); 912 zoomIn2xToMiddle(DISPLAY_0); [all …]
|