/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | DisplayContentTests.java | 57 mDisplayContent, "exiting app"); in testForAllWindows() 78 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testForAllWindows_WithAppImeTarget() 132 mDisplayContent, "voiceInteractionWindow"); in testForAllWindows_WithInBetweenWindowToken() 150 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); in testComputeImeTarget() 153 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget() 161 imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget() 187 mDisplayContent.moveStackToDisplay(stack, true /* onTop */); in testMoveStackBetweenDisplays() 188 assertEquals(mDisplayContent.getDisplayId(), stack.getDisplayContent().getDisplayId()); in testMoveStackBetweenDisplays() 189 assertEquals(mDisplayContent, stack.getParent().getParent()); in testMoveStackBetweenDisplays() 190 assertEquals(mDisplayContent, stack.getDisplayContent()); in testMoveStackBetweenDisplays() [all …]
|
D | WindowLayersControllerTests.java | 48 mLayersController.assignWindowLayers(mDisplayContent); in testAssignWindowLayers_ForImeWithNoTarget() 66 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTarget() 68 mLayersController.assignWindowLayers(mDisplayContent); in testAssignWindowLayers_ForImeWithAppTarget() 86 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 95 mLayersController.assignWindowLayers(mDisplayContent); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 115 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "appBelowImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 117 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 119 createWindow(null, TYPE_BASE_APPLICATION, mDisplayContent, "appAboveImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 122 mLayersController.assignWindowLayers(mDisplayContent); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 142 mDisplayContent, "imeSystemOverlayTarget", in testAssignWindowLayers_ForImeNonAppImeTarget() [all …]
|
D | TaskStackTests.java | 48 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt() 65 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testClosingAppDifferentStackOrientation() 68 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation() 74 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testClosingAppDifferentStackOrientation() 85 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation() 88 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation() 94 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testMoveTaskToBackDifferentStackOrientation() 105 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testStackRemoveImmediately() 108 assertTrue(mDisplayContent.mDimLayerController.hasDimLayerUser(stack)); in testStackRemoveImmediately() 109 assertTrue(mDisplayContent.mDimLayerController.hasDimLayerUser(task)); in testStackRemoveImmediately() [all …]
|
D | AppWindowContainerControllerTests.java | 57 assertNotNull(mDisplayContent.getWindowToken(controller.mToken.asBinder())); in testRemoveContainer() 61 controller.removeContainer(mDisplayContent.getDisplayId()); in testRemoveContainer() 64 assertNull(mDisplayContent.getWindowToken(controller.mToken.asBinder())); in testRemoveContainer() 77 controller.setOrientation(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getDisplayId(), in testSetOrientation() 81 controller.removeContainer(mDisplayContent.getDisplayId()); in testSetOrientation() 112 final AppWindowToken atoken = controller.getAppWindowToken(mDisplayContent); in testCreateRemoveStartingWindow() 131 assertNoStartingWindow(controller.getAppWindowToken(mDisplayContent)); in testAddRemoveRace() 149 assertNoStartingWindow(controller1.getAppWindowToken(mDisplayContent)); in testTransferStartingWindow() 150 assertHasStartingWindow(controller2.getAppWindowToken(mDisplayContent)); in testTransferStartingWindow() 170 assertNoStartingWindow(controller1.getAppWindowToken(mDisplayContent)); in testTransferStartingWindowWhileCreating() [all …]
|
D | AppWindowTokenTests.java | 56 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testAddWindow_Order() 84 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testFindMainWindow() 106 final TaskStack stack = createTaskStackOnDisplay(mDisplayContent); in testLandscapeSeascapeRotationByApp() 109 new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testLandscapeSeascapeRotationByApp() 119 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp() 120 mDisplayContent.getDisplayId()); in testLandscapeSeascapeRotationByApp() 121 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp() 126 sWm.updateOrientationFromAppTokens(mDisplayContent.getOverrideConfiguration(), null, in testLandscapeSeascapeRotationByApp() 127 mDisplayContent.getDisplayId()); in testLandscapeSeascapeRotationByApp() 129 assertEquals(SCREEN_ORIENTATION_REVERSE_LANDSCAPE, mDisplayContent.getLastOrientation()); in testLandscapeSeascapeRotationByApp() [all …]
|
D | WindowTokenTests.java | 50 new WindowTestUtils.TestWindowToken(0, mDisplayContent); in testAddWindow() 79 final DisplayContent dc = mDisplayContent; in testChildRemoval() 100 new WindowTestUtils.TestWindowToken(0, mDisplayContent); in testAdjustAnimLayer() 112 mLayersController.assignWindowLayers(mDisplayContent); in testAdjustAnimLayer() 123 mLayersController.assignWindowLayers(mDisplayContent); in testAdjustAnimLayer() 141 new WindowTestUtils.TestWindowToken(TYPE_TOAST, mDisplayContent, in testTokenRemovalProcess() 145 assertNotNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess() 150 mDisplayContent.removeWindowToken(token.token); in testTokenRemovalProcess() 152 assertNull(mDisplayContent.getWindowToken(token.token)); in testTokenRemovalProcess()
|
D | UnknownAppVisibilityControllerTest.java | 47 final AppWindowToken token = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testFlow() 59 final AppWindowToken token1 = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testMultiple() 60 final AppWindowToken token2 = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testMultiple() 75 final AppWindowToken token = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testClear() 83 final AppWindowToken token = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in testAppRemoved()
|
D | AppBoundsTests.java | 55 final DisplayInfo info = mDisplayContent.getDisplayInfo(); in testRootConfigurationBounds() 59 final Configuration config = sWm.computeNewConfiguration(mDisplayContent.getDisplayId()); in testRootConfigurationBounds() 128 createStackControllerOnStackOnDisplay(stackId, mDisplayContent) in testStackBoundsConfiguration() 129 : createStackControllerOnDisplay(mDisplayContent); in testStackBoundsConfiguration() 131 final Configuration parentConfig = mDisplayContent.getConfiguration(); in testStackBoundsConfiguration()
|
D | TaskStackContainersTests.java | 54 mDisplayContent.getDisplayId(), true /* onTop */, new Rect(), sWm).mContainer; in setUp() 60 mDisplayContent); in setUp() 73 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt() 74 final TaskStack stack2 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionChildAt() 98 final TaskStack stack1 = createTaskStackOnDisplay(mDisplayContent); in testStackPositionBelowPinnedStack()
|
D | TaskWindowContainerControllerTests.java | 82 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()
|
D | StackWindowControllerTests.java | 45 createStackControllerOnDisplay(mDisplayContent); in testRemoveContainer() 65 createStackControllerOnDisplay(mDisplayContent); in testRemoveContainer_deferRemoval() 92 createStackControllerOnDisplay(mDisplayContent); in testReparent()
|
D | TaskSnapshotControllerTest.java | 79 FIRST_APPLICATION_WINDOW, mDisplayContent, "disabledWindow"); in testGetSnapshotMode() 85 FIRST_APPLICATION_WINDOW, mDisplayContent, "normalWindow"); in testGetSnapshotMode() 90 FIRST_APPLICATION_WINDOW, mDisplayContent, "secureWindow"); in testGetSnapshotMode()
|
D | WindowTestsBase.java | 73 DisplayContent mDisplayContent; field in WindowTestsBase 100 mDisplayContent = createNewDisplay(); in setUp() 139 mDisplayContent.removeImmediately(); in tearDown() 184 ? createWindow(parent, type, mDisplayContent, name) in createWindow() 195 final AppWindowToken token = new WindowTestUtils.TestAppWindowToken(mDisplayContent); in createAppWindow()
|
D | WindowTestUtils.java | 204 this(testsBase.createStackControllerOnDisplay(testsBase.mDisplayContent)); in TestTaskWindowContainerController()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskStack.java | 76 private DisplayContent mDisplayContent; field in TaskStack 154 return mDisplayContent; in getDisplayContent() 233 mDisplayContent.setLayoutNeeded(); in setAdjustedBounds() 254 if (mDisplayContent != null) { in setBounds() 255 mDisplayContent.getLogicalDisplayRect(mTmpRect); in setBounds() 256 rotation = mDisplayContent.getDisplayInfo().rotation; in setBounds() 257 density = mDisplayContent.getDisplayInfo().logicalDensityDpi; in setBounds() 272 if (mDisplayContent != null) { in setBounds() 273 mDisplayContent.mDimLayerController.updateDimLayer(this); in setBounds() 298 || mDisplayContent == null in useCurrentBounds() [all …]
|
D | DockedStackDividerController.java | 101 private final DisplayContent mDisplayContent; field in DockedStackDividerController 142 mDisplayContent = displayContent; in DockedStackDividerController() 152 final DisplayInfo di = mDisplayContent.getDisplayInfo(); in getSmallestWidthDpForBounds() 154 final int baseDisplayWidth = mDisplayContent.mBaseDisplayWidth; in getSmallestWidthDpForBounds() 155 final int baseDisplayHeight = mDisplayContent.mBaseDisplayHeight; in getSmallestWidthDpForBounds() 162 mDisplayContent.rotateBounds(di.rotation, rotation, mTmpRect); in getSmallestWidthDpForBounds() 185 return (int) (minWidth / mDisplayContent.getDisplayMetrics().density); in getSmallestWidthDpForBounds() 189 final DisplayInfo di = mDisplayContent.getDisplayInfo(); in getHomeStackBoundsInDockedMode() 193 Configuration configuration = mDisplayContent.getConfiguration(); in getHomeStackBoundsInDockedMode() 208 final TaskStack homeStack = mDisplayContent.getHomeStack(); in isHomeStackResizable() [all …]
|
D | WallpaperWindowToken.java | 51 mDisplayContent.mWallpaperController.removeWallpaperToken(this); in setExiting() 76 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperOffset() 91 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperVisibility() 98 mDisplayContent.setLayoutNeeded(); in updateWallpaperVisibility() 101 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperVisibility() 129 mDisplayContent.setLayoutNeeded(); in updateWallpaperWindows() 132 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in updateWallpaperWindows() 135 final WallpaperController wallpaperController = mDisplayContent.mWallpaperController; in updateWallpaperWindows()
|
D | TaskTapPointerEventListener.java | 37 private final DisplayContent mDisplayContent; field in TaskTapPointerEventListener 44 mDisplayContent = displayContent; in TaskTapPointerEventListener() 58 x, y, mDisplayContent).sendToTarget(); in onPointerEvent() 67 final Task task = mDisplayContent.findTaskForResizePoint(x, y); in onPointerEvent() 92 x, y, mDisplayContent).sendToTarget(); in onPointerEvent()
|
D | DimLayerController.java | 43 private DisplayContent mDisplayContent; field in DimLayerController 48 mDisplayContent = displayContent; in DimLayerController() 57 final int displayId = mDisplayContent.getDisplayId(); in updateDimLayer() 72 newDimLayer = new DimLayer(mDisplayContent.mService, dimLayerUser, displayId, in updateDimLayer() 83 ? new DimLayer(mDisplayContent.mService, dimLayerUser, displayId, in updateDimLayer() 154 mDisplayContent.getLogicalDisplayRect(mTmpBounds); in startDimmingIfNeeded() 284 mDisplayContent.pendingLayoutChanges |= FINISH_LAYOUT_REDO_LAYOUT; in animateDimLayers() 285 mDisplayContent.setLayoutNeeded(); in animateDimLayers() 292 if (!mDisplayContent.mService.okToDisplay()) { in animateDimLayers() 309 mDisplayContent.mService.mContext.getResources().getValue( in getDimLayerFadeDuration()
|
D | WindowToken.java | 79 protected DisplayContent mDisplayContent; field in WindowToken 151 mDisplayContent.mExitingTokens.add(this); in setExiting() 233 return mDisplayContent; in getDisplayContent() 238 if (mDisplayContent != null) { in removeImmediately() 239 mDisplayContent.removeWindowToken(token); in removeImmediately() 248 mDisplayContent = dc; in onDisplayChanged()
|
D | PinnedStackController.java | 71 private final DisplayContent mDisplayContent; field in PinnedStackController 154 mDisplayContent = displayContent; in PinnedStackController() 156 mDisplayInfo.copyFrom(mDisplayContent.getDisplayInfo()); in PinnedStackController() 185 mDisplayContent.getDisplay().getRealMetrics(mTmpMetrics); in reloadResources() 268 mDisplayInfo.copyFrom(mDisplayContent.getDisplayInfo()); in onDisplayInfoChanged() 278 final DisplayInfo displayInfo = mDisplayContent.getDisplayInfo(); in onTaskStackBoundsChanged() 414 final TaskStack pinnedStack = mDisplayContent.getStackById(PINNED_STACK_ID); in notifyMovementBoundsChanged() 474 mService.getStableInsetsLocked(mDisplayContent.getDisplayId(), mStableInsets); in applyMinimizedOffset()
|
D | DragState.java | 102 DisplayContent mDisplayContent; field in DragState 275 mDisplayContent.forAllWindows(w -> { in broadcastDragStartedLw() 413 mService.restorePointerIconLocked(mDisplayContent, mCurrentX, mCurrentY); in cleanUpDragLw() 450 WindowState touchedWin = mDisplayContent.getTouchableWinAtPointLocked(x, y); in notifyLocationLw() 500 WindowState touchedWin = mDisplayContent.getTouchableWinAtPointLocked(x, y); in notifyDropLw()
|
D | AppWindowToken.java | 1358 if (mDisplayContent != null) { in updateAllDrawn() 1359 mDisplayContent.setLayoutNeeded(); in updateAllDrawn() 1365 final TaskStack pinnedStack = mDisplayContent.getStackById(PINNED_STACK_ID); in updateAllDrawn() 1379 if (mDisplayContent != null) { in updateAllDrawn() 1380 mDisplayContent.setLayoutNeeded(); in updateAllDrawn()
|
D | ScreenRotationAnimation.java | 64 final DisplayContent mDisplayContent; field in ScreenRotationAnimation 224 mDisplayContent = displayContent; in ScreenRotationAnimation() 318 mDisplayContent.getLogicalDisplayRect(mCurrentDisplayRect); in setSnapshotTransformInTransaction() 547 final int layerStack = mDisplayContent.getDisplay().getLayerStack(); in startAnimation()
|
D | TaskSnapshotController.java | 186 final GraphicBuffer buffer = top.mDisplayContent.screenshotApplicationsToBuffer(top.token, in snapshotTask()
|