Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java132 int originalWidth = drawable.getIntrinsicWidth(); in buildScaledBitmap() local
135 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
139 if (originalHeight <= 0 || originalWidth <= 0) { in buildScaledBitmap()
145 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap()
148 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationActionListLayout.java139 int originalWidth = lp.width; in onMeasure() local
143 lp.width = originalWidth; in onMeasure()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java227 final int originalWidth; in ScreenRotationAnimation() local
233 originalWidth = displayContent.mBaseDisplayWidth; in ScreenRotationAnimation()
237 originalWidth = displayInfo.logicalWidth; in ScreenRotationAnimation()
243 mHeight = originalWidth; in ScreenRotationAnimation()
245 mWidth = originalWidth; in ScreenRotationAnimation()
250 mOriginalWidth = originalWidth; 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()