/frameworks/av/media/libmedia/ |
D | AudioEffect.cpp | 275 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter() 280 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local 283 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter() 285 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter() 295 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred() 301 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local 302 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred() 309 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred() 335 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter() 340 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter() [all …]
|
D | Visualizer.cpp | 145 p->psize = sizeof(uint32_t); in setCaptureSize() 174 p->psize = sizeof(uint32_t); in setScalingMode() 204 p->psize = sizeof(uint32_t); in setMeasurementMode() 374 p->psize = sizeof(uint32_t); in initCaptureSize()
|
/frameworks/base/media/jni/audioeffect/ |
D | android_media_AudioEffect.cpp | 147 if (p->psize == 0 || p->vsize == 0) { in effectCallback() 151 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int); in effectCallback() 536 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument 552 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter() 570 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter() 572 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter() 573 p->psize = psize; in android_media_AudioEffect_native_setParameter() 597 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument 613 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter() 631 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() 581 p->psize = sizeof(int32_t); in android_fx_setParam() 584 memcpy(p->data + p->psize, pValue, p->vsize); in android_fx_setParam() 601 p->psize = sizeof(int32_t); in android_fx_getParam() 608 memcpy(pValue, p->data + p->psize, p->vsize); in android_fx_getParam()
|
/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/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 1959 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command() 1964 cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command() 1966 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command() 1972 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command() 1976 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command() 2010 if (p->psize != sizeof(int32_t)){ in Reverb_command() 2025 p->data + p->psize); in Reverb_command()
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 3100 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command() 3105 cmdSize < (sizeof(effect_param_t) + p->psize) || in Effect_command() 3107 *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command() 3112 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command() 3116 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Effect_command() 3191 if (p->psize != sizeof(int32_t)){ in Effect_command() 3206 p->data + p->psize); in Effect_command() 3226 if (p->psize != sizeof(int32_t)){ in Effect_command() 3241 p->data + p->psize); in Effect_command() 3261 p->data + p->psize); in Effect_command() [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 670 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Equalizer_command() 672 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Equalizer_command() 691 p->data + p->psize); in Equalizer_command()
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 379 if (p->psize != sizeof(uint32_t)) { in LE_command() 402 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in LE_command()
|
/frameworks/av/services/audiopolicy/service/ |
D | AudioPolicyEffects.cpp | 494 fx_param->psize = sizeof(int); in loadEffectParameter() 505 fx_param->psize = 0; in loadEffectParameter() 514 fx_param->psize += size; in loadEffectParameter()
|
D | AudioPolicyEffects.h | 102 ((origParam->psize + 3) & ~3) + in EffectDesc()
|
/frameworks/av/services/audioflinger/ |
D | BufferProviders.cpp | 207 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider() 209 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
|
D | Effects.cpp | 403 p->psize = sizeof(uint32_t); in configure() 563 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) { in command() 1250 if (param->psize == 0 || param->vsize == 0) { in command() 1255 uint32_t psize = sizeof(effect_param_t) + in command() local 1256 ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + in command() 1259 psize, in command()
|
/frameworks/av/media/libeffects/preprocessing/ |
D | PreProcessing.cpp | 1503 cmdSize < (sizeof(effect_param_t) + p->psize) || in PreProcessingFx_Command() 1505 *replySize < (sizeof(effect_param_t) + p->psize)){ in PreProcessingFx_Command() 1511 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command() 1515 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in PreProcessingFx_Command() 1536 if (p->psize != sizeof(int32_t)){ in PreProcessingFx_Command() 1544 p->data + p->psize); in PreProcessingFx_Command()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 483 if (p->psize != sizeof(uint32_t)) { in Visualizer_command() 518 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in Visualizer_command()
|