Lines Matching refs:cropRect
368 RectF cropRect = mCropView.getCrop(); in cropImageAndSetWallpaper()
373 float cropScale = mCropView.getWidth() / (float) cropRect.width(); in cropImageAndSetWallpaper()
384 cropRect.left = Math.max(0, cropRect.left); in cropImageAndSetWallpaper()
385 cropRect.right = Math.min(rotatedInSize[0], cropRect.right); in cropImageAndSetWallpaper()
386 cropRect.top = Math.max(0, cropRect.top); in cropImageAndSetWallpaper()
387 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom); in cropImageAndSetWallpaper()
392 float extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left; in cropImageAndSetWallpaper()
394 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width(); in cropImageAndSetWallpaper()
398 cropRect.right += extraSpace; in cropImageAndSetWallpaper()
400 cropRect.left -= extraSpace; in cropImageAndSetWallpaper()
405 cropRect.bottom = cropRect.top + defaultWallpaperSize.y / cropScale; in cropImageAndSetWallpaper()
408 defaultWallpaperSize.y / cropScale - cropRect.height(); in cropImageAndSetWallpaper()
410 Math.min(Math.min(rotatedInSize[1] - cropRect.bottom, cropRect.top), in cropImageAndSetWallpaper()
412 cropRect.top -= expandHeight; in cropImageAndSetWallpaper()
413 cropRect.bottom += expandHeight; in cropImageAndSetWallpaper()
416 final int outWidth = (int) Math.round(cropRect.width() * cropScale); in cropImageAndSetWallpaper()
417 final int outHeight = (int) Math.round(cropRect.height() * cropScale); in cropImageAndSetWallpaper()
423 cropRect, cropRotation, outWidth, outHeight, onEndCrop) { in cropImageAndSetWallpaper()