Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DDisplayContentTests.java81 mDisplayContent, "exiting app"); in testForAllWindows()
102 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testForAllWindows_WithAppImeTarget()
156 mDisplayContent, "voiceInteractionWindow"); in testForAllWindows_WithInBetweenWindowToken()
174 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); in testComputeImeTarget()
177 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget()
186 imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget()
213 mDisplayContent.moveStackToDisplay(stack, true /* onTop */); in testMoveStackBetweenDisplays()
214 assertEquals(mDisplayContent.getDisplayId(), stack.getDisplayContent().getDisplayId()); in testMoveStackBetweenDisplays()
215 assertEquals(mDisplayContent, stack.getParent().getParent()); in testMoveStackBetweenDisplays()
216 assertEquals(mDisplayContent, stack.getDisplayContent()); in testMoveStackBetweenDisplays()
[all …]
DZOrderingTests.java185 return createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, name); in createWindow()
191 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithNoTarget()
210 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTarget()
235 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
257 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
276 mDisplayContent, "imeSystemOverlayTarget", in testAssignWindowLayers_ForImeNonAppImeTarget()
280 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForImeNonAppImeTarget()
303 mDisplayContent.assignChildLayers(mTransaction); in testAssignWindowLayers_ForStatusBarImeTarget()
318 ACTIVITY_TYPE_STANDARD, TYPE_BASE_APPLICATION, mDisplayContent, in testStackLayers()
322 mDisplayContent, "dockedStackWindow"); in testStackLayers()
[all …]
DAppWindowContainerControllerTests.java56 assertNotNull(mDisplayContent.getWindowToken(controller.mToken.asBinder())); in testRemoveContainer()
60 controller.removeContainer(mDisplayContent.getDisplayId()); in testRemoveContainer()
63 assertNull(mDisplayContent.getWindowToken(controller.mToken.asBinder())); in testRemoveContainer()
76 controller.setOrientation(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getDisplayId(), in testSetOrientation()
80 controller.removeContainer(mDisplayContent.getDisplayId()); in testSetOrientation()
111 final AppWindowToken atoken = controller.getAppWindowToken(mDisplayContent); in testCreateRemoveStartingWindow()
130 assertNoStartingWindow(controller.getAppWindowToken(mDisplayContent)); in testAddRemoveRace()
132 … controller.getAppWindowToken(mDisplayContent).getParent().getParent().removeImmediately(); in testAddRemoveRace()
150 assertNoStartingWindow(controller1.getAppWindowToken(mDisplayContent)); in testTransferStartingWindow()
151 assertHasStartingWindow(controller2.getAppWindowToken(mDisplayContent)); in testTransferStartingWindow()
[all …]
DTaskStackTests.java48 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
65 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testClosingAppDifferentStackOrientation()
68 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation()
74 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation()
85 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
88 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
94 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation()
105 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackRemoveImmediately()
DUnknownAppVisibilityControllerTest.java47 final AppWindowToken token = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testFlow()
59 final AppWindowToken token1 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple()
60 final AppWindowToken token2 = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testMultiple()
75 final AppWindowToken token = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testClear()
83 final AppWindowToken token = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in testAppRemoved()
DRootWindowContainerTests.java29 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testSetDisplayOverrideConfigurationIfNeeded()
34 final TaskStack deferredDeletedStack = createTaskStackOnDisplay(mDisplayContent); in testSetDisplayOverrideConfigurationIfNeeded()
40 mDisplayContent.getOverrideConfiguration()); in testSetDisplayOverrideConfigurationIfNeeded()
45 mDisplayContent.getDisplayId()); in testSetDisplayOverrideConfigurationIfNeeded()
DWindowTokenTests.java52 WindowTestUtils.createTestWindowToken(0, mDisplayContent); in testAddWindow()
81 final DisplayContent dc = mDisplayContent; in testChildRemoval()
106 TYPE_TOAST, mDisplayContent, true /* persistOnEmpty */); in testTokenRemovalProcess()
109 assertNotNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess()
114 mDisplayContent.removeWindowToken(token.token); in testTokenRemovalProcess()
116 assertNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess()
DWindowSurfacePlacerTest.java50 final AppWindowToken behind = createAppWindowToken(mDisplayContent, in testTranslucentOpen()
52 final AppWindowToken translucentOpening = createAppWindowToken(mDisplayContent, in testTranslucentOpen()
66 final AppWindowToken behind = createAppWindowToken(mDisplayContent, in testTranslucentClose()
68 final AppWindowToken translucentClosing = createAppWindowToken(mDisplayContent, in testTranslucentClose()
DTaskStackContainersTests.java53 WINDOWING_MODE_PINNED, ACTIVITY_TYPE_STANDARD, mDisplayContent).mContainer; in setUp()
58 WindowTestUtils.createTestAppWindowToken(mDisplayContent); in setUp()
71 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
72 final TaskStack stack2 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt()
96 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionBelowPinnedStack()
DAppWindowTokenTests.java65 mStack = createTaskStackOnDisplay(mDisplayContent); in setUp()
67 mToken = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in setUp()
144 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp()
145 mDisplayContent.getDisplayId()); in testLandscapeSeascapeRotationByApp()
146 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
151 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp()
152 mDisplayContent.getDisplayId()); in testLandscapeSeascapeRotationByApp()
154 assertEquals(SCREEN_ORIENTATION_REVERSE_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp()
DTaskWindowContainerControllerTests.java82 createStackControllerOnDisplay(mDisplayContent); in testReparent()
86 createStackControllerOnDisplay(mDisplayContent); in testReparent()
99 createStackControllerOnDisplay(mDisplayContent); in testReparent()
120 createStackControllerOnDisplay(mDisplayContent); in testReparent_BetweenDisplays()
126 assertEquals(mDisplayContent, stack1.getDisplayContent()); in testReparent_BetweenDisplays()
DDragDropControllerTests.java93 mDisplayContent); in createDropTargetWindow()
95 WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD, mDisplayContent).mContainer; in createDropTargetWindow()
114 mDisplayContent = spy(mDisplayContent); in setUp()
116 when(mDisplayContent.getTouchableWinAtPointLocked(0, 0)).thenReturn(mWindow); in setUp()
157 when(mDisplayContent.getTouchableWinAtPointLocked(10, 10)) in testPerformDrag_NullDataToOtherUser()
DWindowContainerTraversalTests.java50 mDisplayContent, "splitScreenWindow"); in testDockedDividerPosition()
53 TYPE_BASE_APPLICATION, mDisplayContent, "splitScreenSecondaryWindow"); in testDockedDividerPosition()
58 mDisplayContent.forAllWindows(c, false); in testDockedDividerPosition()
DWindowStateTests.java243 final AppWindowToken appWindowToken = createAppWindowToken(mDisplayContent, in testPrepareWindowToDisplayDuringRelayout()
278 mDisplayContent); in testPrepareWindowToDisplayDuringRelayout()
334 mDisplayContent.mLayoutSeq = 1; in testLayoutSeqResetOnReparent()
336 app.onDisplayChanged(mDisplayContent); in testLayoutSeqResetOnReparent()
338 assertThat(app.mLayoutSeq, not(is(mDisplayContent.mLayoutSeq))); in testLayoutSeqResetOnReparent()
345 app.mInputWindowHandle.displayId = mDisplayContent.getDisplayId() + 1; in testDisplayIdUpdatedOnReparent()
346 app.onDisplayChanged(mDisplayContent); in testDisplayIdUpdatedOnReparent()
348 assertThat(app.mInputWindowHandle.displayId, is(mDisplayContent.getDisplayId())); in testDisplayIdUpdatedOnReparent()
349 assertThat(app.getDisplayId(), is(mDisplayContent.getDisplayId())); in testDisplayIdUpdatedOnReparent()
DStackWindowControllerTests.java46 createStackControllerOnDisplay(mDisplayContent); in testRemoveContainer()
66 createStackControllerOnDisplay(mDisplayContent); in testRemoveContainer_deferRemoval()
93 createStackControllerOnDisplay(mDisplayContent); in testReparent()
DTaskSnapshotControllerTest.java95 FIRST_APPLICATION_WINDOW, mDisplayContent, "disabledWindow"); in testGetSnapshotMode()
101 FIRST_APPLICATION_WINDOW, mDisplayContent, "normalWindow"); in testGetSnapshotMode()
106 FIRST_APPLICATION_WINDOW, mDisplayContent, "secureWindow"); in testGetSnapshotMode()
DWindowConfigurationTests.java138 final DisplayInfo info = mDisplayContent.getDisplayInfo(); in testAppBounds_RootConfigurationBounds()
143 mDisplayContent.getDisplayId()).windowConfiguration.getAppBounds(); in testAppBounds_RootConfigurationBounds()
202 windowingMode, ACTIVITY_TYPE_STANDARD, mDisplayContent); in testStackBoundsConfiguration()
204 final Configuration parentConfig = mDisplayContent.getConfiguration(); in testStackBoundsConfiguration()
DWindowTestsBase.java78 DisplayContent mDisplayContent; field in WindowTestsBase
118 mDisplayContent = createNewDisplay(); in setUp()
173 mDisplayContent.removeImmediately(); in tearDown()
246 ? createWindow(parent, type, mDisplayContent, name) in createWindow()
261 final AppWindowToken token = WindowTestUtils.createTestAppWindowToken(mDisplayContent); in createAppWindow()
DRecentsAnimationControllerTest.java71 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testRemovedBeforeStarted_expectCanceled()
90 final AppWindowToken appWindow = createAppWindowToken(mDisplayContent, in testCancelAfterRemove_expectIgnored()
/frameworks/base/services/core/java/com/android/server/wm/
DDockedStackDividerController.java103 private final DisplayContent mDisplayContent; field in DockedStackDividerController
147 mDisplayContent = displayContent; in DockedStackDividerController()
155 final DisplayInfo di = mDisplayContent.getDisplayInfo(); in getSmallestWidthDpForBounds()
157 final int baseDisplayWidth = mDisplayContent.mBaseDisplayWidth; in getSmallestWidthDpForBounds()
158 final int baseDisplayHeight = mDisplayContent.mBaseDisplayHeight; in getSmallestWidthDpForBounds()
165 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds()
177 final DisplayCutout displayCutout = mDisplayContent.calculateDisplayCutoutForRotation( in getSmallestWidthDpForBounds()
191 return (int) (minWidth / mDisplayContent.getDisplayMetrics().density); in getSmallestWidthDpForBounds()
228 final DisplayInfo di = mDisplayContent.getDisplayInfo(); in getHomeStackBoundsInDockedMode()
232 Configuration configuration = mDisplayContent.getConfiguration(); in getHomeStackBoundsInDockedMode()
[all …]
DTaskStack.java86 private DisplayContent mDisplayContent; field in TaskStack
170 return mDisplayContent; in getDisplayContent()
232 mDisplayContent.setLayoutNeeded(); in setAdjustedBounds()
292 if (mDisplayContent != null) { in setBounds()
293 mDisplayContent.getBounds(mTmpRect); in setBounds()
294 rotation = mDisplayContent.getDisplayInfo().rotation; in setBounds()
295 density = mDisplayContent.getDisplayInfo().logicalDensityDpi; in setBounds()
304 if (mDisplayContent != null) { in setBounds()
333 || mDisplayContent == null in useCurrentBounds()
334 || mDisplayContent.getSplitScreenPrimaryStackIgnoringVisibility() != null) { in useCurrentBounds()
[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.java38 private final DisplayContent mDisplayContent; field in TaskTapPointerEventListener
45 mDisplayContent = displayContent; in TaskTapPointerEventListener()
66 mDisplayContent, x, y); in onPointerEvent()
75 final Task task = mDisplayContent.findTaskForResizePoint(x, y); in onPointerEvent()
100 x, y, mDisplayContent).sendToTarget(); in onPointerEvent()
117 return mDisplayContent.getDisplayId(); in getDisplayId()
DWindowToken.java85 protected DisplayContent mDisplayContent; field in WindowToken
179 mDisplayContent.mExitingTokens.add(this); in setExiting()
256 return mDisplayContent; in getDisplayContent()
261 if (mDisplayContent != null) { in removeImmediately()
262 mDisplayContent.removeWindowToken(token); in removeImmediately()
271 mDisplayContent = dc; in onDisplayChanged()
276 mDisplayContent.reparentToOverlay(mPendingTransaction, mSurfaceControl); in onDisplayChanged()
333 return mDisplayContent != null && mDisplayContent.okToDisplay(); in okToDisplay()
337 return mDisplayContent != null && mDisplayContent.okToAnimate(); in okToAnimate()
DPinnedStackController.java77 private final DisplayContent mDisplayContent; field in PinnedStackController
168 mDisplayContent = displayContent; in PinnedStackController()
170 mDisplayInfo.copyFrom(mDisplayContent.getDisplayInfo()); in PinnedStackController()
199 mDisplayContent.getDisplay().getRealMetrics(mTmpMetrics); in reloadResources()
318 mDisplayInfo.copyFrom(mDisplayContent.getDisplayInfo()); in onDisplayInfoChanged()
328 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in onTaskStackBoundsChanged()
497 final TaskStack pinnedStack = mDisplayContent.getPinnedStack(); in notifyMovementBoundsChanged()
559 mService.getStableInsetsLocked(mDisplayContent.getDisplayId(), mStableInsets); in applyMinimizedOffset()

12