Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/util/
DLruCacheTest.java35 LruCache<String, String> cache = new LruCache<String, String>(3); in testStatistics()
84 LruCache<String, String> cache = newCreatingCache(); in testStatisticsWithCreate()
108 LruCache<String, String> cache = newCreatingCache(); in testCreateOnCacheMiss()
114 LruCache<String, String> cache = newCreatingCache(); in testNoCreateOnCacheHit()
121 new LruCache<String, String>(0); in testConstructorDoesNotAllowZeroCacheSize()
128 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullKey()
137 LruCache<String, String> cache = new LruCache<String, String>(3); in testCannotPutNullValue()
146 LruCache<String, String> cache = new LruCache<String, String>(3); in testToString()
164 LruCache<String, String> cache = new LruCache<String, String>(1); in testEvictionWithSingletonCache()
172 LruCache<String, String> cache = newRemovalLogCache(log); in testEntryEvictedWhenFull()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DBitmapLoader.java24 import androidx.collection.LruCache;
50 static LruCache<Long, Bitmap> sLruCache;
60 static LruCache<Long, Bitmap> getLruCache(Context context) { in getLruCache()
66 sLruCache = new LruCache<Long, Bitmap>(maxBytes) { in getLruCache()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DTaskKeyLruCache.java19 import android.util.LruCache;
39 private final LruCache<Integer, V> mCache;
48 mCache = new LruCache<Integer, V>(cacheSize) { in TaskKeyLruCache()
DIconLoader.java33 import android.util.LruCache;
43 protected final LruCache<ComponentName, ActivityInfo> mActivityInfoCache;
45 public IconLoader(Context context, TaskKeyLruCache<Drawable> iconCache, LruCache<ComponentName, in IconLoader()
167 LruCache<ComponentName, ActivityInfo> activityInfoCache) { in DefaultIconLoader()
/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 androidx.collection.LruCache;
56 private final LruCache<Uri, byte[]> mPhotoCacheMap;
60 mPhotoCacheMap = new LruCache<Uri, byte[]>(PHOTO_CACHE_SIZE); in DefaultPhotoManager()
/frameworks/base/services/core/java/com/android/server/
DAttributeCache.java28 import android.util.LruCache;
44 private final LruCache<String, Package> mPackages = new LruCache<>(CACHE_SIZE);
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseFragmentPagerAdapter.java24 import androidx.collection.LruCache;
55 private LruCache<String, Fragment> mFragmentCache = new FragmentCache(DEFAULT_CACHE_SIZE);
177 private class FragmentCache extends LruCache<String, Fragment> {
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java24 import android.util.LruCache;
38 private final LruCache<Integer, WifiP2pGroup> mGroups;
56 mGroups = new LruCache<Integer, WifiP2pGroup>(CREDENTIAL_MAX_NUM) { in WifiP2pGroupList()
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkScoreCache.java29 import android.util.LruCache;
66 private final LruCache<String, ScoredNetwork> mCache;
86 mCache = new LruCache<>(maxCacheSize); in WifiNetworkScoreCache()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/model/
DRecentsTaskLoader.java29 import android.util.LruCache;
70 private final LruCache<ComponentName, ActivityInfo> mActivityInfoCache;
114 mActivityInfoCache = new LruCache<>(numRecentTasks); in RecentsTaskLoader()
121 LruCache<ComponentName, ActivityInfo> activityInfoCache) { in createNewIconLoader()
/frameworks/base/core/java/android/util/
DLruCache.java63 public class LruCache<K, V> { class
82 public LruCache(int maxSize) { in LruCache() method in LruCache
DHashedStringCache.java53 private final LruCache<String, String> mHashes;
65 mHashes = new LruCache<>(HASH_CACHE_SIZE); in HashedStringCache()
/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/tools/aapt2/process/
DSymbolTable.h110 android::LruCache<ResourceName, std::shared_ptr<Symbol>> cache_;
111 android::LruCache<ResourceId, std::shared_ptr<Symbol>> id_cache_;
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotCache.java22 import android.util.LruCache;
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java38 import android.util.LruCache;
88 private LruCache<String, LookupResult> mPeopleCache;
100 mPeopleCache = new LruCache<String, LookupResult>(PEOPLE_CACHE_SIZE); in initialize()
/frameworks/base/core/java/android/provider/
DFontsContract.java43 import android.util.LruCache;
165 private static final LruCache<String, Typeface> sTypefaceCache = new LruCache<>(16);
/frameworks/base/core/java/android/widget/
DSpellChecker.java28 import android.util.LruCache;
102 private final LruCache<Long, SuggestionSpan> mSuggestionSpanCache =
103 new LruCache<Long, SuggestionSpan>(SUGGESTION_SPAN_CACHE_SIZE);
/frameworks/base/graphics/java/android/graphics/
DTypeface.java42 import android.util.LruCache;
124 private static final LruCache<String, Typeface> sDynamicTypefaceCache = new LruCache<>(16);
/frameworks/minikin/include/minikin/
DLayoutCache.h208 android::LruCache<LayoutCacheKey, LayoutPiece*> mCache GUARDED_BY(mMutex);
/frameworks/base/core/java/android/app/
DResourcesManager.java41 import android.util.LruCache;
135 private final LruCache<ApkKey, ApkAssets> mLoadedApkAssets =
136 (ENABLE_APK_ASSETS_CACHE) ? new LruCache<>(3) : null;
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java60 import android.util.LruCache;
82 private static LruCache<String, Drawable.ConstantState> sDrawableCache = new LruCache<>(50);
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnection.java30 import android.util.LruCache;
1351 extends LruCache<String, PreparedStatement> {

12