Home
last modified time | relevance | path

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

/packages/apps/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()
114 cropRect.bottom = inHeight; in getMaxCropRect()
115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect()
124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect()
125 cropRect.bottom = inHeight - cropRect.top; in getMaxCropRect()