Home
last modified time | relevance | path

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

/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/
DUtils.java101 int inSampleSize = 1; in calculateInSampleSize() local
110 while ((halfHeight / inSampleSize) > reqHeight in calculateInSampleSize()
111 && (halfWidth / inSampleSize) > reqWidth) { in calculateInSampleSize()
112 inSampleSize *= 2; in calculateInSampleSize()
116 return inSampleSize; in calculateInSampleSize()
128 options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); in decodeSampledBitmapFromResource()
/frameworks/base/core/java/com/android/internal/util/
DImageUtils.java175 int inSampleSize = 1; in calculateSampleSize() local
184 while ((halfHeight / inSampleSize) >= requestedSize.getHeight() in calculateSampleSize()
185 && (halfWidth / inSampleSize) >= requestedSize.getWidth()) { in calculateSampleSize()
186 inSampleSize *= 2; in calculateSampleSize()
190 return inSampleSize; in calculateSampleSize()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java251 mOpts.inSampleSize = Math.max(1, sampleSize); in decode()
306 Trace.beginSection("decodeCropped" + mOpts.inSampleSize); in decode()
326 mDecodeOpts.destH, mDecodeOpts.destH, mOpts.inSampleSize, in decode()
374 Trace.beginSection("decode" + mOpts.inSampleSize); in decode()
384 + mOpts.inSampleSize); in decode()
386 if (mOpts.inSampleSize > 1) { in decode()
388 mOpts.inSampleSize = 1; in decode()
408 result.setLogicalWidth((srcRect.right - srcRect.left) / mOpts.inSampleSize); in decode()
410 (srcRect.bottom - srcRect.top) / mOpts.inSampleSize); in decode()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java127 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion()
190 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); in loadInBackground()
449 mOptions.inSampleSize = (1 << level); in getTile()
474 mOptions.inSampleSize = (1 << level); in getTileWithoutReusingBitmap()
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java54 bitmapOptions.inSampleSize = getPowerOfTwoForSampleRatio(ratio); in resolveImage()
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java134 public int inSampleSize; field in BitmapFactory.Options
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java661 options.inSampleSize = scaleDownSampleSize;
674 options.inSampleSize = scaleDownSampleSize;
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDessertCaseView.java175 opts.inSampleSize = 2; in DessertCaseView()
/frameworks/base/core/java/android/app/
DWallpaperManager.java696 options.inSampleSize = scaleDownSampleSize; in getBuiltInDrawable()
709 options.inSampleSize = scaleDownSampleSize; in getBuiltInDrawable()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java693 options.inSampleSize = scale; in generateCrop()
697 estimateCrop.scale(1f / options.inSampleSize); in generateCrop()
717 estimateCrop.scale(1f / options.inSampleSize); in generateCrop()
729 Slog.v(TAG, " down sampling=" + options.inSampleSize in generateCrop()
/frameworks/base/media/java/android/media/
DMediaScanner.java436 mBitmapOptions.inSampleSize = 1; in MediaScanner()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10527 field public int inSampleSize;
/frameworks/base/api/
Dcurrent.txt13682 field public int inSampleSize;