Searched refs:mainWindow (Results 1 – 12 of 12) sorted by relevance
310 final WindowState mainWindow = result.second; in prepareTaskSnapshot() local311 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() local392 if (mainWindow == null) { in checkIfReadyToSnapshot()403 return new Pair<>(activity, mainWindow); in checkIfReadyToSnapshot()415 final WindowState mainWindow = topActivity.findMainWindow(); in drawAppThemeSnapshot() local416 if (mainWindow == null) { in drawAppThemeSnapshot()[all …]
1372 boolean shouldShowLetterboxUi(WindowState mainWindow) { in shouldShowLetterboxUi() argument1380 && mainWindow.areAppWindowBoundsLetterboxed() in shouldShowLetterboxUi()1384 && (mainWindow.getAttrs().flags & FLAG_SHOW_WALLPAPER) == 0; in shouldShowLetterboxUi()1431 private void updateRoundedCornersIfNeeded(final WindowState mainWindow) { in updateRoundedCornersIfNeeded() argument1432 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() argument1446 if (!requiresRoundedCorners(mainWindow) || mActivityRecord.isInLetterboxAnimation()) { in getCropBoundsIfNeeded()1463 && (cropBounds.width() != mainWindow.mRequestedWidth in getCropBoundsIfNeeded()[all …]
139 WindowState mainWindow = activity.findMainWindow(); in hasRequestedToHideStatusAndNavBars() local140 if (mainWindow == null) { in hasRequestedToHideStatusAndNavBars()143 return (mainWindow.getRequestedVisibleTypes() in hasRequestedToHideStatusAndNavBars()
680 final WindowState mainWindow = in removeStartingWindow() local684 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()
149 final WindowState mainWindow = activity.findMainWindow(false); in createTaskSnapshotSurface() local150 if (mainWindow == null) { in createTaskSnapshotSurface()
1195 final WindowState mainWindow = topApp != null1198 if (mainWindow == null) {1201 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(1203 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets());
568 final WindowState mainWindow = activity != null ? activity.findMainWindow() : null; in getAnimLp() local569 return mainWindow != null ? mainWindow.mAttrs : null; in getAnimLp()
1497 final WindowState mainWindow = r.findMainWindow(); in createRemoteAnimationTarget() local1498 final Rect insets = mainWindow != null in createRemoteAnimationTarget()1499 ? mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets( in createRemoteAnimationTarget()
3109 final WindowState mainWindow = animLpActivity != null in getLayoutParamsForAnimationsStyle() local3111 return mainWindow != null ? mainWindow.mAttrs : null; in getLayoutParamsForAnimationsStyle()
3637 final WindowState mainWindow = topFullscreenActivity.findMainWindow(false);3638 if (mainWindow != null) {3640 mainWindow.getInsetsStateWithVisibilityOverride();3641 info.topOpaqueWindowLayoutParams = mainWindow.getAttrs();
10977 final WindowState mainWindow = findMainWindow();10978 if (task == null || mainWindow == null) {10981 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
521 final WindowState mainWindow = mockForGetCropBoundsAndRoundedCorners(taskbar); in testGetCropBoundsIfNeeded_handleCropForTransparentActivityBasedOnOpaqueBounds() local529 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() local547 assertNull(mController.getExpandedTaskbarOrNull(mainWindow)); in testGetCropBoundsIfNeeded_noCrop()552 final Rect noCrop = mController.getCropBoundsIfNeeded(mainWindow); in testGetCropBoundsIfNeeded_noCrop()[all …]