Searched refs:mainWindow (Results 1 – 10 of 10) sorted by relevance
548 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 …]
321 final WindowState mainWindow = result.second; in prepareTaskSnapshot() local322 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() local379 if (mainWindow == null) { in checkIfReadyToSnapshot()390 return new Pair<>(activity, mainWindow); in checkIfReadyToSnapshot()402 final WindowState mainWindow = topActivity.findMainWindow(); in drawAppThemeSnapshot() local403 if (mainWindow == null) { in drawAppThemeSnapshot()409 final WindowManager.LayoutParams attrs = mainWindow.getAttrs(); in drawAppThemeSnapshot()[all …]
1395 boolean shouldShowLetterboxUi(WindowState mainWindow) { in shouldShowLetterboxUi() argument1414 boolean isSurfaceReadyToShow(WindowState mainWindow) { in isSurfaceReadyToShow() argument1415 return mainWindow.isDrawn() // Regular case in isSurfaceReadyToShow()1417 || mainWindow.isDragResizeChanged(); in isSurfaceReadyToShow()1421 boolean isSurfaceVisible(WindowState mainWindow) { in isSurfaceVisible() argument1505 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 …]
139 WindowState mainWindow = activity.findMainWindow(); in hasRequestedToHideStatusAndNavBars() local140 if (mainWindow == null) { in hasRequestedToHideStatusAndNavBars()143 return (mainWindow.getRequestedVisibleTypes() in hasRequestedToHideStatusAndNavBars()
706 final WindowState mainWindow = in removeStartingWindow() local710 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()
1010 final WindowState mainWindow = r.findMainWindow(); in createRemoteAnimationTarget() local1012 if (mainWindow != null) { in createRemoteAnimationTarget()1013 insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets( in createRemoteAnimationTarget()1016 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets()); in createRemoteAnimationTarget()
1172 final WindowState mainWindow = topApp != null1175 if (mainWindow == null) {1178 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(1180 InsetUtils.addInsets(insets, mainWindow.mActivityRecord.getLetterboxInsets());
569 final WindowState mainWindow = activity != null ? activity.findMainWindow() : null; in getAnimLp() local570 return mainWindow != null ? mainWindow.mAttrs : null; in getAnimLp()
2674 final WindowState mainWindow = animLpActivity != null in getLayoutParamsForAnimationsStyle() local2676 return mainWindow != null ? mainWindow.mAttrs : null; in getLayoutParamsForAnimationsStyle()
10599 final WindowState mainWindow = findMainWindow();10600 if (task == null || mainWindow == null) {10603 final Rect insets = mainWindow.getInsetsStateWithVisibilityOverride().calculateInsets(