Home
last modified time | relevance | path

Searched refs:adjHeight (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DLaunchParamsUtil.java111 int adjHeight = height; in getDefaultFreeformSize() local
116 adjHeight = (int) (adjWidth / minAspectRatio + 0.5f); in getDefaultFreeformSize()
119 adjWidth = (int) (adjHeight / minAspectRatio + 0.5f); in getDefaultFreeformSize()
125 adjHeight = (int) (adjWidth / maxAspectRatio + 0.5f); in getDefaultFreeformSize()
128 adjWidth = (int) (adjHeight / maxAspectRatio + 0.5f); in getDefaultFreeformSize()
132 return new Size(adjWidth, adjHeight); in getDefaultFreeformSize()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
H A DPipBoundsAlgorithm.java403 final int adjHeight; in adjustNormalBoundsToFitMenu() local
414 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
416 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu()
417 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
422 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
425 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu()
426 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
428 adjustedNormalBounds.set(0, 0, adjWidth, adjHeight); in adjustNormalBoundsToFitMenu()