Searched refs:MemoryAshmem (Results 1 – 8 of 8) sorted by relevance
/aosp12/packages/modules/NeuralNetworks/runtime/ |
H A D | Memory.cpp | 495 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 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);
|
H A D | ModelBuilder.h | 215 std::unique_ptr<MemoryAshmem> mLargeValueMemory;
|
H A D | ExecutionPlan.h | 213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory; 661 std::unique_ptr<MemoryAshmem> mTemporaries;
|
H A D | ModelBuilder.cpp | 301 std::tie(n, mLargeValueMemory) = MemoryAshmem::create(poolSize); in copyLargeValuesToSharedMemory()
|
H A D | ExecutionPlan.cpp | 364 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 D | Manager.cpp | 1013 return MemoryAshmem::create(size); in allocate()
|
/aosp12/packages/modules/NeuralNetworks/runtime/test/ |
H A D | TestPartitioningRandom.cpp | 301 uint8_t* buffer = reinterpret_cast<nn::MemoryAshmem*>(memory->get())->getPointer(); in getRegion() 334 auto [n, ashmem] = nn::MemoryAshmem::create(memorySize); in layout()
|