Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/util/
DLruCacheTest.java34 LruCache<String, String> cache = new LruCache<String, String>(3); in testStatistics()
83 LruCache<String, String> cache = newCreatingCache(); in testStatisticsWithCreate()
107 LruCache<String, String> cache = newCreatingCache(); in testCreateOnCacheMiss()
113 LruCache<String, String> cache = newCreatingCache(); in testNoCreateOnCacheHit()
120 new LruCache<String, String>(0); in testConstructorDoesNotAllowZeroCacheSize()
127 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullKey()
136 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullValue()
145 LruCache<String, String> cache = new LruCache<String, String>(3); in testToString()
163 LruCache<String, String> cache = new LruCache<String, String>(1); in testEvictionWithSingletonCache()
171 LruCache<String, String> cache = newRemovalLogCache(log); in testEntryEvictedWhenFull()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DThumbnailCache.java21 import android.util.LruCache;
23 public class ThumbnailCache extends LruCache<Uri, Bitmap> {
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DCursorObjectAdapter.java18 import android.util.LruCache;
27 private final LruCache<Integer, Object> mItemCache = new LruCache<Integer, Object>(CACHE_SIZE);
DViewsStateBundle.java18 import android.support.v4.util.LruCache;
51 private LruCache<String, SparseArray<Parcelable>> mChildStates;
135 mChildStates = new LruCache<String, SparseArray<Parcelable>>(mLimitNumber); in applyPolicyChanges()
139 mChildStates = new LruCache<String, SparseArray<Parcelable>>(UNLIMITED); in applyPolicyChanges()
/frameworks/opt/bitmap/src/com/android/bitmap/
DUnrefedBitmapCache.java20 import android.util.LruCache;
40 private LruCache<RequestKey, NullReusableBitmap> mNullRequests;
50 mNullRequests = new LruCache<RequestKey, NullReusableBitmap>(nullCapacity); in UnrefedBitmapCache()
DUnrefedPooledCache.java20 import android.util.LruCache;
49 private final LruCache<K, V> mNonPooledCache;
220 private class NonPooledCache extends LruCache<K, V> {
/frameworks/opt/chips/src/com/android/ex/chips/
DDefaultPhotoManager.java24 import android.support.v4.util.LruCache;
56 private final LruCache<Uri, byte[]> mPhotoCacheMap;
60 mPhotoCacheMap = new LruCache<Uri, byte[]>(PHOTO_CACHE_SIZE); in DefaultPhotoManager()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
DTaskKeyLruCache.java20 import android.util.LruCache;
43 private final LruCache<Integer, V> mCache;
52 mCache = new LruCache<Integer, V>(cacheSize) { in TaskKeyLruCache()
DRecentsTaskLoader.java31 import android.util.LruCache;
257 private final LruCache<ComponentName, ActivityInfo> mActivityInfoCache;
314 mActivityInfoCache = new LruCache(numRecentTasks); in RecentsTaskLoader()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java23 import android.util.LruCache;
36 private final LruCache<Integer, WifiP2pGroup> mGroups;
53 mGroups = new LruCache<Integer, WifiP2pGroup>(CREDENTIAL_MAX_NUM) { in WifiP2pGroupList()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseFragmentPagerAdapter.java24 import android.support.v4.util.LruCache;
55 private LruCache<String, Fragment> mFragmentCache = new FragmentCache(DEFAULT_CACHE_SIZE);
177 private class FragmentCache extends LruCache<String, Fragment> {
/frameworks/base/docs/html/training/displaying-bitmaps/
Dcache-bitmap.jd52 memory. The {@link android.util.LruCache} class (also available in the <a
53 href="{@docRoot}reference/android/support/v4/util/LruCache.html">Support Library</a> for use back
66 <p>In order to choose a suitable size for a {@link android.util.LruCache}, a number of factors
81 android.util.LruCache} objects for different groups of bitmaps.</li>
92 <p>Here’s an example of setting up a {@link android.util.LruCache} for bitmaps:</p>
95 private LruCache&lt;String, Bitmap&gt; mMemoryCache;
101 // OutOfMemory exception. Stored in kilobytes as LruCache takes an
108 mMemoryCache = new LruCache&lt;String, Bitmap&gt;(cacheSize) {
136 <p>When loading a bitmap into an {@link android.widget.ImageView}, the {@link android.util.LruCache}
318 <p>Here’s an example of retaining a {@link android.util.LruCache} object across configuration
[all …]
/frameworks/support/documents-archive/src/android/support/provider/
DDocumentArchiveHelper.java32 import android.util.LruCache;
75 private final LruCache<String, Loader> mArchives =
76 new LruCache<String, Loader>(OPENED_ARCHIVES_CACHE_SIZE) {
292 final LruCache<String, Loader> finalArchives = mArchives; in getInstanceUncheckedLocked()
/frameworks/base/libs/hwui/
DPatchCache.cpp37 , mCache(LruCache<PatchDescription, Patch*>::kUnlimitedCapacity) in PatchCache()
91 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in clearCache()
107 LruCache<PatchDescription, Patch*>::Iterator i(mCache); in remove()
DTessellationCache.h204 LruCache<Description, Buffer*> mCache;
216 LruCache<ShadowDescription, Task<vertexBuffer_pair_t>*> mShadowCache;
DTextureCache.cpp36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity) in TextureCache()
92 LruCache<uint32_t, Texture*>::Iterator iter(mCache); in resetMarkInUse()
DTextureCache.h139 LruCache<uint32_t, Texture*> mCache;
DTessellationCache.cpp295 , mCache(LruCache<Description, Buffer*>::kUnlimitedCapacity) in TessellationCache()
296 … , mShadowCache(LruCache<ShadowDescription, Task<vertexBuffer_pair_t*>*>::kUnlimitedCapacity) { in TessellationCache()
311 LruCache<Description, Buffer*>::Iterator iter(mCache); in getSize()
/frameworks/base/tools/aapt2/process/
DSymbolTable.h102 android::LruCache<ResourceName, std::shared_ptr<Symbol>> mCache;
103 android::LruCache<ResourceId, std::shared_ptr<Symbol>> mIdCache;
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DLruCache.java66 public class LruCache<K, V> { class
84 public LruCache(int maxSize) { in LruCache() method in LruCache
/frameworks/base/core/java/android/util/
DLruCache.java62 public class LruCache<K, V> { class
80 public LruCache(int maxSize) { in LruCache() method in LruCache
/frameworks/support/v4/java/android/support/v4/util/
DLruCache.java29 public class LruCache<K, V> { class
47 public LruCache(int maxSize) { in LruCache() method in LruCache
/frameworks/base/services/core/java/com/android/server/accounts/
DTokenCache.java20 import android.util.LruCache;
83 private static class TokenLruCache extends LruCache<Key, Value> {
/frameworks/base/graphics/java/android/graphics/
DTypeface.java22 import android.util.LruCache;
70 private static final LruCache<String, Typeface> sDynamicTypefaceCache = new LruCache<>(16);
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java35 import android.util.LruCache;
85 private LruCache<String, LookupResult> mPeopleCache;
97 mPeopleCache = new LruCache<String, LookupResult>(PEOPLE_CACHE_SIZE); in initialize()

123