Home
last modified time | relevance | path

Searched refs:mDisplayContent (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DUnknownAppVisibilityControllerTest.java40 mDisplayContent.mUnknownAppVisibilityController.clear(); in setUp()
45 final AppWindowToken token = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testFlow()
46 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(token); in testFlow()
47 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(token); in testFlow()
48 mDisplayContent.mUnknownAppVisibilityController.notifyRelayouted(token); in testFlow()
52 assertTrue(mDisplayContent.mUnknownAppVisibilityController.allResolved()); in testFlow()
57 final AppWindowToken token1 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple()
58 final AppWindowToken token2 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple()
59 mDisplayContent.mUnknownAppVisibilityController.notifyLaunched(token1); in testMultiple()
60 mDisplayContent.mUnknownAppVisibilityController.notifyAppResumedFinished(token1); in testMultiple()
[all …]
DAppTransitionControllerTest.java52 mAppTransitionController = new AppTransitionController(mWm, mDisplayContent); in setUp()
59 final AppWindowToken behind = createAppWindowToken(mDisplayContent, in testTranslucentOpen()
61 final AppWindowToken translucentOpening = createAppWindowToken(mDisplayContent, in testTranslucentOpen()
65 mDisplayContent.mOpeningApps.add(behind); in testTranslucentOpen()
66 mDisplayContent.mOpeningApps.add(translucentOpening); in testTranslucentOpen()
77 final AppWindowToken behind = createAppWindowToken(mDisplayContent, in testTranslucentClose()
79 final AppWindowToken translucentClosing = createAppWindowToken(mDisplayContent, in testTranslucentClose()
82 mDisplayContent.mClosingApps.add(translucentClosing); in testTranslucentClose()
93 final AppWindowToken behind = createAppWindowToken(mDisplayContent, in testChangeIsNotOverwritten()
95 final AppWindowToken translucentOpening = createAppWindowToken(mDisplayContent, in testChangeIsNotOverwritten()
[all …]
DZOrderingTests.java211 return createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, name); in createWindow()
216 mDisplayContent.mInputMethodTarget = null; in testAssignWindowLayers_ForImeWithNoTarget()
217 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithNoTarget()
234 mDisplayContent.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTarget()
236 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTarget()
260 mDisplayContent.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
261 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
282 mDisplayContent.mInputMethodTarget = imeAppTarget; in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
283 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
302 mDisplayContent, "imeSystemOverlayTarget", in testAssignWindowLayers_ForImeNonAppImeTarget()
[all …]
DAppChangeTransitionTests.java103 setUpOnDisplay(mDisplayContent); in testModeChangeRemoteAnimatorNoSnapshot()
106 assertEquals(1, mDisplayContent.mChangingApps.size()); in testModeChangeRemoteAnimatorNoSnapshot()
121 setUpOnDisplay(mDisplayContent); in testCancelPendingChangeOnRemove()
124 assertEquals(1, mDisplayContent.mChangingApps.size()); in testCancelPendingChangeOnRemove()
129 mDisplayContent.removeAppToken(mToken.token); in testCancelPendingChangeOnRemove()
130 assertEquals(0, mDisplayContent.mChangingApps.size()); in testCancelPendingChangeOnRemove()
140 mDisplayContent.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testNoChangeWhenMoveDisplay()
150 mStack.reparent(mDisplayContent.getDisplayId(), new Rect(), true); in testNoChangeWhenMoveDisplay()
165 setUpOnDisplay(mDisplayContent); in testCancelPendingChangeOnHide()
168 assertEquals(1, mDisplayContent.mChangingApps.size()); in testCancelPendingChangeOnHide()
[all …]
DTaskStackTests.java50 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
67 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testClosingAppDifferentStackOrientation()
70 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation()
76 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation()
81 mDisplayContent.mClosingApps.add(appWindowToken2); in testClosingAppDifferentStackOrientation()
87 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
90 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
96 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
107 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackRemoveImmediately()
119 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testRemoveContainer()
[all …]
DTaskTests.java45 final TaskStack stackController1 = createTaskStackOnDisplay(mDisplayContent); in testRemoveContainer()
48 WindowTestUtils.createAppWindowTokenInTask(mDisplayContent, task); in testRemoveContainer()
59 final TaskStack stackController1 = createTaskStackOnDisplay(mDisplayContent); in testRemoveContainer_deferRemoval()
62 WindowTestUtils.createAppWindowTokenInTask(mDisplayContent, task); in testRemoveContainer_deferRemoval()
81 final TaskStack stackController1 = createTaskStackOnDisplay(mDisplayContent); in testReparent()
83 final TaskStack stackController2 = createTaskStackOnDisplay(mDisplayContent); in testReparent()
112 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testReparent_BetweenDisplays()
115 assertEquals(mDisplayContent, stack1.getDisplayContent()); in testReparent_BetweenDisplays()
131 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testBounds()
DAppWindowTokenTests.java86 mStack = createTaskStackOnDisplay(mDisplayContent); in setUp()
88 mToken = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in setUp()
167 mDisplayContent.updateOrientationFromAppTokens( in testLandscapeSeascapeRotationByApp()
168 mDisplayContent.getRequestedOverrideConfiguration(), in testLandscapeSeascapeRotationByApp()
170 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
175 mDisplayContent.updateOrientationFromAppTokens( in testLandscapeSeascapeRotationByApp()
176 mDisplayContent.getRequestedOverrideConfiguration(), in testLandscapeSeascapeRotationByApp()
179 mDisplayContent.mWaitingForConfig = false; in testLandscapeSeascapeRotationByApp()
181 assertEquals(SCREEN_ORIENTATION_REVERSE_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
192 final DisplayRotation spiedRotation = spy(mDisplayContent.getDisplayRotation()); in testLandscapeSeascapeRotationByPolicy()
[all …]
DRecentsAnimationControllerTest.java85 doReturn(mDisplayContent).when(mWm.mRoot).getDisplayContent(anyInt()); in setUp()
94 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testRemovedBeforeStarted_expectCanceled()
113 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testCancelAfterRemove_expectIgnored()
133 final AppWindowToken homeAppWindow = createAppWindowToken(mDisplayContent, in testIncludedApps_expectTargetAndVisible()
135 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testIncludedApps_expectTargetAndVisible()
137 final AppWindowToken hiddenAppWindow = createAppWindowToken(mDisplayContent, in testIncludedApps_expectTargetAndVisible()
140 mDisplayContent.getConfiguration().windowConfiguration.setRotation( in testIncludedApps_expectTargetAndVisible()
141 mDisplayContent.getRotation()); in testIncludedApps_expectTargetAndVisible()
153 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testDeferCancelAnimation()
176 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testDeferCancelAnimationWithScreenShot()
[all …]
DTaskStackContainersTests.java51 WINDOWING_MODE_PINNED, ACTIVITY_TYPE_STANDARD, mDisplayContent); in setUp()
56 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in setUp()
69 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
70 final TaskStack stack2 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
94 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionBelowPinnedStack()
114 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testDisplayPositionWithPinnedStack()
123 final int indexOfDisplayWithPinnedStack = mWm.mRoot.mChildren.indexOf(mDisplayContent); in testDisplayPositionWithPinnedStack()
DDisplayContentTests.java114 mDisplayContent, "exiting app"); in testForAllWindows()
139 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testForAllWindows_WithAppImeTarget()
141 mDisplayContent.mInputMethodTarget = imeAppTarget; in testForAllWindows_WithAppImeTarget()
158 mDisplayContent.mInputMethodTarget = mChildAppWindowAbove; in testForAllWindows_WithChildWindowImeTarget()
174 mDisplayContent.mInputMethodTarget = mStatusBarWindow; in testForAllWindows_WithStatusBarImeTarget()
193 mDisplayContent, "voiceInteractionWindow"); in testForAllWindows_WithInBetweenWindowToken()
211 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); in testComputeImeTarget()
214 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget()
223 imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget()
250 mDisplayContent.moveStackToDisplay(stack, true /* onTop */); in testMoveStackBetweenDisplays()
[all …]
DWindowTokenTests.java48 WindowTestUtils.createTestWindowToken(0, mDisplayContent); in testAddWindow()
77 final DisplayContent dc = mDisplayContent; in testChildRemoval()
102 TYPE_TOAST, mDisplayContent, true /* persistOnEmpty */); in testTokenRemovalProcess()
105 assertNotNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess()
110 mDisplayContent.removeWindowToken(token.token); in testTokenRemovalProcess()
112 assertNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess()
DWindowContainerTraversalTests.java51 mDisplayContent, "splitScreenWindow"); in testDockedDividerPosition()
54 TYPE_BASE_APPLICATION, mDisplayContent, "splitScreenSecondaryWindow"); in testDockedDividerPosition()
56 mDisplayContent.mInputMethodTarget = splitScreenWindow; in testDockedDividerPosition()
59 mDisplayContent.forAllWindows(c, false); in testDockedDividerPosition()
DDragDropControllerTests.java99 mDisplayContent); in createDropTargetWindow()
101 WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD, mDisplayContent); in createDropTargetWindow()
126 mDisplayContent = spy(mDisplayContent); in setUp()
128 doReturn(mWindow).when(mDisplayContent).getTouchableWinAtPointLocked(0, 0); in setUp()
169 doReturn(otherUsersWindow).when(mDisplayContent).getTouchableWinAtPointLocked(10, 10); in testPerformDrag_NullDataToOtherUser()
DWindowStateTests.java114 spyOn(mDisplayContent); in setUp()
115 doNothing().when(mDisplayContent).layoutAndAssignWindowLayersIfNeeded(); in setUp()
292 final AppWindowToken appWindowToken = createAppWindowToken(mDisplayContent, in testPrepareWindowToDisplayDuringRelayout()
327 mDisplayContent); in testPrepareWindowToDisplayDuringRelayout()
371 mDisplayContent.getInsetsStateController().getSourceProvider(TYPE_TOP_BAR) in testVisibleWithInsetsProvider()
373 mDisplayContent.getInsetsStateController().onBarControllingWindowChanged(app); in testVisibleWithInsetsProvider()
374 mDisplayContent.getInsetsStateController().getSourceProvider(TYPE_TOP_BAR) in testVisibleWithInsetsProvider()
398 mDisplayContent.mLayoutSeq = 1; in testLayoutSeqResetOnReparent()
404 assertThat(app.mLayoutSeq, not(is(mDisplayContent.mLayoutSeq))); in testLayoutSeqResetOnReparent()
411 app.mInputWindowHandle.displayId = mDisplayContent.getDisplayId() + 1; in testDisplayIdUpdatedOnReparent()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAppTransitionController.java80 private final DisplayContent mDisplayContent; field in AppTransitionController
88 mDisplayContent = displayContent; in AppTransitionController()
89 mWallpaperControllerLocked = mDisplayContent.mWallpaperController; in AppTransitionController()
101 if (!transitionGoodToGo(mDisplayContent.mOpeningApps, mTempTransitionReasons) in handleAppTransitionReady()
102 || !transitionGoodToGo(mDisplayContent.mChangingApps, mTempTransitionReasons)) { in handleAppTransitionReady()
108 final AppTransition appTransition = mDisplayContent.mAppTransition; in handleAppTransitionReady()
110 if (mDisplayContent.mSkipAppTransitionAnimation && !isKeyguardGoingAwayTransit(transit)) { in handleAppTransitionReady()
113 mDisplayContent.mSkipAppTransitionAnimation = false; in handleAppTransitionReady()
114 mDisplayContent.mNoAnimationNotifyOnTransitionFinished.clear(); in handleAppTransitionReady()
118 mDisplayContent.mWallpaperMayChange = false; in handleAppTransitionReady()
[all …]
DDockedStackDividerController.java106 private final DisplayContent mDisplayContent; field in DockedStackDividerController
150 mDisplayContent = displayContent; in DockedStackDividerController()
158 final DisplayInfo di = mDisplayContent.getDisplayInfo(); in getSmallestWidthDpForBounds()
160 final int baseDisplayWidth = mDisplayContent.mBaseDisplayWidth; in getSmallestWidthDpForBounds()
161 final int baseDisplayHeight = mDisplayContent.mBaseDisplayHeight; in getSmallestWidthDpForBounds()
168 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds()
180 final DisplayCutout displayCutout = mDisplayContent.calculateDisplayCutoutForRotation( in getSmallestWidthDpForBounds()
189 mDisplayContent.getDisplayPolicy().getStableInsetsLw(rotation, mTmpRect2.width(), in getSmallestWidthDpForBounds()
194 return (int) (minWidth / mDisplayContent.getDisplayMetrics().density); in getSmallestWidthDpForBounds()
233 final DisplayCutout displayCutout = mDisplayContent.getDisplayInfo().displayCutout; in getHomeStackBoundsInDockedMode()
[all …]
DWallpaperWindowToken.java48 mDisplayContent.mWallpaperController.removeWallpaperToken(this); in setExiting()
73 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperOffset()
84 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperVisibility()
92 mDisplayContent.setLayoutNeeded(); in updateWallpaperVisibility()
95 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperVisibility()
123 mDisplayContent.setLayoutNeeded(); in updateWallpaperWindows()
126 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperWindows()
129 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperWindows()
DTaskTapPointerEventListener.java41 private final DisplayContent mDisplayContent; field in TaskTapPointerEventListener
48 mDisplayContent = displayContent; in TaskTapPointerEventListener()
61 mDisplayContent, x, y); in onPointerEvent()
70 final Task task = mDisplayContent.findTaskForResizePoint(x, y); in onPointerEvent()
96 x, y, mDisplayContent).sendToTarget(); in onPointerEvent()
111 x, y, mDisplayContent).sendToTarget(); in onPointerEvent()
DRecentsAnimationController.java101 private DisplayContent mDisplayContent; field in RecentsAnimationController
156 mDisplayContent.mAppTransition.unregisterListener(this);
225 mDisplayContent.mBoundsAnimationController.setAnimationType(FADE_IN);
262 final InputMonitor inputMonitor = mDisplayContent.getInputMonitor();
341 mDisplayContent = service.mRoot.getDisplayContent(displayId); in RecentsAnimationController()
351 mDisplayContent.mAppTransition.registerListenerLocked(mAppTransitionListener); in initialize()
355 final ArrayList<Task> visibleTasks = mDisplayContent.getVisibleTasks(); in initialize()
356 final TaskStack targetStack = mDisplayContent.getStack(WINDOWING_MODE_UNDEFINED, in initialize()
398 mDisplayContent.pendingLayoutChanges |= FINISH_LAYOUT_REDO_WALLPAPER; in initialize()
399 mDisplayContent.setLayoutNeeded(); in initialize()
[all …]
DTaskStack.java214 mDisplayContent.setLayoutNeeded(); in setAdjustedBounds()
395 boolean updated = mDisplayContent.mPinnedStackControllerLocked.onTaskStackBoundsChanged( in calculatePinnedBoundsForConfigChange()
433 final DisplayCutout cutout = mDisplayContent.getDisplayInfo().displayCutout; in calculateDockedBoundsForConfigChange()
444 mDisplayContent.getDockedDividerController().notifyDockSideChanged(newDockSide); in calculateDockedBoundsForConfigChange()
458 final int dockSide = getDockSide(mDisplayContent, parentConfig, inOutBounds); in repositionSplitScreenStackAfterRotation()
461 if (mDisplayContent.getDockedDividerController() in repositionSplitScreenStackAfterRotation()
499 final int dividerSize = mDisplayContent.getDockedDividerController().getContentWidth(); in snapDockedStackAfterRotation()
509 mDisplayContent.getDisplayPolicy().getStableInsetsLw(rotation, displayWidth, displayHeight, in snapDockedStackAfterRotation()
715 if (mDisplayContent != null) { in removeChild()
719 mDisplayContent.setLayoutNeeded(); in removeChild()
[all …]
DWindowToken.java177 mDisplayContent.mExitingTokens.add(this); in setExiting()
186 return mDisplayContent.mCompatibleScreenScale; in getSizeCompatScale()
251 if (mDisplayContent != null) { in removeImmediately()
252 mDisplayContent.removeWindowToken(token); in removeImmediately()
322 return mDisplayContent != null && mDisplayContent.okToDisplay(); in okToDisplay()
326 return mDisplayContent != null && mDisplayContent.okToAnimate(); in okToAnimate()
DInsetsStateController.java47 private final DisplayContent mDisplayContent; field in InsetsStateController
61 mDisplayContent = displayContent; in InsetsStateController()
108 key -> new InsetsSourceProvider(mState.getSource(key), this, mDisplayContent)); in getSourceProvider()
115 mState.setDisplayFrame(mDisplayContent.getBounds()); in onPostLayout()
217 mDisplayContent.mWmService.mAnimator.addAfterPrepareSurfacesRunnable(() -> { in notifyPendingInsetsControlChanged()
227 mDisplayContent.forAllWindows(mDispatchInsetsChanged, true /* traverseTopToBottom */); in notifyInsetsChanged()
DActivityDisplay.java96 DisplayContent mDisplayContent; field in ActivityDisplay
166 mDisplayContent = createDisplayContent(); in ActivityDisplay()
193 if (mDisplayContent != null) { in onDisplayChanged()
194 mDisplayContent.updateDisplayInfo(); in onDisplayChanged()
292 if (stack.getTaskStack() != null && mDisplayContent != null) { in positionChildAt()
293 mDisplayContent.positionStackAt(insertPosition, in positionChildAt()
1008 && mDisplayContent != null) { in onRequestedOverrideConfigurationChanged()
1009 mDisplayContent.applyRotationLocked(currRotation, in onRequestedOverrideConfigurationChanged()
1013 if (mDisplayContent != null) { in onRequestedOverrideConfigurationChanged()
1015 overrideConfiguration, mDisplayContent); in onRequestedOverrideConfigurationChanged()
[all …]
DInsetsSourceProvider.java52 private final DisplayContent mDisplayContent; field in InsetsSourceProvider
74 mDisplayContent = displayContent; in InsetsSourceProvider()
163 mWin.startAnimation(mDisplayContent.getPendingTransaction(), mAdapter, in updateControlForTarget()
183 mDisplayContent.mWmService.mH.sendMessage(PooledLambda.obtainMessage( in setClientVisible()
184 DisplayContent::layoutAndAssignWindowLayersIfNeeded, mDisplayContent)); in setClientVisible()
DWallpaperController.java62 private final DisplayContent mDisplayContent; field in WallpaperController
192 mDisplayContent = displayContent; in WallpaperController()
401 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperOffsetLocked()
466 if (mDisplayContent.isStackVisible(WINDOWING_MODE_FREEFORM)) { in findWallpaperTarget()
472 mDisplayContent.forAllWindows(mFindWallpaperTargetFunction, true /* traverseTopToBottom */); in findWallpaperTarget()
528 if (mDisplayContent.getWindow(w -> w == prevWallpaperTarget) == null) { in updateWallpaperWindowsTarget()
549 && !mDisplayContent.mOpeningApps.contains(wallpaperTarget.mAppToken) in updateWallpaperWindowsTarget()
550 && (mDisplayContent.mOpeningApps.contains(prevWallpaperTarget.mAppToken) in updateWallpaperWindowsTarget()
551 || mDisplayContent.mClosingApps.contains(prevWallpaperTarget.mAppToken))) { in updateWallpaperWindowsTarget()
570 mDisplayContent.mWallpaperMayChange = false; in adjustWallpaperWindows()
[all …]

123