Home
last modified time | relevance | path

Searched refs:CacheKey (Results 1 – 2 of 2) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java53 private final HashMap<SizeIndexKey, TreeMap<Point, CacheKey>> mSizeIndex;
74 TreeMap<Point, CacheKey> sizeMap; in getThumbnail()
82 CacheKey cacheKey = sizeMap.get(size); in getThumbnail()
129 CacheKey cacheKey = new CacheKey(uri, userId, size); in putThumbnail()
131 TreeMap<Point, CacheKey> sizeMap; in putThumbnail()
152 TreeMap<Point, CacheKey> sizeMap; in removeUri()
161 for (CacheKey index : sizeMap.values().toArray(new CacheKey[0])) { in removeUri()
167 private void removeKey(CacheKey cacheKey) { in removeKey()
168 TreeMap<Point, CacheKey> sizeMap; in removeKey()
298 private final class Cache extends LruCache<CacheKey, Entry> {
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java39 private static class CacheKey { class in BitmapCachingAsset
44 CacheKey(Asset asset, int width, int height) { in CacheKey() method in BitmapCachingAsset.CacheKey
57 return obj instanceof CacheKey in equals()
58 && ((CacheKey)obj).asset == this.asset in equals()
59 && ((CacheKey)obj).width == this.width in equals()
60 && ((CacheKey)obj).height == this.height; in equals()
65 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
66 @Override protected int sizeOf(CacheKey key, Bitmap value) {
88 CacheKey key = new CacheKey(mOriginalAsset, targetWidth, targetHeight); in decodeBitmap()