Searched refs:maxDim (Results 1 – 6 of 6) sorted by relevance
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 77 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultCropSurfaceSize() local 83 maxDim = Math.max(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() 98 defaultHeight = maxDim; in calculateCropSurfaceSize() 100 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in calculateCropSurfaceSize() 101 defaultHeight = maxDim; in calculateCropSurfaceSize()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperUtils.java | 135 int maxDim = Math.max(realSize.x, realSize.y); in getDefaultWallpaperSize() local 142 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in getDefaultWallpaperSize() 143 defaultHeight = maxDim; in getDefaultWallpaperSize() 145 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in getDefaultWallpaperSize() 146 defaultHeight = maxDim; in getDefaultWallpaperSize()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 195 static Bitmap getNormalizedBitmap(Bitmap original, int maxDim, boolean forceCropToSquare) in getNormalizedBitmap() argument 215 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/ |
D | PreviewActivityTest.java | 370 int maxDim = Math.max(screenSize.x, screenSize.y); in testClickSetWallpaper_CropsAndScalesWallpaper() 374 assertTrue(cropRect.width() >= maxDim); in testClickSetWallpaper_CropsAndScalesWallpaper() 375 assertTrue(cropRect.height() >= maxDim); in testClickSetWallpaper_CropsAndScalesWallpaper()
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 208 int maxDim = Math.max(mImageWidth, mImageHeight); in calculateLevelCount() local 210 while (t < maxDim) { in calculateLevelCount()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 208 int maxDim = Math.max(mImageWidth, mImageHeight); in calculateLevelCount() local 210 while (t < maxDim) { in calculateLevelCount()
|