/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 124 // Calculate inSampleSize 125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 133 // Decode bitmap with inSampleSize set 156 // Calculate inSampleSize 157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 164 // Decode bitmap with inSampleSize set 187 // Calculate inSampleSize 188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 190 // Decode bitmap with inSampleSize set 220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin [all...] |
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
ImageResizer.java | 124 // Calculate inSampleSize 125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 133 // Decode bitmap with inSampleSize set 156 // Calculate inSampleSize 157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 164 // Decode bitmap with inSampleSize set 187 // Calculate inSampleSize 188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 190 // Decode bitmap with inSampleSize set 220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin [all...] |
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
ImageResizer.java | 124 // Calculate inSampleSize 125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 133 // Decode bitmap with inSampleSize set 156 // Calculate inSampleSize 157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 164 // Decode bitmap with inSampleSize set 187 // Calculate inSampleSize 188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 190 // Decode bitmap with inSampleSize set 220 * Calculate an inSampleSize for use in a {@link android.graphics.BitmapFactory.Options} object when decodin [all...] |
/external/chromium_org/ui/android/java/src/org/chromium/ui/gfx/ |
BitmapHelper.java | 48 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 61 int inSampleSize = 1; 69 // Choose the smallest ratio as inSampleSize value, this will guarantee 72 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio; 75 return inSampleSize;
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
ImageLoader.java | 366 // Calculate inSampleSize 367 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); 369 // Decode bitmap with inSampleSize set 375 * Calculate an inSampleSize for use in a {@link BitmapFactory.Options} object when decoding 377 * the closest inSampleSize that will result in the final decoded bitmap having a width and 379 * ensure a power of 2 is returned for inSampleSize which can be faster when decoding but 386 * @return The value to be used for inSampleSize 393 int inSampleSize = 1; 401 // Choose the smallest ratio as inSampleSize value, this will guarantee a final image 403 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DecodeUtils.java | 131 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 136 if ((w / options.inSampleSize) * (h / options.inSampleSize) > MAX_PIXEL_COUNT) { 137 options.inSampleSize = BitmapUtils.computeSampleSize( 143 options.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 152 // We need to resize down if the decoder does not support inSampleSize 180 options.inSampleSize = BitmapUtils.computeSampleSizeLarger( 253 if (options.inSampleSize < 1) options.inSampleSize = 1; 255 options.inBitmap = (options.inSampleSize == 1 [all...] |
/frameworks/opt/bitmap/src/com/android/bitmap/ |
DecodeTask.java | 251 mOpts.inSampleSize = Math.max(1, sampleSize); 306 Trace.beginSection("decodeCropped" + mOpts.inSampleSize); 327 mDecodeOpts.destH, mOpts.inSampleSize, mDecodeOpts.verticalCenter, 374 Trace.beginSection("decode" + mOpts.inSampleSize); 384 + mOpts.inSampleSize); 386 if (mOpts.inSampleSize > 1) { 388 mOpts.inSampleSize = 1; 408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize); 410 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
ImageFilterRS.java | 184 public Allocation loadScaledResourceAlpha(int resource, int inSampleSize) { 187 options.inSampleSize = inSampleSize; 196 public Allocation loadScaledResourceAlpha(int resource, int w, int h, int inSampleSize) { 199 options.inSampleSize = inSampleSize;
|
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 106 options.inSampleSize = 1; 113 options.inSampleSize = computeSampleSize( 312 options.inSampleSize = 1; 319 options.inSampleSize = computeSampleSize( 494 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels); 495 exifThumbWidth = exifOptions.outWidth / exifOptions.inSampleSize; 501 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels); 502 fullThumbWidth = fullOptions.outWidth / fullOptions.inSampleSize;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
MtpBitmapFetch.java | 58 o.inSampleSize = 1; 93 o.inSampleSize = sampleSize;
|
/developers/demos/MusicDemo/src/main/java/com/example/android/musicservicedemo/utils/ |
BitmapHelper.java | 42 bmOptions.inSampleSize = scaleFactor;
|
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/ |
BitmapScaling.java | 57 // inSampleSize tells the loader how much to scale the final image, which it does at 65 bitmapOptions.inSampleSize = sampleSize;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
Downsampler.java | 52 decodeBitmapOptions.inSampleSize = 1; 187 options.inSampleSize = sampleSize; 189 if (options.inSampleSize == 1 || Build.VERSION.SDK_INT >= 19) { 247 * @see BitmapFactory.Options#inSampleSize 295 + " sample=" + options.inSampleSize, e);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
BitmapUtil.java | 82 options.inSampleSize = sampleSize;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapRegionDecoderTest.java | 169 opts.inSampleSize = SAMPLESIZES[j]; 194 opts.inSampleSize = SAMPLESIZES[j]; 224 opts.inSampleSize = SAMPLESIZES[j]; 251 opts.inSampleSize = SAMPLESIZES[j]; 323 int left = rect1.left / opts.inSampleSize; 324 int top = rect1.top / opts.inSampleSize; 328 int currentWidth = rect1.width() / opts.inSampleSize; 329 int currentHeight = rect1.height() / opts.inSampleSize;
|
BitmapFactoryTest.java | 351 options.inSampleSize = 0; // treated as 1 359 options.inSampleSize = -42; // treated as 1 384 options.inSampleSize = 1; 419 options.inSampleSize = 4; 430 options.inSampleSize = 4; 434 options.inSampleSize = 1; 451 options.inSampleSize = 4; 463 options.inSampleSize = 1; 467 // Verify that inSampleSize and density scaling both work with reuse concurrently 470 options.inSampleSize = 2 [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowBitmapFactory.java | 108 if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
TileImageViewAdapter.java | 119 options.inSampleSize = (1 << level); 158 options.inSampleSize = (1 << level);
|
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/ |
BitmapAllocation.java | 67 mBitmapOptions.inSampleSize = 1;
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
PhotoDecodeRunnable.java | 192 * inSampleSize accomplishes this. 195 bitmapOptions.inSampleSize = sampleSize;
|
/packages/apps/Gallery2/src/com/android/photos/ |
BitmapRegionTileSource.java | 138 mOptions.inSampleSize = (1 << level); 163 mOptions.inSampleSize = (1 << level); 192 mOptions.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 200 // We need to resize down if the decoder does not support inSampleSize 201 // or didn't support the specified inSampleSize (some decoders only do powers of 2)
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
ImageLoader.java | 260 if (options.inSampleSize != 0) { 314 options.inSampleSize = sampleSize; 430 options.inSampleSize = sampleSize; 487 if (options.inSampleSize < 1) { 488 options.inSampleSize = 1; 505 options.inSampleSize *= 2;
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
Thumbnail.java | 247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, 251 options.inSampleSize = inSampleSize;
|
/packages/apps/Camera2/src/com/android/camera/util/ |
ImageLoader.java | 238 options.inSampleSize = sampleSize; 389 if (options.inSampleSize < 1) { 390 options.inSampleSize = 1; 407 options.inSampleSize *= 2;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
BitmapUtil.java | 51 opts.inSampleSize = Math.min(opts.outWidth / w, opts.outHeight / h);
|