/external/skia/gm/ |
xfermodeimagefilter.cpp | 153 SkIRect cropRect = SkIRect::MakeXYWH(offsets[i][0], 157 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 171 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(10, 10, 60, 60)); 172 sk_sp<SkImageFilter> cropped(SkOffsetImageFilter::Make(0, 0, foreground, &cropRect)); 192 SkImageFilter::CropRect cropRectFull(SkRect::MakeXYWH(0, 0, 80, 80));
|
offsetimagefilter.cpp | 51 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, 55 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 60 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); 64 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); 65 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 67 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); 71 SkScalar scale, const SkIRect& cropRect) { 82 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); [all...] |
/external/skqp/gm/ |
xfermodeimagefilter.cpp | 153 SkIRect cropRect = SkIRect::MakeXYWH(offsets[i][0], 157 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 171 SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(10, 10, 60, 60)); 172 sk_sp<SkImageFilter> cropped(SkOffsetImageFilter::Make(0, 0, foreground, &cropRect)); 192 SkImageFilter::CropRect cropRectFull(SkRect::MakeXYWH(0, 0, 80, 80));
|
offsetimagefilter.cpp | 51 SkIRect cropRect = SkIRect::MakeXYWH(i * 12, 55 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 60 DrawClippedImage(canvas, image.get(), paint, 1, cropRect); 64 SkIRect cropRect = SkIRect::MakeXYWH(0, 0, 100, 100); 65 SkImageFilter::CropRect rect(SkRect::Make(cropRect)); 67 DrawClippedImage(canvas, fBitmap.get(), paint, 2, cropRect); 71 SkScalar scale, const SkIRect& cropRect) { 82 SkMatrix::MakeScale(scale, scale).mapRect(&cropRectFloat, SkRect::Make(cropRect)); [all...] |
/external/skia/src/effects/ |
SkPictureImageFilter.cpp | 25 const SkRect& cropRect) { 26 return sk_sp<SkImageFilter>(new SkPictureImageFilter(std::move(picture), cropRect, nullptr)); 35 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, 39 , fCropRect(cropRect) 47 static sk_sp<SkImageFilter> make_localspace_filter(sk_sp<SkPicture> pic, const SkRect& cropRect, 49 SkISize dim = { SkScalarRoundToInt(cropRect.width()), SkScalarRoundToInt(cropRect.height()) }; 52 return SkImageSource::Make(img, cropRect, cropRect, fq); 57 SkRect cropRect; [all...] |
/external/skqp/src/effects/ |
SkPictureImageFilter.cpp | 25 const SkRect& cropRect) { 26 return sk_sp<SkImageFilter>(new SkPictureImageFilter(std::move(picture), cropRect, nullptr)); 35 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, 39 , fCropRect(cropRect) 47 static sk_sp<SkImageFilter> make_localspace_filter(sk_sp<SkPicture> pic, const SkRect& cropRect, 49 SkISize dim = { SkScalarRoundToInt(cropRect.width()), SkScalarRoundToInt(cropRect.height()) }; 52 return SkImageSource::Make(img, cropRect, cropRect, fq); 57 SkRect cropRect; [all...] |
/frameworks/base/media/java/android/media/ |
Image.java | 270 public void setCropRect(Rect cropRect) { 273 if (cropRect != null) { 274 cropRect = new Rect(cropRect); // make a copy 275 if (!cropRect.intersect(0, 0, getWidth(), getHeight())) { 276 cropRect.setEmpty(); 279 mCropRect = cropRect;
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
WallpaperTileInfo.java | 63 RectF cropRect = Utils.getMaxCropRect( 65 return streamProvider.readCroppedBitmap(cropRect, width, height, rotation);
|
/external/skia/src/android/ |
SkAnimatedImage.cpp | 19 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess) { 34 decodeInfo, cropRect, std::move(postProcess))); 50 const auto cropRect = SkIRect::MakeSize(scaledSize); 52 decodeInfo, cropRect, nullptr)); 64 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) 68 , fCropRect(cropRect)
|
/external/skqp/src/android/ |
SkAnimatedImage.cpp | 17 SkISize scaledSize, SkIRect cropRect, sk_sp<SkPicture> postProcess) { 32 decodeInfo, cropRect, std::move(postProcess))); 48 const auto cropRect = SkIRect::MakeSize(scaledSize); 50 decodeInfo, cropRect, nullptr)); 62 SkImageInfo decodeInfo, SkIRect cropRect, sk_sp<SkPicture> postProcess) 66 , fCropRect(cropRect)
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/ |
Utils.java | 110 RectF cropRect = new RectF(); 113 cropRect.top = 0; 114 cropRect.bottom = inHeight; 115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; 116 cropRect.right = inWidth - cropRect.left; 118 cropRect.right -= cropRect.left; 119 cropRect.left = 0; 122 cropRect.left = 0 [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/ |
CircleFramedDrawable.java | 69 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); 86 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
|
/frameworks/base/services/core/java/com/android/server/am/ |
CarUserSwitchingDialog.java | 116 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, 134 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
|
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
CircleFramedDrawable.java | 66 final Rect cropRect = new Rect((width - square) / 2, (height - square) / 2, square, square); 83 canvas.drawBitmap(icon, cropRect, circleRect, mPaint);
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
InputStreamProvider.java | 187 RectF cropRect = new RectF(0, 0, dimsAfter[0], dimsAfter[1]); 192 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 201 m4.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
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/services/surfaceflinger/ |
BufferLayerConsumer.cpp | 438 const Rect& cropRect = canUseImageCrop(mCurrentCrop) ? Rect::EMPTY_RECT : mCurrentCrop; 439 GLConsumer::computeTransformMatrix(mCurrentTransformMatrix, buf, cropRect, mCurrentTransform,
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ImageDecoderTest.java | [all...] |
/cts/tests/tests/media/libmediandkjni/ |
codec-utils-jni.cpp | 182 jobject cropRect = NULL; 184 cropRect = env->CallObjectMethod(image, gFields.methodCrop); 185 area = cropRect; 197 if (cropRect != NULL) { 198 env->DeleteLocalRef(cropRect); 199 cropRect = NULL;
|
/frameworks/base/media/jni/ |
android_media_ImageWriter.cpp | 468 android_native_rect_t cropRect; 469 cropRect.left = left; 470 cropRect.top = top; 471 cropRect.right = right; 472 cropRect.bottom = bottom; 473 res = native_window_set_crop(anw.get(), &cropRect); 565 android_native_rect_t cropRect; 566 cropRect.left = left; 567 cropRect.top = top; 568 cropRect.right = right [all...] |
/external/skia/fuzz/ |
FuzzCanvas.cpp | 543 inline void Fuzz::next(SkImageFilter::CropRect* cropRect) { 548 *cropRect = SkImageFilter::CropRect(rect, flags); 563 SkImageFilter::CropRect cropRect; 567 fuzz->next(&cropRect); 575 useCropRect ? &cropRect : nullptr); 581 useCropRect ? &cropRect : nullptr); 587 std::move(input), useCropRect ? &cropRect : nullptr) [all...] |
/external/skqp/fuzz/ |
FuzzCanvas.cpp | 539 inline void Fuzz::next(SkImageFilter::CropRect* cropRect) { 544 *cropRect = SkImageFilter::CropRect(rect, flags); 559 SkImageFilter::CropRect cropRect; 563 fuzz->next(&cropRect); 571 useCropRect ? &cropRect : nullptr); 577 useCropRect ? &cropRect : nullptr); 583 std::move(input), useCropRect ? &cropRect : nullptr) [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
ParameterUtils.java | 517 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); [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/ |
WallpaperCropActivity.java | 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) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 521 m.mapRect(cropRect); 524 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL);
|