/frameworks/av/media/libaudioclient/ |
D | AudioEffect.cpp | 280 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter() 285 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local 288 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter() 290 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter() 300 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred() 306 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local 307 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred() 314 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred() 340 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter() 345 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter() [all …]
|
/frameworks/base/media/jni/audioeffect/ |
D | android_media_AudioEffect.cpp | 148 if (p->psize == 0 || p->vsize == 0) { in effectCallback() 152 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int); in effectCallback() 537 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument 553 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter() 571 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter() 573 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter() 574 p->psize = psize; in android_media_AudioEffect_native_setParameter() 598 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument 614 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter() 632 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_getParameter() [all …]
|
/frameworks/wilhelm/src/android/ |
D | android_Effect.cpp | 206 p->psize = eq_paramSize(param); in android_eq_getParam() 208 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_getParam() 216 memcpy(pValue, p->data + p->psize, p->vsize); in android_eq_getParam() 232 p->psize = eq_paramSize(param); in android_eq_setParam() 234 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_setParam() 238 memcpy(p->data + p->psize, pValue, p->vsize); in android_eq_setParam() 617 p->psize = sizeof(int32_t); in android_fx_setParam() 620 memcpy(p->data + p->psize, pValue, p->vsize); in android_fx_setParam() 637 p->psize = sizeof(int32_t); in android_fx_getParam() 644 memcpy(pValue, p->data + p->psize, p->vsize); in android_fx_getParam()
|
/frameworks/av/media/libmedia/ |
D | Visualizer.cpp | 141 p->psize = sizeof(uint32_t); in setCaptureSize() 170 p->psize = sizeof(uint32_t); in setScalingMode() 200 p->psize = sizeof(uint32_t); in setMeasurementMode() 370 p->psize = sizeof(uint32_t); in initCaptureSize()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | AudioEffect.java | 1203 int psize = byteArrayToInt(p, 4); in handleMessage() local 1205 byte[] param = new byte[psize]; in handleMessage() 1207 System.arraycopy(p, 12, param, 0, psize); in handleMessage() 1260 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument 1263 private native final int native_getParameter(int psize, byte[] param, in native_getParameter() argument
|
/frameworks/base/core/java/android/view/animation/ |
D | ScaleAnimation.java | 260 float resolveScale(float scale, int type, int data, int size, int psize) { in resolveScale() argument 263 targetSize = TypedValue.complexToFraction(data, size, psize); in resolveScale()
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 3360 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 3463 cmdSize < (sizeof(effect_param_t) + p->psize) || in Effect_command() 3465 *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command() 3469 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command() 3489 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command() 3496 p->psize, in Effect_command() 3509 p->psize, in Effect_command() 3524 p->psize, in Effect_command() 3539 p->psize, in Effect_command() 3581 p->psize, in Effect_command() [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 673 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Equalizer_command() 675 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Equalizer_command() 694 p->data + p->psize); in Equalizer_command()
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 656 p->psize = sizeof(uint32_t); in configure() 846 ((effect_param_t *)pCmdData)->psize > cmdSize in command() 854 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) { in command() 860 || ((effect_param_t *)pCmdData)->psize > *replySize in command() 864 - ((effect_param_t *)pCmdData)->psize in command() 865 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() 868 - ((effect_param_t *)pCmdData)->psize in command() 877 || ((effect_param_t *)pCmdData)->psize > cmdSize in command() 881 - ((effect_param_t *)pCmdData)->psize in command() 882 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 2044 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command() 2049 cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command() 2051 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command() 2057 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command() 2061 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command() 2095 if (p->psize != sizeof(int32_t)){ in Reverb_command() 2110 p->data + p->psize, in Reverb_command()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 381 if (p->psize != sizeof(uint32_t)) { in LE_command() 404 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in LE_command()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyEffects.h | 102 ((origParam->psize + 3) & ~3) + in EffectDesc()
|
D | AudioPolicyEffects.cpp | 509 fx_param->psize = sizeof(int); in loadEffectParameter() 520 fx_param->psize = 0; in loadEffectParameter() 529 fx_param->psize += size; in loadEffectParameter()
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1499 cmdSize < (sizeof(effect_param_t) + p->psize) || in PreProcessingFx_Command() 1501 *replySize < (sizeof(effect_param_t) + p->psize)){ in PreProcessingFx_Command() 1507 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command() 1511 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in PreProcessingFx_Command() 1532 if (p->psize != sizeof(int32_t)){ in PreProcessingFx_Command() 1540 p->data + p->psize); in PreProcessingFx_Command()
|
/frameworks/av/media/libeffects/dynamicsproc/ |
D | EffectDynamicsProcessing.cpp | 80 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 513 uint32_t expectedCmdSize = DP_getParameterCmdSize(pEffectParam->psize, in DP_command() 528 p->psize, in DP_command() 550 p->psize, in DP_command()
|
/frameworks/av/media/libaudioprocessing/ |
D | BufferProviders.cpp | 245 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider() 247 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 486 if (p->psize != sizeof(uint32_t)) { in Visualizer_command() 521 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in Visualizer_command()
|
/frameworks/av/media/libeffects/downmix/ |
D | EffectDownmix.c | 566 if (cmd->psize != sizeof(int32_t)) { in Downmix_Command()
|