Home
last modified time | relevance | path

Searched refs:descsLen (Results 1 – 25 of 28) sorted by relevance

12

/drivers/peripheral/audio/effect/test/unittest/
Deffect_common.cpp41 …id EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLen) in EffectControllerReleaseDescs() argument
43 … if (descs == nullptr || descsLen == nullptr || *descsLen == 0 || *descsLen > HDF_EFFECT_NUM_MAX) { in EffectControllerReleaseDescs()
47 for (uint32_t i = 0; i < *descsLen; i++) { in EffectControllerReleaseDescs()
Deffect_model_test.cpp102 uint32_t descsLen = MAX_DESCRIPTOR_NUM; variable
105 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, &descsLen));
106 EXPECT_EQ(HDF_ERR_INVALID_PARAM, model_->GetAllEffectDescriptors(model_, nullptr, &descsLen));
118 uint32_t descsLen = MAX_DESCRIPTOR_NUM; variable
121 int32_t ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen);
123 EXPECT_GE(MAX_DESCRIPTOR_NUM, descsLen);
134 uint32_t descsLen = MAX_DESCRIPTOR_NUM; variable
137 int32_t ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen);
139 EXPECT_GE(MAX_DESCRIPTOR_NUM, descsLen);
141 for (uint32_t i = 0; i < descsLen; i++) {
[all …]
Deffect_common.h22 …d EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLen);
/drivers/peripheral/audio/test/systemtest/hdi_service/common/manager/src/
Daudio_idlhdi_manager_test.cpp60 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
67 ret = manager->GetAllAdapters(manager, descs, &descsLen);
70 TestReleaseAdapterDescs(&descs, descsLen);
81 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
89 ret = manager->GetAllAdapters(managerNull, descs, &descsLen);
103 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
107 ret = manager->GetAllAdapters(manager, descs, &descsLen);
119 uint32_t* descsLen = nullptr; variable
126 ret = manager->GetAllAdapters(manager, descs, descsLen);
140 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
[all …]
/drivers/peripheral/audio/test/benchmarktest/effect/
Daudio_effectmodel_benchmarktest.cpp65 …id EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLen) in EffectControllerReleaseDescs() argument
67 … if (descs == nullptr || descsLen == nullptr || *descsLen == 0 || *descsLen > HDF_EFFECT_NUM_MAX) { in EffectControllerReleaseDescs()
71 for (uint32_t i = 0; i < *descsLen; i++) { in EffectControllerReleaseDescs()
122 uint32_t descsLen = MAX_DESCRIPTOR_NUM; in BENCHMARK_F() local
126 ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen); in BENCHMARK_F()
129 EXPECT_GE(MAX_DESCRIPTOR_NUM, descsLen); in BENCHMARK_F()
131 for (uint32_t i = 0; i < descsLen; i++) { in BENCHMARK_F()
135 EffectControllerReleaseDescs(descs, &descsLen); in BENCHMARK_F()
/drivers/peripheral/audio/test/systemtest/hdi_service/hdiperformace/src/
Daudio_idlhdimanager_performace_test.cpp65 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
74 ret = audiopara.manager->GetAllAdapters(audiopara.manager, audiopara.descs, &descsLen);
80 TestReleaseAdapterDescs(&audiopara.descs, descsLen);
96 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; variable
99 ret = GetAdapters(audiopara.manager, audiopara.descs, descsLen);
118 TestReleaseAdapterDescs(&audiopara.descs, descsLen);
/drivers/peripheral/audio/test/benchmarktest/manager/
Daudio_manager_benchmarktest.cpp38 void ReleaseAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
61 …oManagerBenchmarkTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAdapterDescs() argument
63 if ((descs == nullptr) || (descsLen == 0)) { in ReleaseAdapterDescs()
67 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAdapterDescs()
/drivers/peripheral/audio/test/benchmarktest/render/
Daudio_render_mmap_benchmarktest.cpp56 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
107 …rMmapBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
109 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
113 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
Daudio_render_benchmarktest.cpp64 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
142 …enderBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
144 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
148 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
/drivers/peripheral/audio/test/benchmarktest/capture/
Daudio_capture_mmap_benchmarktest.cpp51 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
103 …eMmapBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
105 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
109 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
Daudio_capture_benchmarktest.cpp55 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
139 …ptureBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
141 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
145 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
Daudio_manager_vdi.c205 struct AudioAdapterDescriptor *descs, uint32_t *descsLen) in AudioManagerVendorGetAllAdapters() argument
211 CHECK_NULL_PTR_RETURN_VALUE(descsLen, HDF_ERR_INVALID_PARAM); in AudioManagerVendorGetAllAdapters()
220 ret = AudioManagerVdiDescsToDescs(priv->vdiDescs, priv->vdiDescsCount, descs, descsLen); in AudioManagerVendorGetAllAdapters()
223 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
229 sizeof(struct AudioAdapterDescriptorVdi) * (*descsLen)); in AudioManagerVendorGetAllAdapters()
238 ret = AudioManagerVdiDescsToDescs(priv->vdiDescs, priv->vdiDescsCount, descs, descsLen); in AudioManagerVendorGetAllAdapters()
241 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
249 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
/drivers/peripheral/audio/effect/test/fuzztest/effectmodel_fuzzer/
Deffectmodel_fuzzer.cpp61 uint32_t descsLen = MAX_DESCRIPTOR_NUM; in EffectModelFucSwitch() local
63 model->GetAllEffectDescriptors(model, descs, &descsLen); in EffectModelFucSwitch()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
Dhdi_service_common.cpp238 void TestReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen) in TestReleaseAdapterDescs() argument
240 if (descsLen > 0 && descs != nullptr && (*descs) != nullptr) { in TestReleaseAdapterDescs()
241 for (uint32_t i = 0; i < descsLen; i++) { in TestReleaseAdapterDescs()
248 …t GetAdapters(TestAudioManager *manager, struct AudioAdapterDescriptor *&descs, uint32_t &descsLen) in GetAdapters() argument
251 if (descsLen < AUDIO_ADAPTER_MAX_NUM) { in GetAdapters()
256 sizeof(struct AudioAdapterDescriptor) * (descsLen))); in GetAdapters()
260 ret = manager->GetAllAdapters(manager, descs, &descsLen); in GetAdapters()
273 uint32_t descsLen = AUDIO_ADAPTER_MAX_NUM; in GetLoadAdapter() local
280 ret = GetAdapters(manager, descs, descsLen); in GetLoadAdapter()
285 int index = SwitchAdapter(descs, adapterName, portType, audioPort, descsLen); in GetLoadAdapter()
[all …]
/drivers/peripheral/audio/test/unittest/common/render/
Daudio_render_mmap_test.cpp52 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
102 …ioUtRenderMmapTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
104 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
108 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
Daudio_render_common_test.cpp57 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
135 … AudioUtRenderTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
137 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
141 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/
Daudio_manager_vendor.c221 struct AudioAdapterDescriptor *descs, uint32_t *descsLen) in AudioManagerVendorGetAllAdapters() argument
226 CHECK_NULL_PTR_RETURN_VALUE(descsLen, HDF_ERR_INVALID_PARAM); in AudioManagerVendorGetAllAdapters()
235 ret = AudioManagerHwiDescsToDescs(priv->hwiDescs, priv->hwiDescsCount, descs, descsLen); in AudioManagerVendorGetAllAdapters()
238 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
252 ret = AudioManagerHwiDescsToDescs(priv->hwiDescs, priv->hwiDescsCount, descs, descsLen); in AudioManagerVendorGetAllAdapters()
255 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
263 AudioManagerReleaseDescs(descs, *descsLen); in AudioManagerVendorGetAllAdapters()
/drivers/peripheral/audio/interfaces/sound/v1_0/
Diaudio_manager_vdi.h33 struct AudioAdapterDescriptorVdi *descs, uint32_t *descsLen);
/drivers/peripheral/audio/interfaces/effect/v1_0/
Dieffect_model_vdi.h33 uint32_t *descsLen);
/drivers/peripheral/audio/test/unittest/common/manager/
Daudio_manager_common_test.cpp36 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen);
59 …dfAudioUtManagerTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen) in ReleaseAdapterDescs() argument
61 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs()
62 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAdapterDescs()
/drivers/peripheral/audio/test/unittest/common/capture/
Daudio_capture_mmap_test.cpp48 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
100 …oUtCaptureMmapTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAllAdapterDescs() argument
102 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs()
106 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAllAdapterDescs()
/drivers/peripheral/audio/effect/model/src/
Deffect_model.c38 … struct EffectControllerDescriptor *descs, uint32_t *descsLen) in EffectModelGetAllEffectDescriptors() argument
46 if (self == NULL || descs == NULL || descsLen == NULL) { in EffectModelGetAllEffectDescriptors()
69 *descsLen = descNum; in EffectModelGetAllEffectDescriptors()
/drivers/peripheral/audio/test/benchmarktest/adapter/
Daudio_adapter_benchmarktest.cpp51 void ReleaseAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen);
74 …oAdapterBenchmarkTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen) in ReleaseAdapterDescs() argument
76 if ((descs == nullptr) || (descsLen == 0)) { in ReleaseAdapterDescs()
80 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAdapterDescs()
/drivers/peripheral/audio/test/unittest/common/adapter/
Daudio_adapter_common_test.cpp51 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen);
74 …dfAudioUtAdapterTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen) in ReleaseAdapterDescs() argument
76 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs()
77 for (uint32_t i = 0; i < descsLen; i++) { in ReleaseAdapterDescs()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/include/
Dhdi_service_common.h253 void TestReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen);

12