Lines Matching refs:cropRect

371         RectF cropRect = mCropView.getCrop();
376 float cropScale = mCropView.getWidth() / (float) cropRect.width();
387 cropRect.left = Math.max(0, cropRect.left);
388 cropRect.right = Math.min(rotatedInSize[0], cropRect.right);
389 cropRect.top = Math.max(0, cropRect.top);
390 cropRect.bottom = Math.min(rotatedInSize[1], cropRect.bottom);
397 extraSpace = 2f * Math.min(rotatedInSize[0] - cropRect.right, cropRect.left);
399 extraSpace = ltr ? rotatedInSize[0] - cropRect.right : cropRect.left;
402 float maxExtraSpace = defaultWallpaperSize.x / cropScale - cropRect.width();
406 cropRect.left -= extraSpace / 2f;
407 cropRect.right += extraSpace / 2f;
410 cropRect.right += extraSpace;
412 cropRect.left -= extraSpace;
418 cropRect.bottom = cropRect.top + defaultWallpaperSize.y / cropScale;
421 defaultWallpaperSize.y / cropScale - cropRect.height();
423 Math.min(Math.min(rotatedInSize[1] - cropRect.bottom, cropRect.top),
425 cropRect.top -= expandHeight;
426 cropRect.bottom += expandHeight;
428 final int outWidth = (int) Math.round(cropRect.width() * cropScale);
429 final int outHeight = (int) Math.round(cropRect.height() * cropScale);
440 cropRect, cropRotation, outWidth, outHeight, true, false, onEndCrop);
734 RectF cropRect = new RectF(0, 0, dimsAfter[0], dimsAfter[1]);
739 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
748 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
815 RectF cropRect = new RectF();
818 cropRect.top = 0;
819 cropRect.bottom = inHeight;
820 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2;
821 cropRect.right = inWidth - cropRect.left;
823 cropRect.right -= cropRect.left;
824 cropRect.left = 0;
827 cropRect.left = 0;
828 cropRect.right = inWidth;
829 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2;
830 cropRect.bottom = inHeight - cropRect.top;
832 return cropRect;