Searched refs:maxDim (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | WallpaperUtils.java | 101 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultWallpaperSize() local 107 maxDim = Math.max(realSize.x, realSize.y); in getDefaultWallpaperSize() 115 defaultWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in getDefaultWallpaperSize() 116 defaultHeight = maxDim; in getDefaultWallpaperSize() 118 defaultWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in getDefaultWallpaperSize() 119 defaultHeight = maxDim; in getDefaultWallpaperSize()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 202 static Bitmap getNormalizedBitmap(Bitmap original, int maxDim, boolean forceCropToSquare) in getNormalizedBitmap() argument 222 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap()
|
/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/Launcher3/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 209 int maxDim = Math.max(mImageWidth, mImageHeight); in calculateLevelCount() local 211 while (t < maxDim) { in calculateLevelCount()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Workspace.java | 844 final int maxDim = Math.max(maxDims.x, maxDims.y); in setWallpaperDimension() local 850 mWallpaperWidth = (int) (maxDim * wallpaperTravelToScreenWidthRatio(maxDim, minDim)); in setWallpaperDimension() 851 mWallpaperHeight = maxDim; in setWallpaperDimension() 853 mWallpaperWidth = Math.max((int) (minDim * WALLPAPER_SCREENS_SPAN), maxDim); in setWallpaperDimension() 854 mWallpaperHeight = maxDim; in setWallpaperDimension()
|