Searched refs:mMemoryCache (Results 1 – 5 of 5) sorted by relevance
399 return slot < mMemoryCache.size() ? mMemoryCache[slot] : hidl_memory{}; in getMemories()437 mMemoryCache[slot] = {}; in freeMemory()448 mMemoryCache[slot] = memory; in getSlotLocked()467 CHECK(mMemoryCache.size() < kMaxNumberOfSlots) << "Exceeded maximum number of slots!"; in allocateSlotLocked()468 const int32_t slot = static_cast<int32_t>(mMemoryCache.size()); in allocateSlotLocked()469 mMemoryCache.emplace_back(); in allocateSlotLocked()562 mMemoryCache(callback), in ExecutionBurstController()596 const std::vector<int32_t> slots = mMemoryCache->getSlots(request.pools, memoryIds); in compute()625 std::tie(valid, slot) = mMemoryCache->freeMemory(key); in freeMemory()
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()106 std::map<int32_t, hidl_memory> mMemoryCache; member in android::nn::__anonf1be77a60111::DefaultBurstExecutorWithCache
99 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
278 std::vector<hardware::hidl_memory> mMemoryCache; variable339 const sp<ExecutionBurstCallback> mMemoryCache; variable
763 const auto it = mMemoryCache.find(slot); in isCacheEntryPresent()764 return (it != mMemoryCache.end()) && it->second.has_value(); in isCacheEntryPresent()768 mMemoryCache[slot] = RunTimePoolInfo::createFromHidlMemory(memory); in addCacheEntry()771 void removeCacheEntry(int32_t slot) override { mMemoryCache.erase(slot); } in removeCacheEntry()792 pool.hidlMemory(mMemoryCache[slot]->getHidlMemory()); in execute()807 [this](int32_t slot) { return *mMemoryCache[slot]; }); in execute()836 std::map<int32_t, std::optional<RunTimePoolInfo>> mMemoryCache; // cached requestPoolInfos member in android::nn::sample_driver::BurstExecutorWithCache