Home
last modified time | relevance | path

Searched refs:outWidth (Results 1 – 25 of 37) sorted by relevance

12

/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java171 int rawLongSide = Math.max(options.outWidth, options.outHeight); in load()
172 int rawShortSide = Math.min(options.outWidth, options.outHeight); in load()
200 rawLongSide = Math.max(options.outWidth, options.outHeight); in load()
201 rawShortSide = Math.max(options.outWidth, options.outHeight); in load()
208 options.outWidth = (int) (ratio * options.outWidth); in load()
212 options.outWidth, options.outHeight, in load()
223 options.outWidth, options.outHeight, in load()
226 int tmp = options.outWidth; in load()
227 options.outWidth = options.outHeight; in load()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java59 if (options.outWidth != 0 && options.outHeight != 0) { in getImageBounds()
60 return new Point(options.outWidth, options.outHeight); in getImageBounds()
66 public Bitmap readCroppedBitmap(RectF cropBounds, int outWidth, int outHeight, int rotation) { in readCroppedBitmap() argument
102 int scaleDownSampleSize = Math.max(1, Math.min(roundedTrueCrop.width() / outWidth, in readCroppedBitmap()
176 if (outWidth > 0 && outHeight > 0 || rotation > 0) { in readCroppedBitmap()
182 if (!(outWidth > 0 && outHeight > 0)) { in readCroppedBitmap()
183 outWidth = Math.round(dimsAfter[0]); in readCroppedBitmap()
188 RectF returnRect = new RectF(0, 0, outWidth, outHeight); in readCroppedBitmap()
DCropAndSetWallpaperTask.java55 RectF cropBounds, int rotation, int outWidth, int outHeight, in CropAndSetWallpaperTask() argument
62 mOutWidth = outWidth; in CropAndSetWallpaperTask()
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/
DUtils.java109 int inWidth, int inHeight, int outWidth, int outHeight, boolean leftAligned) { in getMaxCropRect() argument
112 if (inWidth / (float) inHeight > outWidth / (float) outHeight) { in getMaxCropRect()
115 cropRect.left = (inWidth - (outWidth / (float) outHeight) * inHeight) / 2; in getMaxCropRect()
124 cropRect.top = (inHeight - (outHeight / (float) outWidth) * inWidth) / 2; in getMaxCropRect()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequest.java163 mDescriptor.updateSourceDimensions(options.outHeight, options.outWidth); in loadBitmapInternal()
165 mDescriptor.updateSourceDimensions(options.outWidth, options.outHeight); in loadBitmapInternal()
174 options.outWidth = mDescriptor.sourceWidth; in loadBitmapInternal()
203 final int sampledWidth = (options.outWidth + options.inSampleSize - 1) / in loadBitmapInternal()
DFileImageRequest.java82 mDescriptor.updateSourceDimensions(options.outHeight, options.outWidth); in loadBitmapInternal()
84 mDescriptor.updateSourceDimensions(options.outWidth, options.outHeight); in loadBitmapInternal()
91 final int sampledWidth = options.outWidth / options.inSampleSize; in loadBitmapInternal()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java123 int w = options.outWidth; in decodeThumbnail()
176 if (options.outWidth < targetSize || options.outHeight < targetSize) { in decodeIfBigEnough()
180 options.outWidth, options.outHeight, targetSize); in decodeIfBigEnough()
303 return GalleryBitmapPool.getInstance().get(options.outWidth, options.outHeight); in findCachedBitmap()
309 return GalleryBitmapPool.getInstance().get(options.outWidth, options.outHeight); in findCachedBitmap()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java52 if (o.outWidth == 0 || o.outHeight == 0) { in getThumbnail()
55 o.inBitmap = GalleryBitmapPool.getInstance().get(o.outWidth, o.outHeight); in getThumbnail()
85 int w = o.outWidth; in getFullsize()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DLayoutUtils.java105 float outWidth = scale * taskWidth; in calculateTaskSize() local
109 float x = insets.left + (launcherVisibleWidth - outWidth) / 2; in calculateTaskSize()
113 Math.round(x) + Math.round(outWidth), Math.round(y) + Math.round(outHeight)); in calculateTaskSize()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DThumbnailLoadTask.java125 if (isCancelled() || opts.outWidth == -1 || opts.outHeight == -1) { in loadBitmap()
133 final int wDivider = Math.max(opts.outWidth / mWidth, 1); in loadBitmap()
138 opts.outWidth, opts.outHeight, mWidth, mHeight, opts.inSampleSize); in loadBitmap()
/packages/apps/Camera2/src/com/android/camera/data/
DPhotoDataFactory.java98 if (opts.outWidth > 0 && opts.outHeight > 0) { in decodeBitmapDimensions()
99 width = opts.outWidth; in decodeBitmapDimensions()
DFilmstripItemUtils.java69 if (justBoundsOpts.outWidth > 0 && justBoundsOpts.outHeight > 0) { in decodeBitmapDimension()
70 size = new Point(justBoundsOpts.outWidth, justBoundsOpts.outHeight); in decodeBitmapDimension()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DDrawableLoader.java195 mOriginalWidth = bitmapOptions.outWidth; in decodeBitmap()
206 widthScale = bitmapOptions.outWidth / width; in decodeBitmap()
222 Log.d("BitmapWorkerTask", "Source bitmap: (" + bitmapOptions.outWidth + "x" in decodeBitmap()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DBitmapUtil.java53 if (opts.mCancel || opts.outWidth == -1 || opts.outHeight == -1) { in decodeByteArray()
56 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h); in decodeByteArray()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java416 final int outWidth = (int) Math.round(cropRect.width() * cropScale); in cropImageAndSetWallpaper()
418 CropAndFinishHandler onEndCrop = new CropAndFinishHandler(new Point(outWidth, outHeight), in cropImageAndSetWallpaper()
423 cropRect, cropRotation, outWidth, outHeight, onEndCrop) { in cropImageAndSetWallpaper()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java249 mOptions.outWidth, mOptions.outHeight);
260 mOptions.outWidth / preferredSampleSize,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java178 mDimensions = new Point(options.outHeight, options.outWidth); in calculateRawDimensions()
180 mDimensions = new Point(options.outWidth, options.outHeight); in calculateRawDimensions()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java196 final int width = options.outWidth; in calculateInSampleSize()
576 mWidth = mOptions.outWidth; in ensureImageSizeSet()
894 return new Rect(0, 0, options.outWidth, options.outHeight); in decodeImageBounds()
/packages/apps/Gallery/src/com/android/camera/
DUtil.java122 double w = options.outWidth; in computeInitialSampleSize()
314 if (options.mCancel || options.outWidth == -1 in makeBitmap()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPreviewBitmapTransformation.java54 int outWidth, int outHeight) { in transform() argument
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java45 return Math.min(options.outWidth, options.outHeight); in getSmallerExtentFromBytes()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DEvenMoreAsserts.java106 return "[" + o.outWidth + " x " + o.outHeight + "]"; in getImageDimensions()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java84 int streamWidth = bounds.outWidth; in getBitmapPartiallyResized()
/packages/apps/Gallery/src/com/android/camera/gallery/
DUriImage.java152 return (options != null) ? options.outWidth : 0; in getWidth()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java73 assertEquals(options.getValue().outWidth, bitmapWidth); in testLoadImageUnspecifiedSize()

12