Home
last modified time | relevance | path

Searched refs:bitmapInfo (Results 1 – 6 of 6) 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/Launcher3/src/com/android/launcher3/icons/
DIconCache.java222 BitmapInfo bitmapInfo; in getShortcutIcon() local
224 bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, si.getUserHandle(), in getShortcutIcon()
228 bitmapInfo = mShortcutCachingLogic.loadIcon(mContext, si); in getShortcutIcon()
230 if (bitmapInfo.isNullOrLowRes()) { in getShortcutIcon()
231 bitmapInfo = getDefaultIcon(si.getUserHandle()); in getShortcutIcon()
234 if (isDefaultIcon(bitmapInfo, si.getUserHandle()) && fallbackIconCheck.test(info)) { in getShortcutIcon()
237 info.bitmap = bitmapInfo; in getShortcutIcon()
/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/quickstep/src/com/android/quickstep/
DTaskIconCache.java167 BitmapInfo bitmapInfo = getBitmapInfo( in getCacheEntry() local
172 entry.icon = bitmapInfo.newIcon(mContext); in getCacheEntry()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DMicPrivacyChipDialogController.java271 BitmapInfo bitmapInfo = in getBadgedIcon() local
275 return new BitmapDrawable(context.getResources(), bitmapInfo.icon); in getBadgedIcon()