/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/ |
D | CompatUIWindowManagerTest.java | 89 private CompatUIWindowManager mWindowManager; field in CompatUIWindowManagerTest 96 mWindowManager = new CompatUIWindowManager(mContext, mTaskInfo, mSyncTransactionQueue, in setUp() 100 spyOn(mWindowManager); in setUp() 101 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 102 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 108 mWindowManager.mHasSizeCompat = true; in testCreateSizeCompatButton() 109 assertTrue(mWindowManager.createLayout(/* canShow= */ false)); in testCreateSizeCompatButton() 111 verify(mWindowManager, never()).inflateLayout(); in testCreateSizeCompatButton() 114 mWindowManager.mCompatUIHintsState.mHasShownSizeCompatHint = true; in testCreateSizeCompatButton() 115 assertTrue(mWindowManager.createLayout(/* canShow= */ true)); in testCreateSizeCompatButton() [all …]
|
D | CompatUILayoutTest.java | 79 private CompatUIWindowManager mWindowManager; field in CompatUILayoutTest 87 mWindowManager = new CompatUIWindowManager(mContext, mTaskInfo, mSyncTransactionQueue, in setUp() 93 mLayout.inject(mWindowManager); in setUp() 95 spyOn(mWindowManager); in setUp() 97 doReturn(mViewHost).when(mWindowManager).createSurfaceViewHost(); in setUp() 98 doReturn(mLayout).when(mWindowManager).inflateLayout(); in setUp() 110 verify(mWindowManager).onRestartButtonClicked(); in testOnClickForRestartButton() 119 doNothing().when(mWindowManager).onRestartButtonLongClicked(); in testOnLongClickForRestartButton() 124 verify(mWindowManager).onRestartButtonLongClicked(); in testOnLongClickForRestartButton() 129 mWindowManager.mHasSizeCompat = true; in testOnClickForSizeCompatHint() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImplTest.java | 81 @Mock private WindowManager mWindowManager; field in NotificationShadeWindowControllerImplTest 118 mWindowManager, mActivityManager, mDozeParameters, mStatusBarStateController, in setUp() 132 verify(mWindowManager).addView(eq(mNotificationShadeWindowView), any()); in setUp() 141 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 146 reset(mWindowManager); in testSetDozing_hidesSystemOverlays() 148 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays() 171 clearInvocations(mWindowManager); in attach_visibleWithWallpaper() 176 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_visibleWithWallpaper() 185 clearInvocations(mWindowManager); in attach_lightScrimHidesWallpaper() 187 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_lightScrimHidesWallpaper() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | TestableWindowManager.java | 30 private final WindowManager mWindowManager; field in TestableWindowManager 36 mWindowManager = windowManager; in TestableWindowManager() 41 return mWindowManager.getDefaultDisplay(); in getDefaultDisplay() 46 mWindowManager.removeViewImmediate(view); in removeViewImmediate() 52 mWindowManager.requestAppKeyboardShortcuts(receiver, deviceId); in requestAppKeyboardShortcuts() 57 return mWindowManager.getCurrentImeTouchRegion(); in getCurrentImeTouchRegion() 63 mWindowManager.addView(view, params); in addView() 68 mWindowManager.updateViewLayout(view, params); in updateViewLayout() 74 mWindowManager.removeView(view); in removeView() 79 final WindowMetrics realMetrics = mWindowManager.getCurrentWindowMetrics(); in getCurrentWindowMetrics() [all …]
|
D | MagnificationModeSwitchTest.java | 104 private TestableWindowManager mWindowManager; field in MagnificationModeSwitchTest 117 mWindowManager = spy(new TestableWindowManager(wm)); in setUp() 118 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 152 verify(mWindowManager).removeView(mSpyImageView); in removeButton_buttonIsShowing_removeViewAndUnregisterComponentCallbacks() 163 assertEquals(mSpyImageView, mWindowManager.getAttachedView()); in showFullscreenModeButton_addViewAndSetImageResource() 201 verify(mWindowManager).removeView(mSpyImageView); in showMagnificationButton_windowModeAndFadingOut_verifyAnimationEndAction() 211 InOrder inOrder = Mockito.inOrder(mWindowManager); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 212 inOrder.verify(mWindowManager).updateViewLayout(eq(mSpyImageView), any()); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 213 inOrder.verify(mWindowManager).removeView(eq(mSpyImageView)); in onDensityChanged_buttonIsShowing_updateResourcesAndLayout() 214 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()
|
D | WindowMagnificationControllerTest.java | 123 private TestableWindowManager mWindowManager; field in WindowMagnificationControllerTest 139 mWindowManager = spy(new TestableWindowManager(wm)); in setUp() 141 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 250 List<Rect> rects = mWindowManager.getAttachedView().getSystemGestureExclusionRects(); in enableWindowMagnification_systemGestureExclusionRectsIsSet() 258 mWindowManager.setWindowBounds(new Rect(0, 0, screenSize, screenSize)); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 266 WindowManager.LayoutParams params = mWindowManager.getLayoutParamsFromAttachedView(); in enableWindowMagnification_LargeScreen_windowSizeIsConstrained() 419 final View mirrorView = mWindowManager.getAttachedView(); in setScale_enabled_expectedValueAndUpdateStateDescription() 441 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() 455 mWindowManager.setWindowBounds(windowBounds); in onOrientationChanged_enabled_updateDisplayRotationAndCenterStayAtSamePosition() 470 final Rect windowBounds = new Rect(mWindowManager.getCurrentWindowMetrics().getBounds()); in onOrientationChanged_disabled_updateDisplayRotation() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/ |
D | DreamOverlayServiceTest.java | 95 WindowManagerImpl mWindowManager; field in DreamOverlayServiceTest 150 mService = new DreamOverlayService(mContext, mMainExecutor, mWindowManager, in setup() 196 verify(mWindowManager).addView(any(), any()); in testOverlayContainerViewAddedToWindow() 205 doThrow(new WindowManager.BadTokenException()).when(mWindowManager).addView(any(), any()); in testInvalidWindowAddStart() 211 verify(mWindowManager).addView(any(), any()); in testInvalidWindowAddStart() 288 verify(mWindowManager).addView(mViewCaptor.capture(), any()); in testOnEndDream() 295 verify(mWindowManager).removeView(mViewCaptor.getValue()); in testOnEndDream() 318 InOrder inOrder = inOrder(mWindowManager); in testImmediateEndDream() 319 inOrder.verify(mWindowManager).addView(mViewCaptor.capture(), any()); in testImmediateEndDream() 320 inOrder.verify(mWindowManager).removeView(mViewCaptor.getValue()); in testImmediateEndDream() [all …]
|
/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() 118 mWindowManager.relayout(); in onInterceptTouchEvent() 128 restartButton.setOnClickListener(view -> mWindowManager.onRestartButtonClicked()); in onFinishInflate() 130 mWindowManager.onRestartButtonLongClicked(); in onFinishInflate() 142 view -> mWindowManager.onCameraTreatmentButtonClicked()); in onFinishInflate() 144 mWindowManager.onCameraButtonLongClicked(); in onFinishInflate() 150 view -> mWindowManager.onCameraDismissButtonClicked()); in onFinishInflate() 152 mWindowManager.onCameraButtonLongClicked(); in onFinishInflate()
|
/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/services/core/java/com/android/server/wm/ |
D | RecentsAnimation.java | 62 private final WindowManagerService mWindowManager; field in RecentsAnimation 90 mWindowManager = wm; in RecentsAnimation() 175 if (mWindowManager.getRecentsAnimationController() != null) { in startRecentsActivity() 176 mWindowManager.getRecentsAnimationController().forceCancelAnimation( in startRecentsActivity() 235 mWindowManager.prepareAppTransitionNone(); in startRecentsActivity() 236 mWindowManager.executeAppTransition(); in startRecentsActivity() 252 mWindowManager.initializeRecentsAnimation(mTargetActivityType, recentsAnimationRunner, in startRecentsActivity() 284 mWindowManager.getRecentsAnimationController(), reorderMode); in finishAnimation() 290 mWindowManager.getRecentsAnimationController(); in finishAnimation() 305 mWindowManager.inSurfaceTransaction(() -> { in finishAnimation() [all …]
|
D | KeyguardController.java | 80 private WindowManagerService mWindowManager; field in KeyguardController 96 mWindowManager = windowManager; in setWindowManager() 206 mWindowManager.mTaskSnapshotController.snapshotForSleeping(DEFAULT_DISPLAY); in setKeyguardShown() 230 mWindowManager.mWindowPlacerLocked.performSurfacePlacement(); in setKeyguardShown() 235 if (mWindowManager.mAtmService.getTransitionController().getCollectingTransitionType() in setWakeTransitionReady() 237 mWindowManager.mAtmService.getTransitionController().setReady( in setWakeTransitionReady() 278 mWindowManager.executeAppTransition(); in keyguardGoingAway() 299 mWindowManager.dismissKeyguard(callback, message); in dismissKeyguard() 350 && !mWindowManager.isKeyguardSecure(mService.getCurrentUserId()); in canShowWhileOccluded() 409 mWindowManager.mPolicy.onKeyguardOccludedChangedLw(isDisplayOccluded(DEFAULT_DISPLAY), in handleOccludedChanged() [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/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | DockTooltipViewTest.java | 54 private WindowManager mWindowManager; field in DockTooltipViewTest 70 mWindowManager).getMaximumWindowMetrics(); in setUp() 71 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 72 when(mWindowManager.getCurrentWindowMetrics()).thenReturn(mWindowMetrics); in setUp() 85 verify(mWindowManager).addView(eq(mDockTooltipView), any(WindowManager.LayoutParams.class)); in showTooltip_success() 94 verify(mWindowManager).removeView(mDockTooltipView); in hideTooltip_success()
|
D | BaseTooltipViewTest.java | 57 private WindowManager mWindowManager; field in BaseTooltipViewTest 74 mWindowManager).getMaximumWindowMetrics(); in setUp() 75 mContext.addMockSystemService(Context.WINDOW_SERVICE, mWindowManager); in setUp() 76 when(mWindowManager.getCurrentWindowMetrics()).thenReturn(mWindowMetrics); in setUp() 88 verify(mWindowManager).addView(eq(mToolTipView), any(WindowManager.LayoutParams.class)); in showToolTipView_success() 103 verify(mWindowManager).removeView(mToolTipView); in touchOutsideWhenToolTipViewShown_dismiss()
|
/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(mName, DEFAULT_DISPLAY); in registerInputConsumer() 143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer() 161 mWindowManager.destroyInputConsumer(mName, 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(mName, DEFAULT_DISPLAY); in registerInputConsumer() 143 mWindowManager.createInputConsumer(mToken, mName, DEFAULT_DISPLAY, inputChannel); in registerInputConsumer() 166 mWindowManager.destroyInputConsumer(mName, DEFAULT_DISPLAY); in unregisterInputConsumer()
|
D | PipDismissTargetHandler.java | 86 private final WindowManager mWindowManager; field in PipDismissTargetHandler 95 mWindowManager = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE); in PipDismissTargetHandler() 245 mWindowManager.addView(mTargetViewContainer, getDismissTargetLayoutParams()); in createOrUpdateDismissTarget() 247 mWindowManager.updateViewLayout(mTargetViewContainer, getDismissTargetLayoutParams()); in createOrUpdateDismissTarget() 254 mWindowManager.getDefaultDisplay().getRealSize(windowSize); in getDismissTargetLayoutParams() 303 mWindowManager.removeViewImmediate(mTargetViewContainer); in cleanUpDismissTarget()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | InattentiveSleepWarningView.java | 40 private final WindowManager mWindowManager; field in InattentiveSleepWarningView 46 mWindowManager = mContext.getSystemService(WindowManager.class); in InattentiveSleepWarningView() 78 mWindowManager.removeView(InattentiveSleepWarningView.this); in removeView() 95 mWindowManager.addView(this, getLayoutParams(mWindowToken)); in show()
|
/frameworks/base/core/java/android/app/ |
D | UiAutomationConnection.java | 73 private final IWindowManager mWindowManager = IWindowManager.Stub.asInterface( field in UiAutomationConnection 155 mWindowManager.syncInputTransactions(waitForAnimations); in injectInputEvent() 163 mWindowManager.syncInputTransactions(waitForAnimations); in injectInputEvent() 183 mWindowManager.syncInputTransactions(waitForAnimations); in syncInputTransactions() 198 mWindowManager.thawRotation(); in setRotation() 200 mWindowManager.freezeRotation(rotation); in setRotation() 276 return mWindowManager.clearWindowContentFrameStats(token); in clearWindowContentFrameStats() 296 return mWindowManager.getWindowContentFrameStats(token); in getWindowContentFrameStats() 581 if (mWindowManager.isRotationFrozen()) { in storeRotationStateLocked() 584 mInitialFrozenRotation = mWindowManager.getDefaultDisplayRotation(); in storeRotationStateLocked() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | MirrorWindowControl.java | 73 private final WindowManager mWindowManager; field in MirrorWindowControl 77 mWindowManager = (WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE); in MirrorWindowControl() 104 mWindowManager.addView(mControlsView, lp); in showControl() 130 mWindowManager.removeView(mControlsView); in destroyControl() 163 mWindowManager.updateViewLayout(mControlsView, lp); in setPosition()
|
D | MagnificationModeSwitch.java | 74 private final WindowManager mWindowManager; field in MagnificationModeSwitch 110 mWindowManager = mContext.getSystemService(WindowManager.class); in MagnificationModeSwitch() 147 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in MagnificationModeSwitch() 241 final int windowWidth = mWindowManager.getCurrentWindowMetrics().getBounds().width(); in onFinish() 277 mWindowManager.removeView(mImageView); in removeButton() 308 mWindowManager.addView(mImageView, mParams); in showButton() 385 mWindowManager.updateViewLayout(mImageView, mParams); in updateButtonViewLayoutIfNeeded() 392 mWindowManager.updateViewLayout(mImageView, mParams); in updateAccessibilityWindowTitle() 442 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getDraggableWindowBounds()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/rotation/ |
D | FloatingRotationButton.java | 50 private final WindowManager mWindowManager; field in FloatingRotationButton 91 mWindowManager = context.getSystemService(WindowManager.class); in FloatingRotationButton() 160 mWindowManager.addView(mKeyButtonContainer, layoutParams); in show() 183 mWindowManager.removeViewImmediate(mKeyButtonContainer); in hide() 262 mWindowManager.updateViewLayout(mKeyButtonContainer, layoutParams); in onConfigurationChanged() 283 mDisplayRotation = mWindowManager.getDefaultDisplay().getRotation(); in adjustViewPositionAndCreateLayoutParams()
|
/frameworks/base/core/java/android/window/ |
D | WindowContext.java | 49 private final WindowManager mWindowManager; field in WindowContext 81 mWindowManager = createWindowContextWindowManager(this); in WindowContext() 100 return mWindowManager; in getSystemService()
|