Searched refs:cropRect (Results 1 - 10 of 10) sorted by path
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 510 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/base/core/java/android/hardware/camera2/legacy/ |
H A D | ParameterUtils.java | 514 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/base/media/java/android/media/ |
H A D | Image.java | 148 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 D | MediaCodec.java | 1752 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/media/jni/ |
H A D | android_media_MediaCodec.cpp | 493 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;
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
H A D | KeyguardCircleFramedDrawable.java | 69 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); 88 canvas.drawBitmap(bitmap, cropRect, circleRect, mPaint);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
H A D | WallpaperCropActivity.java | 372 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/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | AndroidCamera2Settings.java | 573 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/include/gui/ |
H A D | GLConsumer.h | 291 const Rect& cropRect,
|
/frameworks/native/libs/gui/ |
H A D | GLConsumer.cpp | 786 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...] |
Completed in 6197 milliseconds