/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/ |
D | PixelStreamManagerTest.cpp | 99 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST() local 101 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST() 102 EXPECT_EQ(memHandle.getStreamId(), streamId); in TEST() 103 EXPECT_EQ(memHandle.getHardwareBuffer(), nullptr); in TEST() 107 Status status = memHandle.setFrameData(timestamp, frame); in TEST() 109 ASSERT_NE(memHandle.getHardwareBuffer(), nullptr); in TEST() 112 AHardwareBuffer* buffer = memHandle.getHardwareBuffer(); in TEST() 127 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in TEST() local 129 EXPECT_EQ(memHandle.getBufferId(), bufferId); in TEST() 130 EXPECT_EQ(memHandle.getStreamId(), streamId); in TEST() [all …]
|
/packages/services/Car/cpp/evs/support_library/ |
D | StreamHandler.cpp | 130 buffer.memHandle.getNativeHandle(), buffer.bufferId); in deliverFrame() 136 if (buffer.memHandle.getNativeHandle() == nullptr) { in deliverFrame() 260 buffer.memHandle = hidl_handle(handle); in allocate() 266 if (!isSameFormat(input, output) || output.memHandle.getNativeHandle() == nullptr) { in processFrame() 275 if (output.memHandle.getNativeHandle() != nullptr) { in processFrame() 276 GraphicBufferAllocator::get().free(output.memHandle); in processFrame() 288 new GraphicBuffer(input.memHandle, GraphicBuffer::CLONE_HANDLE, input.width, in processFrame() 323 mapper.lock(output.memHandle, GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_SW_READ_NEVER, in processFrame() 334 mapper.unlock(output.memHandle); in processFrame() 353 mapper.unlock(output.memHandle); in processFrame() [all …]
|
D | VideoTex.cpp | 59 if (imageBuffer.memHandle.getNativeHandle() == nullptr) { in refresh() 71 new GraphicBuffer(imageBuffer.memHandle, GraphicBuffer::CLONE_HANDLE, imageBuffer.width, in refresh()
|
D | DisplayUseCase.cpp | 211 if (tgtBuffer.memHandle == nullptr) { in streamFrame() 229 if (mImageBuffer.memHandle.getNativeHandle() != nullptr) { in streamFrame()
|
D | RenderBase.cpp | 147 new GraphicBuffer(tgtBuffer.memHandle, GraphicBuffer::CLONE_HANDLE, tgtBuffer.width, in attachRenderTarget()
|
/packages/services/Car/cpp/evs/sampleDriver/hidl/ |
D | EvsGlDisplay.cpp | 62 if (mBuffer.memHandle) { in forceShutdown() 70 alloc.free(mBuffer.memHandle); in forceShutdown() 71 mBuffer.memHandle = nullptr; in forceShutdown() 165 if (!mBuffer.memHandle) { in getTargetBuffer() 205 mBuffer.memHandle = handle; in getTargetBuffer() 206 LOG(DEBUG) << "Allocated new buffer " << mBuffer.memHandle.getNativeHandle() in getTargetBuffer() 225 LOG(VERBOSE) << "Providing display buffer handle " << mBuffer.memHandle.getNativeHandle() in getTargetBuffer() 237 LOG(VERBOSE) << __FUNCTION__ << " " << buffer.memHandle.getNativeHandle(); in returnTargetBufferForDisplay() 241 if (!buffer.memHandle.getNativeHandle()) { in returnTargetBufferForDisplay()
|
D | EvsV4lCamera.cpp | 226 doneWithFrame_impl(buffer.bufferId, buffer.memHandle); in doneWithFrame() 472 buffer_handle_t memHandle = nullptr; in importExternalBuffers() local 475 pDesc->format, pDesc->usage, pDesc->stride, &memHandle); in importExternalBuffers() 476 if (result != android::NO_ERROR || !memHandle) { in importExternalBuffers() 485 rec.handle = memHandle; in importExternalBuffers() 495 mBuffers.emplace_back(memHandle); in importExternalBuffers() 507 const buffer_handle_t memHandle) { in doneWithFrame_impl() argument 514 if (memHandle == nullptr) { in doneWithFrame_impl() 593 buffer_handle_t memHandle = nullptr; in increaseAvailableFrames_Locked() local 595 &memHandle, &pixelsPerLine, 0, "EvsV4lCamera"); in increaseAvailableFrames_Locked() [all …]
|
D | GlWrapper.cpp | 336 newBuffer.buffer.nativeHandle = buffer.memHandle; in updateImageTexture()
|
/packages/services/Car/cpp/computepipe/tests/fuzz/ |
D | PixelStreamManagerFuzzer.cpp | 77 std::shared_ptr<MemHandle> memHandle; in LLVMFuzzerTestOneInput() local 81 testing::DoAll(testing::SaveArg<0>(&memHandle), (Return(Status::SUCCESS)))); in LLVMFuzzerTestOneInput() 111 if (memHandle != nullptr) { in LLVMFuzzerTestOneInput() 112 manager->freePacket(memHandle->getBufferId()); in LLVMFuzzerTestOneInput() 117 manager->clonePacket(memHandle); in LLVMFuzzerTestOneInput()
|
D | PixelMemHandleFuzzer.cpp | 49 PixelMemHandle memHandle(bufferId, streamId, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN); in setFrameDataTest() local 51 memHandle.setFrameData(timestamp, oldInputFrame); in setFrameDataTest() 55 memHandle.setFrameData(timestamp, newInputFrame); in setFrameDataTest() 58 AHardwareBuffer* buffer = memHandle.getHardwareBuffer(); in setFrameDataTest()
|
/packages/services/Car/cpp/evs/manager/1.1/emul/ |
D | EvsEmulatedCamera.cpp | 252 doneWithFrame_impl(buffer.bufferId, buffer.memHandle); in doneWithFrame() 442 buffer_handle_t memHandle = nullptr; in importExternalBuffers() local 445 pDesc->usage, pDesc->stride, &memHandle); in importExternalBuffers() 446 if (result != android::NO_ERROR || !memHandle) { in importExternalBuffers() 455 rec.handle = memHandle; in importExternalBuffers() 465 mBuffers.emplace_back(memHandle); in importExternalBuffers() 477 const buffer_handle_t memHandle) { in doneWithFrame_impl() argument 484 if (memHandle == nullptr) { in doneWithFrame_impl() 564 buffer_handle_t memHandle = nullptr; in increaseAvailableFrames_Locked() local 566 mFormat, 1 /* layers */, mUsage, &memHandle, in increaseAvailableFrames_Locked() [all …]
|
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/ |
D | EvsV4lCamera.cpp | 413 buffer_handle_t memHandle = nullptr; in importExternalBuffers() local 419 description.stride, &memHandle); in importExternalBuffers() 420 if (result != ::android::NO_ERROR || memHandle == nullptr) { in importExternalBuffers() 429 rec.handle = memHandle; in importExternalBuffers() 439 mBuffers.push_back(std::move(BufferRecord(memHandle))); in importExternalBuffers() 583 buffer_handle_t memHandle = nullptr; in increaseAvailableFrames_Locked() local 585 &memHandle, &pixelsPerLine, 0, "EvsV4lCamera"); in increaseAvailableFrames_Locked() 591 if (memHandle == nullptr) { in increaseAvailableFrames_Locked() 609 rec.handle = memHandle; in increaseAvailableFrames_Locked() 617 mBuffers.push_back(std::move(BufferRecord(memHandle))); in increaseAvailableFrames_Locked() [all …]
|
/packages/services/Car/cpp/computepipe/runner/stream_manager/ |
D | PixelStreamManager.cpp | 222 std::shared_ptr<PixelMemHandle> memHandle = mBuffersReady[mBuffersReady.size() - 1]; in queuePacket() local 227 bufferMetadata.handle = memHandle; in queuePacket() 229 mBuffersInUse.emplace(memHandle->getBufferId(), bufferMetadata); in queuePacket() 231 Status status = memHandle->setFrameData(timestamp, frame); in queuePacket() 239 std::thread t([this, memHandle]() { in queuePacket() 240 Status status = mEngine->dispatchPacket(memHandle); in queuePacket()
|
D | SemanticManager.cpp | 156 auto memHandle = std::make_shared<SemanticHandle>(); in queuePacket() local 157 auto status = memHandle->setMemInfo(mStreamId, data, size, timestamp, mType); in queuePacket() 161 mEngine->dispatchPacket(memHandle); in queuePacket()
|
/packages/services/Car/cpp/evs/apps/default/src/ |
D | StreamHandler.cpp | 53 buffer_handle_t memHandle = nullptr; in StreamHandler() local 59 android::status_t result = alloc.allocate(width, height, format, 1, usage, &memHandle, in StreamHandler() 74 buf.buffer.handle = android::dupToAidl(memHandle); in StreamHandler()
|
/packages/services/Car/cpp/evs/manager/1.0/ |
D | VirtualCamera.cpp | 69 if (buffer.memHandle == nullptr) { in deliverFrame() 152 if (buffer.memHandle == nullptr) { in doneWithFrame()
|
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/ |
D | EvsEnumeratorHidlUnitTest.cpp | 147 frames[0].buffer.nativeHandle = buffer.memHandle; in deliverFrame() 720 EXPECT_NE(nullptr, b.memHandle); in TEST_F() 737 buffer_handle_t memHandle = nullptr; in TEST_F() local 746 &memHandle, &pixelsPerLine, 0, "EvsEnumeratorUnitTest"); in TEST_F() 761 buf.buffer.nativeHandle = memHandle; in TEST_F() 1035 if (forwarded.memHandle != nullptr) { in VerifyCameraStream_1_0()
|
D | EvsEnumeratorHidlUnitTest_1_0.cpp | 343 EXPECT_NE(nullptr, b.memHandle); in TEST_F() 371 if (forwarded.memHandle != nullptr) { in VerifyCameraStream()
|
D | EvsEnumeratorUnitTest.cpp | 563 buffer_handle_t memHandle = nullptr; in TEST_F() local 571 &memHandle, &pixelsPerLine, 0, "EvsEnumeratorUnitTest"); in TEST_F() 586 buf.buffer.handle = ::android::dupToAidl(memHandle); in TEST_F()
|
D | MockHidlEvsHal.cpp | 191 buffer_handle_t memHandle = AHardwareBuffer_getNativeHandle(ahwb); in initializeBufferPool() local 195 .nativeHandle = memHandle, in initializeBufferPool()
|
D | MockEvsHal.cpp | 264 buffer_handle_t memHandle = AHardwareBuffer_getNativeHandle(ahwb); in initializeBufferPool() local 277 .handle = ::android::dupToAidl(memHandle), in initializeBufferPool()
|
D | MockHidlEvsHal_1_0.cpp | 161 .memHandle = AHardwareBuffer_getNativeHandle(ahwb), in initializeBufferPool()
|
/packages/services/Car/cpp/computepipe/runner/debug_display_manager/ |
D | EvsDisplayManager.cpp | 52 buffer.memHandle = AHardwareBuffer_getNativeHandle(frame->getHardwareBuffer()); in getBufferDesc()
|
/packages/services/Car/cpp/evs/manager/1.1/ |
D | VirtualCamera.cpp | 189 frame_1_0.memHandle = bufDesc.buffer.nativeHandle; in deliverFrame() 470 if (buffer.memHandle == nullptr) { in doneWithFrame()
|
/packages/services/Car/cpp/evs/manager/aidl/utils/src/ |
D | Utils.cpp | 89 buffer_handle_t h = hidlBuffer.memHandle.getNativeHandle(); in makeHwBufferFromHidlBuffer() 200 .memHandle = doDup ? ::android::dupFromAidl(aidlBuffer.buffer.handle) in makeToHidlV1_0()
|