/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/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 …]
|
D | CropView.java | 17 package com.android.gallery3d.filtershow.crop; 116 RectF crop = mCropObj.getInnerBounds(); in initialize() local 118 if (crop != newCropBounds || containing != newPhotoBounds in initialize()
|
/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/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 | 86 Rect crop, int degrees) { in compressJpegFromYUV420Image() argument 87 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/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/recents_ui_overrides/src/com/android/quickstep/util/ |
D | ClipAnimationHelper.java | 187 Rect crop = mTmpRect; in applyTransform() local 188 crop.set(app.sourceContainerBounds); in applyTransform() 189 crop.offsetTo(0, 0); in applyTransform() 193 float scale = Math.max(params.currentRect.width(), mTargetRect.width()) / crop.width(); in applyTransform() 199 mClipRectF.roundOut(crop); in applyTransform() 203 scale = params.currentRect.width() / crop.width(); in applyTransform() 218 crop = null; in applyTransform() 224 surfaceParams[i] = new SurfaceParams(app.leash, alpha, mTmpMatrix, crop, layer, in applyTransform()
|
/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/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/Nfc/src/com/android/nfc/beam/ |
D | SendUi.java | 622 Rect crop = new Rect(0, statusBarHeight, mDisplayMetrics.widthPixels, in createScreenshot() local 626 crop.bottom -= navBarHeight; in createScreenshot() 631 crop.bottom -= navBarHeightLandscape; in createScreenshot() 634 crop.right -= navBarWidth; in createScreenshot() 638 int width = crop.width(); in createScreenshot() 639 int height = crop.height(); in createScreenshot() 642 Bitmap bitmap = SurfaceControl.screenshot(crop, width, height, rot); 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/quickstep/src/com/android/launcher3/ |
D | QuickstepAppTransitionManagerImpl.java | 426 Rect crop = new Rect(); in getOpeningWindowAnimators() local 531 crop.set(0, 0, windowWidth, windowHeight); in getOpeningWindowAnimators() 552 float croppedHeight = (windowTargetBounds.height() - crop.height()) * scale; in getOpeningWindowAnimators() 553 float croppedWidth = (windowTargetBounds.width() - crop.width()) * scale; in getOpeningWindowAnimators() 563 targetCrop = crop; in getOpeningWindowAnimators()
|
/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;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | BitmapUtil.java | 97 return crop(src, w, h, 0.5f, 0.5f); in centerCrop() 131 public static Bitmap crop(final Bitmap src, final int w, final int h, in crop() method in BitmapUtil
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
D | EditorCrop.java | 108 view.setText(mContext.getString(R.string.crop)); in openUtilityPanel() 160 return R.string.crop; in getTextId()
|