/aosp12/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LruCacheTest.java | 35 LruCache<String, String> cache = new LruCache<String, String>(3); in testStatistics() 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() 200 LruCache<String, String> cache = new LruCache<String, String>(10) { in testCustomSizesImpactsSize() 216 LruCache<String, String> cache = new LruCache<String, String>(4) { in testEvictionWithCustomSizes() 245 LruCache<String, int[]> cache = new LruCache<String, int[]>(4) { in testEvictionThrowsWhenSizesAreInconsistent() 267 LruCache<String, String> cache = new LruCache<String, String>(4) { in testEvictionThrowsWhenSizesAreNegative() 339 LruCache<String, String> cache = new LruCache<String, String>(10); in testRemoveAbsentElement() [all …]
|
/aosp12/system/core/libutils/include/utils/ |
H A D | LruCache.h | 38 class LruCache { 40 explicit LruCache(uint32_t maxCapacity); 41 virtual ~LruCache(); 57 LruCache(const LruCache& that); // disallow copy constructor 126 Iterator(const LruCache<TKey, TValue>& cache): in Iterator() 155 const LruCache<TKey, TValue>& mCache; 163 LruCache<TKey, TValue>::LruCache(uint32_t maxCapacity) in LruCache() function 174 LruCache<TKey, TValue>::~LruCache() { in ~LruCache() 185 size_t LruCache<TKey, TValue>::size() const { in size() 238 bool LruCache<TKey, TValue>::removeOldest() { in removeOldest() [all …]
|
/aosp12/system/bt/gd/common/ |
H A D | lru_cache_test.cc | 27 using bluetooth::common::LruCache; 40 LruCache<int, int> cache_1(2); in TEST() 43 LruCache<int, int> cache_2(2); in TEST() 56 LruCache<int, int> cache_3(3); in TEST() 61 LruCache<int, int> cache_4(2); in TEST() 72 LruCache<int, int> cache(2); in TEST() 125 LruCache<int, LruCache<int, int>> cache(2); in TEST() 126 LruCache<int, int> m1(2); in TEST() 131 LruCache<int, int> m2(2); in TEST() 139 LruCache<int, int> cache(3); in TEST() [all …]
|
H A D | lru_cache.h | 53 class LruCache { 62 explicit LruCache(size_t capacity) : capacity_(capacity) { in LruCache() function 67 LruCache(LruCache&& other) noexcept = default; 68 LruCache& operator=(LruCache&& other) noexcept = default; 72 LruCache(const LruCache& other) : capacity_(other.capacity_), list_map_(other.list_map_) {} in LruCache() function 76 LruCache& operator=(const LruCache& other) { 86 bool operator==(const LruCache& rhs) const { 89 bool operator!=(const LruCache& rhs) const { 93 ~LruCache() { in ~LruCache() 108 return const_cast<LruCache*>(this)->find(key); in find()
|
H A D | metric_id_manager.h | 122 LruCache<hci::Address, int> paired_device_cache_; 123 LruCache<hci::Address, int> temporary_device_cache_;
|
/aosp12/system/core/libutils/ |
H A D | LruCache_test.cpp | 348 LruCache<int, int> cache(100); in TEST_F() 355 LruCache<int, int>::Iterator it(cache); in TEST_F() 368 LruCache<int, int> cache(100); in TEST_F() 370 LruCache<int, int>::Iterator it(cache); in TEST_F() 380 LruCache<int, int> cache(100); in TEST_F() 383 LruCache<int, int>::Iterator it(cache); in TEST_F() 392 LruCache<int, int> cache(100); in TEST_F() 397 LruCache<int, int>::Iterator it(cache); in TEST_F() 406 LruCache<int, int> cache(100); in TEST_F() 422 LruCache<int, int> cache(100); in TEST_F() [all …]
|
/aosp12/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
H A D | LruCacheUnitTests.java | 9 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()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | ExpirableCache.java | 19 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()
|
/aosp12/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/ |
H A D | BitmapLoader.java | 24 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()
|
/aosp12/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);
|
/aosp12/frameworks/layoutlib/bridge/src/android/graphics/drawable/ |
H A D | DrawableInflater_Delegate.java | 22 import android.util.LruCache; 28 private static final LruCache<String, Constructor<? extends Drawable>> CONSTRUCTOR_MAP = 29 new LruCache<>(20);
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
H A D | WallpaperColorsLoader.java | 23 import android.util.LruCache; 46 private static LruCache<Asset, WallpaperColors> sCache = new LruCache<>(/* maxSize= */ 6);
|
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | UnrefedBitmapCache.java | 20 import android.util.LruCache; 40 private LruCache<RequestKey, NullReusableBitmap> mNullRequests; 50 mNullRequests = new LruCache<RequestKey, NullReusableBitmap>(nullCapacity); in UnrefedBitmapCache()
|
/aosp12/packages/apps/TV/src/com/android/tv/util/images/ |
H A D | ImageCache.java | 21 import android.util.LruCache; 34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; 49 new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache()
|
/aosp12/frameworks/opt/chips/src/com/android/ex/chips/ |
H A D | DefaultPhotoManager.java | 24 import androidx.collection.LruCache; 56 private final LruCache<Uri, byte[]> mPhotoCacheMap; 60 mPhotoCacheMap = new LruCache<Uri, byte[]>(PHOTO_CACHE_SIZE); in DefaultPhotoManager()
|
/aosp12/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
H A D | BitmapFetcher.java | 31 import android.util.LruCache; 42 private final LruCache<String, Bitmap> mCache = new LruCache<String, Bitmap>(
|
/aosp12/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); in setValidSpellingWordReadCache() 68 void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache); in setValidSpellingWordWriteCache()
|
/aosp12/frameworks/base/core/java/android/text/format/ |
H A D | DateIntervalFormat.java | 26 import android.util.LruCache; 41 private static final LruCache<String, android.icu.text.DateIntervalFormat> CACHED_FORMATTERS = 42 new LruCache<>(8);
|
H A D | DateTimeFormat.java | 25 import android.util.LruCache; 35 static class FormatterCache extends LruCache<String, DateFormat> {
|
/aosp12/frameworks/base/core/java/com/android/internal/policy/ |
H A D | AttributeCache.java | 27 import android.util.LruCache; 44 private final LruCache<String, Package> mPackages = new LruCache<>(CACHE_SIZE);
|
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
H A D | BitmapCache.java | 25 import androidx.collection.LruCache; 47 private static class MemoryCache extends LruCache<Uri, Bitmap> {
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
H A D | BitmapCachingAsset.java | 23 import android.util.LruCache; 76 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
|
/aosp12/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/ |
H A D | BaseFragmentPagerAdapter.java | 24 import androidx.collection.LruCache; 55 private LruCache<String, Fragment> mFragmentCache = new FragmentCache(DEFAULT_CACHE_SIZE); 177 private class FragmentCache extends LruCache<String, Fragment> {
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
H A D | WifiP2pGroupList.java | 23 import android.util.LruCache; 43 private final LruCache<Integer, WifiP2pGroup> mGroups; 62 mGroups = new LruCache<Integer, WifiP2pGroup>(CREDENTIAL_MAX_NUM) { in WifiP2pGroupList()
|
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/imaging/ |
H A D | LocalImageFetcher.java | 29 import android.util.LruCache; 81 private final LruCache<String, Executor> mThreadPools; 87 private final LruCache<ImageKey, Drawable> mMemoryCache; 96 mThreadPools = new LruCache<>(maxPools); in LocalImageFetcher() 100 mMemoryCache = new LruCache<ImageKey, Drawable>(cacheSizeMB * MB) { in LocalImageFetcher()
|