/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 | 1177 int psize = byteArrayToInt(p, 4); in handleMessage() local 1179 byte[] param = new byte[psize]; in handleMessage() 1181 System.arraycopy(p, 12, param, 0, psize); in handleMessage() 1234 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument 1237 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/services/audioflinger/ |
D | Effects.cpp | 442 p->psize = sizeof(uint32_t); in configure() 626 ((effect_param_t *)pCmdData)->psize > cmdSize in command() 634 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) { in command() 640 || ((effect_param_t *)pCmdData)->psize > *replySize in command() 644 - ((effect_param_t *)pCmdData)->psize in command() 645 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() 648 - ((effect_param_t *)pCmdData)->psize in command() 657 || ((effect_param_t *)pCmdData)->psize > cmdSize in command() 661 - ((effect_param_t *)pCmdData)->psize in command() 662 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 3384 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 3487 cmdSize < (sizeof(effect_param_t) + p->psize) || in Effect_command() 3489 *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command() 3493 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command() 3513 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command() 3520 p->psize, in Effect_command() 3533 p->psize, in Effect_command() 3548 p->psize, in Effect_command() 3563 p->psize, in Effect_command() 3605 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/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 2115 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command() 2120 cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command() 2122 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command() 2128 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command() 2132 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command() 2166 if (p->psize != sizeof(int32_t)){ in Reverb_command() 2181 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 | 508 fx_param->psize = sizeof(int); in loadEffectParameter() 519 fx_param->psize = 0; in loadEffectParameter() 528 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/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()
|