Home
last modified time | relevance | path

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

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageResizer.java125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource()
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromFile()
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromDescriptor()
237 int inSampleSize = 1; in calculateInSampleSize() local
246 while ((halfHeight / inSampleSize) > reqHeight in calculateInSampleSize()
247 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
248 inSampleSize *= 2; in calculateInSampleSize()
257 long totalPixels = width * height / inSampleSize; in calculateInSampleSize()
263 inSampleSize *= 2; in calculateInSampleSize()
267 return inSampleSize; in calculateInSampleSize()
DImageCache.java527 && targetOptions.inSampleSize == 1; in canUseForInBitmap()
532 int width = targetOptions.outWidth / targetOptions.inSampleSize; in canUseForInBitmap()
533 int height = targetOptions.outHeight / targetOptions.inSampleSize; in canUseForInBitmap()
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java367 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromDescriptor()
393 int inSampleSize = 1; in calculateInSampleSize() local
403 inSampleSize = heightRatio < widthRatio ? heightRatio : widthRatio; in calculateInSampleSize()
416 while (totalPixels / (inSampleSize * inSampleSize) > totalReqPixelsCap) { in calculateInSampleSize()
417 inSampleSize++; in calculateInSampleSize()
420 return inSampleSize; in calculateInSampleSize()
/development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
DBitmapScaling.java65 bitmapOptions.inSampleSize = sampleSize; in addScaledImageView()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoDecodeRunnable.java195 bitmapOptions.inSampleSize = sampleSize; in run()
/development/samples/devbytes/graphics/BitmapAllocation/src/com/example/android/bitmapallocation/
DBitmapAllocation.java67 mBitmapOptions.inSampleSize = 1; in onCreate()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DBitmapHelper.java46 bmOptions.inSampleSize = scaleFactor; in scaleBitmap()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/utils/
DBitmapHelper.java48 bmOptions.inSampleSize = scaleFactor; in scaleBitmap()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DBitmapDecode.java81 opts.inSampleSize = 4; // scaled down by 4 in SampleView()