/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
D | CompatUIWindowManagerTest.java | 100 private CompatUIWindowManager mWindowManager; field in CompatUIWindowManagerTest 122 mWindowManager = new CompatUIWindowManager(mContext, mTaskInfo, mSyncTransactionQueue, in setUp() 126 spyOn(mWindowManager); in setUp() 127 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 128 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 134 mWindowManager.mHasSizeCompat = true; in testCreateSizeCompatButton() 135 assertTrue(mWindowManager.createLayout(/* canShow= */ false)); in testCreateSizeCompatButton() 137 verify(mWindowManager, never()).inflateLayout(); in testCreateSizeCompatButton() 140 mWindowManager.mCompatUIHintsState.mHasShownSizeCompatHint = true; in testCreateSizeCompatButton() 141 assertTrue(mWindowManager.createLayout(/* canShow= */ true)); in testCreateSizeCompatButton() [all …]
|
D | UserAspectRatioSettingsWindowManagerTest.java | 105 private UserAspectRatioSettingsWindowManager mWindowManager; field in UserAspectRatioSettingsWindowManagerTest 130 mWindowManager = new UserAspectRatioSettingsWindowManager(mContext, mTaskInfo, in setUp() 134 spyOn(mWindowManager); in setUp() 135 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 136 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 143 mWindowManager.mHasUserAspectRatioSettingsButton = true; in testCreateUserAspectRatioButton() 144 assertTrue(mWindowManager.createLayout(/* canShow= */ false)); in testCreateUserAspectRatioButton() 146 verify(mWindowManager, never()).inflateLayout(); in testCreateUserAspectRatioButton() 149 mWindowManager.mCompatUIHintsState.mHasShownUserAspectRatioSettingsButtonHint = true; in testCreateUserAspectRatioButton() 150 assertTrue(mWindowManager.createLayout(/* canShow= */ true)); in testCreateUserAspectRatioButton() [all …]
|
D | CompatUILayoutTest.java | 80 private CompatUIWindowManager mWindowManager; field in CompatUILayoutTest 89 mWindowManager = new CompatUIWindowManager(mContext, mTaskInfo, mSyncTransactionQueue, in setUp() 95 mLayout.inject(mWindowManager); in setUp() 97 spyOn(mWindowManager); in setUp() 99 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 100 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 112 verify(mWindowManager).onRestartButtonClicked(); in testOnClickForRestartButton() 121 doNothing().when(mWindowManager).onRestartButtonLongClicked(); in testOnLongClickForRestartButton() 126 verify(mWindowManager).onRestartButtonLongClicked(); in testOnLongClickForRestartButton() 131 mWindowManager.mHasSizeCompat = true; in testOnClickForSizeCompatHint() [all …]
|
D | UserAspectRatioSettingsLayoutTest.java | 85 private UserAspectRatioSettingsWindowManager mWindowManager; field in UserAspectRatioSettingsLayoutTest 93 mWindowManager = new UserAspectRatioSettingsWindowManager(mContext, mTaskInfo, in setUp() 101 mLayout.inject(mWindowManager); in setUp() 103 spyOn(mWindowManager); in setUp() 105 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 106 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 114 verify(mWindowManager).onUserAspectRatioSettingsButtonClicked(); in testOnClickForUserAspectRatioSettingsButton() 127 doNothing().when(mWindowManager).onUserAspectRatioSettingsButtonLongClicked(); in testOnLongClickForUserAspectRatioButton() 132 verify(mWindowManager).onUserAspectRatioSettingsButtonLongClicked(); in testOnLongClickForUserAspectRatioButton() 137 mWindowManager.mHasUserAspectRatioSettingsButton = true; in testOnClickForUserAspectRatioSettingsHint() [all …]
|
D | ReachabilityEduWindowManagerTest.java | 66 private ReachabilityEduWindowManager mWindowManager; field in ReachabilityEduWindowManagerTest 79 mWindowManager = createReachabilityEduWindowManager(mTaskInfo); in setUp() 84 assertFalse(mWindowManager.createLayout(/* canShow= */ true)); in testCreateLayout_notEligible_doesNotCreateLayout() 86 assertNull(mWindowManager.mLayout); in testCreateLayout_notEligible_doesNotCreateLayout() 96 Assert.assertTrue(mWindowManager.needsToBeRecreated(newTaskInfo, mTaskListener)); in testWhenDockedStateHasChanged_needsToBeRecreated() 106 Assert.assertTrue(mWindowManager.needsToBeRecreated(newTaskInfo, mTaskListener)); in testWhenDarkLightThemeHasChanged_needsToBeRecreated()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | SensitiveContentProtectionManagerServiceNotificationTest.java | 111 private WindowManagerInternal mWindowManager; field in SensitiveContentProtectionManagerServiceNotificationTest 153 mSensitiveContentProtectionManagerService.init(mProjectionManager, mWindowManager, in setUp() 313 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in mediaProjectionOnStart_verifyExemptedRecorderPackage() 323 verify(mWindowManager, never()).setBlockScreenCaptureForAppsSessionId(anyLong()); in mediaProjectionOnStart_flagDisabled_neverSetBlockScreenCaptureForAppsSessionId() 333 verify(mWindowManager).setBlockScreenCaptureForAppsSessionId(anyLong()); in mediaProjectionOnStart_setBlockScreenCaptureForAppsSessionId() 342 verify(mWindowManager).addBlockScreenCaptureForApps(expectedBlockedPackages); in mediaProjectionOnStart_onProjectionStart_setWmBlockedPackages() 351 verify(mWindowManager, never()).addBlockScreenCaptureForApps(any()); in mediaProjectionOnStart_noSensitiveNotifications_noBlockedPackages() 360 verify(mWindowManager, never()).addBlockScreenCaptureForApps(any()); in mediaProjectionOnStart_noNotifications_noBlockedPackages() 370 verify(mWindowManager).addBlockScreenCaptureForApps(expectedBlockedPackages); in mediaProjectionOnStart_multipleNotifications_setWmBlockedPackages() 380 verify(mWindowManager).addBlockScreenCaptureForApps(expectedBlockedPackages); in mediaProjectionOnStart_multiplePackages_setWmBlockedPackages() [all …]
|
D | SensitiveContentProtectionManagerServiceContentTest.java | 74 @Mock private WindowManagerInternal mWindowManager; field in SensitiveContentProtectionManagerServiceContentTest 95 mSensitiveContentProtectionManagerService.init(mProjectionManager, mWindowManager, in setUp() 110 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in testExemptedRecorderPackageForScreenCapture() 118 verify(mWindowManager, atLeast(1)) in testBlockAppWindowForScreenCapture() 128 verify(mWindowManager).removeBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in testUnblockAppWindowForScreenCapture() 137 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in testAppWindowIsUnblockedBeforeScreenCapture() 147 verify(mWindowManager).clearBlockedApps(); in testAppWindowsAreUnblockedOnScreenCaptureEnd() 160 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in testAutofillServicePackageExemption() 169 verify(mWindowManager, never()).addBlockScreenCaptureForApps(mPackageInfoCaptor.capture()); in testDeveloperOptionDisableFeature()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | TestableWindowManager.java | 32 private final WindowManager mWindowManager; field in TestableWindowManager 38 mWindowManager = windowManager; in TestableWindowManager() 43 return mWindowManager.getDefaultDisplay(); in getDefaultDisplay() 48 mWindowManager.removeViewImmediate(view); in removeViewImmediate() 54 mWindowManager.requestAppKeyboardShortcuts(receiver, deviceId); in requestAppKeyboardShortcuts() 59 return mWindowManager.getCurrentImeTouchRegion(); in getCurrentImeTouchRegion() 65 mWindowManager.addView(view, params); in addView() 70 mWindowManager.updateViewLayout(view, params); in updateViewLayout() 76 mWindowManager.removeView(view); in removeView() 81 final WindowMetrics realMetrics = mWindowManager.getCurrentWindowMetrics(); in getCurrentWindowMetrics() [all …]
|
D | WindowMagnificationControllerTest.java | 158 private TestableWindowManager mWindowManager; field in WindowMagnificationControllerTest 191 mWindowManager = spy(new TestableWindowManager(wm)); in setUp() 195 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 350 List<Rect> rects = mWindowManager.getAttachedView().getSystemGestureExclusionRects(); in enableWindowMagnification_systemGestureExclusionRectsIsSet() 357 final int screenSize = mWindowManager.getCurrentWindowMetrics().getBounds().width() * 10; in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 358 mWindowManager.setWindowBounds(new Rect(0, 0, screenSize, screenSize)); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 366 WindowManager.LayoutParams params = mWindowManager.getLayoutParamsFromAttachedView(); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 515 final View mirrorView = mWindowManager.getAttachedView(); in setScale_enabled_expectedValueAndUpdateStateDescription() 537 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() 551 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() [all …]
|
D | MagnificationModeSwitchTest.java | 107 private TestableWindowManager mWindowManager; field in MagnificationModeSwitchTest 119 mWindowManager = spy(new TestableWindowManager(wm)); in setUp() 120 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 154 verify(mWindowManager).removeView(mSpyImageView); in removeButton_buttonIsShowing_removeViewAndUnregisterComponentCallbacks() 165 assertEquals(mSpyImageView, mWindowManager.getAttachedView()); in showFullscreenModeButton_addViewAndSetImageResource() 284 verify(mWindowManager).removeView(mSpyImageView); in showMagnificationButton_windowModeAndFadingOut_verifyAnimationEndAction() 294 InOrder inOrder = Mockito.inOrder(mWindowManager); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 295 inOrder.verify(mWindowManager).updateViewLayout(eq(mSpyImageView), any()); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 296 inOrder.verify(mWindowManager).removeView(eq(mSpyImageView)); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 297 inOrder.verify(mWindowManager).addView(eq(mSpyImageView), any()); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() [all …]
|
D | MirrorWindowControlTest.java | 51 @Mock WindowManager mWindowManager; field in MirrorWindowControlTest 64 getContext().addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 70 }).when(mWindowManager).addView(any(View.class), any(LayoutParams.class)); in setUp() 83 verify(mWindowManager).addView(any(), lpCaptor.capture()); in showControl_createViewAndAddView() 92 verify(mWindowManager).addView(captor.capture(), any(LayoutParams.class)); in destroyControl_removeView() 96 verify(mWindowManager).removeView(eq(captor.getValue())); in destroyControl_removeView() 104 verify(mWindowManager).addView(any(), lpCaptor.capture()); in move_offsetIsCorrect() 110 verify(mWindowManager).updateViewLayout(eq(mView), lpCaptor.capture()); in move_offsetIsCorrect()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImplTest.java | 92 @Mock private WindowManager mWindowManager; field in NotificationShadeWindowControllerImplTest 146 mWindowManager, in setUp() 173 verify(mWindowManager).addView(eq(mNotificationShadeWindowView), any()); in setUp() 182 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 187 reset(mWindowManager); in testSetDozing_hidesSystemOverlays() 189 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 212 clearInvocations(mWindowManager); in attach_visibleWithWallpaper() 217 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_visibleWithWallpaper() 226 clearInvocations(mWindowManager); in attach_lightScrimHidesWallpaper() 228 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_lightScrimHidesWallpaper() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardOverlayWindow.java | 48 private final WindowManager mWindowManager; field in ClipboardOverlayWindow 66 mWindowManager = mContext.getSystemService(WindowManager.class); in ClipboardOverlayWindow() 69 setWindowManager(mWindowManager, null, null); in ClipboardOverlayWindow() 86 WindowInsets currentInsets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init() 89 WindowInsets insets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init() 116 mWindowManager.removeViewImmediate(decorView); in remove() 121 return mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in getWindowInsets() 150 mWindowManager.addView(decorView, mWindowLayoutParams); in attach() 171 mWindowManager.updateViewLayout(decorView, mWindowLayoutParams); in setWindowFocusable()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/ |
D | CompatUILayout.java | 37 private CompatUIWindowManager mWindowManager; field in CompatUILayout 57 mWindowManager = windowManager; in inject() 112 mWindowManager.relayout(); in onLayout() 120 restartButton.setOnClickListener(view -> mWindowManager.onRestartButtonClicked()); in onFinishInflate() 122 mWindowManager.onRestartButtonLongClicked(); in onFinishInflate() 134 view -> mWindowManager.onCameraTreatmentButtonClicked()); in onFinishInflate() 136 mWindowManager.onCameraButtonLongClicked(); in onFinishInflate() 142 view -> mWindowManager.onCameraDismissButtonClicked()); in onFinishInflate() 144 mWindowManager.onCameraButtonLongClicked(); in onFinishInflate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuViewLayerControllerTest.java | 61 private WindowManager mWindowManager; field in MenuViewLayerControllerTest 78 mWindowManager).getMaximumWindowMetrics(); in setUp() 79 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 80 when(mWindowManager.getCurrentWindowMetrics()).thenReturn(mWindowMetrics); in setUp() 83 mMenuViewLayerController = new MenuViewLayerController(mContext, mWindowManager, in setUp() 91 verify(mWindowManager).addView(any(View.class), any(ViewGroup.LayoutParams.class)); in show_shouldAddViewToWindow() 100 verify(mWindowManager).removeView(any(View.class)); in hide_menuIsShowing_removeViewFromWindow()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | KeyguardController.java | 82 private WindowManagerService mWindowManager; field in KeyguardController 99 mWindowManager = windowManager; in setWindowManager() 222 mWindowManager.mTaskSnapshotController.snapshotForSleeping(DEFAULT_DISPLAY); in setKeyguardShown() 260 mWindowManager.mWindowPlacerLocked.performSurfacePlacement(); in setKeyguardShown() 265 if (mWindowManager.mAtmService.getTransitionController().getCollectingTransitionType() in setWakeTransitionReady() 267 mWindowManager.mAtmService.getTransitionController().setReady( in setWakeTransitionReady() 308 mWindowManager.executeAppTransition(); in keyguardGoingAway() 329 mWindowManager.dismissKeyguard(callback, message); in dismissKeyguard() 380 && !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canShowWhileOccluded() 444 mWindowManager.mPolicy.onKeyguardOccludedChangedLw(occluded); in handleOccludedChanged() [all …]
|
D | RecentsAnimation.java | 62 private final WindowManagerService mWindowManager; field in RecentsAnimation 90 mWindowManager = wm; in RecentsAnimation() 180 if (mWindowManager.getRecentsAnimationController() != null) { in startRecentsActivity() 181 mWindowManager.getRecentsAnimationController().forceCancelAnimation( in startRecentsActivity() 240 mWindowManager.prepareAppTransitionNone(); in startRecentsActivity() 241 mWindowManager.executeAppTransition(); in startRecentsActivity() 257 mWindowManager.initializeRecentsAnimation(mTargetActivityType, recentsAnimationRunner, in startRecentsActivity() 289 mWindowManager.getRecentsAnimationController(), reorderMode); in finishAnimation() 295 mWindowManager.getRecentsAnimationController(); in finishAnimation() 314 mWindowManager.cleanupRecentsAnimation(reorderMode); in finishAnimation() [all …]
|
D | ViewServer.java | 73 private final WindowManagerService mWindowManager; field in ViewServer 88 mWindowManager = windowManager; in ViewServer() 246 result = mWindowManager.viewServerListWindows(mClient); in run() 248 result = mWindowManager.viewServerGetFocusedWindow(mClient); in run() 252 result = mWindowManager.viewServerWindowCommand(mClient, in run() 295 mWindowManager.addWindowChangeListener(this); in windowManagerAutolistLoop() 334 mWindowManager.removeWindowChangeListener(this); in windowManagerAutolistLoop()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | TaskFpsCallbackTest.java | 43 private WindowManager mWindowManager; field in TaskFpsCallbackTest 50 mWindowManager = mContext.getSystemService(WindowManager.class); in setup() 64 mWindowManager.registerTaskFpsCallback(tasks.get(0).taskId, Runnable::run, callback); in testRegisterAndUnregister() 65 mWindowManager.unregisterTaskFpsCallback(callback); in testRegisterAndUnregister()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | InputConsumerController.java | 84 private final IWindowManager mWindowManager; field in InputConsumerController 96 mWindowManager = windowManager; in InputConsumerController() 142 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in registerInputConsumer() 143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer() 161 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in unregisterInputConsumer()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuViewLayerController.java | 33 private final WindowManager mWindowManager; field in MenuViewLayerController 39 mWindowManager = windowManager; in MenuViewLayerController() 65 mWindowManager.addView(mMenuViewLayer, createDefaultLayerLayoutParams()); in show() 75 mWindowManager.removeView(mMenuViewLayer); in hide()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayServiceTest.kt | 105 @Mock lateinit var mWindowManager: WindowManagerImpl variable in com.android.systemui.dreams.DreamOverlayServiceTest 201 mWindowManager, in setup() 264 verify(mWindowManager).addView(any(), any()) in testOverlayContainerViewAddedToWindow() 273 .`when`(mWindowManager) in testInvalidWindowAddStart() 283 verify(mWindowManager).addView(any(), any()) in testInvalidWindowAddStart() 387 verify(mWindowManager).addView(mViewCaptor!!.capture(), any()) in testOnEndDream() 394 verify(mWindowManager).removeView(mViewCaptor!!.value) in testOnEndDream() 424 val inOrder = Mockito.inOrder(mWindowManager) in testImmediateEndDream() 425 inOrder.verify(mWindowManager).addView(mViewCaptor!!.capture(), any()) in testImmediateEndDream() 426 inOrder.verify(mWindowManager).removeView(mViewCaptor!!.value) in testImmediateEndDream() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipInputConsumer.java | 84 private final IWindowManager mWindowManager; field in PipInputConsumer 98 mWindowManager = windowManager; in PipInputConsumer() 142 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in registerInputConsumer() 143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer() 166 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in unregisterInputConsumer()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipInputConsumer.java | 84 private final IWindowManager mWindowManager; field in PipInputConsumer 98 mWindowManager = windowManager; in PipInputConsumer() 142 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in registerInputConsumer() 143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer() 166 mWindowManager.destroyInputConsumer(mToken, DEFAULT_DISPLAY); in unregisterInputConsumer()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyboardShortcutListSearchTest.java | 64 @Mock WindowManager mWindowManager; field in KeyboardShortcutListSearchTest 69 mKeyboardShortcutListSearch = new KeyboardShortcutListSearch(mContext, mWindowManager); in setUp() 91 verify(mWindowManager).requestAppKeyboardShortcuts(any(), anyInt()); in toggle_isShowingFalse_showKeyboardShortcuts() 92 verify(mWindowManager).requestImeKeyboardShortcuts(any(), anyInt()); in toggle_isShowingFalse_showKeyboardShortcuts() 105 verify(mWindowManager).requestAppKeyboardShortcuts(callbackCaptor.capture(), anyInt()); in requestAppKeyboardShortcuts_callback_sanitisesIcons() 124 verify(mWindowManager).requestImeKeyboardShortcuts(callbackCaptor.capture(), anyInt()); in requestImeKeyboardShortcuts_callback_sanitisesIcons()
|