/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DecodeUtils.java | 101 JobContext jc, String filePath, Options options, int targetSize, int type) { 106 return decodeThumbnail(jc, fd, options, targetSize, type); 116 JobContext jc, FileDescriptor fd, Options options, int targetSize, int type) { 129 // we want to make sure the shorter side >= "targetSize". 130 float scale = (float) targetSize / Math.min(w, h); 141 // For screen nail, we only want to keep the longer side >= targetSize. 142 float scale = (float) targetSize / Math.max(w, h); 154 float scale = (float) targetSize / (type == MediaItem.TYPE_MICROTHUMBNAIL 167 * larger than the <code>targetSize</code>. 170 Options options, int targetSize) { [all...] |
ActionImage.java | 61 int targetSize = MediaItem.getTargetSize(mType); 66 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 68 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
|
ImageCacheRequest.java | 38 Path path, long timeModified, int type, int targetSize) { 42 mTargetSize = targetSize; 101 public abstract Bitmap onDecodeOriginal(JobContext jc, int targetSize);
|
UriImage.java | 193 int targetSize = MediaItem.getTargetSize(mType); 197 mFileDescriptor.getFileDescriptor(), options, targetSize, mType); 204 bitmap = BitmapUtils.resizeAndCropCenter(bitmap, targetSize, true); 206 bitmap = BitmapUtils.resizeDownBySideLength(bitmap, targetSize, true);
|
LocalImage.java | 193 int targetSize = MediaItem.getTargetSize(type); 209 jc, thumbData, options, targetSize); 214 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
BitmapUtil.java | 191 int targetX, targetY, targetSize; 195 targetSize = inputHeight; 199 targetSize = inputWidth; 203 Bitmap output = Bitmap.createBitmap(targetSize, targetSize, Bitmap.Config.ARGB_8888); 211 canvas.drawCircle(targetSize / 2, targetSize / 2, targetSize / 2, paint);
|
/frameworks/opt/bitmap/src/com/android/bitmap/ |
UnrefedPooledCache.java | 38 * 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) { 62 final int nonPooledSize = Math.round(targetSize * nonPooledFraction); 68 mTargetSize = targetSize - nonPooledSize;
|
/packages/apps/Gallery2/src/com/android/photos/ |
BitmapRegionTileSource.java | 188 * than the targetSize, but it will always be less than 2x the targetSize 190 private Bitmap decodePreview(String file, int targetSize) { 191 float scale = (float) targetSize / Math.max(mWidth, mHeight); 202 scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
|
/external/chromium_org/chrome/browser/resources/chromeos/ |
nfc_debug.js | 148 var targetSize = $('uri-form-target-size').value; 149 targetSize = parseFloat(targetSize); 150 recordData.targetSize = isNaN(targetSize) ? 0.0 : targetSize; 159 var targetSize = $('smart-poster-form-target-size').value; 160 targetSize = parseFloat(targetSize); 161 recordData.targetSize = isNaN(targetSize) ? 0.0 : targetSize [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
LevenshteinDistance.java | 40 final int targetSize = target.length; 41 final int[][] editTab = new int[sourceSize+1][targetSize+1]; 42 final int[][] distTab = new int[sourceSize+1][targetSize+1]; 49 for (int i = 1; i <= targetSize; ++i) {
|
/external/llvm/include/llvm/MC/ |
MCFixupKindInfo.h | 35 unsigned TargetSize;
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
RobustnessTest.java | 392 Size targetSize = maxSizes.maxPrivSizes[sizeLimit]; 394 target.setDefaultBufferSize(targetSize.getWidth(), targetSize.getHeight()); 401 Size targetSize = maxSizes.maxJpegSizes[sizeLimit]; 403 targetSize.getWidth(), targetSize.getHeight(), JPEG, MIN_RESULT_COUNT); 411 Size targetSize = maxSizes.maxYuvSizes[sizeLimit]; 413 targetSize.getWidth(), targetSize.getHeight(), YUV, MIN_RESULT_COUNT); 421 Size targetSize = maxSizes.maxRawSize [all...] |
/external/chromium_org/third_party/icu/source/test/cintltst/ |
eurocreg.c | 145 int32_t targetSize, euroBackSize; 149 targetSize = ucnv_fromUChars(myConv, 164 targetSize,
|
/external/icu/icu4c/source/test/cintltst/ |
eurocreg.c | 145 int32_t targetSize, euroBackSize; 149 targetSize = ucnv_fromUChars(myConv, 164 targetSize,
|
/packages/apps/Mms/src/com/android/mms/util/ |
ThumbnailManager.java | 451 private Bitmap requestDecode(final Uri uri, Options options, int targetSize) { 475 options.outWidth, options.outHeight, targetSize); 487 result = resizeDownIfTooBig(result, targetSize, true); 518 // Resize the bitmap if each side is >= targetSize * 2 520 Bitmap bitmap, int targetSize, boolean recycle) { 524 (float) targetSize / srcWidth, (float) targetSize / srcHeight);
|
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 86 int targetSize = wantMini 96 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap); 114 options, targetSize, maxPixels); 472 private static void createThumbnailFromEXIF(String filePath, int targetSize, 494 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels); 501 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels);
|
/frameworks/base/core/java/android/view/animation/ |
ScaleAnimation.java | 261 float targetSize; 263 targetSize = TypedValue.complexToFraction(data, size, psize); 265 targetSize = TypedValue.complexToDimension(data, mResources.getDisplayMetrics()); 274 return targetSize/(float)size;
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
SparseArrayBitmapPool.java | 78 int targetSize = mCapacityBytes - bytesNeeded; 80 while (mPoolNodesTail != null && mSizeBytes > targetSize) {
|
/external/chromium_org/third_party/WebKit/Source/core/fetch/ |
MemoryCache.cpp | 228 size_t targetSize = static_cast<size_t>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again. 257 if (targetSize && m_liveSize <= targetSize) 271 size_t targetSize = static_cast<size_t>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again. 292 if (targetSize && m_deadSize <= targetSize) 311 if (targetSize && m_deadSize <= targetSize) 333 if (targetSize && m_deadSize <= targetSize) [all...] |
/frameworks/base/libs/hwui/ |
TextureCache.cpp | 264 uint32_t targetSize = uint32_t(mSize * mFlushRate); 265 TEXTURE_LOGD("TextureCache::flush: target size: %d", targetSize); 267 while (mSize > targetSize) {
|
/external/chromium_org/mojo/public/java/bindings/src/org/chromium/mojo/bindings/ |
Encoder.java | 81 int targetSize = byteBuffer.capacity() * 2; 82 while (targetSize < dataEnd) { 83 targetSize *= 2; 85 ByteBuffer newBuffer = ByteBuffer.allocateDirect(targetSize);
|
/external/llvm/lib/Target/SystemZ/MCTargetDesc/ |
SystemZMCAsmBackend.cpp | 92 unsigned Size = (getFixupKindInfo(Kind).TargetSize + 7) / 8;
|
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
BitmapRegionTileSource.java | 499 * than the targetSize, but it will always be less than 2x the targetSize 501 private Bitmap decodePreview(BitmapSource source, int targetSize) { 509 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/ |
BitmapRegionTileSource.java | 499 * than the targetSize, but it will always be less than 2x the targetSize 501 private Bitmap decodePreview(BitmapSource source, int targetSize) { 509 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
BasicObjCFoundationChecks.cpp | 355 uint64_t SourceSize, uint64_t TargetSize, uint64_t NumberKind); 461 uint64_t TargetSize = *OptTargetSize; 488 // CHECK: is SourceSize == TargetSize 489 if (SourceSize == TargetSize) 492 // Generate an error. Only generate a sink if 'SourceSize < TargetSize'; 498 if (ExplodedNode *N = SourceSize < TargetSize ? C.generateSink() 506 << (TargetSize == 8 ? "an " : "a ") 507 << TargetSize << " bit integer. "; 509 if (SourceSize < TargetSize) 510 os << (TargetSize - SourceSize [all...] |