Searched refs:cropHeight (Results 1 – 5 of 5) sorted by relevance
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoProcessor.java | 201 int cropHeight = original.getHeight(); in getNormalizedBitmap() local 204 if (forceCropToSquare && cropWidth != cropHeight) { in getNormalizedBitmap() 206 if (cropHeight > cropWidth) { in getNormalizedBitmap() 207 cropTop = (cropHeight - cropWidth) / 2; in getNormalizedBitmap() 208 cropHeight = cropWidth; in getNormalizedBitmap() 210 cropLeft = (cropWidth - cropHeight) / 2; in getNormalizedBitmap() 211 cropWidth = cropHeight; in getNormalizedBitmap() 215 final float scaleFactor = Math.min(1f, ((float) maxDim) / Math.max(cropWidth, cropHeight)); in getNormalizedBitmap() 219 final int newHeight = (int) (cropHeight * scaleFactor); in getNormalizedBitmap() 232 cropLeft + cropWidth, cropTop + cropHeight); in getNormalizedBitmap()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | AspectRatio.java | 177 int cropHeight = area.width() * mHeight / mWidth; in getLargestCenterCrop() local 178 int cropTop = (area.height() - cropHeight) / 2; in getLargestCenterCrop() 179 int cropBottom = cropTop + cropHeight; in getLargestCenterCrop()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | ImagePreviewFragment.java | 402 int cropHeight = mWallpaperSurface.getMeasuredHeight(); in setDefaultWallpaperZoomAndScroll() local 403 Point crop = new Point(cropWidth, cropHeight); in setDefaultWallpaperZoomAndScroll() 441 int cropHeight = mWallpaperSurface.getMeasuredHeight(); in calculateCropRect() local 442 int maxCrop = Math.max(cropWidth, cropHeight); in calculateCropRect() 443 int minCrop = Math.min(cropWidth, cropHeight); in calculateCropRect() 444 Point hostViewSize = new Point(cropWidth, cropHeight); in calculateCropRect() 448 cropWidth, cropHeight); in calculateCropRect()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | CropImage.java | 479 int cropHeight = cropWidth; 483 cropHeight = cropWidth * mAspectY / mAspectX; 485 cropWidth = cropHeight * mAspectX / mAspectY; 490 int y = (height - cropHeight) / 2; 492 RectF cropRect = new RectF(x, y, x + cropWidth, y + cropHeight);
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 395 int cropHeight = cropRect.height(); in getScaleOfScreenResolution() local 397 if (cropWidth >= screenWidth || cropHeight >= screenHeight) { in getScaleOfScreenResolution() 408 float screenScale = Math.min((float) newWidth / cropWidth, (float) newHeight / cropHeight); in getScaleOfScreenResolution()
|