Home
last modified time | relevance | path

Searched refs:reqHeight (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DImageResizer.java116 int reqWidth, int reqHeight, ImageCache cache) { in decodeSampledBitmapFromResource() argument
125 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource()
149 int reqWidth, int reqHeight, ImageCache cache) { in decodeSampledBitmapFromFile() argument
157 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromFile()
180 FileDescriptor fileDescriptor, int reqWidth, int reqHeight, ImageCache cache) { in decodeSampledBitmapFromDescriptor() argument
188 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromDescriptor()
232 int reqWidth, int reqHeight) { in calculateInSampleSize() argument
239 if (height > reqHeight || width > reqWidth) { in calculateInSampleSize()
246 while ((halfHeight / inSampleSize) > reqHeight in calculateInSampleSize()
260 final long totalReqPixelsCap = reqWidth * reqHeight * 2; in calculateInSampleSize()
/development/samples/training/ContactsList/src/com/example/android/contactslist/util/
DImageLoader.java359 FileDescriptor fileDescriptor, int reqWidth, int reqHeight) { in decodeSampledBitmapFromDescriptor() argument
367 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromDescriptor()
389 int reqWidth, int reqHeight) { in calculateInSampleSize() argument
395 if (height > reqHeight || width > reqWidth) { in calculateInSampleSize()
398 final int heightRatio = Math.round((float) height / (float) reqHeight); in calculateInSampleSize()
414 final float totalReqPixelsCap = reqWidth * reqHeight * 2; in calculateInSampleSize()