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.java204 ScaledBitmapInfo bitmapInfo = imageCache.get(uriString); in doLoadBitmap() local
205 if (bitmapInfo != null && !bitmapInfo.needToReload(maxWidth, maxHeight)) { in doLoadBitmap()
207 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
236 ScaledBitmapInfo bitmapInfo = loadBitmapTask.getFromCache(); in doLoadBitmap() local
238 if (bitmapInfo != null && !needToReload) { in doLoadBitmap()
240 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
283 ScaledBitmapInfo bitmapInfo = getFromCache(); in isReloadNeeded() local
285 bitmapInfo != null && bitmapInfo.needToReload(mMaxWidth, mMaxHeight); in isReloadNeeded()
292 + bitmapInfo.bitmap.getWidth() in isReloadNeeded()
294 + 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.java546 … private ContentValues newContentValues(BitmapInfo bitmapInfo, String label, String packageName) { in newContentValues() argument
549 bitmapInfo.isLowRes() ? null : GraphicsUtils.flattenBitmap(bitmapInfo.icon)); in newContentValues()
550 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()