Home
last modified time | relevance | path

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

/frameworks/ml/nn/runtime/
DMemory.cpp510 std::tie(n, memory) = MemoryAshmem::create(size); in allocate()
523 std::pair<int, std::unique_ptr<MemoryAshmem>> MemoryAshmem::create(uint32_t size) { in create()
531 std::make_unique<MemoryAshmem>(std::move(mapped), std::move(hidlMemory))}; in create()
534 uint8_t* MemoryAshmem::getPointer() const { in getPointer()
538 MemoryAshmem::MemoryAshmem(sp<IMemory> mapped, hidl_memory memory) in MemoryAshmem() function in android::nn::MemoryAshmem
DMemory.h274 class MemoryAshmem : public Memory {
283 static std::pair<int, std::unique_ptr<MemoryAshmem>> create(uint32_t size);
295 MemoryAshmem(sp<hal::IMemory> mapped, hal::hidl_memory memory);
DModelBuilder.h215 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
DManager.cpp280 static std::tuple<int, std::unique_ptr<MemoryAshmem>, std::vector<DataLocation>>
305 auto [n, memory] = MemoryAshmem::create(total); in allocatePointerArgumentsToPool()
677 return MemoryAshmem::create(size); in allocate()
DExecutionPlan.h499 std::unique_ptr<MemoryAshmem> mTemporaries;
DModelBuilder.cpp294 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
DExecutionPlan.cpp760 std::tie(n, mTemporaries) = MemoryAshmem::create(totalSizeOfTemporaries); in Controller()
1056 const std::unique_ptr<MemoryAshmem>& memory = controller->mTemporaries; in getBuffer()
/frameworks/ml/nn/runtime/test/
DTestPartitioningRandom.cpp285 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion()
318 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()