Searched refs:cropRect (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/media/java/android/media/
H A DImage.java148 public void setCropRect(Rect cropRect) { argument
149 if (cropRect != null) {
150 cropRect = new Rect(cropRect); // make a copy
151 cropRect.intersect(0, 0, getWidth(), getHeight());
153 mCropRect = cropRect;
H A DMediaCodec.java1752 public void setCropRect(Rect cropRect) { argument
1756 super.setCropRect(cropRect);
1775 long timestamp, int xOffset, int yOffset, Rect cropRect) {
1833 if (cropRect == null) {
1834 cropRect = new Rect(0, 0, mWidth, mHeight);
1836 cropRect.offset(-xOffset, -yOffset);
1837 super.setCropRect(cropRect);
1773 MediaImage( ByteBuffer buffer, ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, Rect cropRect) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java372 RectF cropRect = mCropView.getCrop();
377 float cropScale = mCropView.getWidth() / (float) cropRect.width();
388 cropRect.left = Math.max(0, cropRect.left);
389 cropRect.right = Math.min(rotatedInSize[0], cropRect.right);
390 cropRect.top = Math.max(0, cropRect.top);
391 cropRect.bottom = Math.min(rotatedInSize[1], cropRect
[all...]
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java510 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight());
512 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
531 RectF cropRect = new RectF();
534 cropRect.top = 0;
535 cropRect.bottom = inHeight;
537 cropRect.left = (inWidth - cropWidth) * horizontalAlignment;
538 cropRect.right = cropRect.left + cropWidth;
540 cropRect.left = 0;
541 cropRect
[all...]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DAndroidCamera2Settings.java573 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropWidth, cropHeight);
577 translateMatrix.postTranslate(-cropRect.centerX(), -cropRect.centerY());
579 translateMatrix.mapRect(/*inout*/cropRect);
583 cropRect.roundOut(result);
/frameworks/native/libs/gui/
H A DGLConsumer.cpp786 Rect cropRect = mCurrentCrop; local
790 if (!cropRect.isEmpty()) {
819 if (cropRect.width() < bufferWidth) {
820 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
821 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) /
824 if (cropRect.height() < bufferHeight) {
825 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) /
827 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) /
1073 const Rect& cropRect,
1078 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect;
1072 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardCircleFramedDrawable.java69 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square);
88 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint);
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java514 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropW, cropH);
518 translateMatrix.postTranslate(-cropRect.centerX(), -cropRect.centerY());
520 translateMatrix.mapRect(/*inout*/cropRect);
523 return ParamsUtils.createRect(cropRect);
/frameworks/native/include/gui/
H A DGLConsumer.h291 const Rect& cropRect,
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp493 jobject cropRect = NULL; local
503 cropRect = env->NewObject(
518 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect);
527 if (cropRect != NULL) {
528 env->DeleteLocalRef(cropRect);
529 cropRect = NULL;

Completed in 370 milliseconds