Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java78 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/
DWallpaperUtils.java136 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()