Home
last modified time | relevance | path

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

/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java208 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() local
209 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
211 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
241 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() local
243 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()
245 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
288 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() local
290 bitmapInfo != null && bitmapInfo.needToReload(mMaxWidth, mMaxHeight); in isReloadNeeded()
297 + bitmapInfo.bitmap.getWidth() in isReloadNeeded()
299 + bitmapInfo.bitmap.getHeight() in isReloadNeeded()
[all …]
DImageCache.java55 protected int sizeOf(String key, ScaledBitmapInfo bitmapInfo) { in ImageCache()
56 return (bitmapInfo.bitmap.getByteCount() + 1023) / 1024; in ImageCache()
101 public void putIfNeeded(ScaledBitmapInfo bitmapInfo) { in putIfNeeded() argument
102 if (bitmapInfo == null || bitmapInfo.id == null) { in putIfNeeded()
105 String key = bitmapInfo.id; in putIfNeeded()
108 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded()
109 if (old != null && !old.needToReload(bitmapInfo)) { in putIfNeeded()
117 + bitmapInfo in putIfNeeded()
125 + bitmapInfo in putIfNeeded()
/packages/apps/TV/src/com/android/tv/data/
DChannelLogoFetcher.java136 ScaledBitmapInfo bitmapInfo = in doInBackground() local
139 if (bitmapInfo == null) { in doInBackground()
158 bitmapInfo.bitmap.compress(CompressFormat.PNG, 100, os); in doInBackground()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java558 private ContentValues newContentValues(BitmapInfo bitmapInfo, String label, in newContentValues() argument
562 bitmapInfo.isLowRes() ? null : GraphicsUtils.flattenBitmap(bitmapInfo.icon)); in newContentValues()
563 values.put(IconDB.COLUMN_ICON_COLOR, bitmapInfo.color); in newContentValues()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DNormalizedIconLoader.java92 BitmapInfo bitmapInfo = getBitmapInfo( in getBadgedActivityIcon() local
97 return mDrawableFactory.newIcon(mContext, bitmapInfo, activityInfo); in getBadgedActivityIcon()