Home
last modified time | relevance | path

Searched refs:pCmdData (Results 1 – 23 of 23) sorted by relevance

/frameworks/av/media/libaudiohal/impl/
DEffectConversionHelperAidl.cpp93 void* pCmdData, uint32_t* replySize, in handleCommand() argument
100 return (this->*handler->second)(cmdSize, pCmdData, replySize, pReplyData); in handleCommand()
104 const void* pCmdData __unused, uint32_t* replySize, 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()
125 auto reader = EffectParamReader(*(effect_param_t*)pCmdData); 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()
141 pCmdData, numericPointerToString(replySize).c_str(), pReplyData); in handleGetParameter()
[all …]
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 …]
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()
316 const effect_config_t *halConfig = static_cast<effect_config_t*>(pCmdData); 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.cpp67 void *pCmdData,
389 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Downmix_Command() argument
411 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Downmix_Command()
416 (effect_config_t *)pCmdData, false); in Downmix_Command()
425 pCmdData, *replySize, pReplyData); in Downmix_Command()
426 if (pCmdData == NULL || cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t)) || in Downmix_Command()
432 memcpy(pReplyData, pCmdData, 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()
447 effect_param_t *cmd = (effect_param_t *) pCmdData; in Downmix_Command()
[all …]
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1094 void* pCmdData, uint32_t* replySize, void* pReplyData) { in PreProcessingFx_Command() argument
1115 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in PreProcessingFx_Command()
1129 *(int*)pReplyData = Session_SetConfig(effect->session, (effect_config_t*)pCmdData); in PreProcessingFx_Command()
1154 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) || pReplyData == NULL || in PreProcessingFx_Command()
1161 Session_SetReverseConfig(effect->session, (effect_config_t*)pCmdData); in PreProcessingFx_Command()
1173 Session_GetReverseConfig(effect->session, (effect_config_t*)pCmdData); in PreProcessingFx_Command()
1183 effect_param_t* p = (effect_param_t*)pCmdData; in PreProcessingFx_Command()
1185 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || in PreProcessingFx_Command()
1193 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command()
1207 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || pReplyData == NULL || in PreProcessingFx_Command()
[all …]
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp630 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Equalizer_command() argument
650 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Equalizer_command()
655 (effect_config_t *) pCmdData); in Equalizer_command()
661 Equalizer_getConfig(pContext, (effect_config_t *) pCmdData); in Equalizer_command()
667 if (pCmdData == NULL || cmdSize < (sizeof(effect_param_t) + sizeof(int32_t)) || in Equalizer_command()
671 effect_param_t *p = (effect_param_t *)pCmdData; in Equalizer_command()
672 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Equalizer_command()
679 *(int32_t *)((char *)pCmdData + sizeof(effect_param_t)), *replySize, 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()
[all …]
DEffectReverb.c285 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Reverb_Command() argument
309 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Reverb_Command()
314 (effect_config_t *)pCmdData, false); in Reverb_Command()
320 Reverb_getConfig(pRvbModule, (effect_config_t *) pCmdData); in Reverb_Command()
326 …ommand EFFECT_CMD_GET_PARAM pCmdData %p, *replySize %d, pReplyData: %p",pCmdData, *replySize, pRep… in Reverb_Command()
328 if (pCmdData == NULL || cmdSize < (int)(sizeof(effect_param_t) + sizeof(int32_t)) || in Reverb_Command()
333 memcpy(pReplyData, pCmdData, 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()
346 effect_param_t *cmd = (effect_param_t *) pCmdData; in Reverb_Command()
[all …]
DEffectReverb.h317 void *pCmdData,
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp351 void *pCmdData, uint32_t *replySize, void *pReplyData) { in LE_command() argument
368 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in LE_command()
373 (effect_config_t *) pCmdData); in LE_command()
408 if (pCmdData == NULL || in LE_command()
414 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + sizeof(uint32_t)); in LE_command()
434 if (pCmdData == NULL || in LE_command()
440 effect_param_t *p = (effect_param_t *)pCmdData; in LE_command()
/frameworks/av/media/libeffects/proxy/
DEffectProxy.cpp211 void *pCmdData, in Effect_command() argument
257 if (cmdSize == 0 || pCmdData == NULL) { in Effect_command()
262 effect_offload_param_t* offloadParam = (effect_offload_param_t*)pCmdData; in Effect_command()
281 pCmdData, replySize, pReplyData); in Effect_command()
341 pCmdData, subReplySize[i], subReplyData[i]); in Effect_command()
DEffectProxy.h49 void *pCmdData,
/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()
3135 *(int*)pReplyData = android::Effect_setConfig(pContext, (effect_config_t*)pCmdData); in Effect_command()
3158 effect_param_t* p = (effect_param_t*)pCmdData; in Effect_command()
3159 if (pCmdData == NULL || cmdSize < sizeof(effect_param_t) || in Effect_command()
3184 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3246 if (pCmdData == NULL || in Effect_command()
3254 effect_param_t* const p = (effect_param_t*)pCmdData; in Effect_command()
3276 if (pCmdData == NULL || in Effect_command()
3286 effect_param_t* const p = (effect_param_t*)pCmdData; in Effect_command()
[all …]
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp484 void *pCmdData, uint32_t *replySize, void *pReplyData) { in Visualizer_command() argument
502 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in Visualizer_command()
507 (effect_config_t *) pCmdData); in Visualizer_command()
542 if (pCmdData == NULL || in Visualizer_command()
548 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + sizeof(uint32_t)); in Visualizer_command()
580 if (pCmdData == NULL || in Visualizer_command()
586 effect_param_t *p = (effect_param_t *)pCmdData; in Visualizer_command()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp438 void *pCmdData, uint32_t *replySize, void *pReplyData) { in DP_command() argument
457 if (pCmdData == NULL || cmdSize != sizeof(effect_config_t) in DP_command()
463 (effect_config_t *) pCmdData); in DP_command()
505 if (pCmdData == NULL || pReplyData == NULL || replySize == NULL) { in DP_command()
509 effect_param_t *pEffectParam = (effect_param_t *) pCmdData; in DP_command()
519 memcpy(pReplyData, pCmdData, expectedCmdSize); in DP_command()
535 if (pCmdData == NULL || in DP_command()
543 effect_param_t * const p = (effect_param_t *) pCmdData; in DP_command()
560 if (pCmdData == NULL || cmdSize < ((int)sizeof(uint32_t) * 2)) { in DP_command()
584 const float gain = (float)*((uint32_t *)pCmdData + offset) / unityGain; in DP_command()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp662 jbyte* pCmdData = NULL; in android_media_AudioEffect_native_command() local
679 pCmdData = env->GetByteArrayElements(jCmdData, nullptr /* isCopy */); in android_media_AudioEffect_native_command()
680 if (pCmdData == NULL) { in android_media_AudioEffect_native_command()
698 pCmdData, in android_media_AudioEffect_native_command()
704 if (pCmdData != NULL) { in android_media_AudioEffect_native_command()
705 env->ReleaseByteArrayElements(jCmdData, pCmdData, 0 /* mode */); in android_media_AudioEffect_native_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()
1805 *(int*)pReplyData = android::Reverb_setConfig(pContext, (effect_config_t*)pCmdData); in Reverb_command()
1827 effect_param_t* p = (effect_param_t*)pCmdData; in Reverb_command()
1828 if (pCmdData == nullptr) { in Reverb_command()
1844 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command()
1870 if (pCmdData == NULL || (cmdSize < (sizeof(effect_param_t) + sizeof(int32_t))) || in Reverb_command()
1877 effect_param_t* p = (effect_param_t*)pCmdData; in Reverb_command()
1940 if (pCmdData == NULL || cmdSize != 2 * sizeof(uint32_t)) { in Reverb_command()
1947 pContext->leftVolume = (LVM_INT16)((*(uint32_t*)pCmdData + (1 << 11)) >> 12); in Reverb_command()
[all …]
/frameworks/av/media/libaudiohal/include/media/audiohal/
DEffectHalInterface.h46 virtual status_t command(uint32_t cmdCode, uint32_t cmdSize, void *pCmdData,
/frameworks/native/headers/media_plugin/media/openmax/
DOMX_Core.h826 pCmdData) \ argument
831 pCmdData) /* Macro End */
DOMX_Component.h368 OMX_IN OMX_PTR pCmdData);
/frameworks/av/media/libeffects/factory/
DEffectsFactory.c88 void *pCmdData, in Effect_Command() argument
105 ret = (*fx->subItfe)->command(fx->subItfe, cmdCode, cmdSize, pCmdData, replySize, pReplyData); in Effect_Command()