Searched refs:maxDim (Results 1 – 6 of 6) sorted by relevance
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 69 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultCropSurfaceSize() local 75 maxDim = Math.max(realSize.x, realSize.y); in getDefaultCropSurfaceSize() 81 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in getDefaultCropSurfaceSize() 82 defaultHeight = maxDim; in getDefaultCropSurfaceSize() 84 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in getDefaultCropSurfaceSize() 85 defaultHeight = maxDim; in getDefaultCropSurfaceSize()
|
/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/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()
|
/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()
|