/test/xts/hats/hdf/audio/idl/common/manager/src/ |
D | audio_manager_common_test.cpp | 36 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 59 void HdfAudioUtManagerTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t des… in ReleaseAdapterDescs() argument 61 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 63 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 65 OsalMemFree(*descs); in ReleaseAdapterDescs() 66 *descs = nullptr; in ReleaseAdapterDescs() 129 struct AudioAdapterDescriptor descs; variable 130 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, g_manager->GetAllAdapters(nullptr, &descs, &size)); 142 struct AudioAdapterDescriptor descs; variable 143 EXPECT_EQ(HDF_ERR_INVALID_PARAM, g_manager->GetAllAdapters(g_manager, &descs, &size)); [all …]
|
/test/xts/hats/hdf/audio/idl/common/manager_additional/src/ |
D | AudioManagerCommonTest.cpp | 36 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 60 void HdfAudioUtManagerTestAdditional::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, ui… in ReleaseAdapterDescs() argument 62 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 64 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 66 OsalMemFree(*descs); in ReleaseAdapterDescs() 67 *descs = nullptr; in ReleaseAdapterDescs() 91 struct AudioAdapterDescriptor *descs = variable 96 ret |= g_manager->GetAllAdapters(g_manager, descs, &size); 99 ReleaseAdapterDescs(&descs, g_audioAdapterNumMax); 111 struct AudioAdapterDescriptor *descs = variable [all …]
|
/test/xts/hats/hdf/audio/idl/benchmarktest/manager/ |
D | audio_manager_benchmarktest.cpp | 38 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 61 void AudioManagerBenchmarkTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t… in ReleaseAdapterDescs() argument 63 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 65 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 67 OsalMemFree(*descs); in ReleaseAdapterDescs() 68 *descs = nullptr; in ReleaseAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/effect/src/ |
D | effect_model_test.cpp | 103 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; variable 105 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, &descsLen)); 107 EXPECT_EQ(HDF_ERR_INVALID_PARAM, model_->GetAllEffectDescriptors(model_, descs, nullptr)); 119 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; variable 121 int32_t ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen); 135 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; variable 137 int32_t ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen); 142 EXPECT_NE(nullptr, descs[i].effectId); 145 EffectControllerReleaseDescs(descs, &descsLen);
|
D | effect_common.cpp | 41 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe… in EffectControllerReleaseDescs() argument 43 … if (descs == nullptr || descsLen == nullptr || *descsLen == 0 || *descsLen > HDF_EFFECT_NUM_MAX) { in EffectControllerReleaseDescs() 48 EffectControllerReleaseDesc(&descs[i]); in EffectControllerReleaseDescs()
|
D | effect_common.h | 22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
|
/test/xts/hats/hdf/audio/idl/common/adapter/src/ |
D | audio_adapter_multchannel_test.cpp | 48 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 71 void HdfAudioAdapterMultiTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t … in ReleaseAdapterDescs() argument 73 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 75 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 77 OsalMemFree(*descs); in ReleaseAdapterDescs() 78 *descs = nullptr; in ReleaseAdapterDescs()
|
D | audio_adapter_common_test.cpp | 50 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 73 void HdfAudioUtAdapterTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t des… in ReleaseAdapterDescs() argument 75 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 77 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 79 OsalMemFree(*descs); in ReleaseAdapterDescs() 80 *descs = nullptr; in ReleaseAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/effect_additional/src/ |
D | effect_common.cpp | 41 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe… in EffectControllerReleaseDescs() argument 43 … if (descs == nullptr || descsLen == nullptr || *descsLen == 0 || *descsLen > HDF_EFFECT_NUM_MAX) { in EffectControllerReleaseDescs() 48 EffectControllerReleaseDesc(&descs[i]); in EffectControllerReleaseDescs()
|
D | effect_model_test.cpp | 172 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; variable 173 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, nullptr)); 183 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; variable 185 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, nullptr)); 241 struct EffectControllerDescriptor descs[1]; variable 242 EXPECT_EQ(HDF_ERR_INVALID_PARAM, model_->GetAllEffectDescriptors(model_, descs, &descsLen)); 252 struct EffectControllerDescriptor descs[0]; variable 253 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, nullptr)); 263 struct EffectControllerDescriptor descs[0]; variable 265 EXPECT_EQ(HDF_ERR_INVALID_OBJECT, model_->GetAllEffectDescriptors(nullptr, descs, nullptr)); [all …]
|
D | effect_common.h | 22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
|
/test/xts/hats/hdf/audio/idl/benchmarktest/effect/include/ |
D | effect_common.cpp | 41 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe… in EffectControllerReleaseDescs() argument 43 … if (descs == nullptr || descsLen == nullptr || *descsLen == 0 || *descsLen > HDF_EFFECT_NUM_MAX) { in EffectControllerReleaseDescs() 48 EffectControllerReleaseDesc(&descs[i]); in EffectControllerReleaseDescs()
|
D | effect_common.h | 22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
|
/test/xts/hats/hdf/audio/idl/common/render/src/ |
D | audio_render_offload_test.cpp | 53 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen); 109 void AudioUtRenderOffloadTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_… in ReleaseAllAdapterDescs() argument 111 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs() 116 FreeAdapterElements(&descs[i], false); in ReleaseAllAdapterDescs()
|
D | audio_render_mmap_test.cpp | 50 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen); 100 void AudioUtRenderMmapTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t d… in ReleaseAllAdapterDescs() argument 102 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs() 107 FreeAdapterElements(&descs[i], false); in ReleaseAllAdapterDescs()
|
D | audio_render_common_test.cpp | 55 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen); 134 void AudioUtRenderTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descs… in ReleaseAllAdapterDescs() argument 136 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs() 141 FreeAdapterElements(&descs[i], false); in ReleaseAllAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/benchmarktest/adapter/ |
D | audio_adapter_benchmarktest.cpp | 51 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 74 void AudioAdapterBenchmarkTest::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t… in ReleaseAdapterDescs() argument 76 if ((descsLen > 0) && (descs != nullptr) && ((*descs) == nullptr)) { in ReleaseAdapterDescs() 81 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 83 OsalMemFree(*descs); in ReleaseAdapterDescs() 84 *descs = nullptr; in ReleaseAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/benchmarktest/effect/ |
D | effect_model_test.cpp | 95 struct EffectControllerDescriptor descs[MAX_DESCRIPTOR_NUM]; in BENCHMARK_F() local 97 ret = model_->GetAllEffectDescriptors(model_, descs, &descsLen); in BENCHMARK_F()
|
/test/xts/hats/hdf/audio/idl/benchmarktest/capture/ |
D | audio_capture_benchmarktest.cpp | 54 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 138 void AudioCaptureBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, uint3… in ReleaseAllAdapterDescs() argument 140 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAllAdapterDescs() 142 FreeAdapterElements(&(*descs)[i], false); in ReleaseAllAdapterDescs() 144 OsalMemFree(*descs); in ReleaseAllAdapterDescs() 145 *descs = nullptr; in ReleaseAllAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/common/render_additional/src/ |
D | AudioRenderMmapTest.cpp | 51 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen); 100 void AudioUtRenderMmapTestAdditional::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, … in ReleaseAllAdapterDescs() argument 102 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs() 107 FreeAdapterElements(&descs[i], false); in ReleaseAllAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/common/capture/src/ |
D | audio_capture_common_test.cpp | 47 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 132 void AudioUtCaptureTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t des… in ReleaseAllAdapterDescs() argument 134 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAllAdapterDescs() 136 FreeAdapterElements(&(*descs)[i], false); in ReleaseAllAdapterDescs() 138 OsalMemFree(*descs); in ReleaseAllAdapterDescs() 139 *descs = nullptr; in ReleaseAllAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/benchmarktest/render/ |
D | audio_render_benchmarktest.cpp | 60 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_t descsLen); 138 void AudioRenderBenchmarkTest::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor *descs, uint32_… in ReleaseAllAdapterDescs() argument 140 if (descs == nullptr || descsLen == 0) { in ReleaseAllAdapterDescs() 145 FreeAdapterElements(&descs[i], false); in ReleaseAllAdapterDescs()
|
/test/xts/hats/hdf/audio/idl/common/adapter_additional/src/ |
D | audio_adapter_common_test.cpp | 50 void ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 74 void HdfAudioUtAdapterTestAdditional::ReleaseAdapterDescs(struct AudioAdapterDescriptor **descs, ui… in ReleaseAdapterDescs() argument 76 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAdapterDescs() 78 AudioAdapterDescriptorFree(&(*descs)[i], false); in ReleaseAdapterDescs() 80 OsalMemFree(*descs); in ReleaseAdapterDescs() 81 *descs = nullptr; in ReleaseAdapterDescs()
|
/test/testfwk/arkxtest/uitest/napi/ |
D | uitest_napi.cpp | 438 auto descs = make_unique<napi_property_descriptor[]>(classDef.methodCount_); in ExportClass() local 448 descs[idx] = desc; in ExportClass() 471 classDef.methodCount_, descs.get(), &ctor), NAPI_ERR); in ExportClass()
|
/test/xts/hats/hdf/audio/idl/common/capture_additional/src/ |
D | AudioCaptureCommonTestAdditional.cpp | 48 void ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, uint32_t descsLen); 132 void AudioUtCaptureTestAdditional::ReleaseAllAdapterDescs(struct AudioAdapterDescriptor **descs, ui… in ReleaseAllAdapterDescs() argument 134 if ((descsLen > 0) && (descs != nullptr) && ((*descs) != nullptr)) { in ReleaseAllAdapterDescs() 136 FreeAdapterElements(&(*descs)[i], false); in ReleaseAllAdapterDescs() 138 OsalMemFree(*descs); in ReleaseAllAdapterDescs() 139 *descs = nullptr; in ReleaseAllAdapterDescs()
|