/packages/modules/Bluetooth/system/gd/common/ |
D | lru_cache_test.cc | 26 using bluetooth::common::LruCache; 29 LruCache<int, int> cache(3); // capacity = 3; in TEST() 39 LruCache<int, int> cache_1(2); in TEST() 42 LruCache<int, int> cache_2(2); in TEST() 55 LruCache<int, int> cache_3(3); in TEST() 60 LruCache<int, int> cache_4(2); in TEST() 63 LruCache<int, int> cache_5(2); in TEST() 66 LruCache<int, int> cache_6(3); in TEST() 71 LruCache<int, int> cache(2); in TEST() 84 LruCache<int, std::shared_ptr<int>> cache(2); in TEST() [all …]
|
D | lru_cache.h | 54 class LruCache { 63 explicit LruCache(size_t capacity) : capacity_(capacity) { in LruCache() function 68 LruCache(LruCache&& other) noexcept = default; 69 LruCache& operator=(LruCache&& other) noexcept = default; 73 LruCache(const LruCache& other) : capacity_(other.capacity_), list_map_(other.list_map_) {} in LruCache() function 77 LruCache& operator=(const LruCache& other) { 87 bool operator==(const LruCache& rhs) const { 90 bool operator!=(const LruCache& rhs) const { return !(*this == rhs); } 92 ~LruCache() { clear(); } in ~LruCache() 103 const_iterator find(const Key& key) const { return const_cast<LruCache*>(this)->find(key); } in find()
|
D | metric_id_manager.h | 120 LruCache<hci::Address, int> paired_device_cache_; 121 LruCache<hci::Address, int> temporary_device_cache_;
|
/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
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()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
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()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | TargetPackageInfoGetterTask.java | 23 import android.util.LruCache; 30 private static final LruCache<String, PackageInfo> sCache = new LruCache<>(MAX_CACHE_ENTRIES);
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | WallpaperColorsLoader.java | 23 import android.util.LruCache; 46 private static LruCache<Asset, WallpaperColors> sCache = new LruCache<>(/* maxSize= */ 6);
|
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageCache.java | 21 import android.util.LruCache; 34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; 49 new LruCache<String, ScaledBitmapInfo>(memCacheSize) { in ImageCache()
|
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/ |
D | LruCacheWithExpiry.java | 21 import android.util.LruCache; 47 private final LruCache<K, CacheValue<V>> mMap; 65 mMap = new LruCache<>(maxSize); in LruCacheWithExpiry()
|
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/ |
D | BitmapFetcher.java | 31 import android.util.LruCache; 42 private final LruCache<String, Bitmap> mCache = new LruCache<String, Bitmap>(
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
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()
|
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) { in setValidSpellingWordReadCache() 98 public void setValidSpellingWordWriteCache(final LruCache<String, Boolean> cache) { in setValidSpellingWordWriteCache()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | BitmapCache.java | 25 import androidx.collection.LruCache; 47 private static class MemoryCache extends LruCache<Uri, Bitmap> {
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | StartForFutureActivity.kt | 24 import android.util.LruCache 60 private val futures = LruCache<Int, CompletableFuture<Instrumentation.ActivityResult>>(10)
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | BitmapCachingAsset.java | 24 import android.util.LruCache; 80 private static LruCache<CacheKey, Bitmap> sCache = new LruCache<CacheKey, Bitmap>(cacheSize) {
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
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()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | MediaCache.java | 18 import android.util.LruCache; 30 public class MediaCache<T extends RefCountedMediaResource> extends LruCache<String, T> {
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | LruCache.java | 25 public class LruCache<K, V> { class 33 public LruCache(final int capacity) { in LruCache() method in LruCache
|
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/ |
D | LruCache.java | 29 public class LruCache<K, V> { class 37 public LruCache(final int capacity) { in LruCache() method in LruCache
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | ConnectivityPacketTracker.java | 36 import android.util.LruCache; 146 private final LruCache<String, Integer> mPacketCache; 223 mPacketCache = new LruCache<>(mDependencies.getMaxCapturePktSize()); in ConnectivityPacketTracker()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/ |
D | CachingTargetDataLoader.kt | 25 import androidx.collection.LruCache in <lambda>() 35 private typealias IconCache = LruCache<String, Bitmap> in <lambda>()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | CapabilitiesCache.java | 27 import android.util.LruCache; 67 private final LruCache<Uri, LocalPrinterCapabilities> mCache = new LruCache<>(CACHE_SIZE);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 26 import android.util.LruCache; 75 private final LruCache<String, SuggestionsParams> mUnigramSuggestionsInfoCache = 76 new LruCache<>(MAX_CACHE_SIZE);
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/repository/ |
D | WallpaperRepository.kt | 24 import android.util.LruCache in <lambda>() 61 private val thumbnailCache = LruCache<String, Bitmap>(maxOptions) in <lambda>()
|