Home
last modified time | relevance | path

Searched refs:gralloc_ (Results 1 - 8 of 8) sorted by relevance

/drivers/peripheral/codec/test/demo/idl/include/
H A Dcodec_hdi_decode.h66 if (bufferHandle != nullptr && gralloc_ != nullptr) { in ~BufferInfo()
67 gralloc_->FreeMem(*bufferHandle); in ~BufferInfo()
74 if (this->bufferHandle != nullptr && gralloc_ != nullptr) { in setBufferHandle()
75 gralloc_->FreeMem(*this->bufferHandle); in setBufferHandle()
145 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *gralloc_; member in CodecHdiDecode::PortIndex
H A Dcodec_hdi_encode.h134 static OHOS::HDI::Display::Buffer::V1_0::IDisplayBuffer *gralloc_; member in CodecHdiEncode::PortIndex
/drivers/peripheral/display/composer/test/common/
H A Dhdi_test_device.h42 return gralloc_; in GetGrallocInterface()
59 std::shared_ptr<IDisplayBuffer> gralloc_ = nullptr; member in OHOS::HDI::Display::TEST::HdiTestDevice
H A Dhdi_test_device.cpp50 gralloc_.reset(IDisplayBuffer::Get()); in InitDevice()
51 DISPLAY_TEST_CHK_RETURN((gralloc_ == nullptr), DISPLAY_FAILURE, DISPLAY_TEST_LOGE("get IDisplayBuffer failed")); in InitDevice()
/drivers/peripheral/codec/test/benchmarktest/
H A Dcodec_benchmark_omx_test.cpp56 static IDisplayBuffer *gralloc_ = nullptr; member
84 if (bufferHandle != nullptr && gralloc_ != nullptr) { in ~BufferInfo()
85 gralloc_->FreeMem(*bufferHandle); in ~BufferInfo()
231 gralloc_ = IDisplayBuffer::Get(); in SetUp()
232 if (manager_ == nullptr || gralloc_ == nullptr) { in SetUp()
247 gralloc_ = nullptr; in TearDown()
460 ASSERT_TRUE(gralloc_ != nullptr); in BENCHMARK_F()
461 ret = gralloc_->AllocMem(alloc, bufferHandle); in BENCHMARK_F()
/drivers/peripheral/codec/test/demo/idl/src/
H A Dcodec_hdi_decode.cpp33 IDisplayBuffer *CodecHdiDecode::gralloc_ = nullptr;
136 gralloc_ = IDisplayBuffer::Get(); in Init()
571 if (bufferCount <= 0 || bufferSize <= 0 || gralloc_ == nullptr) { in UseBufferHandle()
584 int32_t err = gralloc_->AllocMem(alloc, bufferHandle); in UseBufferHandle()
812 } else if (bufferInfo->bufferHandle != nullptr && gralloc_ != nullptr) { in OnFillBufferDone()
813 gralloc_->Mmap(*bufferInfo->bufferHandle); in OnFillBufferDone()
815 gralloc_->Unmap(*bufferInfo->bufferHandle); in OnFillBufferDone()
H A Dcodec_hdi_encode.cpp33 IDisplayBuffer *CodecHdiEncode::gralloc_ = nullptr;
99 gralloc_ = IDisplayBuffer::Get(); in Init()
641 if (gralloc_ == nullptr) { in FillCodecBuffer()
642 HDF_LOGE("%{public}s gralloc_ is null", __func__); in FillCodecBuffer()
655 gralloc_->Mmap(*bufferHandle); in FillCodecBuffer()
658 gralloc_->Unmap(*bufferHandle); in FillCodecBuffer()
676 if (gralloc_ == nullptr) { in CreateBufferHandle()
677 HDF_LOGE("%{public}s gralloc_ is null", __func__); in CreateBufferHandle()
689 err = gralloc_->AllocMem(alloc, bufferHandle); in CreateBufferHandle()
/drivers/peripheral/codec/test/unittest/hdi_omx/
H A Dcodec_hdi_omx_test.cpp55 static IDisplayBuffer *gralloc_ = nullptr; member
91 if (bufferHandle != nullptr && gralloc_ != nullptr) { in ~BufferInfo()
92 gralloc_->FreeMem(*bufferHandle); in ~BufferInfo()
206 ASSERT_TRUE(gralloc_ != nullptr); in InitBufferHandle()
212 auto err = gralloc_->AllocMem(alloc, *bufferHandle); in InitBufferHandle()
228 gralloc_ = IDisplayBuffer::Get(); in SetUpTestCase()

Completed in 7 milliseconds