Home
last modified time | relevance | path

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

/frameworks/ml/nn/common/
DExecutionBurstController.cpp401 return slot < mMemoryCache.size() ? mMemoryCache[slot] : hidl_memory{}; in getMemories()
439 mMemoryCache[slot] = {}; in freeMemory()
450 mMemoryCache[slot] = memory; in getSlotLocked()
469 CHECK(mMemoryCache.size() < kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()
470 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()
471 mMemoryCache.emplace_back(); in allocateSlotLocked()
564 mMemoryCache(callback), in ExecutionBurstController()
598 const std::vector<int32_t> slots = mMemoryCache->getSlots(request.pools, memoryIds); in compute()
627 std::tie(valid, slot) = mMemoryCache->freeMemory(key); in freeMemory()
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()
106 std::map<int32_t, hidl_memory> mMemoryCache; member in android::nn::__anonf1be77a60111::DefaultBurstExecutorWithCache
/frameworks/av/media/libmedia/
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
/frameworks/ml/nn/common/include/
DExecutionBurstController.h278 std::vector<hardware::hidl_memory> mMemoryCache; variable
339 const sp<ExecutionBurstCallback> mMemoryCache; variable
/frameworks/ml/nn/driver/sample/
DSampleDriver.cpp764 const auto it = mMemoryCache.find(slot); in isCacheEntryPresent()
765 return (it != mMemoryCache.end()) && it->second.has_value(); in isCacheEntryPresent()
769 mMemoryCache[slot] = RunTimePoolInfo::createFromHidlMemory(memory); in addCacheEntry()
772 void removeCacheEntry(int32_t slot) override { mMemoryCache.erase(slot); } in removeCacheEntry()
793 pool.hidlMemory(mMemoryCache[slot]->getHidlMemory()); in execute()
808 [this](int32_t slot) { return *mMemoryCache[slot]; }); in execute()
837 std::map<int32_t, std::optional<RunTimePoolInfo>> mMemoryCache; // cached requestPoolInfos member in android::nn::sample_driver::BurstExecutorWithCache