Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java143 int originalWidth = drawable.getIntrinsicWidth(); in buildScaledBitmap() local
146 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
150 if (originalHeight <= 0 || originalWidth <= 0) { in buildScaledBitmap()
156 float ratio = Math.min((float) maxWidth / (float) originalWidth, in buildScaledBitmap()
159 int scaledWidth = (int) (ratio * originalWidth); in buildScaledBitmap()
/frameworks/base/services/core/java/com/android/server/wm/
DScreenRotationAnimation.java154 final int originalWidth; in ScreenRotationAnimation() local
159 originalWidth = displayContent.mBaseDisplayWidth; in ScreenRotationAnimation()
163 originalWidth = displayInfo.logicalWidth; in ScreenRotationAnimation()
166 mWidth = originalWidth; in ScreenRotationAnimation()
176 mOriginalWidth = flipped ? originalHeight : originalWidth; in ScreenRotationAnimation()
177 mOriginalHeight = flipped ? originalWidth : originalHeight; in ScreenRotationAnimation()
DDisplayContent.java2708 final int originalWidth = mBaseDisplayWidth; in updateBaseDisplayMetrics() local
2726 if (mBaseDisplayWidth != originalWidth || mBaseDisplayHeight != originalHeight in updateBaseDisplayMetrics()
/frameworks/base/core/tests/coretests/src/android/text/
DTextLineTest.java52 final float originalWidth = tl.metrics(null); in stretchesToFullWidth() local
53 final float expandedWidth = 2 * originalWidth; in stretchesToFullWidth()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsTests.java201 final int originalWidth = mSecondaryDisplay.mBaseDisplayWidth; in testDefaultToOriginalMetrics() local
208 assertEquals(originalWidth, mSecondaryDisplay.mBaseDisplayWidth); in testDefaultToOriginalMetrics()