/frameworks/av/media/libaudioclient/ |
D | AudioEffect.cpp | 311 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter() 316 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local 319 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter() 321 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter() 334 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred() 340 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local 341 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred() 348 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred() 380 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter() 385 (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() 508 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument 524 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter() 542 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter() 544 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter() 545 p->psize = psize; in android_media_AudioEffect_native_setParameter() 569 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument 585 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter() 603 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_getParameter() [all …]
|
D | Visualizer.cpp | 159 p->psize = sizeof(uint32_t); in setCaptureSize() 188 p->psize = sizeof(uint32_t); in setScalingMode() 218 p->psize = sizeof(uint32_t); in setMeasurementMode() 388 p->psize = sizeof(uint32_t); in initCaptureSize()
|
/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/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/base/media/java/android/media/audiofx/ |
D | AudioEffect.java | 1330 int psize = byteArrayToInt(p, 4); in handleMessage() local 1332 byte[] param = new byte[psize]; in handleMessage() 1334 System.arraycopy(p, 12, param, 0, psize); in handleMessage() 1388 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument 1391 private native final int native_getParameter(int psize, byte[] param, in native_getParameter() argument
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 1913 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command() 1918 cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command() 1920 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command() 1926 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command() 1930 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command() 1964 if (p->psize != sizeof(int32_t)){ in Reverb_command() 1979 p->data + p->psize, in Reverb_command()
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 3288 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * in computeParamVOffset() 3391 cmdSize < (sizeof(effect_param_t) + p->psize) || in Effect_command() 3393 *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command() 3397 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command() 3417 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command() 3424 p->psize, in Effect_command() 3437 p->psize, in Effect_command() 3452 p->psize, in Effect_command() 3467 p->psize, in Effect_command() 3509 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/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/audioflinger/ |
D | Effects.cpp | 1003 p->psize = sizeof(uint32_t); in configure() 1180 ((effect_param_t *)pCmdData)->psize > cmdSize in command() 1188 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) { in command() 1194 || ((effect_param_t *)pCmdData)->psize > *replySize in command() 1198 - ((effect_param_t *)pCmdData)->psize in command() 1199 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() 1202 - ((effect_param_t *)pCmdData)->psize in command() 1211 || ((effect_param_t *)pCmdData)->psize > cmdSize in command() 1215 - ((effect_param_t *)pCmdData)->psize in command() 1216 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) > in command() [all …]
|
/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/services/audiopolicy/service/ |
D | AudioPolicyEffects.h | 147 ((origParam->psize + 3) & ~3) + in EffectDesc()
|
D | AudioPolicyEffects.cpp | 710 fx_param->psize = sizeof(int); in loadEffectParameter() 721 fx_param->psize = 0; in loadEffectParameter() 730 fx_param->psize += size; in loadEffectParameter()
|
/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 | 253 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider() 255 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()
|