Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java112 int adjWidth = width; 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.java429 final int adjWidth; in adjustNormalBoundsToFitMenu() local
440 adjWidth = minMenuSize.getWidth(); in adjustNormalBoundsToFitMenu()
441 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
444 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
448 adjWidth = minMenuSize.getWidth(); in adjustNormalBoundsToFitMenu()
449 adjHeight = Math.round(adjWidth / mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
453 adjWidth = Math.round(adjHeight * mPipBoundsState.getAspectRatio()); in adjustNormalBoundsToFitMenu()
455 adjustedNormalBounds.set(0, 0, adjWidth, adjHeight); in adjustNormalBoundsToFitMenu()