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

/frameworks/base/core/java/com/android/internal/util/
H A DImageUtils.java132 int originalWidth = drawable.getIntrinsicWidth();
135 if ((originalWidth <= maxWidth) && (originalHeight <= maxHeight) &&
139 if (originalHeight <= 0 || originalWidth <= 0) {
145 float ratio = Math.min((float) maxWidth / (float) originalWidth,
148 int scaledWidth = (int) (ratio * originalWidth);
/frameworks/base/core/tests/coretests/src/android/text/
H A DTextLineTest.java39 final float originalWidth = tl.metrics(null);
40 final float expandedWidth = 2 * originalWidth;
/frameworks/base/services/core/java/com/android/server/wm/
H A DScreenRotationAnimation.java237 final int originalWidth;
243 originalWidth = displayContent.mBaseDisplayWidth;
247 originalWidth = displayInfo.logicalWidth;
253 mHeight = originalWidth;
255 mWidth = originalWidth;
260 mOriginalWidth = originalWidth;
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/
H A DMediaRouteControllerDialog.java1090 int getDesiredArtHeight(int originalWidth, int originalHeight) { argument
1091 if (originalWidth >= originalHeight) {
1093 return (int) ((float) mDialogContentWidth * originalHeight / originalWidth + 0.5f);
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/app/
H A DMediaRouteControllerDialog.java1084 int getDesiredArtHeight(int originalWidth, int originalHeight) { argument
1085 if (originalWidth >= originalHeight) {
1087 return (int) ((float) mDialogContentWidth * originalHeight / originalWidth + 0.5f);

Completed in 56 milliseconds