/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterCropRepresentation.java | 37 public FilterCropRepresentation(RectF crop) { in FilterCropRepresentation() argument 44 setTextId(R.string.crop); in FilterCropRepresentation() 46 setCrop(crop); in FilterCropRepresentation() 67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; in equals() local 68 if (mCrop.bottom != crop.mCrop.bottom in equals() 69 || mCrop.left != crop.mCrop.left in equals() 70 || mCrop.right != crop.mCrop.right in equals() 71 || mCrop.top != crop.mCrop.top) { in equals() 85 public void setCrop(RectF crop) { in setCrop() argument 86 if (crop == null) { in setCrop() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | ImageActionUtils.java | 103 Rect crop = new Rect(); in shareImage() local 104 rectF.round(crop); in shareImage() 106 Uri uri = getImageUri(bitmap, crop, context, tag); in shareImage() 134 Rect crop, Intent intent, String tag) { in startShareActivity() argument 141 persistBitmapAndStartActivity(context, bitmap, crop, intent, in startShareActivity() 150 Rect crop, Intent intent, String tag, View sharedElement) { in startShareActivity() argument 158 crop, intent, ImageActionUtils::getShareIntentForImageUri, tag, sharedElement); in startShareActivity() 166 public static void persistBitmapAndStartActivity(Context context, Bitmap bitmap, Rect crop, in persistBitmapAndStartActivity() argument 168 persistBitmapAndStartActivity(context, bitmap, crop, intent, uriToIntentMap, tag, in persistBitmapAndStartActivity() 177 public static void persistBitmapAndStartActivity(Context context, Bitmap bitmap, Rect crop, in persistBitmapAndStartActivity() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
D | CropObject.java | 17 package com.android.gallery3d.filtershow.crop; 192 RectF crop = mBoundedRect.getInner(); in moveCurrentSelection() local 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; in moveCurrentSelection() 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; in moveCurrentSelection() 211 dx = Math.max(crop.right + dX, crop.left + minWidthHeight) in moveCurrentSelection() 212 - crop.right; in moveCurrentSelection() 215 dy = Math.max(crop.bottom + dY, crop.top + minWidthHeight) in moveCurrentSelection() 216 - crop.bottom; in moveCurrentSelection() 221 crop.left, crop.bottom in moveCurrentSelection() 224 crop.right, crop.top in moveCurrentSelection() [all …]
|
D | CropActivity.java | 17 package com.android.gallery3d.filtershow.crop; 310 RectF crop = getBitmapCrop(photo); in startFinishOutput() local 311 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, in startFinishOutput() 488 Bitmap crop = null; in doInBackground() local 493 crop = decoder.decodeRegion(roundedTrueCrop, options); in doInBackground() 497 if (crop == null) { in doInBackground() 505 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in doInBackground() 511 if (crop == null) { in doInBackground() 518 RectF cropRect = new RectF(0, 0, crop.getWidth(), crop.getHeight()); in doInBackground() 530 c.drawBitmap(crop, m, new Paint()); in doInBackground() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskImageContainer.java | 79 int aFormat, Rect crop) { in TaskImage() argument 84 cropApplied = crop; in TaskImage() 225 public Rect guaranteedSafeCrop(ImageProxy image, @Nullable Rect crop) { in guaranteedSafeCrop() argument 226 return guaranteedSafeCrop(image.getWidth(), image.getHeight(), crop); in guaranteedSafeCrop() 244 public Rect guaranteedSafeCrop(int width, int height, @Nullable Rect crop) { in guaranteedSafeCrop() argument 245 if (crop == null) { in guaranteedSafeCrop() 248 Rect safeCrop = new Rect(crop); in guaranteedSafeCrop() 249 if (crop.top > crop.bottom || crop.left > crop.right || crop.width() <= 0 in guaranteedSafeCrop() 250 || crop.height() <= 0) { in guaranteedSafeCrop() 274 public boolean requiresCropOperation(ImageProxy image, @Nullable Rect crop) { in requiresCropOperation() argument [all …]
|
D | TaskConvertImageToRGBPreview.java | 228 protected int[] colorInscribedDataCircleFromYuvImage(ImageProxy img, Rect crop, int subsample) { in colorInscribedDataCircleFromYuvImage() argument 229 crop = guaranteedSafeCrop(img, crop); in colorInscribedDataCircleFromYuvImage() 236 int inputWidth = crop.width(); in colorInscribedDataCircleFromYuvImage() 237 int inputHeight = crop.height(); in colorInscribedDataCircleFromYuvImage() 249 final int inputVerticalOffset = quantizeBy2(crop.top); in colorInscribedDataCircleFromYuvImage() 250 final int inputHorizontalOffset = quantizeBy2(crop.left); in colorInscribedDataCircleFromYuvImage() 540 protected int[] colorSubSampleFromYuvImage(ImageProxy img, Rect crop, int subsample, in colorSubSampleFromYuvImage() argument 542 crop = guaranteedSafeCrop(img, crop); in colorSubSampleFromYuvImage() 549 int inputWidth = crop.width(); in colorSubSampleFromYuvImage() 550 int inputHeight = crop.height(); in colorSubSampleFromYuvImage() [all …]
|
D | TaskCompressImageToJpeg.java | 87 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 88 return JpegUtilNative.compressJpegFromYUV420Image(img, outBuf, quality, crop, degrees); in compressJpegFromYUV420Image() 189 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run() 195 rotateBoundingBox(img.crop, combinedRotationFromSensorToJpeg)); in run() 237 safeCrop = guaranteedSafeCrop(img.proxy, img.crop); in run() 242 Size resultSize = getImageSizeForOrientation(img.crop.width(), in run() 243 img.crop.height(), in run() 284 img.crop, inputImage.orientation.getDegrees()); in run() 303 img.crop, inputImage.orientation.getDegrees()); in run()
|
D | ImageToProcess.java | 34 public final Rect crop; field in ImageToProcess 46 ListenableFuture<TotalCaptureResultProxy> metadata, Rect crop) { in ImageToProcess() argument 50 this.crop = crop; in ImageToProcess()
|
D | TaskJpegEncode.java | 189 public byte[] decompressCropAndRecompressJpegData(final byte[] jpegData, Rect crop, in decompressCropAndRecompressJpegData() argument 193 final Bitmap croppedResult = Bitmap.createBitmap(original, crop.left, crop.top, in decompressCropAndRecompressJpegData() 194 crop.width(), crop.height());; in decompressCropAndRecompressJpegData()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 51 public RectF crop = FilterCropRepresentation.getNil(); field in GeometryMathUtils.GeometryHolder 57 crop.set(h.crop); in set() 64 crop = FilterCropRepresentation.getNil(); in wipe() 71 crop.equals(FilterCropRepresentation.getNil()) && in isNil() 85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) && in equals() 92 + ",straighten:" + straighten + ",crop:" + crop.toString() in toString() 273 ((FilterCropRepresentation) r).getCrop(out.crop); in unpackGeometry() 305 RectF crop = getTrueCropRect(holder, width, height); in finalGeometryRect() local 307 crop.roundOut(frame); in finalGeometryRect() 314 RectF crop = getTrueCropRect(holder, width, height); in applyFullGeometryMatrix() local [all …]
|
D | ImageCrop.java | 32 import com.android.gallery3d.filtershow.crop.CropDrawingUtils; 33 import com.android.gallery3d.filtershow.crop.CropMath; 34 import com.android.gallery3d.filtershow.crop.CropObject; 88 public void setFilterCropRepresentation(FilterCropRepresentation crop) { in setFilterCropRepresentation() argument 89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop; in setFilterCropRepresentation() 98 private void internallyUpdateLocalRep(RectF crop, RectF image) { in internallyUpdateLocalRep() argument 100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height()); in internallyUpdateLocalRep() 101 mGeometry.crop.set(crop); in internallyUpdateLocalRep() 103 mLocalRep.setCrop(crop); in internallyUpdateLocalRep() 237 || !mLocalRep.getCrop().equals(mUpdateHolder.crop)) { in forceStateConsistency() [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | JpegUtilNative.java | 211 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 217 Preconditions.checkState(crop.left < crop.right, "Invalid crop rectangle: " + in compressJpegFromYUV420Image() 218 crop.toString()); in compressJpegFromYUV420Image() 219 Preconditions.checkState(crop.top < crop.bottom, "Invalid crop rectangle: " + in compressJpegFromYUV420Image() 220 crop.toString()); in compressJpegFromYUV420Image() 243 int cropLeft = crop.left; in compressJpegFromYUV420Image() 247 int cropRight = crop.right; in compressJpegFromYUV420Image() 251 int cropTop = crop.top; in compressJpegFromYUV420Image() 255 int cropBot = crop.bottom; in compressJpegFromYUV420Image()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 117 Bitmap crop = null; in readCroppedBitmap() local 124 crop = decoder.decodeRegion(roundedTrueCrop, options); in readCroppedBitmap() 128 if (crop == null) { in readCroppedBitmap() 167 crop = Bitmap.createBitmap(fullSize, roundedTrueCrop.left, in readCroppedBitmap() 173 if (crop == null) { in readCroppedBitmap() 177 float[] dimsAfter = new float[] { crop.getWidth(), crop.getHeight() }; in readCroppedBitmap() 195 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f); in readCroppedBitmap() 216 c.drawBitmap(crop, m, p); in readCroppedBitmap() 217 crop = tmp; in readCroppedBitmap() 220 return crop; in readCroppedBitmap()
|
D | CropAndSetWallpaperTask.java | 72 Bitmap crop = mStreamProvider.readCroppedBitmap( in cropBitmap() local 74 if (crop == null) { in cropBitmap() 81 if (crop.compress(CompressFormat.JPEG, DEFAULT_COMPRESS_QUALITY, tmpOut)) { in cropBitmap()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | ImageActionsApi.java | 66 public void shareWithExplicitIntent(@Nullable Rect crop, Intent intent) { in shareWithExplicitIntent() argument 67 addImageAndSendIntent(crop, intent, false, null /* exceptionCallback */); in shareWithExplicitIntent() 76 public void shareAsDataWithExplicitIntent(@Nullable Rect crop, Intent intent, in shareAsDataWithExplicitIntent() argument 78 addImageAndSendIntent(crop, intent, true, exceptionCallback); in shareAsDataWithExplicitIntent() 81 private void addImageAndSendIntent(@Nullable Rect crop, Intent intent, boolean setData, in addImageAndSendIntent() argument 91 bitmap, crop, intent, (uri, intentForUri) -> { in addImageAndSendIntent() 107 public void startShareActivity(Rect crop) { in startShareActivity() argument 108 ImageActionUtils.startShareActivity(mContext, mBitmapSupplier, crop, null, TAG); in startShareActivity()
|
D | LauncherSwipeHandlerV2.java | 160 Rect crop = new Rect(); 163 mRemoteTargetHandles[0].getTaskViewSimulator().getCurrentCropRect().roundOut(crop); 164 Size windowSize = new Size(crop.width(), crop.height());
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/ |
D | QuickstepTransitionManager.java | 645 Rect crop = new Rect(); in getOpeningWindowAnimators() local 678 crop.set(left, top, right, bottom); in getOpeningWindowAnimators() 716 ? Math.max(crop.width(), crop.height()) / 2f in getOpeningWindowAnimators() 762 crop.set(left, top, right, bottom); in getOpeningWindowAnimators() 764 final int windowCropWidth = crop.width(); in getOpeningWindowAnimators() 765 final int windowCropHeight = crop.height(); in getOpeningWindowAnimators() 767 Utilities.rotateBounds(crop, mDeviceProfile.widthPx, in getOpeningWindowAnimators() 786 float windowTransX0 = tmpRectF.left - offsetX - crop.left * scale; in getOpeningWindowAnimators() 787 float windowTransY0 = tmpRectF.top - offsetY - crop.top * scale; in getOpeningWindowAnimators() 831 .setWindowCrop(crop) in getOpeningWindowAnimators() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
D | JpegImageBackendImageSaver.java | 172 ImageBackend imageBackend, Rect crop) { in JpegImageBackendImageSaver() argument 176 mCrop = crop; in JpegImageBackendImageSaver() 189 ImageBackend imageBackend, Executor executor, Rect crop) { in JpegImageBackendImageSaver() argument 193 mCrop = crop; in JpegImageBackendImageSaver()
|
D | YuvImageBackendImageSaver.java | 180 ImageBackend imageBackend, Rect crop) { in YuvImageBackendImageSaver() argument 183 mCrop = crop; in YuvImageBackendImageSaver() 198 ImageBackend imageBackend, Rect crop, Executor executor) { in YuvImageBackendImageSaver() argument 201 mCrop = crop; in YuvImageBackendImageSaver()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperCropActivity.java | 280 RectF crop = Utils.getMaxCropRect(src.getImageWidth(), src.getImageHeight(), in onLoadRequestComplete() local 282 mCropView.setScale(req.scaleAndOffsetProvider.getScale(wallpaperSize, crop)); in onLoadRequestComplete() 283 mCropView.setParallaxOffset(req.scaleAndOffsetProvider.getParallaxOffset(), crop); in onLoadRequestComplete() local 340 RectF crop = Utils.getMaxCropRect( in cropImageAndSetWallpaper() local 347 streamProvider, this, crop, streamProvider.getRotationFromExif(this), in cropImageAndSetWallpaper() 476 float getScale(Point wallpaperSize, RectF crop);
|
D | CropView.java | 196 public void setParallaxOffset(float offset, RectF crop) { in setParallaxOffset() argument 199 mCenterX = screenWidth / 2 + offset * (crop.width() - screenWidth) + crop.left; in setParallaxOffset()
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 615 Rect crop = new Rect(0, statusBarHeight, mDisplayMetrics.widthPixels, in createScreenshot() local 619 crop.bottom -= navBarHeight; in createScreenshot() 624 crop.bottom -= navBarHeightLandscape; in createScreenshot() 627 crop.right -= navBarWidth; in createScreenshot() 631 int width = crop.width(); in createScreenshot() 632 int height = crop.height(); in createScreenshot() 638 .setSourceCrop(crop) in createScreenshot()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | ResourceWallpaperInfo.java | 32 public float getScale(Point wallpaperSize, RectF crop) { in onClick() 33 return wallpaperSize.x /crop.width(); in onClick()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationMainView.java | 296 int crop = (int) (width * absProgress); in onSecondaryDrag() local 301 mOutline.left = Math.max(0, getWidth() - crop + space); in onSecondaryDrag() 304 mOutline.right = Math.min(getWidth(), crop - space); in onSecondaryDrag()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | Wallpaper.java | 31 import com.android.gallery3d.filtershow.crop.CropActivity; 32 import com.android.gallery3d.filtershow.crop.CropExtras;
|