/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterCropRepresentation.java | 37 public FilterCropRepresentation(RectF crop) { argument 44 setTextId(R.string.crop); 46 setCrop(crop); 67 FilterCropRepresentation crop = (FilterCropRepresentation) rep; 68 if (mCrop.bottom != crop.mCrop.bottom 69 || mCrop.left != crop.mCrop.left 70 || mCrop.right != crop.mCrop.right 71 || mCrop.top != crop.mCrop.top) { 85 public void setCrop(RectF crop) { argument 86 if (crop 96 findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument 107 findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/crop/ |
H A D | CropObject.java | 17 package com.android.camera.crop; 190 RectF crop = mBoundedRect.getInner(); 203 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; 206 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 209 dx = Math.max(crop.right + dX, crop [all...] |
H A D | CropActivity.java | 17 package com.android.camera.crop; 307 RectF crop = getBitmapCrop(photo); 308 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, 422 // Set extra for crop bounds 461 // Find crop bounds (scaled to original image size) 464 Log.w(LOGTAG, "cannot find crop for full size image"); 472 Log.w(LOGTAG, "crop has bad values for full size image"); 485 Bitmap crop = null; 487 // Do region decoding to get crop bitmap 490 crop [all...] |
H A D | CropExtras.java | 17 package com.android.camera.crop;
|
H A D | CropView.java | 17 package com.android.camera.crop; 115 RectF crop = mCropObj.getInnerBounds(); 117 if (crop != newCropBounds || containing != newPhotoBounds 188 Log.w(LOGTAG, "crop reset called"); 301 // If crop object doesn't exist, create it and update it from master 357 // Draw crop rect and markers
|
H A D | GeometryMathUtils.java | 17 package com.android.camera.crop;
|
H A D | CropMath.java | 17 package com.android.camera.crop; 211 * @param photoBounds original bounds containing crop bounds 212 * @param displayBounds final bounds for crop 213 * @return the stretched/scaled/translated crop bounds that fit within displayBounds
|
H A D | Utils.java | 17 package com.android.camera.crop;
|
H A D | CropDrawingUtils.java | 17 package com.android.camera.crop;
|
H A D | BoundedRect.java | 16 package com.android.camera.crop;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
H A D | CropObject.java | 17 package com.android.gallery3d.filtershow.crop; 192 RectF crop = mBoundedRect.getInner(); 205 dx = Math.min(crop.left + dX, crop.right - minWidthHeight) - crop.left; 208 dy = Math.min(crop.top + dY, crop.bottom - minWidthHeight) - crop.top; 211 dx = Math.max(crop.right + dX, crop [all...] |
H A D | CropActivity.java | 17 package com.android.gallery3d.filtershow.crop; 310 RectF crop = getBitmapCrop(photo); 311 startBitmapIO(flags, mOriginalBitmap, mSourceUri, destinationUri, crop, 425 // Set extra for crop bounds 464 // Find crop bounds (scaled to original image size) 467 Log.w(LOGTAG, "cannot find crop for full size image"); 475 Log.w(LOGTAG, "crop has bad values for full size image"); 488 Bitmap crop = null; 490 // Do region decoding to get crop bitmap 493 crop [all...] |
H A D | CropExtras.java | 17 package com.android.gallery3d.filtershow.crop;
|
H A D | CropView.java | 17 package com.android.gallery3d.filtershow.crop; 116 RectF crop = mCropObj.getInnerBounds(); 118 if (crop != newCropBounds || containing != newPhotoBounds 189 Log.w(LOGTAG, "crop reset called"); 302 // If crop object doesn't exist, create it and update it from master 358 // Draw crop rect and markers
|
H A D | CropMath.java | 17 package com.android.gallery3d.filtershow.crop; 213 * @param photoBounds original bounds containing crop bounds 214 * @param displayBounds final bounds for crop 215 * @return the stretched/scaled/translated crop bounds that fit within displayBounds
|
H A D | CropDrawingUtils.java | 17 package com.android.gallery3d.filtershow.crop;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 51 public RectF crop = FilterCropRepresentation.getNil(); field in class:GeometryMathUtils.GeometryHolder 57 crop.set(h.crop); 64 crop = FilterCropRepresentation.getNil(); 71 crop.equals(FilterCropRepresentation.getNil()) && 85 ((crop == null && h.crop == null) || (crop != null && crop.equals(h.crop))) [all...] |
H A 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) { argument 89 mLocalRep = (crop == null) ? new FilterCropRepresentation() : crop; 98 private void internallyUpdateLocalRep(RectF crop, RectF image) { argument 100 .findNormalizedCrop(crop, (int) image.width(), (int) image.height()); 101 mGeometry.crop.set(crop); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/photomanager/ |
H A D | BitmapUtil.java | 36 * Does not crop to fit the hinted dimensions. 63 * Also applies a center-crop a la {@link android.widget.ImageView.ScaleType#CENTER_CROP}. 76 LogUtils.w(PhotoManager.TAG, t, "unable to crop image"); 82 * Returns a new Bitmap copy with a center-crop effect a la 93 return crop(src, w, h, 0.5f, 0.5f); 97 * Returns a new Bitmap copy with a crop effect depending on the crop anchor given. 0.5f is like 98 * {@link android.widget.ImageView.ScaleType#CENTER_CROP}. The crop anchor will be be nudged 118 * @param horizontalCenterPercent determines which part of the src to crop from. Range from 0 121 * @param verticalCenterPercent determines which part of the src to crop fro 127 public static Bitmap crop(final Bitmap src, final int w, final int h, method in class:BitmapUtil [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | WallpaperCropActivity.java | 238 // crop this image and scale it down to the default wallpaper size for 244 RectF crop = getMaxCropRect( 258 crop, rotation, outSize.x, outSize.y, true, false, onEndCrop); 269 // Get the crop 306 // Get the crop 320 // Extend the crop all the way to the right, for parallax 512 // Find crop bounds (scaled to original image size) 540 Log.w(LOGTAG, "crop has bad values for full size image"); 557 Bitmap crop = null; 559 // Do region decoding to get crop bitma [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | Wallpaper.java | 31 import com.android.gallery3d.filtershow.crop.CropActivity; 32 import com.android.gallery3d.filtershow.crop.CropExtras; 111 // ignored; fallthru to existing crop activity 113 // ignored; fallthru to existing crop activity
|
/packages/apps/Gallery2/jni/filters/ |
H A D | geometry.c | 116 __inline__ void crop(char * source, int srcWidth, int srcHeight, char * destination, int dstWidth, int dstHeight, int offsetWidth, int offsetHeight){ function 160 crop(source, srcWidth, srcHeight, destination, dstWidth, dstHeight, offsetWidth, offsetHeight);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/ |
H A D | EditorCrop.java | 108 view.setText(mContext.getString(R.string.crop)); 160 return R.string.crop;
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetConfigure.java | 38 import com.android.gallery3d.filtershow.crop.CropActivity; 39 import com.android.gallery3d.filtershow.crop.CropExtras; 143 // We try to crop a larger image (by scale factor), but there is still
|
/packages/apps/Gallery2/src/com/android/photos/ |
H A D | MultiChoiceManager.java | 38 import com.android.gallery3d.filtershow.crop.CropActivity;
|