/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/skia/src/effects/ |
SkPictureImageFilter.cpp | 24 const SkRect& cropRect) { 26 cropRect, 33 const SkRect& cropRect, 36 cropRect, 50 SkPictureImageFilter::SkPictureImageFilter(sk_sp<SkPicture> picture, const SkRect& cropRect, 56 , fCropRect(cropRect) 64 SkRect cropRect; 73 buffer.readRect(&cropRect); 79 return MakeForLocalSpace(picture, cropRect, filterQuality); 81 return Make(picture, cropRect); [all...] |
/frameworks/base/media/java/android/media/ |
Image.java | 236 public void setCropRect(Rect cropRect) { 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;
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
WallpaperTileInfo.java | 63 RectF cropRect = Utils.getMaxCropRect( 65 return streamProvider.readCroppedBitmap(cropRect, width, height, rotation);
|
/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);
|
/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);
|
/cts/tests/tests/media/libmediandkjni/ |
codec-utils-jni.cpp | 175 jobject cropRect = NULL; 177 cropRect = env->CallObjectMethod(image, gFields.methodCrop); 178 area = cropRect; 190 if (cropRect != NULL) { 191 env->DeleteLocalRef(cropRect); 192 cropRect = NULL;
|
/frameworks/base/media/jni/ |
android_media_ImageWriter.cpp | 457 android_native_rect_t cropRect; 458 cropRect.left = left; 459 cropRect.top = top; 460 cropRect.right = right; 461 cropRect.bottom = bottom; 462 res = native_window_set_crop(anw.get(), &cropRect); 542 android_native_rect_t cropRect; 543 cropRect.left = left; 544 cropRect.top = top; 545 cropRect.right = right [all...] |
android_media_MediaCodec.cpp | 566 jobject cropRect = NULL; 576 cropRect = env->NewObject( 591 (jint)0 /* xOffset */, (jint)0 /* yOffset */, cropRect); 600 if (cropRect != NULL) { 601 env->DeleteLocalRef(cropRect); 602 cropRect = NULL; [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);
|
/external/skia/fuzz/ |
FuzzCanvas.cpp | 613 inline void Fuzz::next(SkImageFilter::CropRect* cropRect) { 618 *cropRect = SkImageFilter::CropRect(rect, flags); 633 SkImageFilter::CropRect cropRect; 637 fuzz->next(&cropRect); 645 useCropRect ? &cropRect : nullptr); 651 useCropRect ? &cropRect : nullptr); 657 std::move(input), useCropRect ? &cropRect : nullptr) [all...] |
/frameworks/base/cmds/bootanimation/ |
BootAnimation.cpp | 566 int cropRect[4] = { 0, 0, font.char_width, -font.char_height }; 579 cropRect[0] = col * font.char_width; // Left of column 580 cropRect[1] = row * font.char_height * 2; // Top of row 582 cropRect[1] += bold ? 2 * font.char_height : font.char_height; 583 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect); [all...] |
/frameworks/base/core/java/android/app/ |
WallpaperManager.java | 720 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); 722 m.setRectToRect(cropRect, returnRect, Matrix.ScaleToFit.FILL); 741 RectF cropRect = new RectF(); 744 cropRect.top = 0; 745 cropRect.bottom = inHeight; 747 cropRect.left = (inWidth - cropWidth) * horizontalAlignment; 748 cropRect.right = cropRect.left + cropWidth; 750 cropRect.left = 0; 751 cropRect.right = inWidth [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
WindowStateAnimator.java | [all...] |
/prebuilts/sdk/21/ |
android.jar | |
/prebuilts/sdk/22/ |
android.jar | |
/prebuilts/sdk/24/ |
android.jar | |
/prebuilts/sdk/27/ |
android.jar | |
/prebuilts/sdk/current/ |
android.jar | |