Home
last modified time | relevance | path

Searched refs:replySize (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/av/media/libaudiohal/impl/
DEffectConversionHelperAidl.cpp91 void* pCmdData, uint32_t* replySize, in handleCommand() argument
98 return (this->*handler->second)(cmdSize, pCmdData, replySize, pReplyData); in handleCommand()
102 const void* pCmdData __unused, uint32_t* replySize, in handleInit() argument
104 if (!replySize || *replySize < sizeof(int) || !pReplyData) { in handleInit()
106 numericPointerToString(replySize).c_str(), pReplyData); in handleInit()
115 uint32_t* replySize, void* pReplyData) { in handleSetParameter() argument
116 if (cmdSize < sizeof(effect_param_t) || !pCmdData || !replySize || *replySize < sizeof(int) || in handleSetParameter()
119 cmdSize, pCmdData, numericPointerToString(replySize).c_str(), pReplyData); in handleSetParameter()
136 uint32_t* replySize, void* pReplyData) { in handleGetParameter() argument
137 if (cmdSize < sizeof(effect_param_t) || !pCmdData || !replySize || !pReplyData) { in handleGetParameter()
[all …]
DEffectConversionHelperAidl.h31 status_t handleCommand(uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, uint32_t* replySize,
62 status_t handleSetParameter(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
64 status_t handleGetParameter(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
108 status_t handleInit(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
110 status_t handleSetConfig(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
112 status_t handleGetConfig(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
114 status_t handleEnable(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
116 status_t handleDisable(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
118 status_t handleReset(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
120 status_t handleSetAudioSource(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
[all …]
DEffectHalHidl.cpp201 uint32_t *replySize, void *pReplyData) { in command() argument
208 return setConfigImpl(cmdCode, cmdSize, pCmdData, replySize, pReplyData); in command()
210 return getConfigImpl(cmdCode, replySize, pReplyData); in command()
220 if (replySize == nullptr || pReplyData == nullptr) replySize = &replySizeStub; in command()
221 Return<void> ret = mEffect->command(cmdCode, hidlData, *replySize, in command()
225 if (*replySize > result.size()) *replySize = result.size(); in command()
226 if (pReplyData != nullptr && *replySize > 0) { in command()
227 memcpy(pReplyData, &result[0], *replySize); in command()
281 uint32_t cmdCode, uint32_t *replySize, void *pReplyData) { in getConfigImpl() argument
282 if (replySize == NULL || *replySize != sizeof(effect_config_t) || pReplyData == NULL) { in getConfigImpl()
[all …]
DEffectHalHidl.h54 uint32_t *replySize, void *pReplyData);
90 status_t getConfigImpl(uint32_t cmdCode, uint32_t *replySize, void *pReplyData);
96 uint32_t *replySize, void *pReplyData);
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp485 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Visualizer_command() argument
497 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Visualizer_command()
504 || pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Visualizer_command()
511 if (pReplyData == NULL || replySize == NULL || in Visualizer_command()
512 *replySize != sizeof(effect_config_t)) { in Visualizer_command()
521 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Visualizer_command()
532 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Visualizer_command()
545 pReplyData == NULL || replySize == NULL || in Visualizer_command()
546 *replySize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) + sizeof(uint32_t))) { in Visualizer_command()
552 *replySize = sizeof(effect_param_t) + sizeof(uint32_t); in Visualizer_command()
[all …]
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/
DAidlConversionVisualizer.cpp141 status_t AidlConversionVisualizer::visualizerCapture(uint32_t* replySize, void* pReplyData) { in visualizerCapture() argument
142 if (!replySize || !pReplyData || *replySize != mCaptureSize) { in visualizerCapture()
143 ALOGE("%s illegal param replySize %p pReplyData %p", __func__, replySize, pReplyData); in visualizerCapture()
154 size_t len = std::min((size_t)*replySize, samples.size()); in visualizerCapture()
155 std::memcpy(pReplyData, samples.data(), *replySize = len); in visualizerCapture()
159 status_t AidlConversionVisualizer::visualizerMeasure(uint32_t* replySize, void* pReplyData) { in visualizerMeasure() argument
160 if (!replySize || !pReplyData || *replySize != 2 * sizeof(int32_t)) { in visualizerMeasure()
161 ALOGE("%s illegal param replySize %p pReplyData %p", __func__, replySize, pReplyData); in visualizerMeasure()
DAidlConversionVisualizer.h38 status_t visualizerCapture(uint32_t* replySize, void* pReplyData) override;
39 status_t visualizerMeasure(uint32_t* replySize, void* pReplyData) override;
/frameworks/av/media/libeffects/proxy/
DEffectProxy.cpp147 pContext->replySize = PROXY_REPLY_SIZE_DEFAULT; in EffectProxyCreate()
212 uint32_t *replySize, in Effect_command() argument
252 if (replySize == NULL || *replySize < sizeof(int)) { in Effect_command()
281 pCmdData, replySize, pReplyData); in Effect_command()
304 if (replySize != NULL) { in Effect_command()
305 tmpSize = pContext->replySize; in Effect_command()
306 while (tmpSize < *replySize && tmpSize < PROXY_REPLY_SIZE_MAX) { in Effect_command()
309 if (tmpSize > pContext->replySize) { in Effect_command()
312 pContext->replySize = tmpSize; in Effect_command()
314 if (tmpSize > *replySize) { in Effect_command()
[all …]
DEffectProxy.h50 uint32_t *replySize,
78 uint32_t replySize; // current size of temporary reply buffer member
/frameworks/av/media/libaudiohal/tests/
DEffectsFactoryHalInterface_test.cpp264 uint32_t replySize = sizeof(reply); in initEffect() local
265 ASSERT_EQ(OK, interface->command(EFFECT_CMD_INIT, 0, nullptr, &replySize, &reply)); in initEffect()
267 &mEffectConfig, &replySize, &reply)); in initEffect()
287 uint32_t replySize = sizeof(uint32_t); in setAndGetParameter() local
288 uint8_t reply[replySize]; in setAndGetParameter()
293 &replySize, &reply)) in setAndGetParameter()
295 ASSERT_EQ(replySize, sizeof(uint32_t)); in setAndGetParameter()
301 replySize = maxReplySize; in setAndGetParameter()
305 &replySize, getParam)); in setAndGetParameter()
307 EXPECT_EQ(replySize, parameterGet.getTotalSize()) << parameterGet.toString(); in setAndGetParameter()
[all …]
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp37 uint32_t replySize = sizeof(reply); in setConfig() local
41 &config, &replySize, &reply); in setConfig()
48 sizeof(effect_config_t), &config, &replySize, &reply); in setConfig()
54 ->command(mEffectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in setConfig()
61 uint32_t replySize = sizeof(reply); in setParam() local
70 &replySize, &reply); in setParam()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp351 void *pCmdData, uint32_t *replySize, void *pReplyData) { in LE_command() argument
362 if (pReplyData == NULL || *replySize != sizeof(int)) { in LE_command()
369 || pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in LE_command()
377 *replySize != sizeof(effect_config_t)) { in LE_command()
386 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in LE_command()
397 if (pReplyData == NULL || *replySize != sizeof(int)) { in LE_command()
410 pReplyData == NULL || replySize == NULL || in LE_command()
411 *replySize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) + sizeof(uint32_t))) { in LE_command()
417 *replySize = sizeof(effect_param_t) + sizeof(uint32_t); in LE_command()
427 *replySize += sizeof(int32_t); in LE_command()
[all …]
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1094 void* pCmdData, uint32_t* replySize, void* pReplyData) { in PreProcessingFx_Command() argument
1105 if (pReplyData == NULL || *replySize != sizeof(int)) { in PreProcessingFx_Command()
1116 *replySize != sizeof(int)) { in PreProcessingFx_Command()
1144 if (pReplyData == NULL || *replySize != sizeof(effect_config_t)) { in PreProcessingFx_Command()
1155 *replySize != sizeof(int)) { in PreProcessingFx_Command()
1168 if (pReplyData == NULL || *replySize != sizeof(effect_config_t)) { in PreProcessingFx_Command()
1187 replySize == NULL || *replySize < (sizeof(effect_param_t) + p->psize)) { in PreProcessingFx_Command()
1202 *replySize = sizeof(effect_param_t) + voffset + p->vsize; in PreProcessingFx_Command()
1208 replySize == NULL || *replySize != sizeof(int32_t)) { in PreProcessingFx_Command()
1227 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in PreProcessingFx_Command()
[all …]
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.cpp68 uint32_t *replySize,
389 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Downmix_Command() argument
404 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Downmix_Command()
412 || pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in Downmix_Command()
425 pCmdData, *replySize, pReplyData); in Downmix_Command()
427 pReplyData == NULL || replySize == NULL || in Downmix_Command()
428 *replySize < (int) sizeof(effect_param_t) + 2 * sizeof(int32_t)) { in Downmix_Command()
437 *replySize = sizeof(effect_param_t) + sizeof(int32_t) + rep->vsize; in Downmix_Command()
442 ", pReplyData %p", cmdSize, pCmdData, *replySize, pReplyData); in Downmix_Command()
444 || pReplyData == NULL || replySize == NULL || *replySize != (int)sizeof(int32_t)) { in Downmix_Command()
[all …]
/frameworks/av/media/libeffects/preprocessing/benchmarks/
Dpreprocessing_benchmark.cpp187 uint32_t replySize = sizeof(reply); in preProcCreateEffect() local
191 sizeof(effect_config_t), pConfig, &replySize, &reply); in preProcCreateEffect()
199 sizeof(effect_config_t), pConfig, &replySize, &reply); in preProcCreateEffect()
209 uint32_t replySize = sizeof(reply); in preProcSetConfigParam() local
216 &replySize, &reply); in preProcSetConfigParam()
246 uint32_t replySize = sizeof(reply); in BM_PREPROCESSING() local
249 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_PREPROCESSING()
/frameworks/av/media/libeffects/tests/common/
DEffectTestHelper.h92 uint32_t replySize = sizeof(reply); in setParam() local
104 effectParam, &replySize, &reply); in setParam()
123 uint32_t replySize = sizeof(effect_param_t) + p->psize + p->vsize; in getParam() local
128 &replySize, reply); in getParam()
135 if (replySize < in getParam()
156 uint32_t replySize = sizeof(reply); in setParam() local
167 sizeof(effect_param_t) + p->psize + p->vsize, p, &replySize, in setParam()
DEffectTestHelper.cpp39 uint32_t replySize = sizeof(reply); in setConfig() local
42 &config, &replySize, &reply); in setConfig()
47 ->command(mEffectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in setConfig()
/frameworks/av/media/libeffects/lvm/benchmarks/
Dreverb_benchmark.cpp58 uint32_t replySize = sizeof(reply); in reverbSetConfigParam() local
67 &replySize, &reply); in reverbSetConfigParam()
128 uint32_t replySize = sizeof(reply); in BM_REVERB() local
131 &config, &replySize, &reply); in BM_REVERB()
139 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_REVERB()
Dlvm_benchmark.cpp189 uint32_t replySize = sizeof(reply); in BM_LVM() local
192 &config, &replySize, &reply); in BM_LVM()
200 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_LVM()
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp523 void *cmdData, uint32_t *replySize, void *replyData) { in HapticGenerator_Command() argument
534 if (replyData == nullptr || replySize == nullptr || *replySize != sizeof(int)) { in HapticGenerator_Command()
542 || replyData == nullptr || replySize == nullptr || *replySize != sizeof(int)) { in HapticGenerator_Command()
556 cmdData, *replySize, replyData); in HapticGenerator_Command()
562 replySize ? *replySize : 0, replyData); in HapticGenerator_Command()
564 || replyData == nullptr || replySize == nullptr || in HapticGenerator_Command()
565 *replySize != (int) sizeof(int32_t)) { in HapticGenerator_Command()
575 if (replyData == nullptr || replySize == nullptr || *replySize != sizeof(int)) { in HapticGenerator_Command()
587 if (replyData == nullptr || replySize == nullptr || *replySize != sizeof(int)) { in HapticGenerator_Command()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp630 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Equalizer_command() argument
644 if (pReplyData == NULL || *replySize != sizeof(int)) { in Equalizer_command()
651 || pReplyData == NULL || *replySize != sizeof(int)) { in Equalizer_command()
658 if (pReplyData == NULL || *replySize != sizeof(effect_config_t)) { in Equalizer_command()
668 pReplyData == NULL || *replySize < (sizeof(effect_param_t) + sizeof(int32_t))) { in Equalizer_command()
677 *replySize = sizeof(effect_param_t) + voffset + p->vsize; in Equalizer_command()
679 *(int32_t *)((char *)pCmdData + sizeof(effect_param_t)), *replySize, in Equalizer_command()
686 cmdSize, pCmdData, *replySize, pReplyData); in Equalizer_command()
688 pReplyData == NULL || *replySize != sizeof(int32_t)) { in Equalizer_command()
696 if (pReplyData == NULL || *replySize != sizeof(int)) { in Equalizer_command()
[all …]
/frameworks/av/media/libeffects/lvm/tests/
Dreverb_test.cpp126 uint32_t replySize = sizeof(reply); in reverbCreateEffect() local
129 &replySize, &reply); in reverbCreateEffect()
135 uint32_t replySize = sizeof(reply); in reverbSetConfigParam() local
144 &replySize, &reply); in reverbSetConfigParam()
325 uint32_t replySize = sizeof(reply); in main() local
326 (*effectHandle)->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in main()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp438 void *pCmdData, uint32_t *replySize, void *pReplyData) { in DP_command() argument
450 if (pReplyData == NULL || *replySize != sizeof(int)) { in DP_command()
458 || pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in DP_command()
467 *replySize != sizeof(effect_config_t)) { in DP_command()
477 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in DP_command()
491 if (pReplyData == NULL || replySize == NULL || *replySize != sizeof(int)) { in DP_command()
505 if (pCmdData == NULL || pReplyData == NULL || replySize == NULL) { in DP_command()
512 if (cmdSize != expectedCmdSize || *replySize < expectedCmdSize) { in DP_command()
514 cmdSize, expectedCmdSize, *replySize); in DP_command()
529 *replySize = sizeof(effect_param_t) + voffset + p->vsize; in DP_command()
[all …]
/frameworks/av/media/libeffects/spatializer/benchmarks/
Dspatializer_benchmark.cpp116 uint32_t replySize = sizeof(reply); in BM_SPATIALIZER() local
119 &config, &replySize, &reply); in BM_SPATIALIZER()
127 &config, &replySize, &reply); in BM_SPATIALIZER()
/frameworks/av/media/libeffects/downmix/benchmark/
Ddownmix_benchmark.cpp137 uint32_t replySize = sizeof(reply); in BM_Downmix() local
140 &config, &replySize, &reply); in BM_Downmix()
147 ->command(effectHandle, EFFECT_CMD_ENABLE, 0, nullptr, &replySize, &reply); in BM_Downmix()

12