Home
last modified time | relevance | path

Searched refs:MemoryAshmem (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NeuralNetworks/runtime/
DMemory.cpp263 const auto [n, runtimeMemory] = MemoryAshmem::create(srcMetadata.logicalSize); in copyIBuffers()
507 std::tie(n, memory) = MemoryAshmem::create(size); in allocate()
520 std::pair<int, std::unique_ptr<MemoryAshmem>> MemoryAshmem::create(uint32_t size) { in create()
532 std::make_unique<MemoryAshmem>(std::move(memory).value(), std::move(mapping).value())}; in create()
535 uint8_t* MemoryAshmem::getPointer() const { in getPointer()
539 MemoryAshmem::MemoryAshmem(SharedMemory memory, Mapping mapping) in MemoryAshmem() function in android::nn::MemoryAshmem
DMemory.h264 class MemoryAshmem : public RuntimeMemory {
273 static std::pair<int, std::unique_ptr<MemoryAshmem>> create(uint32_t size);
285 MemoryAshmem(SharedMemory memory, Mapping mapped);
DModelBuilder.h229 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
DExecutionPlan.h213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory;
661 std::unique_ptr<MemoryAshmem> mTemporaries;
DExecutionPlan.cpp404 std::tie(n, memory) = MemoryAshmem::create(newSize); in allocate()
1195 std::tie(n, mTemporaries) = MemoryAshmem::create(totalSizeOfTemporaries); in Controller()
1522 const std::unique_ptr<MemoryAshmem>& memory = controller->mTemporaries; in getBuffer()
DModelBuilder.cpp306 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
DManager.cpp1062 return MemoryAshmem::create(size); in allocate()
/packages/modules/NeuralNetworks/runtime/test/
DTestPartitioningRandom.cpp298 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion()
331 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()