Home
last modified time | relevance | path

Searched refs:targetSize (Results 1 – 9 of 9) sorted by relevance

/frameworks/av/media/libstagefright/
DDataConverter.cpp32 size_t size = targetSize(source->size()); in convert()
51 size_t DataConverter::sourceSize(size_t targetSize) { in sourceSize() argument
52 return targetSize; in sourceSize()
55 size_t DataConverter::targetSize(size_t sourceSize) { in targetSize() function in android::DataConverter
62 size_t SampleConverterBase::sourceSize(size_t targetSize) { in sourceSize() argument
63 size_t numSamples = targetSize / mTargetSampleSize; in sourceSize()
66 targetSize, mSourceSampleSize, mTargetSampleSize); in sourceSize()
72 size_t SampleConverterBase::targetSize(size_t sourceSize) { in targetSize() function in android::SampleConverterBase
DACodec.cpp827 conversionBufferSize = converter->targetSize(bufSize); in allocateBuffersOnPort()
/frameworks/av/media/libstagefright/include/
DDataConverter.h31 virtual size_t sourceSize(size_t targetSize); // will clamp to SIZE_MAX
32 virtual size_t targetSize(size_t sourceSize); // will clamp to SIZE_MAX
44 virtual size_t sourceSize(size_t targetSize);
45 virtual size_t targetSize(size_t sourceSize);
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java261 float targetSize; in resolveScale() local
263 targetSize = TypedValue.complexToFraction(data, size, psize); in resolveScale()
265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics()); in resolveScale()
274 return targetSize/(float)size; in resolveScale()
/frameworks/base/media/java/android/media/
DThumbnailUtils.java86 int targetSize = wantMini in createImageThumbnail() local
97 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap); in createImageThumbnail()
115 options, targetSize, maxPixels); in createImageThumbnail()
473 private static void createThumbnailFromEXIF(String filePath, int targetSize, in createThumbnailFromEXIF() argument
495 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels); in createThumbnailFromEXIF()
502 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels); in createThumbnailFromEXIF()
/frameworks/base/libs/hwui/
DTextureCache.cpp216 uint32_t targetSize = uint32_t(mSize * mFlushRate); in flush() local
217 TEXTURE_LOGD("TextureCache::flush: target size: %d", targetSize); in flush()
219 while (mSize > targetSize) { in flush()
/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedPooledCache.java59 public UnrefedPooledCache(int targetSize, float nonPooledFraction) { in UnrefedPooledCache() argument
62 final int nonPooledSize = Math.round(targetSize * nonPooledFraction); in UnrefedPooledCache()
68 mTargetSize = targetSize - nonPooledSize; in UnrefedPooledCache()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java998 private static void resizeContainer(String cid, long targetSize) in resizeContainer() argument
1007 if (currentSize > targetSize) { in resizeContainer()
1009 + targetSize + "; skipping resize"); in resizeContainer()
1018 if (!PackageHelper.resizeSdDir(targetSize, cid, in resizeContainer()
1021 "Failed to resize " + cid + " to " + targetSize + " bytes"); in resizeContainer()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java501 private Bitmap decodePreview(BitmapSource source, int targetSize) { in decodePreview() argument
509 … float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight())); in decodePreview()