Searched refs:MemoryAshmem (Results 1 – 8 of 8) sorted by relevance
/packages/modules/NeuralNetworks/runtime/ |
D | Memory.cpp | 263 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
|
D | Memory.h | 264 class MemoryAshmem : public RuntimeMemory { 273 static std::pair<int, std::unique_ptr<MemoryAshmem>> create(uint32_t size); 285 MemoryAshmem(SharedMemory memory, Mapping mapped);
|
D | ModelBuilder.h | 229 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
|
D | ExecutionPlan.h | 213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory; 661 std::unique_ptr<MemoryAshmem> mTemporaries;
|
D | ExecutionPlan.cpp | 404 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()
|
D | ModelBuilder.cpp | 306 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
|
D | Manager.cpp | 1062 return MemoryAshmem::create(size); in allocate()
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestPartitioningRandom.cpp | 298 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion() 331 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()
|