Home
last modified time | relevance | path

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

/aosp12/packages/modules/NeuralNetworks/runtime/
H A DMemory.cpp495 std::tie(n, memory) = MemoryAshmem::create(size); in allocate()
508 std::pair<int, std::unique_ptr<MemoryAshmem>> MemoryAshmem::create(uint32_t size) { in create()
520 std::make_unique<MemoryAshmem>(std::move(memory).value(), std::move(mapping).value())}; in create()
523 uint8_t* MemoryAshmem::getPointer() const { in getPointer()
527 MemoryAshmem::MemoryAshmem(SharedMemory memory, Mapping mapping) in MemoryAshmem() function in android::nn::MemoryAshmem
H A 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);
H A DModelBuilder.h215 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
H A DExecutionPlan.h213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory;
661 std::unique_ptr<MemoryAshmem> mTemporaries;
H A DModelBuilder.cpp301 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
H A DExecutionPlan.cpp364 std::tie(n, memory) = MemoryAshmem::create(newSize); in allocate()
1143 std::tie(n, mTemporaries) = MemoryAshmem::create(totalSizeOfTemporaries); in Controller()
1470 const std::unique_ptr<MemoryAshmem>& memory = controller->mTemporaries; in getBuffer()
H A DManager.cpp1013 return MemoryAshmem::create(size); in allocate()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestPartitioningRandom.cpp301 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion()
334 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()