Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DLetterboxUiControllerTest.java548 mainWindow.mInvGlobalScale = scaling; in testGetCropBoundsIfNeeded_appliesCropWithSizeCompatScaling()
571 mainWindow.mInvGlobalScale = invGlobalScale; in testGetRoundedCornersRadius_withRoundedCornersFromInsets()
596 mainWindow.mInvGlobalScale = invGlobalScale; in testGetRoundedCornersRadius_withLetterboxActivityCornersRadius()
619 mainWindow.mInvGlobalScale = -1f; in testGetRoundedCornersRadius_noScalingApplied()
622 mainWindow.mInvGlobalScale = 0f; in testGetRoundedCornersRadius_noScalingApplied()
625 mainWindow.mInvGlobalScale = 1f; in testGetRoundedCornersRadius_noScalingApplied()
635 mainWindow.mInvGlobalScale = 1f; in mockForGetCropBoundsAndRoundedCorners()
648 doReturn(attrs).when(mainWindow).getAttrs(); in mockForGetCropBoundsAndRoundedCorners()
649 doReturn(true).when(mainWindow).isDrawn(); in mockForGetCropBoundsAndRoundedCorners()
650 doReturn(true).when(mainWindow).isOnScreen(); in mockForGetCropBoundsAndRoundedCorners()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DAbsAppSnapshotController.java321 final WindowState mainWindow = result.second; in prepareTaskSnapshot() local
322 final Rect contentInsets = getSystemBarInsets(mainWindow.getFrame(), in prepareTaskSnapshot()
323 mainWindow.getInsetsStateWithVisibilityOverride()); in prepareTaskSnapshot()
331 final boolean isShowWallpaper = mainWindow.hasWallpaper(); in prepareTaskSnapshot()
378 final WindowState mainWindow = activity.findMainWindow(); in checkIfReadyToSnapshot() local
379 if (mainWindow == null) { in checkIfReadyToSnapshot()
390 return new Pair<>(activity, mainWindow); in checkIfReadyToSnapshot()
402 final WindowState mainWindow = topActivity.findMainWindow(); in drawAppThemeSnapshot() local
403 if (mainWindow == null) { in drawAppThemeSnapshot()
409 final WindowManager.LayoutParams attrs = mainWindow.getAttrs(); in drawAppThemeSnapshot()
[all …]
H A DLetterboxUiController.java1395 boolean shouldShowLetterboxUi(WindowState mainWindow) { in shouldShowLetterboxUi() argument
1414 boolean isSurfaceReadyToShow(WindowState mainWindow) { in isSurfaceReadyToShow() argument
1415 return mainWindow.isDrawn() // Regular case in isSurfaceReadyToShow()
1417 || mainWindow.isDragResizeChanged(); in isSurfaceReadyToShow()
1421 boolean isSurfaceVisible(WindowState mainWindow) { in isSurfaceVisible() argument
1505 adjustBoundsForTaskbar(mainWindow, cropBounds); in getCropBoundsIfNeeded()
1507 final float scale = mainWindow.mInvGlobalScale; in getCropBoundsIfNeeded()
1520 return isLetterboxedNotForDisplayCutout(mainWindow) in requiresRoundedCorners()
1530 if (!requiresRoundedCorners(mainWindow)) { in getRoundedCornersRadius()
1544 final float scale = mainWindow.mInvGlobalScale; in getRoundedCornersRadius()
[all …]
H A DDisplayRotationImmersiveAppCompatPolicy.java139 WindowState mainWindow = activity.findMainWindow(); in hasRequestedToHideStatusAndNavBars() local
140 if (mainWindow == null) { in hasRequestedToHideStatusAndNavBars()
143 return (mainWindow.getRequestedVisibleTypes() in hasRequestedToHideStatusAndNavBars()
H A DTaskOrganizerController.java706 final WindowState mainWindow = in removeStartingWindow() local
710 if (mainWindow == null || mainWindow.mRemoved) { in removeStartingWindow()
714 topActivity.mLetterboxUiController.getRoundedCornersRadius(mainWindow); in removeStartingWindow()
715 removalInfo.windowAnimationLeash = applyStartingWindowAnimation(mainWindow); in removeStartingWindow()
716 removalInfo.mainFrame = mainWindow.getRelativeFrame(); in removeStartingWindow()
H A DBackNavigationController.java1010 final WindowState mainWindow = r.findMainWindow(); in createRemoteAnimationTarget() local
1012 if (mainWindow != null) { in createRemoteAnimationTarget()
1013 insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets( in createRemoteAnimationTarget()
1016 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets()); in createRemoteAnimationTarget()
H A DRecentsAnimationController.java1172 final WindowState mainWindow = topApp != null
1175 if (mainWindow == null) {
1178 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(
1180 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets());
H A DAppTransitionController.java569 final WindowState mainWindow = activity != null ? activity.findMainWindow() : null; in getAnimLp() local
570 return mainWindow != null ? mainWindow.mAttrs : null; in getAnimLp()
H A DTransition.java2674 final WindowState mainWindow = animLpActivity != null in getLayoutParamsForAnimationsStyle() local
2676 return mainWindow != null ? mainWindow.mAttrs : null; in getLayoutParamsForAnimationsStyle()
H A DActivityRecord.java10599 final WindowState mainWindow = findMainWindow();
10600 if (task == null || mainWindow == null) {
10603 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(