Searched refs:MemoryAshmem (Results 1 – 8 of 8) sorted by relevance
/frameworks/ml/nn/runtime/ |
D | Memory.cpp | 510 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
|
D | Memory.h | 274 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);
|
D | ModelBuilder.h | 215 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
|
D | Manager.cpp | 280 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()
|
D | ExecutionPlan.h | 499 std::unique_ptr<MemoryAshmem> mTemporaries;
|
D | ModelBuilder.cpp | 294 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
|
D | ExecutionPlan.cpp | 760 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/ |
D | TestPartitioningRandom.cpp | 285 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion() 318 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()
|