Searched refs:ahwb (Results 1 – 8 of 8) sorted by relevance
/frameworks/ml/nn/runtime/test/ |
D | GeneratedTestUtils.cpp | 62 AHardwareBuffer* ahwb = nullptr; in create() local 63 EXPECT_EQ(AHardwareBuffer_allocate(&desc, &ahwb), 0); in create() 64 EXPECT_NE(ahwb, nullptr); in create() 67 EXPECT_EQ(AHardwareBuffer_lock(ahwb, usage, -1, nullptr, &buffer), 0); in create() 70 return std::unique_ptr<MemoryAHWB>(new MemoryAHWB(ahwb, buffer)); in create() 81 MemoryAHWB(AHardwareBuffer* ahwb, void* buffer) : Memory(ahwb), mAhwb(ahwb), mBuffer(buffer) {} in MemoryAHWB() argument
|
D | TestCompliance.cpp | 168 const auto [n, ahwb] = MemoryRuntimeAHWB::create(1024); in TEST_F() 170 Request::MemoryPool sharedMemoryPool, ahwbMemoryPool = ahwb->getMemoryPool(); in TEST_F()
|
/frameworks/ml/nn/runtime/ |
D | Memory.cpp | 585 std::pair<int, std::unique_ptr<MemoryAHWB>> MemoryAHWB::create(const AHardwareBuffer& ahwb) { in create() argument 587 AHardwareBuffer_describe(&ahwb, &bufferDesc); in create() 588 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(&ahwb); in create() 604 AHardwareBuffer* ahwb = nullptr; in create() local 614 int err = AHardwareBuffer_allocate(&desc, &ahwb); in create() 615 if (err != 0 || ahwb == nullptr) { in create() 619 auto allocateGuard = base::make_scope_guard([&ahwb]() { AHardwareBuffer_release(ahwb); }); in create() 622 err = AHardwareBuffer_lock(ahwb, usage, -1, nullptr, &buffer); in create() 627 auto lockGuard = base::make_scope_guard([&ahwb]() { AHardwareBuffer_unlock(ahwb, nullptr); }); in create() 629 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahwb); in create() [all …]
|
D | Memory.h | 323 static std::pair<int, std::unique_ptr<MemoryAHWB>> create(const AHardwareBuffer& ahwb); 350 MemoryRuntimeAHWB(hal::hidl_memory memory, AHardwareBuffer* ahwb, uint8_t* buffer);
|
D | NeuralNetworks.cpp | 1010 int ANeuralNetworksMemory_createFromAHardwareBuffer(const AHardwareBuffer* ahwb, in ANeuralNetworksMemory_createFromAHardwareBuffer() argument 1016 std::tie(n, m) = MemoryAHWB::create(*ahwb); in ANeuralNetworksMemory_createFromAHardwareBuffer()
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 578 AHardwareBuffer* ahwb = ANativeWindowBuffer_getHardwareBuffer(drv->wndBuffer); in rsdAllocationDestroy() local 580 AHardwareBuffer_unlock(ahwb, &fenceID); in rsdAllocationDestroy() 719 AHardwareBuffer* ahwb = ANativeWindowBuffer_getHardwareBuffer(drv->wndBuffer); in IoGetBuffer() local 720 r = AHardwareBuffer_lock(ahwb, AHARDWAREBUFFER_USAGE_CPU_WRITE_OFTEN, in IoGetBuffer() 741 AHardwareBuffer* ahwb = ANativeWindowBuffer_getHardwareBuffer(drv->wndBuffer); in rsdAllocationSetSurface() local 743 int32_t r = AHardwareBuffer_unlock(ahwb, &fenceID); in rsdAllocationSetSurface() 798 AHardwareBuffer* ahwb = ANativeWindowBuffer_getHardwareBuffer(drv->wndBuffer); in rsdAllocationIoSend() local 800 int32_t r = AHardwareBuffer_unlock(ahwb, &fenceID); in rsdAllocationIoSend()
|
/frameworks/ml/nn/runtime/include/ |
D | NeuralNetworks.h | 6993 int ANeuralNetworksMemory_createFromAHardwareBuffer(const AHardwareBuffer* ahwb,
|
/frameworks/ml/nn/tools/api/ |
D | NeuralNetworks.t | 1411 * @param ahwb The AHardwareBuffer handle. 1419 int ANeuralNetworksMemory_createFromAHardwareBuffer(const AHardwareBuffer* ahwb,
|