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.java144 int originalHeight = drawable.getIntrinsicHeight(); in buildScaledBitmap() local
146 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
150 if (originalHeight <= 0 || originalWidth <= 0) { in buildScaledBitmap()
157 (float) maxHeight / (float) originalHeight); in buildScaledBitmap()
160 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java235 final int originalHeight; in ScreenRotationAnimation() local
241 originalHeight = displayContent.mBaseDisplayHeight; in ScreenRotationAnimation()
245 originalHeight = displayInfo.logicalHeight; in ScreenRotationAnimation()
249 mWidth = originalHeight; in ScreenRotationAnimation()
253 mHeight = originalHeight; in ScreenRotationAnimation()
258 mOriginalHeight = originalHeight; in ScreenRotationAnimation()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsTests.java222 final int originalHeight = mSecondaryDisplay.mBaseDisplayHeight; in testDefaultToOriginalMetrics() local
229 assertEquals(originalHeight, mSecondaryDisplay.mBaseDisplayHeight); in testDefaultToOriginalMetrics()