Home
last modified time | relevance | path

Searched refs:inSampleSize (Results 1 – 13 of 13) 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/opt/photoviewer/src/com/android/ex/photo/util/
DImageUtils.java108 opts.inSampleSize = Math.max(bounds.x / maxSize, bounds.y / maxSize); in createLocalBitmap()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java204 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java135 public int inSampleSize; field in BitmapFactory.Options
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java658 options.inSampleSize = scaleDownSampleSize;
671 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.java861 options.inSampleSize = scaleDownSampleSize; in getBuiltInDrawable()
874 options.inSampleSize = scaleDownSampleSize; in getBuiltInDrawable()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java686 options.inSampleSize = scale; in generateCrop()
690 estimateCrop.scale(1f / options.inSampleSize); in generateCrop()
710 estimateCrop.scale(1f / options.inSampleSize); in generateCrop()
722 Slog.v(TAG, " down sampling=" + options.inSampleSize in generateCrop()
/frameworks/base/core/api/
Dcurrent.txt14789 field public int inSampleSize;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt10527 field public int inSampleSize;