Searched refs:bitmapInfo (Results 1 – 3 of 3) sorted by relevance
197 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() local198 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()200 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()229 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() local231 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()233 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()276 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() local277 boolean needToReload = bitmapInfo != null && bitmapInfo in isReloadNeeded()282 + "originalWidth=" + bitmapInfo.bitmap.getWidth() in isReloadNeeded()283 + ", originalHeight=" + bitmapInfo.bitmap.getHeight() in isReloadNeeded()[all …]
57 protected int sizeOf(String key, ScaledBitmapInfo bitmapInfo) { in ImageCache()58 return (bitmapInfo.bitmap.getByteCount() + 1023) / 1024; in ImageCache()104 public void putIfNeeded(ScaledBitmapInfo bitmapInfo) { in putIfNeeded() argument105 if (bitmapInfo == null || bitmapInfo.id == null) { in putIfNeeded()108 String key = bitmapInfo.id; in putIfNeeded()111 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded()112 if (old != null && !old.needToReload(bitmapInfo)) { in putIfNeeded()117 + bitmapInfo + "."); in putIfNeeded()121 Log.d(TAG, "Add " + bitmapInfo + " to memory cache. Current size is " + in putIfNeeded()
254 ScaledBitmapInfo bitmapInfo = BitmapUtils.decodeSampledBitmapFromUriString( in doInBackground() local256 if (bitmapInfo == null) { in doInBackground()270 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os); in doInBackground()