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

/frameworks/av/media/libstagefright/
H A DDataConverter.cpp32 size_t size = targetSize(source->size());
52 size_t DataConverter::sourceSize(size_t targetSize) { argument
53 return targetSize;
56 size_t DataConverter::targetSize(size_t sourceSize) { function in class:android::DataConverter
63 size_t SampleConverterBase::sourceSize(size_t targetSize) { argument
64 size_t numSamples = targetSize / mTargetSampleSize;
67 targetSize, mSourceSampleSize, mTargetSampleSize);
73 size_t SampleConverterBase::targetSize(size_t sourceSize) { function in class:android::SampleConverterBase
/frameworks/base/libs/hwui/
H A DTextureCache.cpp220 uint32_t targetSize = uint32_t(mSize * mFlushRate); local
221 TEXTURE_LOGD("TextureCache::flush: target size: %d", targetSize);
223 while (mSize > targetSize) {
/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/media/java/android/media/
H A DThumbnailUtils.java86 int targetSize = wantMini
97 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
115 options, targetSize, maxPixels);
473 private static void createThumbnailFromEXIF(String filePath, int targetSize, argument
495 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels);
502 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.java1049 private static void resizeContainer(String cid, long targetSize) argument
1058 if (currentSize > targetSize) {
1060 + targetSize + "; skipping resize");
1069 if (!PackageHelper.resizeSdDir(targetSize, cid,
1072 "Failed to resize " + cid + " to " + targetSize + " bytes");

Completed in 209 milliseconds