Home
last modified time | relevance | path

Searched refs:LruCache (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DLruCacheUnitTests.java9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testPut()
17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testTracingInUsedObject()
29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testLruAlgorithm()
42 private final LruCache<Integer,Integer> mMap;
44 public Accessor(LruCache<Integer, Integer> map) { in Accessor()
60 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(4); in testConcurrentAccess()
/packages/apps/Dialer/java/com/android/dialer/util/
DExpirableCache.java19 import android.util.LruCache;
103 private LruCache<K, CachedValue<V>> cache;
105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { in ExpirableCache()
121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { in create()
133 return create(new LruCache<K, CachedValue<V>>(maxSize)); in create()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DLruCache.java28 public final class LruCache<K, V> extends LinkedHashMap<K, V> { class
38 public LruCache(int capacity) { in LruCache() method in LruCache
48 private LruCache(int initialCapacity, int maxCapacity) { in LruCache() method in LruCache
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DTargetPackageInfoGetterTask.java23 import android.util.LruCache;
30 private static final LruCache<String, PackageInfo> sCache = new LruCache<>(MAX_CACHE_ENTRIES);
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DBitmapCachingAsset.java23 import android.util.LruCache;
65 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
/packages/apps/TV/src/com/android/tv/util/images/
DImageCache.java21 import android.util.LruCache;
34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache;
49 new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryFacilitator.java20 import android.util.LruCache;
62 void setValidSpellingWordReadCache(final LruCache<String, Boolean> cache); in setValidSpellingWordReadCache()
68 void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache); in setValidSpellingWordWriteCache()
DDictionaryFacilitatorImpl.java23 import android.util.LruCache;
89 private LruCache<String, Boolean> mValidSpellingWordReadCache;
90 private LruCache<String, Boolean> mValidSpellingWordWriteCache;
93 public void setValidSpellingWordReadCache(final LruCache<String, Boolean> cache) { in setValidSpellingWordReadCache()
98 public void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache) { in setValidSpellingWordWriteCache()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java27 import android.util.LruCache;
56 private final LruCache<ComponentName, ActivityInfo> mActivityInfoCache;
77 mActivityInfoCache = new LruCache<>(cacheSize); in TaskIconCache()
DNormalizedIconLoader.java27 import android.util.LruCache;
48 LruCache<ComponentName, ActivityInfo> activityInfoCache, in NormalizedIconLoader()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DRecentFolderList.java33 import com.android.mail.utils.LruCache;
60 private final LruCache<String, RecentFolderListEntry> mFolderCache;
132 mFolderCache = new LruCache<String, RecentFolderListEntry>( in RecentFolderList()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DBitmapCache.java25 import androidx.collection.LruCache;
47 private static class MemoryCache extends LruCache<Uri, Bitmap> {
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java27 import android.util.LruCache;
67 private final LruCache<Uri, LocalPrinterCapabilities> mCache = new LruCache<>(CACHE_SIZE);
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DMediaCache.java18 import android.util.LruCache;
30 public class MediaCache<T extends RefCountedMediaResource> extends LruCache<String, T> {
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemViewModel.java27 import android.util.LruCache;
51 static LruCache<Pair<String, Long>, ConversationItemViewModel> sConversationHeaderMap
52 = new LruCache<Pair<String, Long>, ConversationItemViewModel>(MAX_CACHE_SIZE);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DBitmapDownloader.java22 import android.util.LruCache;
70 private LruCache<String, BitmapItem> mMemoryCache;
112 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in BitmapDownloader()
DDrawableDownloader.java26 import android.util.LruCache;
145 private LruCache<String, BitmapItem> mMemoryCache;
186 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) { in DrawableDownloader()
/packages/apps/Gallery/src/com/android/camera/gallery/
DLruCache.java25 public class LruCache<K, V> { class
33 public LruCache(final int capacity) { in LruCache() method in LruCache
DBaseImageList.java37 private final LruCache<Integer, BaseImage> mCache =
38 new LruCache<Integer, BaseImage>(CACHE_CAPACITY);
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DLruCache.java29 public class LruCache<K, V> { class
37 public LruCache(final int capacity) { in LruCache() method in LruCache
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java26 import android.util.LruCache;
75 private final LruCache<String, SuggestionsParams> mUnigramSuggestionsInfoCache =
76 new LruCache<>(MAX_CACHE_SIZE);
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java26 import com.android.gallery3d.common.LruCache;
69 private final LruCache<String, Entry> mEntryMap =
70 new LruCache<String, Entry>(LRU_CAPACITY);
/packages/apps/Camera2/src/com/android/camera/
DStorage.java30 import android.util.LruCache;
65 private static LruCache<Uri, Bitmap> sSessionsToPlaceholderBitmap =
67 new LruCache<Uri, Bitmap>(20 * 1024 * 1024) {
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java51 import android.util.LruCache;
115 private final LruCache<Object, BitmapHolder> bitmapHolderCache;
123 private final LruCache<Object, Bitmap> bitmapCache;
157 new LruCache<Object, Bitmap>(bitmapCacheSize) { in ContactPhotoManagerImpl()
173 new LruCache<Object, BitmapHolder>(holderCacheSize) { in ContactPhotoManagerImpl()
/packages/modules/ExtServices/src/android/ext/services/notification/
DSmartActionsHelper.java34 import android.util.LruCache;
82 private LruCache<String, Session> mSessionCache = new LruCache<>(MAX_RESULT_ID_TO_CACHE);

12