HomeSort by relevance Sort by last modified time
    Searched refs:inSampleSize (Results 1 - 22 of 22) sorted by null

  /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...]
ImageCache.java 524 // On earlier versions, the dimensions must match exactly and the inSampleSize must be 1
527 && targetOptions.inSampleSize == 1;
532 int width = targetOptions.outWidth / targetOptions.inSampleSize;
533 int height = targetOptions.outHeight / targetOptions.inSampleSize;
  /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...]
ImageCache.java 524 // On earlier versions, the dimensions must match exactly and the inSampleSize must be 1
527 && targetOptions.inSampleSize == 1;
532 int width = targetOptions.outWidth / targetOptions.inSampleSize;
533 int height = targetOptions.outHeight / targetOptions.inSampleSize;
  /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...]
ImageCache.java 524 // On earlier versions, the dimensions must match exactly and the inSampleSize must be 1
527 && targetOptions.inSampleSize == 1;
532 int width = targetOptions.outWidth / targetOptions.inSampleSize;
533 int height = targetOptions.outHeight / targetOptions.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...]
  /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/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowBitmapFactory.java 183 if (options != null && options.inSampleSize > 1) {
184 p.x = p.x / options.inSampleSize;
185 p.y = p.y / options.inSampleSize;
223 if (options.inSampleSize > 1) opts.add("inSampleSize=" + options.inSampleSize);
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
BitmapHelper.java 46 bmOptions.inSampleSize = scaleFactor;
  /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;
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
Downsampler.java 194 options.inSampleSize = sampleSize;
196 if ((options.inSampleSize == 1 || Build.VERSION_CODES.KITKAT <= Build.VERSION.SDK_INT) && shouldUsePool(is)) {
265 * @see android.graphics.BitmapFactory.Options#inSampleSize
316 + " sample=" + options.inSampleSize, e);
356 decodeBitmapOptions.inSampleSize = 1;
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapRegionDecoderTest.java 213 opts.inSampleSize = SAMPLESIZES[j];
240 opts.inSampleSize = SAMPLESIZES[j];
272 opts.inSampleSize = SAMPLESIZES[j];
301 opts.inSampleSize = SAMPLESIZES[j];
378 defaultOpts.inSampleSize = sampleSize;
379 reuseOpts.inSampleSize = sampleSize;
455 opts.inSampleSize = SAMPLESIZES[j];
526 opts.inSampleSize = SAMPLESIZES[j];
673 int left = rect1.left / opts.inSampleSize;
674 int top = rect1.top / opts.inSampleSize;
    [all...]
BitmapFactoryTest.java 387 options.inSampleSize = 0; // treated as 1
395 options.inSampleSize = -42; // treated as 1
466 options.inSampleSize = 1;
503 options.inSampleSize = 4;
515 options.inSampleSize = 4;
519 options.inSampleSize = 1;
537 options.inSampleSize = 4;
550 options.inSampleSize = 1;
554 // Verify that inSampleSize and density scaling both work with reuse concurrently
557 options.inSampleSize = 2
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowBitmapFactoryTest.java 123 options.inSampleSize = 100;
126 assertEquals(true, shadowOf(bitmap).getDescription().contains("inSampleSize=100"));
134 options.inSampleSize = 100;
138 assertEquals(true, shadowOf(bitmap).getDescription().contains("inSampleSize=100"));
241 options.inSampleSize = 0;
246 options.inSampleSize = 2;
251 options.inSampleSize = 101;
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
BitmapDecode.java 81 opts.inSampleSize = 4; // scaled down by 4
  /external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
SkiaImageRegionDecoder.java 115 options.inSampleSize = sampleSize;
SkiaPooledImageRegionDecoder.java 261 options.inSampleSize = sampleSize;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
ByodPresentMediaDialog.java 156 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);
  /external/volley/src/main/java/com/android/volley/toolbox/
ImageRequest.java 220 decodeOptions.inSampleSize =
  /external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/
SubsamplingScaleImageView.java     [all...]

Completed in 263 milliseconds