Searched refs:psize (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/media/libmedia/
H A DAudioEffect.cpp267 if (param == NULL || param->psize == 0 || param->vsize == 0) {
272 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; local
274 LOGV("setParameter: param: %d, param2: %d", *(int *)param->data, (param->psize == 8) ? *((int *)param->data + 1): -1);
276 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size, &param->status);
285 if (param == NULL || param->psize == 0 || param->vsize == 0) {
291 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; local
292 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int);
299 memcpy(p, param, sizeof(effect_param_t) + psize);
331 uint32_t psize = sizeof(effect_param_t) + ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; local
[all...]
H A DVisualizer.cpp142 p->psize = sizeof(uint32_t);
275 p->psize = sizeof(uint32_t);
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_AudioEffect.cpp144 if (p->psize == 0 || p->vsize == 0) {
148 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int);
510 jobject thiz, int psize, jbyteArray pJavaParam, int vsize,
528 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) {
546 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int);
548 memcpy(p->data, lpParam, psize);
549 p->psize = psize;
573 jobject thiz, int psize, jbyteArray pJavaParam,
592 if (psize
509 android_media_AudioEffect_native_setParameter(JNIEnv *env, jobject thiz, int psize, jbyteArray pJavaParam, int vsize, jbyteArray pJavaValue) argument
572 android_media_AudioEffect_native_getParameter(JNIEnv *env, jobject thiz, int psize, jbyteArray pJavaParam, jintArray pJavaValueSize, jbyteArray pJavaValue) argument
[all...]
/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java1085 // See effect_param_t in EffectApi.h for psize and vsize
1088 int psize = byteArrayToInt(p, 4);
1090 byte[] param = new byte[psize];
1092 System.arraycopy(p, 12, param, 0, psize);
1144 private native final int native_setParameter(int psize, byte[] param, argument
1147 private native final int native_getParameter(int psize, byte[] param, argument
/frameworks/base/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp2763 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
2767 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
2794 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
2798 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
2826 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
2830 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
2858 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
2862 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
2897 if (p->psize != sizeof(int32_t)){
2899 "EFFECT_CMD_SET_PARAM: ERROR, psize i
[all...]
/frameworks/base/media/libeffects/testlibs/
H A DEffectEqualizer.cpp637 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
639 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
657 p->data + p->psize);
/frameworks/base/media/libeffects/visualizer/
H A DEffectVisualizer.cpp359 if (p->psize != sizeof(uint32_t) ||
377 if (p->psize != sizeof(uint32_t) ||
/frameworks/base/include/media/
H A DEffectApi.h642 // psize and vsize represent the actual size of parameter and value.
649 // | psize | sizeof(int)
654 // ~ parameter ~ > psize |
655 // | | | > ((psize - 1)/sizeof(int) + 1) * sizeof(int)
666 uint32_t psize; // Parameter size member in struct:effect_param_s
/frameworks/base/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp1936 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
1940 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
1974 if (p->psize != sizeof(int32_t)){
1976 "EFFECT_CMD_SET_PARAM: ERROR, psize is not sizeof(int32_t)");
1982 // "\tp->psize is %d\n"
1985 // cmdSize, sizeof(effect_param_t), p->psize, p->vsize );
1989 p->data + p->psize);
/frameworks/base/services/audioflinger/
H A DAudioFlinger.cpp6018 if (param->psize == 0 || param->vsize == 0) {
6023 uint32_t psize = sizeof(effect_param_t) + local
6024 ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) +
6027 psize,

Completed in 130 milliseconds