Home
last modified time | relevance | path

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

12

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java130 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail()
135 if ((w / options.inSampleSize) * (h / options.inSampleSize) > MAX_PIXEL_COUNT) { in decodeThumbnail()
136 options.inSampleSize = BitmapUtils.computeSampleSize( in decodeThumbnail()
142 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodeThumbnail()
179 options.inSampleSize = BitmapUtils.computeSampleSizeLarger( in decodeIfBigEnough()
252 if (options.inSampleSize < 1) options.inSampleSize = 1; in decodeUsingPool()
254 options.inBitmap = (options.inSampleSize == 1) in decodeUsingPool()
279 if (options.inSampleSize < 1) options.inSampleSize = 1; in decodeUsingPool()
281 options.inBitmap = (options.inSampleSize == 1) in decodeUsingPool()
/packages/apps/TV/src/com/android/tv/util/images/
DBitmapUtils.java156 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromUriString()
161 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString()
230 public final int inSampleSize; field in BitmapUtils.ScaledBitmapInfo
239 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() argument
242 this.inSampleSize = inSampleSize; in ScaledBitmapInfo()
253 if (inSampleSize <= 1) { in needToReload()
287 + inSampleSize in toString()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DImageRequest.java179 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options, in loadBitmapInternal()
181 Assert.isTrue(options.inSampleSize > 0); in loadBitmapInternal()
203 final int sampledWidth = (options.outWidth + options.inSampleSize - 1) / in loadBitmapInternal()
204 options.inSampleSize; in loadBitmapInternal()
205 final int sampledHeight = (options.outHeight + options.inSampleSize - 1) / in loadBitmapInternal()
206 options.inSampleSize; in loadBitmapInternal()
DFileImageRequest.java68 options.inSampleSize = ImageUtils.get().calculateInSampleSize(options, in loadBitmapInternal()
91 final int sampledWidth = options.outWidth / options.inSampleSize; in loadBitmapInternal()
92 final int sampledHeight = options.outHeight / options.inSampleSize; in loadBitmapInternal()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java106 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion()
158 opts.inSampleSize = Utils.computeSampleSizeLarger(scale); in loadInBackground()
163 int expectedPixles = (width / opts.inSampleSize) * (height / opts.inSampleSize); in loadInBackground()
368 mOptions.inSampleSize = (1 << level); in getTile()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java260 if (options.inSampleSize != 0) { in loadRegionBitmap()
314 options.inSampleSize = sampleSize; in loadDownsampledBitmap()
430 options.inSampleSize = sampleSize; in getScaleOneImageForPreset()
487 if (options.inSampleSize < 1) { in decodeResourceWithBackouts()
488 options.inSampleSize = 1; in decodeResourceWithBackouts()
505 options.inSampleSize *= 2; in decodeResourceWithBackouts()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java197 int inSampleSize = 1; in calculateInSampleSize() local
209 while ((!checkHeight || (halfHeight / inSampleSize) > reqHeight) in calculateInSampleSize()
210 && (!checkWidth || (halfWidth / inSampleSize) > reqWidth)) { in calculateInSampleSize()
211 inSampleSize *= 2; in calculateInSampleSize()
215 return inSampleSize; in calculateInSampleSize()
459 mOptions.inSampleSize = 1; in ImageResizer()
684 mOptions.inSampleSize = mSampleSize; in recodeImage()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java138 mOptions.inSampleSize = (1 << level); in getTile()
163 mOptions.inSampleSize = (1 << level); in getTileWithoutReusingBitmap()
192 mOptions.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in decodePreview()
/packages/apps/Contacts/src/com/android/contacts/
DDynamicShortcuts.java388 opts.inSampleSize = sampleSize; in decodeStreamForShortcut()
390 final int scaledWidth = sourceWidth / opts.inSampleSize; in decodeStreamForShortcut()
391 final int scaledHeight = sourceHeight / opts.inSampleSize; in decodeStreamForShortcut()
401 final int prescaledXOffset = ((scaledWidth - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
402 final int prescaledYOffset = ((scaledHeight - targetSize) * opts.inSampleSize) / 2; in decodeStreamForShortcut()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java58 o.inSampleSize = 1; in getThumbnail()
93 o.inSampleSize = sampleSize; in getFullsize()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, in createThumbnail() argument
251 options.inSampleSize = inSampleSize; in createThumbnail()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java66 assertEquals(1, options.getValue().inSampleSize); in testLoadImageUnspecifiedSize()
96 assertNotSame(1, options.getValue().inSampleSize); in testLoadImageWithDownsampling()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoSource.java169 options.inSampleSize = 1; in load()
184 options.inSampleSize *= 2; in load()
188 log(TAG, "decoding with inSampleSize " + options.inSampleSize); in load()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageViewAdapter.java119 options.inSampleSize = (1 << level); in getTile()
158 options.inSampleSize = (1 << level); in getTileWithoutReusingBitmap()
/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java129 options.inSampleSize = getSampleFactor(region.width(), region.height()); in doInBackground()
135 options.inSampleSize = getSampleFactor(region.height(), region.width()); in doInBackground()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java258 mOptions.inSampleSize = preferredSampleSize;
270 mOptions.inSampleSize = sampleSize;
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DInputStreamProvider.java122 options.inSampleSize = scaleDownSampleSize; in readCroppedBitmap()
135 options.inSampleSize = scaleDownSampleSize; in readCroppedBitmap()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DStreamableAsset.java271 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground()
341 options.inSampleSize = BitmapUtils.calculateInSampleSize( in doInBackground()
/packages/apps/Camera2/src/com/android/camera/captureintent/
DPictureDecoder.java37 opts.inSampleSize = downSampleFactor; in decode()
/packages/apps/DevCamera/src/com/android/devcamera/
DBitmapUtility.java35 opts.inSampleSize = 16; // 3264 / 16 = 204. in bitmapFromJpeg()
/packages/apps/TV/tests/unit/src/com/android/tv/util/images/
DScaledBitmapInfoTest.java72 .that(actual.inSampleSize) in assertScaledBitmapSize()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DBitmapUtil.java86 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java91 bounds.inSampleSize = ratio; in getBitmapPartiallyResized()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
/packages/apps/Contacts/src/com/android/contacts/util/
DBitmapUtil.java87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()

12