Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/drawable/
DDrawableSize.kt53 val originalHeight = (drawable as? BitmapDrawable)?.bitmap?.height in downscaleToSize() constant
57 if (originalWidth <= 0 || originalHeight <= 0) { in downscaleToSize()
62 if (originalWidth < maxWidth && originalHeight < maxHeight) { in downscaleToSize()
64 Log.d(TAG, "Not resizing $originalWidth x $originalHeight" + " " + in downscaleToSize()
76 val scaleHeight = maxHeight.toFloat() / originalHeight.toFloat() in downscaleToSize()
80 val height = (originalHeight * scale).toInt() in downscaleToSize()
84 "from $originalWidth x $originalHeight to invalid $width x $height.") in downscaleToSize()
90 "from $originalWidth x $originalHeight to $width x $height") in downscaleToSize()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java156 int originalHeight = drawable.getIntrinsicHeight(); in buildScaledBitmap() local
158 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) && in buildScaledBitmap()
162 if (originalHeight <= 0 || originalWidth <= 0) { in buildScaledBitmap()
169 (float) maxHeight / (float) originalHeight); in buildScaledBitmap()
174 int scaledHeight = (int) (ratio * originalHeight); in buildScaledBitmap()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLocalImageResolverTest.java251 final int originalHeight = icon.getBitmap().getHeight(); in resolveImage_smallBitmapIcon_defaultSize_untouched() local
258 assertThat(bd.getBitmap().getHeight()).isEqualTo(originalHeight); in resolveImage_smallBitmapIcon_defaultSize_untouched()
266 final int originalHeight = icon.getBitmap().getHeight(); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched() local
272 assertThat(bd.getBitmap().getHeight()).isEqualTo(originalHeight); in resolveImage_smallAdaptiveBitmapIcon_defaultSize_untouched()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayWindowSettingsTests.java204 final int originalHeight = mSecondaryDisplay.mBaseDisplayHeight; in testDefaultToOriginalMetrics() local
211 assertEquals(originalHeight, mSecondaryDisplay.mBaseDisplayHeight); in testDefaultToOriginalMetrics()