Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java77 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, display.getWidth(), in getDefaultCropSurfaceSize()
95 public static Point calculateCropSurfaceSize(Resources resources, int maxDim, int minDim, in calculateCropSurfaceSize() argument
99 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in calculateCropSurfaceSize()
101 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in calculateCropSurfaceSize()
103 defaultHeight = width < height ? maxDim : minDim; in calculateCropSurfaceSize()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoProcessor.java195 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/
DPreviewActivityTest.java410 int maxDim = Math.max(screenSize.x, screenSize.y); in testClickSetWallpaper_CropsAndScalesWallpaper()
414 assertTrue(cropRect.width() >= maxDim); in testClickSetWallpaper_CropsAndScalesWallpaper()
415 assertTrue(cropRect.height() >= maxDim); in testClickSetWallpaper_CropsAndScalesWallpaper()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java208 int maxDim = Math.max(mImageWidth, mImageHeight); in calculateLevelCount() local
210 while (t < maxDim) { in calculateLevelCount()