Home
last modified time | relevance | path

Searched refs:mMemoryCache (Results 1 – 12 of 12) sorted by relevance

/aosp12/packages/apps/TV/src/com/android/tv/util/images/
H A DImageCache.java34 private final LruCache<String, ScaledBitmapInfo> mMemoryCache; field in ImageCache
48 mMemoryCache = in ImageCache()
107 synchronized (mMemoryCache) { 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()
162 return mMemoryCache.remove(key); in remove()
[all …]
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
H A DBitmapCache.java33 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()
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/src/
H A DExecutionBurstController.cpp118 mMemoryCache.reserve(kPreallocatedCount); in MemoryCache()
151 mMemoryCache[slot] = memory; in cacheMemory()
168 if (slot < 0 || static_cast<size_t>(slot) >= mMemoryCache.size()) { in getMemory()
169 return NN_ERROR() << "Invalid slot: " << slot << " vs " << mMemoryCache.size(); in getMemory()
171 return mMemoryCache[slot]; in getMemory()
182 mMemoryCache[slot] = {}; in freeMemory()
200 CHECK_LT(mMemoryCache.size(), kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()
201 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()
202 mMemoryCache.emplace_back(); in allocateSlotLocked()
299 mMemoryCache(std::move(memoryCache)), in ExecutionBurstController()
[all …]
H A DExecutionBurstServer.cpp182 mMemoryCache(mBurstExecutor, mCallback) { in ExecutionBurstServer()
197 mMemoryCache.removeCacheEntry(slot); in freeMemory()
245 NN_TRY(makeExecutionFailure(mMemoryCache.getCacheEntries(slotsOfPools))); in execute()
/aosp12/packages/modules/NeuralNetworks/common/
H A DExecutionBurstController.cpp401 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()
H A DExecutionBurstServer.cpp60 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::__anon8afc4f580110::DefaultBurstExecutorWithCache
/aosp12/frameworks/av/media/libmedia/
H A DIMediaSource.cpp99 mMemoryCache.reset(); in stop()
141 mMemoryCache.gc(); in readMultiple()
164 mMemoryCache.insert(index, mem); in readMultiple()
166 mem = mMemoryCache.lookup(index); in readMultiple()
266 } mMemoryCache; member in android::BpMediaSource
/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/imaging/
H A DLocalImageFetcher.java87 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()
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
H A DExecutionBurstController.h129 std::vector<nn::SharedMemory> mMemoryCache GUARDED_BY(mMutex);
197 const std::shared_ptr<MemoryCache> mMemoryCache; variable
H A DExecutionBurstServer.h150 MemoryCache mMemoryCache; variable
/aosp12/packages/modules/NeuralNetworks/common/include/
H A DExecutionBurstController.h278 std::vector<hardware::hidl_memory> mMemoryCache; variable
339 const sp<ExecutionBurstCallback> mMemoryCache; variable
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DSampleDriver.cpp785 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