Home
last modified time | relevance | path

Searched refs:originalHeight (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java133 int originalHeight = drawable.getIntrinsicHeight(); in buildScaledBitmap() local
135 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
139 if (originalHeight <= 0 || originalWidth <= 0) { in buildScaledBitmap()
146 (float) maxHeight / (float) originalHeight); in buildScaledBitmap()
149 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java238 final int originalHeight; in ScreenRotationAnimation() local
244 originalHeight = displayContent.mBaseDisplayHeight; in ScreenRotationAnimation()
248 originalHeight = displayInfo.logicalHeight; in ScreenRotationAnimation()
252 mWidth = originalHeight; in ScreenRotationAnimation()
256 mHeight = originalHeight; in ScreenRotationAnimation()
261 mOriginalHeight = originalHeight; in ScreenRotationAnimation()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
DMediaRouteControllerDialog.java1084 int getDesiredArtHeight(int originalWidth, int originalHeight) { in getDesiredArtHeight() argument
1085 if (originalWidth >= originalHeight) { in getDesiredArtHeight()
1087 return (int) ((float) mDialogContentWidth * originalHeight / originalWidth + 0.5f); in getDesiredArtHeight()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
DMediaRouteControllerDialog.java1090 int getDesiredArtHeight(int originalWidth, int originalHeight) { in getDesiredArtHeight() argument
1091 if (originalWidth >= originalHeight) { in getDesiredArtHeight()
1093 return (int) ((float) mDialogContentWidth * originalHeight / originalWidth + 0.5f); in getDesiredArtHeight()