Home
last modified time | relevance | path

Searched refs:maybeMemory (Results 1 – 3 of 3) sorted by relevance

/packages/modules/NeuralNetworks/common/
DSharedMemoryAndroid.cpp85 hidl_memory maybeMemory; in allocateSharedMemory() local
86 auto fn = [&maybeMemory](bool success, const hidl_memory& memory) { in allocateSharedMemory()
88 maybeMemory = memory; in allocateSharedMemory()
93 if (!maybeMemory.valid()) { in allocateSharedMemory()
97 if (maybeMemory.handle()->numFds != 1) { in allocateSharedMemory()
99 << maybeMemory.handle()->numFds << " numFds, but expected 1"; in allocateSharedMemory()
101 if (maybeMemory.handle()->numInts != 0) { in allocateSharedMemory()
103 << maybeMemory.handle()->numInts << " numInts, but expected 0"; in allocateSharedMemory()
106 CHECK_LE(maybeMemory.size(), std::numeric_limits<size_t>::max()); in allocateSharedMemory()
107 const int fd = maybeMemory.handle()->data[0]; in allocateSharedMemory()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp47 if (const auto* maybeMemory = std::get_if<SharedMemory>(&pool)) { in createRunTimePoolInfos() local
48 auto buffer = RunTimePoolInfo::createFromMemory(*maybeMemory); in createRunTimePoolInfos()
/packages/modules/NeuralNetworks/runtime/
DManager.cpp542 if (const auto* maybeMemory = std::get_if<SharedMemory>(&pool)) { in execute() local
543 auto cacheHold = burstController->cacheMemory(*maybeMemory); in execute()
681 if (const auto* maybeMemory = std::get_if<SharedMemory>(&pool)) { in compute() local
682 auto cacheHold = burstController->cacheMemory(*maybeMemory); in compute()