Searched refs:ahwb (Results 1 – 10 of 10) sorted by relevance
/packages/modules/NeuralNetworks/runtime/test/ |
D | GeneratedTestUtils.cpp | 72 AHardwareBuffer* ahwb = nullptr; in create() local 73 EXPECT_EQ(AHardwareBuffer_allocate(&desc, &ahwb), 0); in create() 74 EXPECT_NE(ahwb, nullptr); in create() 77 EXPECT_EQ(AHardwareBuffer_lock(ahwb, usage, -1, nullptr, &buffer), 0); in create() 81 return std::unique_ptr<MemoryAHWB>(new MemoryAHWB(nnapi, ahwb, buffer)); in create() 83 return std::unique_ptr<MemoryAHWB>(new MemoryAHWB(ahwb, buffer)); in create() 96 MemoryAHWB(const NnApiSupportLibrary* nnapi, AHardwareBuffer* ahwb, void* buffer) in create() argument 97 : Memory(nnapi, ahwb, false, {}), mAhwb(ahwb), mBuffer(buffer) {} in create() 99 MemoryAHWB(AHardwareBuffer* ahwb, void* buffer) : Memory(ahwb), mAhwb(ahwb), mBuffer(buffer) {} in create()
|
D | TestCompliance.cpp | 172 const auto [n, ahwb] = MemoryRuntimeAHWB::create(1024); in TEST_F() 175 ahwbMemoryPool = convertToV1_3(ahwb->getMemoryPool()); in TEST_F()
|
/packages/modules/NeuralNetworks/common/ |
D | SharedMemoryAndroid.cpp | 232 [ahwb = memory.handle.get()] { AHardwareBuffer_unlock(ahwb, nullptr); }); in map() 272 GeneralResult<SharedMemory> createSharedMemoryFromAHWB(AHardwareBuffer* ahwb, bool takeOwnership) { in createSharedMemoryFromAHWB() argument 273 CHECK(ahwb != nullptr); in createSharedMemoryFromAHWB() 275 Memory::HardwareBuffer handle = {.handle = Memory::HardwareBuffer::Handle(ahwb, deleter)}; in createSharedMemoryFromAHWB() 285 AHardwareBuffer* ahwb = memory.handle.get(); in isAhwbBlob() local 287 AHardwareBuffer_describe(ahwb, &desc); in isAhwbBlob()
|
/packages/modules/NeuralNetworks/runtime/ |
D | Memory.cpp | 542 std::pair<int, std::unique_ptr<MemoryAHWB>> MemoryAHWB::create(const AHardwareBuffer& ahwb) { in create() argument 543 auto memory = createSharedMemoryFromAHWB(const_cast<AHardwareBuffer*>(&ahwb), in create() 562 AHardwareBuffer* ahwb = nullptr; in create() local 572 int err = AHardwareBuffer_allocate(&desc, &ahwb); in create() 573 if (err != 0 || ahwb == nullptr) { in create() 578 auto memory = createSharedMemoryFromAHWB(ahwb, /*takeOWnership=*/true); in create()
|
D | Memory.h | 312 static std::pair<int, std::unique_ptr<MemoryAHWB>> create(const AHardwareBuffer& ahwb);
|
D | NeuralNetworks.cpp | 1035 int ANeuralNetworksMemory_createFromAHardwareBuffer(const AHardwareBuffer* ahwb, in ANeuralNetworksMemory_createFromAHardwareBuffer() argument 1041 std::tie(n, m) = MemoryAHWB::create(*ahwb); in ANeuralNetworksMemory_createFromAHardwareBuffer()
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimConverter.cpp | 471 AHardwareBuffer* ahwb = nullptr; in convertFromHAL() local 473 &desc, handle, AHARDWAREBUFFER_CREATE_FROM_HANDLE_METHOD_CLONE, &ahwb); in convertFromHAL() 484 std::make_unique<::android::nn::sl_wrapper::Memory>(nnapi, ahwb, in convertFromHAL()
|
/packages/modules/NeuralNetworks/common/include/nnapi/ |
D | SharedMemory.h | 91 GeneralResult<SharedMemory> createSharedMemoryFromAHWB(AHardwareBuffer* ahwb, bool takeOwnership);
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworks.h | 759 int ANeuralNetworksMemory_createFromAHardwareBuffer(const AHardwareBuffer* ahwb,
|
/packages/modules/NeuralNetworks/shim_and_sl/public/ |
D | NeuralNetworksSupportLibraryImpl.h | 739 int (*ANeuralNetworksMemory_createFromAHardwareBuffer)(const AHardwareBuffer* ahwb,
|