Home
last modified time | relevance | path

Searched refs:bitmapInfo (Results 1 – 3 of 3) sorted by relevance

/packages/apps/TV/src/com/android/tv/util/
DImageLoader.java196 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() local
197 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
199 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
228 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() local
230 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()
232 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
275 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() local
276 boolean needToReload = bitmapInfo != null && bitmapInfo in isReloadNeeded()
281 + "originalWidth=" + bitmapInfo.bitmap.getWidth() in isReloadNeeded()
282 + ", originalHeight=" + bitmapInfo.bitmap.getHeight() in isReloadNeeded()
[all …]
DImageCache.java57 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() argument
105 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()
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java254 ScaledBitmapInfo bitmapInfo = BitmapUtils.decodeSampledBitmapFromUriString( in doInBackground() local
256 if (bitmapInfo == null) { in doInBackground()
270 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os); in doInBackground()