Searched refs:minDim (Results 1 – 2 of 2) sorted by relevance
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 78 int minDim = Math.max(minDims.x, minDims.y); in getDefaultCropSurfaceSize() local 84 minDim = Math.min(realSize.x, realSize.y); in getDefaultCropSurfaceSize() 87 return calculateCropSurfaceSize(resources, maxDim, minDim); in getDefaultCropSurfaceSize() 94 public static Point calculateCropSurfaceSize(Resources resources, int maxDim, int minDim) { in calculateCropSurfaceSize() argument 97 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in calculateCropSurfaceSize() 100 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in calculateCropSurfaceSize()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperUtils.java | 136 int minDim = Math.min(realSize.x, realSize.y); in getDefaultWallpaperSize() local 142 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in getDefaultWallpaperSize() 145 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in getDefaultWallpaperSize()
|