/drivers/peripheral/audio/effect/test/unittest/ |
D | effect_common.cpp | 41 …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()
|
D | effect_model_test.cpp | 102 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 …]
|
D | effect_common.h | 22 …d EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLen);
|
/drivers/peripheral/audio/test/systemtest/hdi_service/common/manager/src/ |
D | audio_idlhdi_manager_test.cpp | 60 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/ |
D | audio_effectmodel_benchmarktest.cpp | 65 …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/ |
D | audio_idlhdimanager_performace_test.cpp | 65 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/ |
D | audio_manager_benchmarktest.cpp | 38 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/ |
D | audio_render_mmap_benchmarktest.cpp | 56 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()
|
D | audio_render_benchmarktest.cpp | 64 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/ |
D | audio_capture_mmap_benchmarktest.cpp | 51 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()
|
D | audio_capture_benchmarktest.cpp | 55 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/ |
D | audio_manager_vdi.c | 205 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/ |
D | effectmodel_fuzzer.cpp | 61 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/ |
D | hdi_service_common.cpp | 238 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/ |
D | audio_render_mmap_test.cpp | 52 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()
|
D | audio_render_common_test.cpp | 57 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/ |
D | audio_manager_vendor.c | 221 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/ |
D | iaudio_manager_vdi.h | 33 struct AudioAdapterDescriptorVdi *descs, uint32_t *descsLen);
|
/drivers/peripheral/audio/interfaces/effect/v1_0/ |
D | ieffect_model_vdi.h | 33 uint32_t *descsLen);
|
/drivers/peripheral/audio/test/unittest/common/manager/ |
D | audio_manager_common_test.cpp | 36 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/ |
D | audio_capture_mmap_test.cpp | 48 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/ |
D | effect_model.c | 38 … 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/ |
D | audio_adapter_benchmarktest.cpp | 51 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/ |
D | audio_adapter_common_test.cpp | 51 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/ |
D | hdi_service_common.h | 253 void TestReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen);
|