Home
last modified time | relevance | path

Searched refs:hardwareBuffer (Results 1 – 18 of 18) sorted by relevance

/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp85 case Memory::Tag::hardwareBuffer: { in clone()
86 const auto& hardwareBuffer = memory.get<Memory::Tag::hardwareBuffer>(); in clone() local
87 auto handle = NN_TRY(clone(hardwareBuffer.handle)); in clone()
89 .description = hardwareBuffer.description, in clone()
92 return Memory::make<Memory::Tag::hardwareBuffer>(std::move(ahwbHandle)); in clone()
DConversions.cpp399 case Tag::hardwareBuffer: { in unvalidatedConvert()
401 const auto& hardwareBuffer = memory.get<Tag::hardwareBuffer>(); in unvalidatedConvert() local
404 NN_TRY(nativeHandleFromAidlHandle(hardwareBuffer.handle)); in unvalidatedConvert()
408 .width = static_cast<uint32_t>(hardwareBuffer.description.width), in unvalidatedConvert()
409 .height = static_cast<uint32_t>(hardwareBuffer.description.height), in unvalidatedConvert()
410 .layers = static_cast<uint32_t>(hardwareBuffer.description.layers), in unvalidatedConvert()
411 .format = static_cast<uint32_t>(hardwareBuffer.description.format), in unvalidatedConvert()
412 .usage = static_cast<uint64_t>(hardwareBuffer.description.usage), in unvalidatedConvert()
413 .stride = static_cast<uint32_t>(hardwareBuffer.description.stride), in unvalidatedConvert()
729 auto hardwareBuffer = graphics::common::HardwareBuffer{ in unvalidatedConvert()
[all …]
/hardware/interfaces/automotive/sv/1.0/default/tests/fuzzer/
DSurroundViewStream.cpp53 if (svFramesDesc.svBuffers[i].hardwareBuffer.nativeHandle == nullptr) { in receiveFrames()
68 mLastReceivedFrames.svBuffers[i].hardwareBuffer.description = in receiveFrames()
69 svFramesDesc.svBuffers[i].hardwareBuffer.description; in receiveFrames()
DAutomotiveSvV1_0Fuzzer.cpp130 frames.svBuffers[i].hardwareBuffer.nativeHandle = new native_handle_t(); in invoke2dSessionAPI()
131 frames.svBuffers[i].hardwareBuffer.description[0] = in invoke2dSessionAPI()
133 frames.svBuffers[i].hardwareBuffer.description[1] = in invoke2dSessionAPI()
138 delete frames.svBuffers[i].hardwareBuffer.nativeHandle; in invoke2dSessionAPI()
299 frames.svBuffers[i].hardwareBuffer.nativeHandle = new native_handle_t(); in invoke3dSessionAPI()
300 frames.svBuffers[i].hardwareBuffer.description[0] = in invoke3dSessionAPI()
302 frames.svBuffers[i].hardwareBuffer.description[1] = in invoke3dSessionAPI()
307 delete frames.svBuffers[i].hardwareBuffer.nativeHandle; in invoke3dSessionAPI()
/hardware/interfaces/automotive/sv/1.0/default/
DSurroundView3dSession.cpp48 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = new native_handle_t(); in SurroundView3dSession()
49 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = mConfig.width; in SurroundView3dSession()
50 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = mConfig.height; in SurroundView3dSession()
281 framesRecord.frames.svBuffers[i].hardwareBuffer.nativeHandle = new native_handle_t(); in generateFrames()
282 framesRecord.frames.svBuffers[i].hardwareBuffer.description[0] = mConfig.width; // width in generateFrames()
283 … framesRecord.frames.svBuffers[i].hardwareBuffer.description[1] = mConfig.height; // height in generateFrames()
DSurroundView2dSession.cpp38 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = in SurroundView2dSession()
40 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in SurroundView2dSession()
42 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in SurroundView2dSession()
204 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in generateFrames()
206 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in generateFrames()
/hardware/interfaces/automotive/sv/1.0/vts/functional/
DSurroundViewStreamHandler.cpp65 if (svFramesDesc.svBuffers[i].hardwareBuffer.nativeHandle == nullptr) { in receiveFrames()
80 mLastReceivedFrames.svBuffers[i].hardwareBuffer.description = in receiveFrames()
81 svFramesDesc.svBuffers[i].hardwareBuffer.description; in receiveFrames()
DVtsHalSurroundViewV1_0TargetTest.cpp215 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
280 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
319 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
377 reinterpret_cast<const AHardwareBuffer_Desc *>(&svBuffer2d.hardwareBuffer.description); in TEST_P()
646 EXPECT_EQ(frames.svBuffers[0].hardwareBuffer.description[0], in TEST_P()
647 frames.svBuffers[1].hardwareBuffer.description[0]); in TEST_P()
648 EXPECT_EQ(frames.svBuffers[0].hardwareBuffer.description[1], in TEST_P()
649 frames.svBuffers[1].hardwareBuffer.description[1]); in TEST_P()
650 EXPECT_EQ(frames.svBuffers[1].hardwareBuffer.description[0], in TEST_P()
651 frames.svBuffers[2].hardwareBuffer.description[0]); in TEST_P()
[all …]
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/
DMemory.aidl39 android.hardware.graphics.common.HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DMemory.aidl39 HardwareBuffer hardwareBuffer;
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp699 case Memory::Tag::hardwareBuffer: { in getSize()
700 const auto& hardwareBuffer = memory.get<Memory::Tag::hardwareBuffer>(); in getSize() local
702 hardwareBuffer.description.format == graphics::common::PixelFormat::BLOB; in getSize()
703 return isBlob ? hardwareBuffer.description.width : 0; in getSize()
DValidateModel.cpp296 if (memory.getTag() == Memory::Tag::hardwareBuffer) { in sizeForBinder()
297 const NativeHandle& handle = memory.get<Memory::Tag::hardwareBuffer>().handle; in sizeForBinder()
/hardware/interfaces/neuralnetworks/1.0/utils/src/
DConversions.cpp166 AHardwareBuffer* hardwareBuffer = nullptr; in createSharedMemoryFromHidlMemory() local
180 &hardwareBuffer); in createSharedMemoryFromHidlMemory()
190 return nn::createSharedMemoryFromAHWB(hardwareBuffer, /*takeOwnership=*/true); in createSharedMemoryFromHidlMemory()
/hardware/interfaces/automotive/sv/1.0/
Dtypes.hal136 HardwareBuffer hardwareBuffer;