Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowConfigurationTests.java193 final Rect appBounds = mWm.computeNewConfiguration( in testAppBounds_RootConfigurationBounds() local
200 assertEquals(expectedLeft, appBounds.left); in testAppBounds_RootConfigurationBounds()
201 assertEquals(expectedTop, appBounds.top); in testAppBounds_RootConfigurationBounds()
204 assertEquals(info.appWidth, appBounds.width()); in testAppBounds_RootConfigurationBounds()
205 assertEquals(info.appHeight, appBounds.height()); in testAppBounds_RootConfigurationBounds()
DSizeCompatTests.java611 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local
617 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
619 assertEquals(offsetX, appBounds.left); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
620 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
622 assertEquals(appBounds.height(), appBounds.width() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
624 assertEquals(mActivity.getBounds().height(), appBounds.height() + notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
637 assertEquals(appBounds.width(), appBounds.height() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay()
859 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testMoveToDifferentOrientationDisplay() local
860 assertEquals(currentBounds.width(), appBounds.width()); in testMoveToDifferentOrientationDisplay()
861 assertEquals(currentBounds.height() - notchHeight, appBounds.height()); in testMoveToDifferentOrientationDisplay()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipContentOverlay.java188 public PipAppIconOverlay(Context context, Rect appBounds, in PipAppIconOverlay() argument
194 mAppBounds = new Rect(appBounds); in PipAppIconOverlay()
195 mBitmap = Bitmap.createBitmap(appBounds.width(), appBounds.height(), in PipAppIconOverlay()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTask.java244 public Rect appBounds; field in Task
282 appBounds = other.appBounds; in Task()
/frameworks/base/core/java/android/view/
DDisplayInfo.java718 final Rect appBounds = configuration != null in getMetricsWithSize() local
720 width = appBounds != null ? appBounds.width() : width; in getMetricsWithSize()
721 height = appBounds != null ? appBounds.height() : height; in getMetricsWithSize()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayArea.java570 final Rect appBounds = new Rect(overrideBounds); in resolveOverrideConfiguration() local
571 appBounds.intersect(parentAppBounds); in resolveOverrideConfiguration()
572 resolvedConfig.windowConfiguration.setAppBounds(appBounds); in resolveOverrideConfiguration()
DTaskFragment.java2105 final Rect appBounds = inOutConfig.windowConfiguration.getAppBounds(); in invalidateAppBoundsConfig() local
2106 if (appBounds != null) { in invalidateAppBoundsConfig()
2107 appBounds.setEmpty(); in invalidateAppBoundsConfig()
DActivityRecord.java7986 final Rect appBounds = getConfiguration().windowConfiguration.getAppBounds(); in inSizeCompatMode() local
7987 if (appBounds == null) { in inSizeCompatMode()
8813 private boolean isInSizeCompatModeForBounds(final Rect appBounds, final Rect containerBounds) { in isInSizeCompatModeForBounds() argument
8819 final int appWidth = appBounds.width(); in isInSizeCompatModeForBounds()
8820 final int appHeight = appBounds.height(); in isInSizeCompatModeForBounds()
DDisplayContent.java2301 final Rect appBounds = outConfig.windowConfiguration.getAppBounds(); in computeScreenConfiguration() local
2302 displayInfo.appWidth = appBounds.width(); in computeScreenConfiguration()
2303 displayInfo.appHeight = appBounds.height(); in computeScreenConfiguration()
/frameworks/base/core/java/android/window/
DWindowContainerTransaction.java100 @NonNull WindowContainerToken container,@NonNull Rect appBounds) { in setAppBounds() argument
102 chg.mConfiguration.windowConfiguration.setAppBounds(appBounds); in setAppBounds()