/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 1400 final DisplayContent displayContent = getDisplayContentOrCreate(displayId, attrs.token); in addWindow() local 1402 if (displayContent == null) { in addWindow() 1407 if (!displayContent.hasAccess(session.mUid)) { in addWindow() 1434 if (type == TYPE_PRIVATE_PRESENTATION && !displayContent.isPrivate()) { in addWindow() 1441 if (type == TYPE_PRESENTATION && !displayContent.getDisplay().isPublicPresentation()) { in addWindow() 1466 WindowToken token = displayContent.getWindowToken( in addWindow() 1480 token = new WindowToken(this, binder, type, false, displayContent, in addWindow() 1545 token = new WindowToken(this, client.asBinder(), type, false, displayContent, in addWindow() 1565 final DisplayPolicy displayPolicy = displayContent.getDisplayPolicy(); in addWindow() 1590 if (!displayContent.canAddToastWindowForUid(callingUid)) { in addWindow() [all …]
|
D | TaskPositioningController.java | 131 void handleTapOutsideTask(DisplayContent displayContent, int x, int y) { in handleTapOutsideTask() argument 134 final Task task = displayContent.findTaskForResizePoint(x, y); in handleTapOutsideTask() 171 final DisplayContent displayContent = win.getDisplayContent(); in startPositioningLocked() local 172 if (displayContent == null) { in startPositioningLocked() 176 mPositioningDisplay = displayContent; in startPositioningLocked() 179 mTaskPositioner.register(displayContent, win); in startPositioningLocked() 186 if (displayContent.mCurrentFocus != null && displayContent.mCurrentFocus != win in startPositioningLocked() 187 && displayContent.mCurrentFocus.mActivityRecord == win.mActivityRecord) { in startPositioningLocked() 188 transferFocusFromWin = displayContent.mCurrentFocus; in startPositioningLocked()
|
D | RootWindowContainer.java | 507 final DisplayContent displayContent = mChildren.get(displayNdx); in onSettingsRetrieved() local 509 displayContent); in onSettingsRetrieved() 514 displayContent.reconfigureDisplayLocked(); in onSettingsRetrieved() 519 if (displayContent.isDefaultDisplay) { in onSettingsRetrieved() 521 displayContent.getDisplayId()); in onSettingsRetrieved() 531 final DisplayContent displayContent = mChildren.get(displayNdx); in isLayoutNeeded() local 532 if (displayContent.isLayoutNeeded()) { in isLayoutNeeded() 629 @NonNull DisplayContent displayContent) { in setDisplayOverrideConfigurationIfNeeded() argument 631 final Configuration currentConfig = displayContent.getRequestedOverrideConfiguration(); in setDisplayOverrideConfigurationIfNeeded() 637 displayContent.onRequestedOverrideConfigurationChanged(newConfiguration); in setDisplayOverrideConfigurationIfNeeded() [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 | ScreenRotationAnimation.java | 143 ScreenRotationAnimation(DisplayContent displayContent, @Surface.Rotation int originalRotation) { in ScreenRotationAnimation() argument 144 mService = displayContent.mWmService; in ScreenRotationAnimation() 146 mDisplayContent = displayContent; in ScreenRotationAnimation() 147 displayContent.getBounds(mOriginalDisplayRect); in ScreenRotationAnimation() 150 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in ScreenRotationAnimation() 154 if (displayContent.getDisplayRotation().isFixedToUserRotation()) { in ScreenRotationAnimation() 157 originalWidth = displayContent.mBaseDisplayWidth; in ScreenRotationAnimation() 158 originalHeight = displayContent.mBaseDisplayHeight; in ScreenRotationAnimation() 185 final boolean isSecure = displayContent.hasSecureWindowOnScreen(); in ScreenRotationAnimation() 188 mBackColorSurface = displayContent.makeChildSurface(null) in ScreenRotationAnimation() [all …]
|
D | DisplayWindowSettings.java | 194 void setUserRotation(DisplayContent displayContent, int rotationMode, int rotation) { in setUserRotation() argument 195 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setUserRotation() 202 void setForcedSize(DisplayContent displayContent, int width, int height) { in setForcedSize() argument 203 if (displayContent.isDefaultDisplay) { in setForcedSize() 210 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedSize() 217 void setForcedDensity(DisplayContent displayContent, int density, int userId) { in setForcedDensity() argument 218 if (displayContent.isDefaultDisplay) { in setForcedDensity() 225 final DisplayInfo displayInfo = displayContent.getDisplayInfo(); in setForcedDensity() 231 void setForcedScalingMode(DisplayContent displayContent, @ForceScalingMode int mode) { in setForcedScalingMode() argument 232 if (displayContent.isDefaultDisplay) { in setForcedScalingMode() [all …]
|
D | DockedStackDividerController.java | 31 DockedStackDividerController(DisplayContent displayContent) { in DockedStackDividerController() argument 32 mDisplayContent = displayContent; in DockedStackDividerController()
|
D | DragDropController.java | 134 final DisplayContent displayContent = callingWin.getDisplayContent(); in performDrag() local 135 if (displayContent == null) { in performDrag() 150 mDragState.mDisplayContent = displayContent; in performDrag() 152 final Display display = displayContent.getDisplay(); in performDrag() 176 displayContent.reparentToOverlay(transaction, surfaceControl); in performDrag()
|
D | FixedRotationAnimationController.java | 51 public FixedRotationAnimationController(DisplayContent displayContent) { in FixedRotationAnimationController() argument 52 mContext = displayContent.mWmService.mContext; in FixedRotationAnimationController() 53 final DisplayPolicy displayPolicy = displayContent.getDisplayPolicy(); in FixedRotationAnimationController()
|
D | InputManagerCallback.java | 369 final DisplayContent displayContent = mService.mRoot.mChildren.get(i); in getPointerDisplayId() local 373 if (displayContent.getWindowingMode() == WINDOWING_MODE_FREEFORM) { in getPointerDisplayId() 374 return displayContent.getDisplayId(); in getPointerDisplayId() 378 && displayContent.getDisplayId() != DEFAULT_DISPLAY) { in getPointerDisplayId() 379 firstExternalDisplayId = displayContent.getDisplayId(); in getPointerDisplayId()
|
D | UnknownAppVisibilityController.java | 65 UnknownAppVisibilityController(WindowManagerService service, DisplayContent displayContent) { in UnknownAppVisibilityController() argument 67 mDisplayContent = displayContent; in UnknownAppVisibilityController()
|
D | TaskTapPointerEventListener.java | 46 DisplayContent displayContent) { in TaskTapPointerEventListener() argument 48 mDisplayContent = displayContent; in TaskTapPointerEventListener()
|
D | ImeInsetsSourceProvider.java | 40 InsetsStateController stateController, DisplayContent displayContent) { in ImeInsetsSourceProvider() argument 41 super(source, stateController, displayContent); in ImeInsetsSourceProvider()
|
D | TaskPositioner.java | 211 void register(DisplayContent displayContent, @NonNull WindowState win) { in register() argument 221 mDisplayContent = displayContent; in register() 237 displayContent.getDisplayId()); in register() 259 displayContent.getBounds(mTmpRect); in register() 272 final DisplayMetrics displayMetrics = displayContent.getDisplayMetrics(); in register()
|
D | WindowStateAnimator.java | 281 final DisplayContent displayContent = mWin.getDisplayContent(); in onAnimationFinished() local 286 displayContent.setLayoutNeeded(); in onAnimationFinished() 289 displayContent.pendingLayoutChanges |= FINISH_LAYOUT_REDO_ANIM; in onAnimationFinished() 290 if (displayContent.mWallpaperController.isWallpaperTarget(mWin)) { in onAnimationFinished() 291 displayContent.pendingLayoutChanges |= FINISH_LAYOUT_REDO_WALLPAPER; in onAnimationFinished() 295 "WindowStateAnimator", displayContent.pendingLayoutChanges); in onAnimationFinished() 780 final DisplayContent displayContent = w.getDisplayContent(); in calculateCrop() local 783 if (displayContent == null) { in calculateCrop() 1196 final DisplayContent displayContent = w.getDisplayContent(); in prepareSurfaceLocked() local 1197 if (!displayContent.getLastHasContent()) { in prepareSurfaceLocked() [all …]
|
D | AccessibilityController.java | 230 public void onRotationChangedLocked(DisplayContent displayContent) { in onRotationChangedLocked() argument 231 final int displayId = displayContent.getDisplayId(); in onRotationChangedLocked() 234 displayMagnifier.onRotationChangedLocked(displayContent); in onRotationChangedLocked() 418 DisplayContent displayContent, in DisplayMagnifier() argument 424 mDisplayContent = displayContent; in DisplayMagnifier() 478 public void onRotationChangedLocked(DisplayContent displayContent) { in onRotationChangedLocked() argument 480 final int rotation = displayContent.getRotation(); in onRotationChangedLocked() 482 + " displayId: " + displayContent.getDisplayId()); in onRotationChangedLocked() 484 mMagnifedViewport.onRotationChangedLocked(displayContent.getPendingTransaction()); in onRotationChangedLocked() 1174 static Rect getNavBarInsets(DisplayContent displayContent) { in getNavBarInsets() argument [all …]
|
D | PinnedStackController.java | 115 PinnedStackController(WindowManagerService service, DisplayContent displayContent) { in PinnedStackController() argument 117 mDisplayContent = displayContent; in PinnedStackController()
|
D | WindowProcessController.java | 1093 void registerDisplayConfigurationListener(DisplayContent displayContent) { in registerDisplayConfigurationListener() argument 1094 if (displayContent == null) { in registerDisplayConfigurationListener() 1101 mDisplayId = displayContent.mDisplayId; in registerDisplayConfigurationListener() 1102 displayContent.registerConfigurationChangeListener(this); in registerDisplayConfigurationListener() 1110 final DisplayContent displayContent = in unregisterDisplayConfigurationListener() local 1112 if (displayContent != null) { in unregisterDisplayConfigurationListener() 1113 displayContent.unregisterConfigurationChangeListener(this); in unregisterDisplayConfigurationListener()
|
D | InsetsPolicy.java | 102 InsetsPolicy(InsetsStateController stateController, DisplayContent displayContent) { in InsetsPolicy() argument 104 mDisplayContent = displayContent; in InsetsPolicy() 105 mPolicy = displayContent.getDisplayPolicy(); in InsetsPolicy()
|
D | DisplayRotation.java | 224 DisplayRotation(WindowManagerService service, DisplayContent displayContent) { in DisplayRotation() argument 225 this(service, displayContent, displayContent.getDisplayPolicy(), in DisplayRotation() 230 DisplayRotation(WindowManagerService service, DisplayContent displayContent, in DisplayRotation() argument 234 mDisplayContent = displayContent; in DisplayRotation() 239 isDefaultDisplay = displayContent.isDefaultDisplay; in DisplayRotation()
|
D | WindowState.java | 1537 final DisplayContent displayContent = getDisplayContent(); in getDisplayId() local 1538 if (displayContent == null) { in getDisplayId() 1541 return displayContent.getDisplayId(); in getDisplayId() 1987 final DisplayContent displayContent = getDisplayContent(); in onSetAppExiting() local 1996 if (displayContent != null) { in onSetAppExiting() 1997 displayContent.setLayoutNeeded(); in onSetAppExiting() 2322 final DisplayContent displayContent = getDisplayContent(); in removeIfPossible() local 2323 if (displayContent.updateOrientation()) { in removeIfPossible() 2324 displayContent.sendNewConfiguration(); in removeIfPossible() 3332 final DisplayContent displayContent = getDisplayContent(); in isDefaultDisplay() local [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayContentTests.java | 520 private WindowState[] createNotDrawnWindowsOn(DisplayContent displayContent, int... types) { in createNotDrawnWindowsOn() argument 524 windows[i] = createWindow(null /* parent */, type, displayContent, "window-" + type); in createNotDrawnWindowsOn() 543 final DisplayContent displayContent = createDisplayNoUpdateDisplayInfo(); in testMaxUiWidth() local 548 displayContent.updateBaseDisplayMetrics(baseWidth, baseHeight, baseDensity); in testMaxUiWidth() 554 displayContent.setMaxUiWidth(maxWidth); in testMaxUiWidth() 555 verifySizes(displayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth() 558 displayContent.updateBaseDisplayMetrics(baseWidth, baseHeight, baseDensity); in testMaxUiWidth() 559 verifySizes(displayContent, maxWidth, resultingHeight, resultingDensity); in testMaxUiWidth() 566 displayContent.updateBaseDisplayMetrics(smallerWidth, smallerHeight, smallerDensity); in testMaxUiWidth() 567 verifySizes(displayContent, smallerWidth, smallerHeight, smallerDensity); in testMaxUiWidth() [all …]
|
D | SizeCompatTests.java | 579 private static void addStatusBar(DisplayContent displayContent) { in addStatusBar() argument 580 final DisplayPolicy displayPolicy = displayContent.getDisplayPolicy(); in addStatusBar() 585 WindowManager.LayoutParams.TYPE_STATUS_BAR, displayContent); in addStatusBar() 593 displayContent.mWmService, mock(Session.class), new TestIWindow(), attrs, token); in addStatusBar() 595 statusBar.setRequestedSize(displayContent.mBaseDisplayWidth, in addStatusBar() 596 displayContent.getDisplayUiContext().getResources().getDimensionPixelSize( in addStatusBar() 600 displayPolicy.beginLayoutLw(displayContent.mDisplayFrames, in addStatusBar() 601 displayContent.getConfiguration().uiMode); in addStatusBar() 652 private static void resizeDisplay(DisplayContent displayContent, int width, int height) { in resizeDisplay() argument 653 displayContent.mBaseDisplayWidth = width; in resizeDisplay() [all …]
|
D | RootWindowContainerTests.java | 150 DisplayContent displayContent = mWm.mRoot.getDisplayContent(DEFAULT_DISPLAY); in testAllPausedActivitiesComplete() local 151 TaskDisplayArea taskDisplayArea = displayContent.getTaskDisplayAreaAt(0); in testAllPausedActivitiesComplete() 153 ActivityRecord activity = createActivityRecord(displayContent, in testAllPausedActivitiesComplete()
|
D | DisplayAreaPolicyBuilderTest.java | 76 DisplayContent displayContent = mock(DisplayContent.class); in testBuilder() local 77 TaskDisplayArea taskDisplayArea = new TaskDisplayArea(displayContent, wms, "Tasks", in testBuilder() 94 .build(wms, displayContent, root, ime, taskDisplayAreaList); in testBuilder()
|