Home
last modified time | relevance | path

Searched refs:cmdSize (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/av/media/libaudiohal/impl/
DEffectConversionHelperAidl.h31 status_t handleCommand(uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, uint32_t* replySize,
71 status_t handleSetParameter(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
73 status_t handleGetParameter(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
120 status_t handleInit(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
122 status_t handleSetConfig(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
124 status_t handleGetConfig(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
126 status_t handleEnable(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
128 status_t handleDisable(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
130 status_t handleReset(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
132 status_t handleSetAudioSource(uint32_t cmdSize, const void* pCmdData, uint32_t* replySize,
[all …]
DEffectConversionHelperAidl.cpp92 status_t EffectConversionHelperAidl::handleCommand(uint32_t cmdCode, uint32_t cmdSize, in handleCommand() argument
100 return (this->*handler->second)(cmdSize, pCmdData, replySize, pReplyData); in handleCommand()
103 status_t EffectConversionHelperAidl::handleInit(uint32_t cmdSize __unused, in handleInit()
116 status_t EffectConversionHelperAidl::handleSetParameter(uint32_t cmdSize, const void* pCmdData, in handleSetParameter() argument
118 if (cmdSize < sizeof(effect_param_t) || !pCmdData || !replySize || *replySize < sizeof(int) || in handleSetParameter()
121 cmdSize, pCmdData, numericPointerToString(replySize).c_str(), pReplyData); in handleSetParameter()
126 if (!reader.validateCmdSize(cmdSize)) { in handleSetParameter()
127 ALOGE("%s illegal param %s size %u", __func__, reader.toString().c_str(), cmdSize); in handleSetParameter()
137 status_t EffectConversionHelperAidl::handleGetParameter(uint32_t cmdSize, const void* pCmdData, in handleGetParameter() argument
139 if (cmdSize < sizeof(effect_param_t) || !pCmdData || !replySize || !pReplyData) { in handleGetParameter()
[all …]
DEffectHalHidl.cpp200 status_t EffectHalHidl::command(uint32_t cmdCode, uint32_t cmdSize, void *pCmdData, in command() argument
208 return setConfigImpl(cmdCode, cmdSize, pCmdData, replySize, pReplyData); in command()
215 if (pCmdData != nullptr && cmdSize > 0) { in command()
216 hidlData.setToExternal(reinterpret_cast<uint8_t*>(pCmdData), cmdSize); in command()
311 uint32_t cmdCode, uint32_t cmdSize, void *pCmdData, uint32_t *replySize, void *pReplyData) { in setConfigImpl() argument
312 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || in setConfigImpl()
DEffectHalHidl.h53 virtual status_t command(uint32_t cmdCode, uint32_t cmdSize, void *pCmdData,
95 uint32_t cmdCode, uint32_t cmdSize, void *pCmdData,
DEffectHalAidl.h50 status_t command(uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, uint32_t* replySize,
DEffectHalAidl.cpp310 status_t EffectHalAidl::command(uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, in command() argument
318 return mConversion->handleCommand(cmdCode, cmdSize, pCmdData, replySize, pReplyData); in command()
/frameworks/av/media/libeffects/downmix/
DEffectDownmix.cpp66 uint32_t cmdSize,
388 static int32_t Downmix_Command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in Downmix_Command() argument
400 ALOGV("Downmix_Command command %u cmdSize %u", cmdCode, cmdSize); in Downmix_Command()
411 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Downmix_Command()
426 if (pCmdData == NULL || cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t)) || in Downmix_Command()
442 ", pReplyData %p", cmdSize, pCmdData, *replySize, pReplyData); in Downmix_Command()
443 if (pCmdData == NULL || (cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t))) in Downmix_Command()
492 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t)) { in Downmix_Command()
501 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t) * 2) { in Downmix_Command()
513 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t)) { in Downmix_Command()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp629 extern "C" int Equalizer_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in Equalizer_command() argument
640 ALOGV("Equalizer_command command %d cmdSize %d",cmdCode, cmdSize); in Equalizer_command()
650 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Equalizer_command()
667 if (pCmdData == NULL || cmdSize < (sizeof(effect_param_t) + sizeof(int32_t)) || in Equalizer_command()
686 cmdSize, pCmdData, *replySize, pReplyData); in Equalizer_command()
687 if (pCmdData == NULL || cmdSize < (sizeof(effect_param_t) + sizeof(int32_t)) || in Equalizer_command()
DEffectReverb.c284 static int Reverb_Command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in Reverb_Command() argument
296 ALOGV("Reverb_Command command %d cmdSize %d",cmdCode, cmdSize); in Reverb_Command()
309 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Reverb_Command()
328 if (pCmdData == NULL || cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t)) || in Reverb_Command()
341 cmdSize, pCmdData, *replySize, pReplyData); in Reverb_Command()
342 if (pCmdData == NULL || (cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t))) in Reverb_Command()
373 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t)) { in Reverb_Command()
380 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t) * 2) { in Reverb_Command()
389 if (pCmdData == NULL || cmdSize != (int)sizeof(uint32_t)) { in Reverb_Command()
DEffectReverb.h316 uint32_t cmdSize,
/frameworks/av/media/libeffects/proxy/
DEffectProxy.cpp210 uint32_t cmdSize, in Effect_command() argument
257 if (cmdSize == 0 || pCmdData == NULL) { in Effect_command()
280 pContext->eHandle[SUB_FX_OFFLOAD], cmdCode, cmdSize, in Effect_command()
340 pContext->eHandle[i], cmdCode, cmdSize, in Effect_command()
DEffectProxy.h48 uint32_t cmdSize,
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1093 int PreProcessingFx_Command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in PreProcessingFx_Command() argument
1115 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in PreProcessingFx_Command()
1154 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in PreProcessingFx_Command()
1185 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || in PreProcessingFx_Command()
1186 cmdSize < (sizeof(effect_param_t) + p->psize) || pReplyData == NULL || in PreProcessingFx_Command()
1207 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || pReplyData == NULL || in PreProcessingFx_Command()
1244 if (pCmdData == NULL || cmdSize != sizeof(uint32_t)) { in PreProcessingFx_Command()
1261 if (pCmdData == NULL || cmdSize != sizeof(uint32_t) || pReplyData == NULL || in PreProcessingFx_Command()
1293 char* path = strndup((char*)pCmdData, cmdSize); in PreProcessingFx_Command()
1325 if (pCmdData == NULL || cmdSize != 2 * sizeof(uint32_t) || pReplyData == NULL || in PreProcessingFx_Command()
[all …]
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp350 int LE_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in LE_command() argument
368 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in LE_command()
409 cmdSize != (int)(sizeof(effect_param_t) + sizeof(uint32_t)) || in LE_command()
435 cmdSize != (int)(sizeof(effect_param_t) + sizeof(uint32_t) + sizeof(uint32_t)) || in LE_command()
/frameworks/av/media/libaudiohal/include/media/audiohal/
DEffectHalInterface.h46 virtual status_t command(uint32_t cmdCode, uint32_t cmdSize, void *pCmdData,
/frameworks/av/media/libeffects/hapticgenerator/
DEffectHapticGenerator.cpp529 int32_t HapticGenerator_Command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in HapticGenerator_Command() argument
537 ALOGV("HapticGenerator_Command command %u cmdSize %u", cmdCode, cmdSize); in HapticGenerator_Command()
548 if (cmdData == nullptr || cmdSize != sizeof(effect_config_t) in HapticGenerator_Command()
568 "*replySize %u, replyData %p", cmdSize, cmdData, in HapticGenerator_Command()
570 if (cmdData == nullptr || (cmdSize < (int) (sizeof(effect_param_t) + sizeof(int32_t))) in HapticGenerator_Command()
DEffectHapticGenerator.h125 uint32_t cmdSize,
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp437 int DP_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in DP_command() argument
447 ALOGV("DP_command command %d cmdSize %d",cmdCode, cmdSize); in DP_command()
457 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in DP_command()
512 if (cmdSize != expectedCmdSize || *replySize < expectedCmdSize) { in DP_command()
514 cmdSize, expectedCmdSize, *replySize); in DP_command()
536 cmdSize < (sizeof(effect_param_t) + sizeof(int32_t) + sizeof(int32_t)) || in DP_command()
560 if (pCmdData == NULL || cmdSize < ((int)sizeof(uint32_t) * 2)) { in DP_command()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp660 jint cmdCode, jint cmdSize, jbyteArray jCmdData, jint replySize, in android_media_AudioEffect_native_command() argument
673 if ((cmdSize != 0 && jCmdData == NULL) || (replySize != 0 && jReplyData == NULL)) { in android_media_AudioEffect_native_command()
678 if (cmdSize != 0) { in android_media_AudioEffect_native_command()
697 (uint32_t)cmdSize, in android_media_AudioEffect_native_command()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp483 int Visualizer_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, in Visualizer_command() argument
502 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Visualizer_command()
543 cmdSize != (int)(sizeof(effect_param_t) + sizeof(uint32_t)) || in Visualizer_command()
581 cmdSize != (int)(sizeof(effect_param_t) + sizeof(uint32_t) + sizeof(uint32_t)) || in Visualizer_command()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1770 int Reverb_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, in Reverb_command() argument
1799 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in Reverb_command()
1836 if (cmdSize < sizeof(effect_param_t) || cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command()
1870 if (pCmdData == NULL || (cmdSize < (sizeof(effect_param_t) + sizeof(int32_t))) || in Reverb_command()
1940 if (pCmdData == NULL || cmdSize != 2 * sizeof(uint32_t)) { in Reverb_command()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp3066 int Effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize, void* pCmdData, in Effect_command() argument
3129 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in Effect_command()
3159 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || in Effect_command()
3160 cmdSize < (sizeof(effect_param_t) + p->psize) || pReplyData == NULL || in Effect_command()
3247 cmdSize != (sizeof(effect_param_t) + sizeof(int32_t) + sizeof(int16_t)) || in Effect_command()
3278 cmdSize > (sizeof(effect_param_t) + sizeof(int32_t) + sizeof(int32_t)) || in Effect_command()
3279 cmdSize < (sizeof(effect_param_t) + sizeof(int32_t) + sizeof(int16_t)) || in Effect_command()
3309 if (pCmdData == NULL || cmdSize < (sizeof(effect_param_t) + sizeof(int32_t)) || in Effect_command()
3329 if (pCmdData == NULL || cmdSize < (sizeof(effect_param_t) + sizeof(int32_t)) || in Effect_command()
3457 if (pCmdData == NULL || cmdSize != 2 * sizeof(uint32_t) || pReplyData == NULL || in Effect_command()
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c87 uint32_t cmdSize, in Effect_Command() argument
105 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); in Effect_Command()
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h576 uint32_t cmdSize,
/frameworks/av/media/libaudioclient/
DAudioEffect.cpp356 uint32_t cmdSize, in command() argument
381 appendToBuffer(cmdData, cmdSize, &data); in command()

12