Searched defs:targetSize (Results 1 - 5 of 5) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/
H A DUnrefedPooledCache.java38 * Because this class only counts unreferenced objects toward targetSize,
40 * <code>(targetSize) + (# of threads concurrently writing to cache) +
55 * @param targetSize not exactly a max size in practice
56 * @param nonPooledFraction the fractional portion in the range [0.0,1.0] of targetSize to
59 public UnrefedPooledCache(int targetSize, float nonPooledFraction) { argument
62 final int nonPooledSize = Math.round(targetSize * nonPooledFraction);
68 mTargetSize = targetSize - nonPooledSize;
/frameworks/base/libs/hwui/
H A DTextureCache.cpp264 uint32_t targetSize = uint32_t(mSize * mFlushRate); local
265 TEXTURE_LOGD("TextureCache::flush: target size: %d", targetSize);
267 while (mSize > targetSize) {
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java86 int targetSize = wantMini
96 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
114 options, targetSize, maxPixels);
472 private static void createThumbnailFromEXIF(String filePath, int targetSize, argument
494 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels);
501 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels);
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java499 * than the targetSize, but it will always be less than 2x the targetSize
501 private Bitmap decodePreview(BitmapSource source, int targetSize) { argument
509 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java823 private static void resizeContainer(String cid, long targetSize) argument
832 if (currentSize > targetSize) {
834 + targetSize + "; skipping resize");
843 if (!PackageHelper.resizeSdDir(targetSize, cid,
846 "Failed to resize " + cid + " to " + targetSize + " bytes");

Completed in 237 milliseconds