Home
last modified time | relevance | path

Searched refs:psize (Results 1 – 16 of 16) sorted by relevance

/frameworks/av/media/libmedia/
DAudioEffect.cpp270 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameter()
275 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local
278 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter()
280 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, in setParameter()
290 if (param == NULL || param->psize == 0 || param->vsize == 0) { in setParameterDeferred()
296 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local
297 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred()
304 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred()
330 if (param == NULL || param->psize == 0 || param->vsize == 0) { in getParameter()
335 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter()
[all …]
DVisualizer.cpp148 p->psize = sizeof(uint32_t); in setCaptureSize()
177 p->psize = sizeof(uint32_t); in setScalingMode()
207 p->psize = sizeof(uint32_t); in setMeasurementMode()
377 p->psize = sizeof(uint32_t); in initCaptureSize()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp144 if (p->psize == 0 || p->vsize == 0) { in effectCallback()
148 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int); in effectCallback()
516 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument
534 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter()
552 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter()
554 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter()
555 p->psize = psize; in android_media_AudioEffect_native_setParameter()
579 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument
597 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter()
615 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_getParameter()
[all …]
/frameworks/wilhelm/src/android/
Dandroid_Effect.cpp199 p->psize = eq_paramSize(param); in android_eq_getParam()
201 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_getParam()
209 memcpy(pValue, p->data + p->psize, p->vsize); in android_eq_getParam()
225 p->psize = eq_paramSize(param); in android_eq_setParam()
227 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_setParam()
231 memcpy(p->data + p->psize, pValue, p->vsize); in android_eq_setParam()
573 p->psize = sizeof(int32_t); in android_fx_setParam()
576 memcpy(p->data + p->psize, pValue, p->vsize); in android_fx_setParam()
593 p->psize = sizeof(int32_t); in android_fx_getParam()
600 memcpy(pValue, p->data + p->psize, p->vsize); in android_fx_getParam()
/frameworks/base/media/java/android/media/audiofx/
DAudioEffect.java1176 int psize = byteArrayToInt(p, 4); in handleMessage() local
1178 byte[] param = new byte[psize]; in handleMessage()
1180 System.arraycopy(p, 12, param, 0, psize); in handleMessage()
1232 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument
1235 private native final int native_getParameter(int psize, byte[] param, in native_getParameter() argument
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java260 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/
DEffectBundle.cpp3069 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3073 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Effect_command()
3100 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3104 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Effect_command()
3131 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3135 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Effect_command()
3163 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3167 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Effect_command()
3202 if (p->psize != sizeof(int32_t)){ in Effect_command()
3217 p->data + p->psize); in Effect_command()
[all …]
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp670 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/
DEffectLoudnessEnhancer.cpp379 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/
DAudioPolicyEffects.h102 ((origParam->psize + 3) & ~3) + in EffectDesc()
DAudioPolicyEffects.cpp458 fx_param->psize = sizeof(int); in loadEffectParameter()
468 fx_param->psize = 0; in loadEffectParameter()
476 fx_param->psize += size; in loadEffectParameter()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp483 if (p->psize != sizeof(uint32_t)) { in Visualizer_command()
518 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in Visualizer_command()
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1971 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command()
1975 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command()
2009 if (p->psize != sizeof(int32_t)){ in Reverb_command()
2024 p->data + p->psize); in Reverb_command()
/frameworks/av/services/audioflinger/
DEffects.cpp395 p->psize = sizeof(uint32_t); in configure()
1237 if (param->psize == 0 || param->vsize == 0) { in command()
1242 uint32_t psize = sizeof(effect_param_t) + in command() local
1243 ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + in command()
1246 psize, in command()
DAudioMixer.cpp257 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider()
259 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1448 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command()
1452 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in PreProcessingFx_Command()
1473 if (p->psize != sizeof(int32_t)){ in PreProcessingFx_Command()
1481 p->data + p->psize); in PreProcessingFx_Command()