Home
last modified time | relevance | path

Searched refs:mmapCapture_ (Results 1 – 2 of 2) sorted by relevance

/drivers/peripheral/audio/test/unittest/common/capture/
Daudio_capture_mmap_test.cpp38 struct IAudioCapture *mmapCapture_ = nullptr; member in __anond32922ea0111::AudioUtCaptureMmapTest
133 …EXPECT_EQ(HDF_SUCCESS, adapter_->CreateCapture(adapter_, &devDesc, &attrs, &mmapCapture_, &capture… in SetUp()
134 if (mmapCapture_ == nullptr) { in SetUp()
138 ASSERT_NE(mmapCapture_, nullptr); in SetUp()
147 ASSERT_NE(mmapCapture_, nullptr); in TearDown()
161 int32_t ret = mmapCapture_->ReqMmapBuffer(mmapCapture_, MMAP_SUGGUEST_REQ_SIZE, &desc);
172 int32_t ret = mmapCapture_->ReqMmapBuffer(nullptr, MMAP_SUGGUEST_REQ_SIZE, &desc);
175 ret = mmapCapture_->ReqMmapBuffer(mmapCapture_, MMAP_SUGGUEST_REQ_SIZE, nullptr);
183 int32_t ret = mmapCapture_->ReqMmapBuffer(mmapCapture_, MMAP_SUGGUEST_REQ_SIZE, &desc);
189 ret = mmapCapture_->Start(mmapCapture_);
[all …]
/drivers/peripheral/audio/test/benchmarktest/capture/
Daudio_capture_mmap_benchmarktest.cpp41 struct IAudioCapture *mmapCapture_ = nullptr; member in __anonaa199e280111::AudioCaptureMmapBenchmarkTest
136 …EXPECT_EQ(HDF_SUCCESS, adapter_->CreateCapture(adapter_, &devDesc, &attrs, &mmapCapture_, &capture… in SetUp()
137 if (mmapCapture_ == nullptr) { in SetUp()
141 ASSERT_NE(mmapCapture_, nullptr); in SetUp()
150 ASSERT_NE(mmapCapture_, nullptr); in TearDown()
162 ASSERT_NE(mmapCapture_, nullptr); in BENCHMARK_F()
169 ret = mmapCapture_->ReqMmapBuffer(mmapCapture_, MMAP_SUGGUEST_REQ_SIZE, &desc); in BENCHMARK_F()
172 ret = mmapCapture_->Start(mmapCapture_); in BENCHMARK_F()
175 ret = mmapCapture_->GetMmapPosition(mmapCapture_, &frames, &time); in BENCHMARK_F()
178 ret = mmapCapture_->Stop(mmapCapture_); in BENCHMARK_F()