/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
H A D | LruCacheUnitTests.java | 9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); 17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); 29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); 42 private final LruCache<Integer,Integer> mMap; 44 public Accessor(LruCache<Integer, Integer> map) { 60 LruCache<Integer, Integer> cache = new LruCache<Intege [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | LruCache.java | 28 public final class LruCache<K, V> extends LinkedHashMap<K, V> { class in inherits:LinkedHashMap 38 public LruCache(int capacity) { method in class:LruCache 48 private LruCache(int initialCapacity, int maxCapacity) { method in class:LruCache
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | ExpirableCache.java | 19 import android.util.LruCache; 79 * <p>This class wraps around an {@link LruCache} instance: it follows the {@link LruCache} behavior 80 * for evicting items when the cache is full. It is possible to supply your own subclass of LruCache 81 * by using the {@link #create(LruCache)} method, which can define a custom expiration policy. Since 103 private LruCache<K, CachedValue<V>> mCache; 105 private ExpirableCache(LruCache<K, CachedValue<V>> cache) { 111 * Creates a new {@link ExpirableCache} that wraps the given {@link LruCache}. 121 public static <K, V> ExpirableCache<K, V> create(LruCache<K, CachedValue<V>> cache) { 133 return create(new LruCache< [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/ |
H A D | ShortcutCache.java | 22 import android.util.LruCache; 30 * for handful of apps in an LruCache while launcher lives. 39 private LruCache<ShortcutKey, ShortcutInfoCompat> mCachedShortcuts; 44 mCachedShortcuts = new LruCache<>(CACHE_SIZE);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | TargetPackageInfoGetterTask.java | 23 import android.util.LruCache; 30 private static final LruCache<String, PackageInfo> sCache = new LruCache<>(MAX_CACHE_ENTRIES);
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | MediaCache.java | 18 import android.util.LruCache; 23 * A modified LruCache that is able to hold RefCountedMediaResource instances. It releases 30 public class MediaCache<T extends RefCountedMediaResource> extends LruCache<String, T> {
|
/packages/apps/TV/src/com/android/tv/util/ |
H A D | ImageCache.java | 21 import android.util.LruCache; 37 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; 51 mMemoryCache = new LruCache<String, ScaledBitmapInfo>(memCacheSize) { 161 * in kilobytes instead of bytes as this will eventually be passed to construct a LruCache
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | DictionaryFacilitator.java | 20 import android.util.LruCache; 62 void setValidSpellingWordReadCache(final LruCache<String, Boolean> cache); argument 68 void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache); argument
|
H A D | DictionaryFacilitatorImpl.java | 23 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) { argument 98 public void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache) { argument
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | LruCache.java | 25 public class LruCache<K, V> { class 33 public LruCache(final int capacity) { method in class:LruCache
|
H A D | BaseImageList.java | 37 private final LruCache<Integer, BaseImage> mCache = 38 new LruCache<Integer, BaseImage>(CACHE_CAPACITY);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | LruCache.java | 29 public class LruCache<K, V> { class 37 public LruCache(final int capacity) { method in class:LruCache
|
H A D | FileCache.java | 52 private final LruCache<String, CacheEntry> mEntryMap = 53 new LruCache<String, CacheEntry>(LRU_CAPACITY);
|
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
H A D | TelecomUtils.java | 38 import android.util.LruCache; 55 private static LruCache<String, Bitmap> sContactPhotoNumberCache; 56 private static LruCache<Long, Bitmap> sContactPhotoIdCache; 77 sContactPhotoNumberCache = new LruCache<String, Bitmap>(4194304 /** 4 mb **/) { 119 sContactPhotoIdCache = new LruCache<Long, Bitmap>(4194304 /** 4 mb **/) {
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
H A D | CapabilitiesCache.java | 24 import android.util.LruCache; 40 public class CapabilitiesCache extends LruCache<Uri, LocalPrinterCapabilities> implements
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | RecentFolderList.java | 33 import com.android.mail.utils.LruCache; 60 private final LruCache<String, RecentFolderListEntry> mFolderCache; 132 mFolderCache = new LruCache<String, RecentFolderListEntry>(
|
/packages/apps/Car/Stream/src/com/android/car/stream/telecom/ |
H A D | TelecomUtils.java | 35 import android.util.LruCache; 59 private static LruCache<String, Bitmap> sContactPhotoNumberCache; 60 private static LruCache<Long, Bitmap> sContactPhotoIdCache; 101 sContactPhotoNumberCache = new LruCache<String, Bitmap>(LRU_CACHE_SIZE) { 140 sContactPhotoIdCache = new LruCache<Long, Bitmap>(LRU_CACHE_SIZE) {
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
H A D | BitmapDownloader.java | 22 import android.util.LruCache; 52 * bitmap cache item structure saved in LruCache 70 private LruCache<String, BitmapItem> mMemoryCache; 112 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) {
|
H A D | DrawableDownloader.java | 26 import android.util.LruCache; 73 * bitmap cache item structure saved in LruCache 145 private LruCache<String, BitmapItem> mMemoryCache; 186 mMemoryCache = new LruCache<String, BitmapItem>(cacheSize) {
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
H A D | ConversationItemViewModel.java | 27 import android.util.LruCache; 51 static LruCache<Pair<String, Long>, ConversationItemViewModel> sConversationHeaderMap 52 = new LruCache<Pair<String, Long>, ConversationItemViewModel>(MAX_CACHE_SIZE);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
H A D | AndroidWordLevelSpellCheckerSession.java | 26 import android.util.LruCache; 75 private final LruCache<String, SuggestionsParams> mUnigramSuggestionsInfoCache = 76 new LruCache<>(MAX_CACHE_SIZE);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | ThumbnailCache.java | 25 import android.util.LruCache; 154 // removeKey() will be called by LruCache but we can't modify the map while we're 293 private final class Cache extends LruCache<Pair<Uri, Point>, Entry> {
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | Storage.java | 30 import android.util.LruCache; 65 private static LruCache<Uri, Bitmap> sSessionsToPlaceholderBitmap = 67 new LruCache<Uri, Bitmap>(20 * 1024 * 1024) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | DownloadCache.java | 26 import com.android.gallery3d.common.LruCache; 69 private final LruCache<String, Entry> mEntryMap = 70 new LruCache<String, Entry>(LRU_CAPACITY);
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
H A D | ContactPhotoManagerImpl.java | 51 import android.util.LruCache; 115 private final LruCache<Object, BitmapHolder> mBitmapHolderCache; 123 private final LruCache<Object, Bitmap> mBitmapCache; 157 new LruCache<Object, Bitmap>(bitmapCacheSize) { 173 new LruCache<Object, BitmapHolder>(holderCacheSize) {
|