/frameworks/base/core/tests/coretests/src/android/util/ |
D | LruCacheTest.java | 34 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/ |
D | ThumbnailCache.java | 21 import android.util.LruCache; 23 public class ThumbnailCache extends LruCache<Uri, Bitmap> {
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | CursorObjectAdapter.java | 18 import android.util.LruCache; 27 private final LruCache<Integer, Object> mItemCache = new LruCache<Integer, Object>(CACHE_SIZE);
|
D | ViewsStateBundle.java | 18 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/ |
D | UnrefedBitmapCache.java | 20 import android.util.LruCache; 40 private LruCache<RequestKey, NullReusableBitmap> mNullRequests; 50 mNullRequests = new LruCache<RequestKey, NullReusableBitmap>(nullCapacity); in UnrefedBitmapCache()
|
D | UnrefedPooledCache.java | 20 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/ |
D | DefaultPhotoManager.java | 24 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/ |
D | TaskKeyLruCache.java | 20 import android.util.LruCache; 43 private final LruCache<Integer, V> mCache; 52 mCache = new LruCache<Integer, V>(cacheSize) { in TaskKeyLruCache()
|
D | RecentsTaskLoader.java | 31 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/ |
D | WifiP2pGroupList.java | 23 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/ |
D | BaseFragmentPagerAdapter.java | 24 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/ |
D | cache-bitmap.jd | 52 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<String, Bitmap> mMemoryCache; 101 // OutOfMemory exception. Stored in kilobytes as LruCache takes an 108 mMemoryCache = new LruCache<String, Bitmap>(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/ |
D | DocumentArchiveHelper.java | 32 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/ |
D | PatchCache.cpp | 37 , 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()
|
D | TessellationCache.h | 204 LruCache<Description, Buffer*> mCache; 216 LruCache<ShadowDescription, Task<vertexBuffer_pair_t>*> mShadowCache;
|
D | TextureCache.cpp | 36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity) in TextureCache() 92 LruCache<uint32_t, Texture*>::Iterator iter(mCache); in resetMarkInUse()
|
D | TextureCache.h | 139 LruCache<uint32_t, Texture*> mCache;
|
D | TessellationCache.cpp | 295 , 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/ |
D | SymbolTable.h | 102 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/ |
D | LruCache.java | 66 public class LruCache<K, V> { class 84 public LruCache(int maxSize) { in LruCache() method in LruCache
|
/frameworks/base/core/java/android/util/ |
D | LruCache.java | 62 public class LruCache<K, V> { class 80 public LruCache(int maxSize) { in LruCache() method in LruCache
|
/frameworks/support/v4/java/android/support/v4/util/ |
D | LruCache.java | 29 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/ |
D | TokenCache.java | 20 import android.util.LruCache; 83 private static class TokenLruCache extends LruCache<Key, Value> {
|
/frameworks/base/graphics/java/android/graphics/ |
D | Typeface.java | 22 import android.util.LruCache; 70 private static final LruCache<String, Typeface> sDynamicTypefaceCache = new LruCache<>(16);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 35 import android.util.LruCache; 85 private LruCache<String, LookupResult> mPeopleCache; 97 mPeopleCache = new LruCache<String, LookupResult>(PEOPLE_CACHE_SIZE); in initialize()
|