Home
last modified time | relevance | path

Searched refs:originalWidth (Results 1 – 2 of 2) 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/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java211 final int originalWidth; in ScreenRotationAnimation() local
217 originalWidth = displayContent.mBaseDisplayWidth; in ScreenRotationAnimation()
221 originalWidth = displayInfo.logicalWidth; in ScreenRotationAnimation()
227 mHeight = originalWidth; in ScreenRotationAnimation()
229 mWidth = originalWidth; in ScreenRotationAnimation()
234 mOriginalWidth = originalWidth; in ScreenRotationAnimation()