Searched refs:MemoryAHWB (Results 1 – 4 of 4) sorted by relevance
/frameworks/ml/nn/runtime/test/ |
D | GeneratedTestUtils.cpp | 50 class MemoryAHWB : public Memory { class 52 static std::unique_ptr<MemoryAHWB> create(uint32_t size) { in create() 70 return std::unique_ptr<MemoryAHWB>(new MemoryAHWB(ahwb, buffer)); in create() 73 ~MemoryAHWB() override { in ~MemoryAHWB() 81 MemoryAHWB(AHardwareBuffer* ahwb, void* buffer) : Memory(ahwb), mAhwb(ahwb), mBuffer(buffer) {} in MemoryAHWB() function in android::nn::generated_tests::MemoryAHWB 87 static std::unique_ptr<MemoryAHWB> createConstantReferenceMemory(const TestModel& testModel) { in createConstantReferenceMemory() 102 return size == 0 ? nullptr : MemoryAHWB::create(size); in createConstantReferenceMemory() 107 const std::unique_ptr<MemoryAHWB>& memory, in createModelFromSubgraph() 161 std::unique_ptr<MemoryAHWB> memory = createConstantReferenceMemory(testModel); in createModel()
|
/frameworks/ml/nn/runtime/ |
D | Memory.h | 316 class MemoryAHWB : public Memory { 323 static std::pair<int, std::unique_ptr<MemoryAHWB>> create(const AHardwareBuffer& ahwb); 326 MemoryAHWB(hal::hidl_memory memory, std::unique_ptr<MemoryValidatorBase> validator) in MemoryAHWB() function
|
D | Memory.cpp | 585 std::pair<int, std::unique_ptr<MemoryAHWB>> MemoryAHWB::create(const AHardwareBuffer& ahwb) { in create() 599 auto memory = std::make_unique<MemoryAHWB>(std::move(hidlMemory), std::move(validator)); in create()
|
D | NeuralNetworks.cpp | 1015 std::unique_ptr<MemoryAHWB> m; in ANeuralNetworksMemory_createFromAHardwareBuffer() 1016 std::tie(n, m) = MemoryAHWB::create(*ahwb); in ANeuralNetworksMemory_createFromAHardwareBuffer()
|