Home
last modified time | relevance | path

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

/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DUtils.java109 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) { in getMaxCropRect() argument
112 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect()
116 cropRect.right = inWidth - cropRect.left; in getMaxCropRect()
123 cropRect.right = inWidth; in getMaxCropRect()
124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect()