HomeSort by relevance Sort by last modified time
    Searched refs:inSampleSize (Results 1 - 19 of 19) 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;
  /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...]
  /developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 42 bmOptions.inSampleSize = scaleFactor;
  /developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/
BitmapHelper.java 42 bmOptions.inSampleSize = scaleFactor;
  /development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/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);
  /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...]
  /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;
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
BitmapDecode.java 81 opts.inSampleSize = 4; // scaled down by 4
  /external/chromium_org/third_party/libaddressinput/src/java/
android.jar 

Completed in 1307 milliseconds