/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/ |
D | PipUtils.kt | 148 fun getEnterPipWithOverlaySrcRectHint(appBounds: Rect, aspectRatio: Float): Rect { in getEnterPipWithOverlaySrcRectHint() 149 val appBoundsAspRatio = appBounds.width().toFloat() / appBounds.height() in getEnterPipWithOverlaySrcRectHint() 155 width = appBounds.width() in getEnterPipWithOverlaySrcRectHint() 157 top = (appBounds.height() - height) / 2 in getEnterPipWithOverlaySrcRectHint() 159 height = appBounds.height() in getEnterPipWithOverlaySrcRectHint() 161 left = (appBounds.width() - width) / 2 in getEnterPipWithOverlaySrcRectHint()
|
D | IPip.aidl | 59 in Rect destinationBounds, in SurfaceControl overlay, in Rect appBounds, in stopSwipePipToHome() argument
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeUtils.kt | 147 val appBounds = taskInfo.configuration.windowConfiguration.appBounds ?: return 1f in calculateAspectRatio() constant 148 return maxOf(appBounds.height(), appBounds.width()) / in calculateAspectRatio() 149 minOf(appBounds.height(), appBounds.width()).toFloat() in calculateAspectRatio()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/ |
D | PipContentOverlay.java | 170 public PipAppIconOverlay(Context context, Rect appBounds, Rect destinationBounds, in PipAppIconOverlay() argument 177 final int overlaySize = getOverlaySize(appBounds, destinationBounds); in PipAppIconOverlay() 182 mAppBounds = new Rect(0, 0, appBounds.width(), appBounds.height()); in PipAppIconOverlay() 199 public static int getOverlaySize(Rect appBounds, Rect destinationBounds) { in getOverlaySize() argument 200 final int appWidth = appBounds.width(); in getOverlaySize() 201 final int appHeight = appBounds.height(); in getOverlaySize()
|
D | PipAnimationController.java | 431 void setAppIconContentOverlay(Context context, Rect appBounds, Rect destinationBounds, in setAppIconContentOverlay() argument 434 new PipContentOverlay.PipAppIconOverlay(context, appBounds, destinationBounds, in setAppIconContentOverlay()
|
D | PipTaskOrganizer.java | 508 SurfaceControl overlay, Rect appBounds, Rect sourceRectHint) { in stopSwipePipToHome() argument 516 setContentOverlay(overlay, appBounds); in stopSwipePipToHome() 2004 void setContentOverlay(@Nullable SurfaceControl leash, @NonNull Rect appBounds) { in setContentOverlay() argument 2007 mAppBounds.set(appBounds); in setContentOverlay()
|
D | PipTransition.java | 505 final Rect appBounds = mPipOrganizer.mAppBounds; in onFinishResize() local 506 if (mPipOrganizer.mPipOverlay != null && !appBounds.isEmpty()) { in onFinishResize() 511 .getOverlaySize(appBounds, destinationBounds); in onFinishResize()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipController.java | 288 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in onSwipePipToHomeAnimationStart() argument 294 extra.putParcelable(SWIPE_TO_PIP_APP_BOUNDS, appBounds); in onSwipePipToHomeAnimationStart() 319 Rect appBounds = extra.getParcelable( in onPipTransitionStateChanged() local 322 Preconditions.checkState(appBounds != null, in onPipTransitionStateChanged() 324 mPipTransitionState.setSwipePipToHomeState(overlay, appBounds); in onPipTransitionStateChanged() 413 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in stopSwipePipToHome() argument 420 taskId, componentName, destinationBounds, overlay, appBounds, in stopSwipePipToHome()
|
D | PipTransitionState.java | 256 @NonNull Rect appBounds) { in setSwipePipToHomeState() argument 258 if (overlayLeash != null && !appBounds.isEmpty()) { in setSwipePipToHomeState() 260 mSwipePipToHomeAppBounds.set(appBounds); in setSwipePipToHomeState()
|
D | PipTransition.java | 299 Rect appBounds = mPipTransitionState.getSwipePipToHomeAppBounds(); in handleSwipePipToHomeTransition() local 307 : PipUtils.getEnterPipWithOverlaySrcRectHint(appBounds, aspectRatio); in handleSwipePipToHomeTransition()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowConfigurationTests.java | 192 final Rect appBounds = mWm.computeNewConfiguration( in testAppBounds_RootConfigurationBounds() local 199 assertEquals(expectedLeft, appBounds.left); in testAppBounds_RootConfigurationBounds() 200 assertEquals(expectedTop, appBounds.top); in testAppBounds_RootConfigurationBounds() 203 assertEquals(info.appWidth, appBounds.width()); in testAppBounds_RootConfigurationBounds() 204 assertEquals(info.appHeight, appBounds.height()); in testAppBounds_RootConfigurationBounds()
|
D | SizeCompatTests.java | 434 final Rect appBounds = activity.getWindowConfiguration().getAppBounds(); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() local 440 final int offsetX = (int) ((1f + displayBounds.width() - appBounds.width()) / 2); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 442 assertEquals(offsetX, appBounds.left); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 443 assertEquals(appBounds.height(), displayBounds.height() - notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 445 assertEquals(appBounds.height(), appBounds.width() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 447 assertEquals(activity.getBounds().height(), appBounds.height() + notchHeight); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 460 assertEquals(appBounds.width(), appBounds.height() * aspectRatio, 0.5f /* delta */); in testFixedAspectRatioBoundsWithDecorInSquareDisplay() 715 final Rect appBounds = mActivity.getWindowConfiguration().getAppBounds(); in testMoveToDifferentOrientationDisplay() local 716 assertEquals(currentBounds.width(), appBounds.width()); in testMoveToDifferentOrientationDisplay() 717 assertEquals(currentBounds.height() - notchHeight, appBounds.height()); in testMoveToDifferentOrientationDisplay() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/ |
D | Task.java | 243 public Rect appBounds; field in Task 281 appBounds = other.appBounds; in Task()
|
/frameworks/base/core/java/android/view/ |
D | DisplayInfo.java | 822 final Rect appBounds = configuration != null in getMetricsWithSize() local 824 width = appBounds != null ? appBounds.width() : width; in getMetricsWithSize() 825 height = appBounds != null ? appBounds.height() : height; in getMetricsWithSize() 831 final boolean applyToSize = configuration != null && appBounds == null; in getMetricsWithSize()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayArea.java | 672 final Rect appBounds = new Rect(overrideBounds); in resolveOverrideConfiguration() local 673 appBounds.intersect(parentAppBounds); in resolveOverrideConfiguration() 674 resolvedConfig.windowConfiguration.setAppBounds(appBounds); in resolveOverrideConfiguration()
|
D | TaskFragment.java | 2292 final Rect appBounds = inOutConfig.windowConfiguration.getAppBounds(); in invalidateAppBoundsConfig() local 2293 if (appBounds != null) { in invalidateAppBoundsConfig() 2294 appBounds.setEmpty(); in invalidateAppBoundsConfig()
|
D | ActivityRecord.java | 8351 final Rect appBounds = getConfiguration().windowConfiguration.getAppBounds(); in inSizeCompatMode() local 8352 if (appBounds == null) { in inSizeCompatMode() 9360 private boolean isInSizeCompatModeForBounds(final Rect appBounds, final Rect containerBounds) { in isInSizeCompatModeForBounds() argument 9366 final int appWidth = appBounds.width(); in isInSizeCompatModeForBounds() 9367 final int appHeight = appBounds.height(); in isInSizeCompatModeForBounds()
|
D | DisplayContent.java | 2434 final Rect appBounds = outConfig.windowConfiguration.getAppBounds(); in computeScreenConfiguration() local 2435 displayInfo.appWidth = appBounds.width(); in computeScreenConfiguration() 2436 displayInfo.appHeight = appBounds.height(); in computeScreenConfiguration()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
D | PipController.java | 1004 SurfaceControl overlay, Rect appBounds, Rect sourceRectHint) { in stopSwipePipToHome() argument 1006 appBounds, sourceRectHint); in stopSwipePipToHome() 1294 Rect destinationBounds, SurfaceControl overlay, Rect appBounds, in stopSwipePipToHome() argument 1301 taskId, componentName, destinationBounds, overlay, appBounds, in stopSwipePipToHome()
|
/frameworks/base/core/java/android/window/ |
D | WindowContainerTransaction.java | 123 @NonNull WindowContainerToken container,@NonNull Rect appBounds) { in setAppBounds() argument 125 chg.mConfiguration.windowConfiguration.setAppBounds(appBounds); in setAppBounds()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopTasksControllerTest.kt | 1666 configuration.windowConfiguration.appBounds = in <lambda>() 1669 configuration.windowConfiguration.appBounds = in <lambda>()
|