HomeSort by relevance Sort by last modified time
    Searched full:targetsize (Results 1 - 25 of 31) sorted by null

1 2

  /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 37 Path path, int type, int targetSize) {
41 mTargetSize = targetSize;
99 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 194 int targetSize = MediaItem.getTargetSize(type);
210 jc, thumbData, options, targetSize);
215 return DecodeUtils.decodeThumbnail(jc, mLocalFilePath, options, targetSize, type);
  /packages/apps/Gallery2/src/com/android/photos/data/
MediaCacheUtils.java 78 public static boolean downsample(File inBitmap, MediaSize targetSize, File outBitmap) {
79 if (MediaSize.Original == targetSize) {
82 int size = getTargetSize(targetSize);
99 int targetSize = getTargetSize(size);
105 float scale = targetSize / maxDimension;
124 int targetSize = getTargetSize(size);
126 return maxDimension > (targetSize * 4 / 3);
SparseArrayBitmapPool.java 54 int targetSize = mCapacityBytes - bytesNeeded;
55 while (mPoolNodesTail != null && mSizeBytes > targetSize) {
  /packages/apps/Gallery2/tests/src/com/android/photos/data/
MediaCacheTest.java 180 int targetSize = MediaCacheUtils.getTargetSize(MediaSize.Preview);
181 assertTrue(maxDimension >= targetSize);
182 assertTrue(maxDimension < (targetSize * 2));
219 int targetSize = MediaCacheUtils.getTargetSize(MediaSize.Thumbnail);
220 assertTrue(maxDimension >= targetSize);
221 assertTrue(maxDimension < (targetSize * 2));
252 int targetSize = MediaCacheUtils.getTargetSize(MediaSize.Preview);
253 assertTrue(maxDimension >= targetSize);
254 assertTrue(maxDimension < (targetSize * 2));
264 targetSize = MediaCacheUtils.getTargetSize(MediaSize.Thumbnail)
    [all...]
  /external/webkit/Source/WebKit2/WebProcess/WebPage/
TiledDrawingArea.cpp 210 IntSize targetSize;
213 if (!arguments->decode(CoreIPC::Out(targetSize, contentsRect)))
220 float targetScale = float(targetSize.width()) / contentsRect.width();
222 UpdateChunk updateChunk(IntRect(IntPoint(contentsRect.x() * targetScale, contentsRect.y() * targetScale), targetSize));
  /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;
  /external/icu4c/test/cintltst/
eurocreg.c 145 int32_t targetSize, euroBackSize;
149 targetSize = ucnv_fromUChars(myConv,
164 targetSize,
ccapitst.c 275 int32_t targetsize; local
    [all...]
  /external/webkit/Source/WebKit2/UIProcess/
WebBackForwardList.cpp 71 unsigned targetSize = m_current + 1;
72 removedItems.reserveCapacity(m_entries.size() - targetSize);
73 while (m_entries.size() > 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);
511 // Resize the bitmap if each side is >= targetSize * 2
513 Bitmap bitmap, int targetSize, boolean recycle) {
517 (float) targetSize / srcWidth, (float) targetSize / srcHeight);
  /external/webkit/Source/WebCore/loader/cache/
MemoryCache.cpp 173 unsigned targetSize = static_cast<unsigned>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again.
201 if (targetSize && m_liveSize <= targetSize)
217 unsigned targetSize = static_cast<unsigned>(capacity * cTargetPrunePercentage); // Cut by a percentage to avoid immediately pruning again.
234 if (targetSize && m_deadSize <= targetSize)
253 if (targetSize && m_deadSize <= targetSize) {
274 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);
  /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) {
  /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/clang/lib/StaticAnalyzer/Checkers/
BasicObjCFoundationChecks.cpp 205 uint64_t SourceSize, uint64_t TargetSize, uint64_t NumberKind);
311 uint64_t TargetSize = *OptTargetSize;
338 // CHECK: is SourceSize == TargetSize
339 if (SourceSize == TargetSize)
342 // Generate an error. Only generate a sink if 'SourceSize < TargetSize';
348 if (ExplodedNode *N = SourceSize < TargetSize ? C.generateSink()
356 << (TargetSize == 8 ? "an " : "a ")
357 << TargetSize << " bit integer. ";
359 if (SourceSize < TargetSize)
360 os << (TargetSize - SourceSize
    [all...]
  /external/webkit/Source/WebCore/history/
BackForwardListImpl.cpp 68 unsigned targetSize = m_current + 1;
69 while (m_entries.size() > targetSize) {
  /external/llvm/lib/Target/Mips/MCTargetDesc/
MipsAsmBackend.cpp 114 unsigned NumBytes = (getFixupKindInfo(Kind).TargetSize + 7) / 8;
139 (64 - getFixupKindInfo(Kind).TargetSize));
  /dalvik/vm/alloc/
HeapSource.cpp     [all...]
  /external/kernel-headers/original/linux/netfilter/
x_tables.h 239 unsigned int targetsize; member in struct:xt_target
  /external/webkit/Source/WebCore/platform/chromium/
PopupMenuChromium.cpp 342 IntSize targetSize(m_listBox->width() + kBorderSize * 2,
353 widgetRect = chromeClient->windowToScreen(IntRect(popupInitialCoordinate.x() + rightOffset, popupInitialCoordinate.y(), targetSize.width(), targetSize.height()));
    [all...]

Completed in 562 milliseconds

1 2