Home
last modified time | relevance | path

Searched refs:inSampleSize (Results 1 – 25 of 41) 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/
DBitmapUtils.java113 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromUriString()
118 return new ScaledBitmapInfo(uriString, bitmap, options.inSampleSize); in decodeSampledBitmapFromUriString()
198 public final int inSampleSize; field in BitmapUtils.ScaledBitmapInfo
207 public ScaledBitmapInfo(@NonNull String id, @NonNull Bitmap bitmap, int inSampleSize) { in ScaledBitmapInfo() argument
210 this.inSampleSize = inSampleSize; in ScaledBitmapInfo()
222 if (inSampleSize <= 1) { in needToReload()
245 return "ScaledBitmapInfo[" + id + "](in=" + inSampleSize + ", w=" + bitmap.getWidth() 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/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterRS.java183 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) { in loadScaledResourceAlpha() argument
186 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha()
195 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) { in loadScaledResourceAlpha() argument
198 options.inSampleSize = inSampleSize; in loadScaledResourceAlpha()
/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/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java126 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion()
184 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in loadInBackground()
189 int expectedPixles = (width / opts.inSampleSize) * (height / opts.inSampleSize); in loadInBackground()
465 mOptions.inSampleSize = (1 << level); in getTile()
/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/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpBitmapFetch.java58 o.inSampleSize = 1; in getThumbnail()
93 o.inSampleSize = sampleSize; in getFullsize()
/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/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/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/UnifiedEmail/src/com/android/mail/ui/
DThumbnailLoadTask.java135 opts.inSampleSize = Math.min(wDivider, hDivider); in loadBitmap()
138 opts.outWidth, opts.outHeight, mWidth, mHeight, opts.inSampleSize); in loadBitmap()
/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/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/
DScaledBitmapInfoTest.java49 assertEquals(actual.id + " inSampleSize", expectedInSampleSize, actual.inSampleSize); in assertScaledBitmapSize()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DBitmapUtil.java87 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DBitmapCropTask.java275 options.inSampleSize = scaleDownSampleSize; in cropBitmap()
288 options.inSampleSize = scaleDownSampleSize; in cropBitmap()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DLogoUtils.java104 bounds.inSampleSize = ratio; in getBitmapPartiallyResized()
/packages/apps/Camera2/src/com/android/camera/data/
DFilmstripItemUtils.java128 opts.inSampleSize = sampleSize; in loadImageThumbnailFromStream()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DBitmapUtil.java56 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h); in decodeByteArray()

12