Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java40 private static class CacheKey { class in BitmapCachingAsset
47 CacheKey(Asset asset, int width, int height) { in CacheKey() method in BitmapCachingAsset.CacheKey
51 CacheKey(Asset asset, int width, int height, boolean rtl, Rect rect) { in CacheKey() method in BitmapCachingAsset.CacheKey
66 return obj instanceof CacheKey in equals()
67 && (Objects.equals(this.mAsset, ((CacheKey) obj).mAsset)) in equals()
68 && ((CacheKey) obj).mWidth == this.mWidth in equals()
69 && ((CacheKey) obj).mHeight == this.mHeight in equals()
70 && ((CacheKey) obj).mRtl == this.mRtl in equals()
71 && (Objects.equals(this.mRect, ((CacheKey) obj).mRect)); in equals()
76 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
[all …]
/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 …]