Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java113 int adjHeight = height; in getDefaultFreeformSize() local
118 adjHeight = (int) (adjWidth / minAspectRatio + 0.5f); in getDefaultFreeformSize()
121 adjWidth = (int) (adjHeight / minAspectRatio + 0.5f); in getDefaultFreeformSize()
127 adjHeight = (int) (adjWidth / maxAspectRatio + 0.5f); in getDefaultFreeformSize()
130 adjWidth = (int) (adjHeight / maxAspectRatio + 0.5f); in getDefaultFreeformSize()
134 return new Size(adjWidth, adjHeight); in getDefaultFreeformSize()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java430 final int adjHeight; in adjustNormalBoundsToFitMenu() local
441 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
443 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu()
444 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
449 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
452 adjHeight = minMenuSize.getHeight(); in adjustNormalBoundsToFitMenu()
453 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
455 adjustedNormalBounds.set(0, 0, adjWidth, adjHeight); in adjustNormalBoundsToFitMenu()