Home
last modified time | relevance | path

Searched refs:mMockWindowManager (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationThumbnailTest.java50 private final WindowManager mMockWindowManager = mock(WindowManager.class); field in MagnificationThumbnailTest
58 when(mMockWindowManager.getCurrentWindowMetrics()).thenReturn(metrics); in setUp()
61 mMockWindowManager, in setUp()
82 verify(mMockWindowManager).addView(eq(mMagnificationThumbnail.mThumbnailLayout), any()); in updateThumbnailShows()
99 verify(mMockWindowManager).removeView(eq(mMagnificationThumbnail.mThumbnailLayout)); in updateThumbnailLingersThenHidesAfterTimeout()
118 verify(mMockWindowManager).removeView(eq(mMagnificationThumbnail.mThumbnailLayout)); in hideThumbnailRemoves()
154 verify(mMockWindowManager).removeView(eq(mMagnificationThumbnail.mThumbnailLayout)); in hideShowHideShowHideRemoves()
166 verify(mMockWindowManager, never()) in hideWithoutShowDoesNothing()
168 verify(mMockWindowManager, never()) in hideWithoutShowDoesNothing()
185 verify(mMockWindowManager, never()) in whenHidden_setBoundsDoesNotShow()
[all …]
DFullScreenMagnificationControllerTest.java122 final WindowManagerInternal mMockWindowManager = mock(WindowManagerInternal.class); field in FullScreenMagnificationControllerTest
159 when(mMockControllerCtx.getWindowManager()).thenReturn(mMockWindowManager); in setUp()
212 verify(mMockWindowManager).setMagnificationCallbacks( in testRegister_WindowManagerAndContextRegisterListeners()
214 verify(mMockWindowManager).setMagnificationCallbacks( in testRegister_WindowManagerAndContextRegisterListeners()
216 verify(mMockWindowManager).setMagnificationCallbacks( in testRegister_WindowManagerAndContextRegisterListeners()
231 verify(mMockWindowManager).setMagnificationCallbacks(eq(DISPLAY_0), eq(null)); in testRegister_WindowManagerAndContextUnregisterListeners()
232 verify(mMockWindowManager).setMagnificationCallbacks(eq(DISPLAY_1), eq(null)); in testRegister_WindowManagerAndContextUnregisterListeners()
331 verify(mMockWindowManager).setMagnificationSpec(
370 verify(mMockWindowManager).setMagnificationSpec(eq(displayId), eq(startSpec));
373 Mockito.reset(mMockWindowManager);
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTutorialHandlerTest.java58 WindowManager mMockWindowManager; field in OneHandedTutorialHandlerTest
71 new OneHandedTutorialHandler(mContext, mMockSettingsUtil, mMockWindowManager, in setUp()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DStartingSurfaceDrawerTests.java97 private WindowManager mMockWindowManager; field in StartingSurfaceDrawerTests
132 mTestContext.addMockSystemService(WindowManager.class, mMockWindowManager); in setUp()
134 doReturn(metrics).when(mMockWindowManager).getMaximumWindowMetrics(); in setUp()
135 doNothing().when(mMockWindowManager).addView(any(), any()); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFlashNotificationsControllerTest.java110 private WindowManager mMockWindowManager; field in FlashNotificationsControllerTest
155 }).when(mMockWindowManager).addView(any(View.class), any(ViewGroup.LayoutParams.class)); in setUp()
162 }).when(mMockWindowManager).removeView(any(View.class)); in setUp()
163 mTestableContext.addMockSystemService(Context.WINDOW_SERVICE, mMockWindowManager); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java106 WindowManagerInternal mMockWindowManager; field in BaseLockSettingsServiceTests
129 mMockWindowManager = mock(WindowManagerInternal.class); in setUp_baseServices()
143 LocalServices.addService(WindowManagerInternal.class, mMockWindowManager); in setUp_baseServices()