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

/frameworks/base/media/java/android/media/
H A DImage.java236 public void setCropRect(Rect cropRect) { argument
239 if (cropRect != null) {
240 cropRect = new Rect(cropRect); // make a copy
241 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) {
242 cropRect.setEmpty();
245 mCropRect = cropRect;
H A DMediaCodec.java3549 public void setCropRect(@Nullable Rect cropRect) { argument
3553 super.setCropRect(cropRect);
3559 long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) {
3624 if (cropRect == null) {
3625 cropRect = new Rect(0, 0, mWidth, mHeight);
3627 cropRect.offset(-xOffset, -yOffset);
3628 super.setCropRect(cropRect);
3557 MediaImage( @onNull ByteBuffer buffer, @NonNull ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, @Nullable Rect cropRect) argument
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DWallpaperCropActivity.java371 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
[all...]
/frameworks/base/core/java/android/app/
H A DWallpaperManager.java618 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight());
620 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
639 RectF cropRect = new RectF();
642 cropRect.top = 0;
643 cropRect.bottom = inHeight;
645 cropRect.left = (inWidth - cropWidth) * horizontalAlignment;
646 cropRect.right = cropRect.left + cropWidth;
648 cropRect.left = 0;
649 cropRect
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DCircleFramedDrawable.java69 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square);
86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
/frameworks/base/media/jni/
H A Dandroid_media_ImageWriter.cpp458 android_native_rect_t cropRect; local
459 cropRect.left = left;
460 cropRect.top = top;
461 cropRect.right = right;
462 cropRect.bottom = bottom;
463 res = native_window_set_crop(anw.get(), &cropRect);
543 android_native_rect_t cropRect; local
544 cropRect.left = left;
545 cropRect.top = top;
546 cropRect
[all...]
H A Dandroid_media_MediaCodec.cpp565 jobject cropRect = NULL; local
575 cropRect = env->NewObject(
590 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect);
599 if (cropRect != NULL) {
600 env->DeleteLocalRef(cropRect);
601 cropRect = NULL;
/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.cpp819 const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform,
849 if (!cropRect.isEmpty()) {
883 if (cropRect.width() < bufferWidth) {
884 tx = (float(cropRect.left) + shrinkAmount) / bufferWidth;
885 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) /
888 if (cropRect.height() < bufferHeight) {
889 ty = (float(bufferHeight - cropRect.bottom) + shrinkAmount) /
891 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) /
1195 const Rect& cropRect,
1200 bool cropInvalid = hasEglAndroidImageCrop() && mCropRect != cropRect;
818 computeTransformMatrix(float outTransform[16], const sp<GraphicBuffer>& buf, const Rect& cropRect, uint32_t transform, bool filtering) argument
1194 createIfNeeded(EGLDisplay eglDisplay, const Rect& cropRect, bool forceCreation) argument
[all...]
/frameworks/native/include/gui/
H A DGLConsumer.h138 const sp<GraphicBuffer>& buf, const Rect& cropRect,
319 const Rect& cropRect,
/frameworks/base/core/java/android/hardware/camera2/legacy/
H A DParameterUtils.java517 RectF cropRect = new RectF(/*left*/0, /*top*/0, cropW, cropH);
521 translateMatrix.postTranslate(-cropRect.centerX(), -cropRect.centerY());
523 translateMatrix.mapRect(/*inout*/cropRect);
526 return ParamsUtils.createRect(cropRect);
/frameworks/native/services/surfaceflinger/tests/
H A DTransaction_test.cpp281 Rect cropRect(16, 16, 32, 32);
282 ASSERT_EQ(NO_ERROR, mFGSurfaceControl->setCrop(cropRect));
306 Rect cropRect(16, 16, 32, 32);
307 ASSERT_EQ(NO_ERROR, mFGSurfaceControl->setFinalCrop(cropRect));
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp583 int cropRect[4] = { 0, 0, font.char_width, -font.char_height }; local
596 cropRect[0] = col * font.char_width; // Left of column
597 cropRect[1] = row * font.char_height * 2; // Top of row
599 cropRect[1] += bold ? 2 * font.char_height : font.char_height;
600 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java1576 * @param cropRect The cropped region
1580 MeteringRectangle[] requestRegions, Rect cropRect){
1586 resultRect.setIntersect(requestRect, cropRect));
1579 getExpectedOutputRegion( MeteringRectangle[] requestRegions, Rect cropRect) argument
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowStateAnimator.java1995 final Rect cropRect = mService.mTmpRect;

Completed in 339 milliseconds