HomeSort by relevance Sort by last modified time
    Searched refs:targetSize (Results 1 - 25 of 25) sorted by null

  /external/chromium_org/third_party/icu/source/test/cintltst/
eurocreg.c 145 int32_t targetSize, euroBackSize;
149 targetSize = ucnv_fromUChars(myConv,
164 targetSize,
  /external/icu4c/test/cintltst/
eurocreg.c 145 int32_t targetSize, euroBackSize;
149 targetSize = ucnv_fromUChars(myConv,
164 targetSize,
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
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);
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...]
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/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) {
  /packages/apps/UnifiedEmail/src/com/android/bitmap/
AltPooledCache.java 36 * Because this class only counts unreferenced objects toward targetSize,
38 * <code>(targetSize) + (# of threads concurrently writing to cache) +
52 * @param targetSize not exactly a max size in practice
53 * @param nonPooledFraction the fractional portion in the range [0.0,1.0] of targetSize to
56 public AltPooledCache(int targetSize, float nonPooledFraction) {
59 final int nonPooledSize = Math.round(targetSize * nonPooledFraction);
65 mTargetSize = targetSize - nonPooledSize;
  /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;
  /external/chromium_org/third_party/WebKit/Source/core/loader/cache/
MemoryCache.cpp 157 unsigned targetSize = static_cast<unsigned>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again.
190 if (targetSize && m_liveSize <= targetSize)
204 unsigned targetSize = static_cast<unsigned>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again.
221 if (targetSize && m_deadSize <= targetSize)
240 if (targetSize && m_deadSize <= targetSize)
257 if (targetSize && m_deadSize <= targetSize)
    [all...]
  /frameworks/base/media/java/android/media/
ThumbnailUtils.java 92 int targetSize = wantMini
102 createThumbnailFromEXIF(filePath, targetSize, maxPixels, sizedThumbnailBitmap);
120 options, targetSize, maxPixels);
478 private static void createThumbnailFromEXIF(String filePath, int targetSize,
500 exifOptions.inSampleSize = computeSampleSize(exifOptions, targetSize, maxPixels);
507 fullOptions.inSampleSize = computeSampleSize(fullOptions, targetSize, maxPixels);
  /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);
  /dalvik/vm/alloc/
HeapSource.cpp     [all...]
  /packages/apps/Gallery2/src/com/android/photos/data/
SparseArrayBitmapPool.java 78 int targetSize = mCapacityBytes - bytesNeeded;
80 while (mPoolNodesTail != null && mSizeBytes > targetSize) {
  /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()));
  /frameworks/base/libs/hwui/
TextureCache.cpp 204 uint32_t targetSize = uint32_t(mSize * mFlushRate);
205 TEXTURE_LOGD("TextureCache::flush: target size: %d", targetSize);
207 while (mSize > targetSize) {
  /packages/apps/Launcher3/src/com/android/photos/
BitmapRegionTileSource.java 216 * than the targetSize, but it will always be less than 2x the targetSize
219 Resources res, Context context, String file, Uri uri, int resId, int targetSize) {
220 float scale = (float) targetSize / Math.max(mWidth, mHeight);
244 scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
  /external/chromium_org/third_party/WebKit/Source/web/
PopupContainer.cpp 185 IntSize targetSize(m_listBox->width() + borderSize * 2, m_listBox->height() + borderSize * 2);
194 widgetRectInScreen = client->rootViewToScreen(IntRect(popupInitialCoordinate.x() + rightOffset, popupInitialCoordinate.y() + verticalForRTLOffset, targetSize.width(), targetSize.height()));
  /frameworks/base/packages/WallpaperCropper/src/com/android/photos/
BitmapRegionTileSource.java 498 * than the targetSize, but it will always be less than 2x the targetSize
500 private Bitmap decodePreview(BitmapSource source, int targetSize) {
508 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight()));
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
PositionController.java     [all...]
  /external/chromium_org/third_party/WebKit/Source/core/xml/parser/
XMLDocumentParser.cpp     [all...]
  /external/icu4c/test/intltest/
ssearch.cpp     [all...]
  /packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
PhotoTable.java 584 int targetSize = Math.max(0, mOnTable.size() - mRedealCount);
585 while (mOnTable.size() > targetSize) {
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
ssearch.cpp     [all...]

Completed in 1219 milliseconds