Home
last modified time | relevance | path

Searched refs:originalHeight (Results 1 – 3 of 3) 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.java228 final int originalHeight; in ScreenRotationAnimation() local
234 originalHeight = displayContent.mBaseDisplayHeight; in ScreenRotationAnimation()
238 originalHeight = displayInfo.logicalHeight; in ScreenRotationAnimation()
242 mWidth = originalHeight; in ScreenRotationAnimation()
246 mHeight = originalHeight; in ScreenRotationAnimation()
251 mOriginalHeight = originalHeight; in ScreenRotationAnimation()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouteControllerDialog.java1035 private int getDesiredArtHeight(int originalWidth, int originalHeight) { in getDesiredArtHeight() argument
1036 if (originalWidth >= originalHeight) { in getDesiredArtHeight()
1038 return (int) ((float) mDialogContentWidth * originalHeight / originalWidth + 0.5f); in getDesiredArtHeight()