Searched refs:mMemoryCache (Results 1 – 7 of 7) sorted by relevance
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageCache.java | 34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; field in ImageCache 48 mMemoryCache = in ImageCache() 107 synchronized (mMemoryCache) { in putIfNeeded() 108 ScaledBitmapInfo old = mMemoryCache.put(key, bitmapInfo); in putIfNeeded() 110 mMemoryCache.put(key, old); in putIfNeeded() 127 + mMemoryCache.size() in putIfNeeded() 129 + mMemoryCache.maxSize() in putIfNeeded() 143 ScaledBitmapInfo memBitmapInfo = mMemoryCache.get(key); in get() 145 int hit = mMemoryCache.hitCount(); in get() 146 int miss = mMemoryCache.missCount(); in get() [all …]
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | BitmapCache.java | 33 private final MemoryCache mMemoryCache = new MemoryCache(CACHE_SIZE); field in BitmapCache 36 mMemoryCache.put(key, bitmap); in put() 40 return mMemoryCache.get(key); in get() 44 mMemoryCache.evictAll(); in clear()
|
/packages/modules/NeuralNetworks/common/ |
D | ExecutionBurstController.cpp | 401 return slot < mMemoryCache.size() ? mMemoryCache[slot] : hardware::hidl_memory{}; in getMemories() 440 mMemoryCache[slot] = {}; in freeMemory() 451 mMemoryCache[slot] = memory; in getSlotLocked() 470 CHECK(mMemoryCache.size() < kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked() 471 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked() 472 mMemoryCache.emplace_back(); in allocateSlotLocked() 565 mMemoryCache(callback), in ExecutionBurstController() 599 const std::vector<int32_t> slots = mMemoryCache->getSlots(request.pools, memoryIds); in compute() 628 std::tie(valid, slot) = mMemoryCache->freeMemory(key); in freeMemory()
|
D | ExecutionBurstServer.cpp | 60 const auto it = mMemoryCache.find(slot); in isCacheEntryPresent() 61 return (it != mMemoryCache.end()) && it->second.valid(); in isCacheEntryPresent() 65 mMemoryCache[slot] = memory; in addCacheEntry() 68 void removeCacheEntry(int32_t slot) override { mMemoryCache.erase(slot); } in removeCacheEntry() 76 [this](int32_t slot) { return mMemoryCache[slot]; }); in execute() 108 std::map<int32_t, hardware::hidl_memory> mMemoryCache; member in android::nn::__anon73a846f30111::DefaultBurstExecutorWithCache
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/imaging/ |
D | LocalImageFetcher.java | 87 private final LruCache<ImageKey, Drawable> mMemoryCache; field in LocalImageFetcher 100 mMemoryCache = new LruCache<ImageKey, Drawable>(cacheSizeMB * MB) { in LocalImageFetcher() 128 Drawable cached = mMemoryCache.get(key); in getImage() 196 mMemoryCache.put(key, drawable); in fulfilRequests()
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | SampleDriver.cpp | 785 const auto it = mMemoryCache.find(slot); in isCacheEntryPresent() 786 return (it != mMemoryCache.end()) && it->second.has_value(); in isCacheEntryPresent() 790 mMemoryCache[slot] = RunTimePoolInfo::createFromMemory(uncheckedConvert(memory)); in addCacheEntry() 793 void removeCacheEntry(int32_t slot) override { mMemoryCache.erase(slot); } in removeCacheEntry() 814 pool.hidlMemory(convertToV1_0(mMemoryCache[slot]->getMemory())); in execute() 829 [this](int32_t slot) { return *mMemoryCache[slot]; }); in execute() 860 std::map<int32_t, std::optional<RunTimePoolInfo>> mMemoryCache; // cached requestPoolInfos member in android::nn::sample_driver::BurstExecutorWithCache
|
/packages/modules/NeuralNetworks/common/include/ |
D | ExecutionBurstController.h | 278 std::vector<hardware::hidl_memory> mMemoryCache; variable 339 const sp<ExecutionBurstCallback> mMemoryCache; variable
|