Home
last modified time | relevance | path

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

12

/test/xts/hats/hdf/audio/idl/common/manager/src/
Daudio_manager_common_test.cpp36 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/
DAudioManagerCommonTest.cpp36 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/
Daudio_manager_benchmarktest.cpp38 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/
Deffect_model_test.cpp103 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);
Deffect_common.cpp41 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()
Deffect_common.h22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
/test/xts/hats/hdf/audio/idl/common/adapter/src/
Daudio_adapter_multchannel_test.cpp48 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()
Daudio_adapter_common_test.cpp50 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/
Deffect_common.cpp41 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()
Deffect_model_test.cpp172 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 …]
Deffect_common.h22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
/test/xts/hats/hdf/audio/idl/benchmarktest/effect/include/
Deffect_common.cpp41 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()
Deffect_common.h22 void EffectControllerReleaseDescs(struct EffectControllerDescriptor *descs, const uint32_t *descsLe…
/test/xts/hats/hdf/audio/idl/common/render/src/
Daudio_render_offload_test.cpp53 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()
Daudio_render_mmap_test.cpp50 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()
Daudio_render_common_test.cpp55 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/
Daudio_adapter_benchmarktest.cpp51 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/
Deffect_model_test.cpp95 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/
Daudio_capture_benchmarktest.cpp54 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/
DAudioRenderMmapTest.cpp51 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/
Daudio_capture_common_test.cpp47 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/
Daudio_render_benchmarktest.cpp60 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/
Daudio_adapter_common_test.cpp50 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/
Duitest_napi.cpp438 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/
DAudioCaptureCommonTestAdditional.cpp48 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()

12