Home
last modified time | relevance | path

Searched refs:widthScale (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapUtils.java45 float widthScale = 1f; in scaleBitmap() local
47 widthScale = (float) width / bm.getWidth(); in scaleBitmap()
49 float scale = heightScale > widthScale ? heightScale : widthScale; in scaleBitmap()
DDrawableLoader.java203 int widthScale = 1; in decodeBitmap() local
206 widthScale = bitmapOptions.outWidth / width; in decodeBitmap()
209 int scale = heightScale > widthScale ? heightScale : widthScale; in decodeBitmap()
DBitmapWorkerTask.java171 float widthScale = (float) bitmapOptions.outWidth / options.getWidth(); in decodeBitmap() local
173 float scale = heightScale < widthScale ? heightScale : widthScale; in decodeBitmap()
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
DBitmapUtils.java59 float widthScale = (float) width / bm.getWidth(); in scaleBitmap() local
61 float scale = heightScale > widthScale ? heightScale : widthScale; in scaleBitmap()
/packages/apps/Messaging/src/com/android/messaging/ui/
DVideoThumbnailView.java325 final float widthScale = Math.max(1, minimumWidth / (float) desiredWidth); in onMeasure() local
327 final float scale = Math.min(maxScale, Math.max(widthScale, heightScale)); in onMeasure()
/packages/apps/Gallery/src/com/android/camera/
DImageViewTouchBase.java269 float widthScale = Math.min(viewWidth / w, 3.0f); in getProperBaseMatrix() local
271 float scale = Math.min(widthScale, heightScale); in getProperBaseMatrix()