/frameworks/av/media/libaudioclient/ |
D | AudioEffect.cpp | 282 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter() 287 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local 290 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter() 292 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter() 302 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred() 308 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local 309 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred() 316 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred() 342 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter() 347 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter() [all …]
|
/frameworks/base/media/jni/audioeffect/ |
D | android_media_AudioEffect.cpp | 155 if (p->psize == 0 || p->vsize == 0) { in effectCallback() 159 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int); in effectCallback() 491 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument 507 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter() 525 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter() 527 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter() 528 p->psize = psize; in android_media_AudioEffect_native_setParameter() 552 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument 568 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter() 586 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 | 154 p->psize = sizeof(uint32_t); in setCaptureSize() 183 p->psize = sizeof(uint32_t); in setScalingMode() 213 p->psize = sizeof(uint32_t); in setMeasurementMode() 383 p->psize = sizeof(uint32_t); in initCaptureSize()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | AudioEffect.java | 1252 int psize = byteArrayToInt(p, 4); in handleMessage() local 1254 byte[] param = new byte[psize]; in handleMessage() 1256 System.arraycopy(p, 12, param, 0, psize); in handleMessage() 1309 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument 1312 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 | 3396 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 3499 cmdSize < (sizeof(effect_param_t) + p->psize) || in Effect_command() 3501 *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command() 3505 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command() 3525 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command() 3532 p->psize, in Effect_command() 3545 p->psize, in Effect_command() 3560 p->psize, in Effect_command() 3575 p->psize, in Effect_command() 3617 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 | 733 p->psize = sizeof(uint32_t); in configure() 933 ((effect_param_t *)pCmdData)->psize > cmdSize in command() 941 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) { in command() 947 || ((effect_param_t *)pCmdData)->psize > *replySize in command() 951 - ((effect_param_t *)pCmdData)->psize in command() 952 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() 955 - ((effect_param_t *)pCmdData)->psize in command() 964 || ((effect_param_t *)pCmdData)->psize > cmdSize in command() 968 - ((effect_param_t *)pCmdData)->psize in command() 969 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 2043 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command() 2048 cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command() 2050 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command() 2056 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command() 2060 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command() 2094 if (p->psize != sizeof(int32_t)){ in Reverb_command() 2109 p->data + p->psize, in Reverb_command()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 418 if (p->psize != sizeof(uint32_t)) { in LE_command() 441 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in LE_command()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyEffects.h | 143 ((origParam->psize + 3) & ~3) + in EffectDesc()
|
D | AudioPolicyEffects.cpp | 706 fx_param->psize = sizeof(int); in loadEffectParameter() 717 fx_param->psize = 0; in loadEffectParameter() 726 fx_param->psize += size; in loadEffectParameter()
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1500 cmdSize < (sizeof(effect_param_t) + p->psize) || in PreProcessingFx_Command() 1502 *replySize < (sizeof(effect_param_t) + p->psize)){ in PreProcessingFx_Command() 1508 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command() 1512 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in PreProcessingFx_Command() 1533 if (p->psize != sizeof(int32_t)){ in PreProcessingFx_Command() 1541 p->data + p->psize); in PreProcessingFx_Command()
|
/frameworks/av/media/libeffects/dynamicsproc/ |
D | EffectDynamicsProcessing.cpp | 81 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 510 uint32_t expectedCmdSize = DP_getParameterCmdSize(pEffectParam->psize, in DP_command() 525 p->psize, in DP_command() 547 p->psize, in DP_command()
|
/frameworks/av/media/libaudioprocessing/ |
D | BufferProviders.cpp | 252 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider() 254 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 553 if (p->psize != sizeof(uint32_t)) { in Visualizer_command() 588 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in Visualizer_command()
|
/frameworks/av/media/libeffects/downmix/ |
D | EffectDownmix.c | 568 if (cmd->psize != sizeof(int32_t)) { in Downmix_Command()
|