Home
last modified time | relevance | path

Searched refs:mainWindow (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DAbsAppSnapshotController.java310 final WindowState mainWindow = result.second; in prepareTaskSnapshot() local
311 final Rect contentInsets = getSystemBarInsets(mainWindow.getFrame(), in prepareTaskSnapshot()
312 mainWindow.getInsetsStateWithVisibilityOverride()); in prepareTaskSnapshot()
319 final boolean isWindowTranslucent = mainWindow.getAttrs().format != PixelFormat.OPAQUE; in prepareTaskSnapshot()
320 final boolean isShowWallpaper = mainWindow.hasWallpaper(); in prepareTaskSnapshot()
391 final WindowState mainWindow = activity.findMainWindow(); in checkIfReadyToSnapshot() local
392 if (mainWindow == null) { in checkIfReadyToSnapshot()
403 return new Pair<>(activity, mainWindow); in checkIfReadyToSnapshot()
415 final WindowState mainWindow = topActivity.findMainWindow(); in drawAppThemeSnapshot() local
416 if (mainWindow == null) { in drawAppThemeSnapshot()
[all …]
DLetterboxUiController.java1372 boolean shouldShowLetterboxUi(WindowState mainWindow) { in shouldShowLetterboxUi() argument
1380 && mainWindow.areAppWindowBoundsLetterboxed() in shouldShowLetterboxUi()
1384 && (mainWindow.getAttrs().flags & FLAG_SHOW_WALLPAPER) == 0; in shouldShowLetterboxUi()
1431 private void updateRoundedCornersIfNeeded(final WindowState mainWindow) { in updateRoundedCornersIfNeeded() argument
1432 final SurfaceControl windowSurface = mainWindow.getSurfaceControl(); in updateRoundedCornersIfNeeded()
1439 .setCrop(windowSurface, getCropBoundsIfNeeded(mainWindow)) in updateRoundedCornersIfNeeded()
1440 .setCornerRadius(windowSurface, getRoundedCornersRadius(mainWindow)); in updateRoundedCornersIfNeeded()
1445 Rect getCropBoundsIfNeeded(final WindowState mainWindow) { in getCropBoundsIfNeeded() argument
1446 if (!requiresRoundedCorners(mainWindow) || mActivityRecord.isInLetterboxAnimation()) { in getCropBoundsIfNeeded()
1463 && (cropBounds.width() != mainWindow.mRequestedWidth in getCropBoundsIfNeeded()
[all …]
DDisplayRotationImmersiveAppCompatPolicy.java139 WindowState mainWindow = activity.findMainWindow(); in hasRequestedToHideStatusAndNavBars() local
140 if (mainWindow == null) { in hasRequestedToHideStatusAndNavBars()
143 return (mainWindow.getRequestedVisibleTypes() in hasRequestedToHideStatusAndNavBars()
DTaskOrganizerController.java680 final WindowState mainWindow = in removeStartingWindow() local
684 if (mainWindow == null || mainWindow.mRemoved) { in removeStartingWindow()
688 topActivity.mLetterboxUiController.getRoundedCornersRadius(mainWindow); in removeStartingWindow()
689 removalInfo.windowAnimationLeash = applyStartingWindowAnimation(mainWindow); in removeStartingWindow()
690 removalInfo.mainFrame = new Rect(mainWindow.getFrame()); in removeStartingWindow()
691 removalInfo.mainFrame.offsetTo(mainWindow.mSurfacePosition.x, in removeStartingWindow()
692 mainWindow.mSurfacePosition.y); in removeStartingWindow()
DStartingSurfaceController.java149 final WindowState mainWindow = activity.findMainWindow(false); in createTaskSnapshotSurface() local
150 if (mainWindow == null) { in createTaskSnapshotSurface()
DRecentsAnimationController.java1195 final WindowState mainWindow = topApp != null
1198 if (mainWindow == null) {
1201 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
1203 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets());
DAppTransitionController.java568 final WindowState mainWindow = activity != null ? activity.findMainWindow() : null; in getAnimLp() local
569 return mainWindow != null ? mainWindow.mAttrs : null; in getAnimLp()
DBackNavigationController.java1497 final WindowState mainWindow = r.findMainWindow(); in createRemoteAnimationTarget() local
1498 final Rect insets = mainWindow != null in createRemoteAnimationTarget()
1499 ? mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets( in createRemoteAnimationTarget()
DTransition.java3109 final WindowState mainWindow = animLpActivity != null in getLayoutParamsForAnimationsStyle() local
3111 return mainWindow != null ? mainWindow.mAttrs : null; in getLayoutParamsForAnimationsStyle()
DTask.java3637 final WindowState mainWindow = topFullscreenActivity.findMainWindow(false);
3638 if (mainWindow != null) {
3640 mainWindow.getInsetsStateWithVisibilityOverride();
3641 info.topOpaqueWindowLayoutParams = mainWindow.getAttrs();
DActivityRecord.java10977 final WindowState mainWindow = findMainWindow();
10978 if (task == null || mainWindow == null) {
10981 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLetterboxUiControllerTest.java521 final WindowState mainWindow = mockForGetCropBoundsAndRoundedCorners(taskbar); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds() local
529 mainWindow.mRequestedWidth = opaqueBounds.width() - 1; in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
530 mainWindow.mRequestedHeight = opaqueBounds.height() - 1; in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
531 assertNull(mActivity.mLetterboxUiController.getCropBoundsIfNeeded(mainWindow)); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
534 mainWindow.mRequestedWidth = opaqueBounds.width(); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
535 mainWindow.mRequestedHeight = opaqueBounds.height(); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
536 assertNotNull(mActivity.mLetterboxUiController.getCropBoundsIfNeeded(mainWindow)); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds()
543 final WindowState mainWindow = mockForGetCropBoundsAndRoundedCorners(taskbar); in testGetCropBoundsIfNeeded_noCrop() local
547 assertNull(mController.getExpandedTaskbarOrNull(mainWindow)); in testGetCropBoundsIfNeeded_noCrop()
552 final Rect noCrop = mController.getCropBoundsIfNeeded(mainWindow); in testGetCropBoundsIfNeeded_noCrop()
[all …]