/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 1262 final DisplayContent displayContent = getDisplayContentOrCreate(displayId, attrs.token); in addWindow() local 1264 if (displayContent == null) { in addWindow() 1269 if (!displayContent.hasAccess(session.mUid)) { in addWindow() 1295 if (type == TYPE_PRIVATE_PRESENTATION && !displayContent.isPrivate()) { in addWindow() 1304 WindowToken token = displayContent.getWindowToken( in addWindow() 1360 token = new WindowToken(this, binder, type, false, displayContent, in addWindow() 1427 token = new WindowToken(this, client.asBinder(), type, false, displayContent, in addWindow() 1447 final DisplayPolicy displayPolicy = displayContent.getDisplayPolicy(); in addWindow() 1474 if (!displayContent.canAddToastWindowForUid(callingUid)) { in addWindow() 1485 || displayContent.mCurrentFocus == null in addWindow() [all …]
|
D | RootWindowContainer.java | 262 final DisplayContent displayContent = mChildren.get(displayNdx); in onSettingsRetrieved() local 264 displayContent); in onSettingsRetrieved() 269 displayContent.initializeDisplayOverrideConfiguration(); in onSettingsRetrieved() 270 mWmService.reconfigureDisplayLocked(displayContent); in onSettingsRetrieved() 275 if (displayContent.isDefaultDisplay) { in onSettingsRetrieved() 277 displayContent.getDisplayId()); in onSettingsRetrieved() 287 final DisplayContent displayContent = mChildren.get(displayNdx); in isLayoutNeeded() local 288 if (displayContent.isLayoutNeeded()) { in isLayoutNeeded() 380 @NonNull DisplayContent displayContent) { in setDisplayOverrideConfigurationIfNeeded() argument 382 final Configuration currentConfig = displayContent.getRequestedOverrideConfiguration(); in setDisplayOverrideConfigurationIfNeeded() [all …]
|
D | TaskPositioningController.java | 124 void handleTapOutsideTask(DisplayContent displayContent, int x, int y) { in handleTapOutsideTask() argument 127 final Task task = displayContent.findTaskForResizePoint(x, y); in handleTapOutsideTask() 159 final DisplayContent displayContent = win.getDisplayContent(); in startPositioningLocked() local 160 if (displayContent == null) { in startPositioningLocked() 164 mPositioningDisplay = displayContent; in startPositioningLocked() 167 mTaskPositioner.register(displayContent); in startPositioningLocked() 174 if (displayContent.mCurrentFocus != null && displayContent.mCurrentFocus != win in startPositioningLocked() 175 && displayContent.mCurrentFocus.mAppToken == win.mAppToken) { in startPositioningLocked() 176 transferFocusFromWin = displayContent.mCurrentFocus; in startPositioningLocked()
|
D | Task.java | 241 final DisplayContent displayContent = stack.getDisplayContent(); in reparent() local 242 displayContent.setLayoutNeeded(); in reparent() 243 if (prevDisplayContent != displayContent) { in reparent() 244 onDisplayChanged(displayContent); in reparent() 309 final DisplayContent displayContent = mStack.getDisplayContent(); in setBounds() local 310 if (displayContent != null) { in setBounds() 311 rotation = displayContent.getDisplayInfo().rotation; in setBounds() 485 final DisplayContent displayContent = mStack.getDisplayContent(); in getDimBounds() local 488 final boolean dockedResizing = displayContent != null in getDimBounds() 489 && displayContent.mDividerControllerLocked.isResizing(); in getDimBounds() [all …]
|
D | WallpaperVisibilityListeners.java | 56 void notifyWallpaperVisibilityChanged(DisplayContent displayContent) { in notifyWallpaperVisibilityChanged() argument 57 final int displayId = displayContent.getDisplayId(); in notifyWallpaperVisibilityChanged() 58 final boolean visible = displayContent.mWallpaperController.isWallpaperVisible(); in notifyWallpaperVisibilityChanged()
|
D | InputManagerCallback.java | 217 final DisplayContent displayContent = mService.mRoot.mChildren.get(i); in getPointerDisplayId() local 221 if (displayContent.getWindowingMode() == WINDOWING_MODE_FREEFORM) { in getPointerDisplayId() 222 return displayContent.getDisplayId(); in getPointerDisplayId() 226 && displayContent.getDisplayId() != DEFAULT_DISPLAY) { in getPointerDisplayId() 227 firstExternalDisplayId = displayContent.getDisplayId(); in getPointerDisplayId()
|
D | DisplayWindowSettings.java | 214 void setUserRotation(DisplayContent displayContent, int rotationMode, int rotation) { in setUserRotation() argument 215 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setUserRotation() 222 void setForcedSize(DisplayContent displayContent, int width, int height) { in setForcedSize() argument 223 if (displayContent.isDefaultDisplay) { in setForcedSize() 230 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedSize() 237 void setForcedDensity(DisplayContent displayContent, int density, int userId) { in setForcedDensity() argument 238 if (displayContent.isDefaultDisplay) { in setForcedDensity() 245 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedDensity() 251 void setForcedScalingMode(DisplayContent displayContent, @ForceScalingMode int mode) { in setForcedScalingMode() argument 252 if (displayContent.isDefaultDisplay) { in setForcedScalingMode() [all …]
|
D | WindowAnimator.java | 312 final DisplayContent displayContent = mService.mRoot.getDisplayContent(displayId); in getPendingLayoutChanges() local 313 return (displayContent != null) ? displayContent.pendingLayoutChanges : 0; in getPendingLayoutChanges() 320 final DisplayContent displayContent = mService.mRoot.getDisplayContent(displayId); in setPendingLayoutChanges() local 321 if (displayContent != null) { in setPendingLayoutChanges() 322 displayContent.pendingLayoutChanges |= changes; in setPendingLayoutChanges()
|
D | DragDropController.java | 133 final DisplayContent displayContent = callingWin.getDisplayContent(); in performDrag() local 134 if (displayContent == null) { in performDrag() 149 mDragState.mDisplayContent = displayContent; in performDrag() 151 final Display display = displayContent.getDisplay(); in performDrag() 175 displayContent.reparentToOverlay(transaction, surfaceControl); in performDrag()
|
D | TaskStack.java | 403 final DisplayContent displayContent = getDisplayContent(); in calculatePinnedBoundsForConfigChange() local 404 displayContent.mBoundsAnimationController.getHandler().post(() -> in calculatePinnedBoundsForConfigChange() 405 displayContent.mBoundsAnimationController.cancel(this)); in calculatePinnedBoundsForConfigChange() 576 final DisplayContent displayContent = getDisplayContent(); in positionChildAtTop() local 577 if (displayContent.mAppTransition.isTransitionSet()) { in positionChildAtTop() 580 displayContent.layoutAndAssignWindowLayersIfNeeded(); in positionChildAtTop() 769 DisplayContent displayContent = getDisplayContent(); in getStackOutset() local 770 if (inPinnedWindowingMode() && displayContent != null) { in getStackOutset() 771 final DisplayMetrics displayMetrics = displayContent.getDisplayMetrics(); in getStackOutset() 1674 final DisplayContent displayContent = getDisplayContent(); in getPictureInPictureBounds() local [all …]
|
D | TaskTapPointerEventListener.java | 46 DisplayContent displayContent) { in TaskTapPointerEventListener() argument 48 mDisplayContent = displayContent; in TaskTapPointerEventListener()
|
D | UnknownAppVisibilityController.java | 65 UnknownAppVisibilityController(WindowManagerService service, DisplayContent displayContent) { in UnknownAppVisibilityController() argument 67 mDisplayContent = displayContent; in UnknownAppVisibilityController()
|
D | DisplayRotation.java | 135 DisplayRotation(WindowManagerService service, DisplayContent displayContent) { in DisplayRotation() argument 136 this(service, displayContent, displayContent.getDisplayPolicy(), in DisplayRotation() 141 DisplayRotation(WindowManagerService service, DisplayContent displayContent, in DisplayRotation() argument 145 mDisplayContent = displayContent; in DisplayRotation() 150 isDefaultDisplay = displayContent.isDefaultDisplay; in DisplayRotation() 166 mOrientationListener.setCurrentRotation(displayContent.getRotation()); in DisplayRotation()
|
D | ScreenRotationAnimation.java | 224 public ScreenRotationAnimation(Context context, DisplayContent displayContent, in ScreenRotationAnimation() argument 228 mDisplayContent = displayContent; in ScreenRotationAnimation() 229 displayContent.getBounds(mOriginalDisplayRect); in ScreenRotationAnimation() 232 final Display display = displayContent.getDisplay(); in ScreenRotationAnimation() 236 DisplayInfo displayInfo = displayContent.getDisplayInfo(); in ScreenRotationAnimation() 240 originalWidth = displayContent.mBaseDisplayWidth; in ScreenRotationAnimation() 241 originalHeight = displayContent.mBaseDisplayHeight; in ScreenRotationAnimation() 262 mSurfaceControl = displayContent.makeOverlay() in ScreenRotationAnimation()
|
D | WindowState.java | 1118 final DisplayContent displayContent = getDisplayContent(); in computeFrameLw() local 1119 if (displayContent != null) { in computeFrameLw() 1120 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in computeFrameLw() 1382 final DisplayContent displayContent = getDisplayContent(); in getDisplayInfo() local 1383 return displayContent != null ? displayContent.getDisplayInfo() : null; in getDisplayInfo() 1388 final DisplayContent displayContent = getDisplayContent(); in getDisplayId() local 1389 if (displayContent == null) { in getDisplayId() 1392 return displayContent.getDisplayId(); in getDisplayId() 1753 final DisplayContent displayContent = getDisplayContent(); in onSetAppExiting() local 1762 if (displayContent != null) { in onSetAppExiting() [all …]
|
D | InsetsSourceProvider.java | 71 DisplayContent displayContent) { in InsetsSourceProvider() argument 74 mDisplayContent = displayContent; in InsetsSourceProvider()
|
D | InsetsStateController.java | 60 InsetsStateController(DisplayContent displayContent) { in InsetsStateController() argument 61 mDisplayContent = displayContent; in InsetsStateController()
|
D | AccessibilityController.java | 183 public void onRotationChangedLocked(DisplayContent displayContent) { in onRotationChangedLocked() argument 184 final int displayId = displayContent.getDisplayId(); in onRotationChangedLocked() 187 displayMagnifier.onRotationChangedLocked(displayContent); in onRotationChangedLocked() 308 DisplayContent displayContent, in DisplayMagnifier() argument 314 mDisplayContent = displayContent; in DisplayMagnifier() 368 public void onRotationChangedLocked(DisplayContent displayContent) { in onRotationChangedLocked() argument 370 final int rotation = displayContent.getRotation(); in onRotationChangedLocked() 372 + " displayId: " + displayContent.getDisplayId()); in onRotationChangedLocked()
|
D | AppWindowToken.java | 512 final DisplayContent displayContent = getDisplayContent(); in setVisibility() local 513 displayContent.mOpeningApps.remove(this); in setVisibility() 514 displayContent.mClosingApps.remove(this); in setVisibility() 518 displayContent.mChangingApps.remove(this); in setVisibility() 534 displayContent.mOpeningApps.add(this); in setVisibility() 579 displayContent.mOpeningApps.add(this); in setVisibility() 582 displayContent.mClosingApps.add(this); in setVisibility() 598 displayContent.mOpeningApps.add(focusedToken); in setVisibility() 1338 final DisplayContent displayContent = task.getDisplayContent(); in reparent() local 1339 displayContent.setLayoutNeeded(); in reparent() [all …]
|
D | WindowStateAnimator.java | 259 final DisplayContent displayContent = mWin.getDisplayContent(); in onAnimationFinished() local 263 if (displayContent != null) { in onAnimationFinished() 264 displayContent.setLayoutNeeded(); in onAnimationFinished() 270 if (displayContent.mWallpaperController.isWallpaperTarget(mWin)) { in onAnimationFinished() 763 final DisplayContent displayContent = w.getDisplayContent(); in calculateCrop() local 766 if (displayContent == null) { in calculateCrop()
|
D | TaskPositioner.java | 246 void register(DisplayContent displayContent) { in register() argument 247 final Display display = displayContent.getDisplay(); in register() 258 mDisplayContent = displayContent; in register()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayContentTests.java | 406 final DisplayContent displayContent = createDisplayNoUpdateDisplayInfo(); in testMaxUiWidth() local 411 displayContent.updateBaseDisplayMetrics(baseWidth, baseHeight, baseDensity); in testMaxUiWidth() 417 displayContent.setMaxUiWidth(maxWidth); in testMaxUiWidth() 418 verifySizes(displayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth() 421 displayContent.updateBaseDisplayMetrics(baseWidth, baseHeight, baseDensity); in testMaxUiWidth() 422 verifySizes(displayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth() 429 displayContent.updateBaseDisplayMetrics(smallerWidth, smallerHeight, smallerDensity); in testMaxUiWidth() 430 verifySizes(displayContent, smallerWidth, smallerHeight, smallerDensity); in testMaxUiWidth() 433 displayContent.setMaxUiWidth(maxWidth); in testMaxUiWidth() 434 verifySizes(displayContent, smallerWidth, smallerHeight, smallerDensity); in testMaxUiWidth() [all …]
|
D | ActivityRecordTests.java | 635 final DisplayContent displayContent = setupDisplayAndParentSize( in setupDisplayContentForCompatDisplayInsets() local 637 doReturn(mock(DisplayPolicy.class)).when(displayContent).getDisplayPolicy(); in setupDisplayContentForCompatDisplayInsets() 638 doReturn(mock(WmDisplayCutout.class)).when(displayContent) in setupDisplayContentForCompatDisplayInsets() 644 final DisplayContent displayContent = mStack.getDisplay().mDisplayContent; in setupDisplayAndParentSize() local 645 displayContent.mBaseDisplayWidth = width; in setupDisplayAndParentSize() 646 displayContent.mBaseDisplayHeight = height; in setupDisplayAndParentSize() 649 return displayContent; in setupDisplayAndParentSize()
|
D | TaskRecordTests.java | 385 final DisplayContent displayContent = mock(DisplayContent.class); in testComputeConfigResourceOverrides() local 392 doReturn(policy).when(displayContent).getDisplayPolicy(); in testComputeConfigResourceOverrides() 393 doReturn(mock(WmDisplayCutout.class)).when(displayContent) in testComputeConfigResourceOverrides() 399 new ActivityRecord.CompatDisplayInsets(displayContent); in testComputeConfigResourceOverrides()
|
D | WindowTestsBase.java | 215 final DisplayContent displayContent = mWm.mRoot.mChildren.get(i); in tearDownBase() local 216 if (!displayContent.isDefaultDisplay) { in tearDownBase() 217 displayContent.removeImmediately(); in tearDownBase()
|