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

/frameworks/av/media/libaudioclient/
H A DAudioEffect.cpp280 if (param == NULL || param->psize == 0 || param->vsize == 0) {
285 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; local
288 (param->psize == 8) ? *((int *)param->data + 1): -1);
290 return mIEffect->command(EFFECT_CMD_SET_PARAM, sizeof (effect_param_t) + psize, param, &size,
300 if (param == NULL || param->psize == 0 || param->vsize == 0) {
306 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; local
307 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int);
314 memcpy(p, param, sizeof(effect_param_t) + psize);
347 uint32_t psize = sizeof(effect_param_t) + ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + local
[all...]
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_AudioEffect.cpp148 if (p->psize == 0 || p->vsize == 0) {
152 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int);
537 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize,
553 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) {
571 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int);
573 memcpy(p->data, lpParam, psize);
574 p->psize = psize;
598 jobject thiz, jint psize, jbyteArray pJavaParam,
614 if (psize
536 android_media_AudioEffect_native_setParameter(JNIEnv *env, jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, jbyteArray pJavaValue) argument
597 android_media_AudioEffect_native_getParameter(JNIEnv *env, jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, jbyteArray pJavaValue) argument
[all...]
/frameworks/av/media/libmedia/
H A DVisualizer.cpp141 p->psize = sizeof(uint32_t);
170 p->psize = sizeof(uint32_t);
200 p->psize = sizeof(uint32_t);
370 p->psize = sizeof(uint32_t);
/frameworks/wilhelm/src/android/
H A Dandroid_Effect.cpp206 p->psize = eq_paramSize(param);
208 if (p->psize == 2 * sizeof(int32_t)) {
216 memcpy(pValue, p->data + p->psize, p->vsize);
232 p->psize = eq_paramSize(param);
234 if (p->psize == 2 * sizeof(int32_t)) {
238 memcpy(p->data + p->psize, pValue, p->vsize);
617 p->psize = sizeof(int32_t);
620 memcpy(p->data + p->psize, pValue, p->vsize);
637 p->psize = sizeof(int32_t);
644 memcpy(pValue, p->data + p->psize,
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java260 float resolveScale(float scale, int type, int data, int size, int psize) { argument
263 targetSize = TypedValue.complexToFraction(data, size, psize);
/frameworks/base/media/java/android/media/audiofx/
H A DAudioEffect.java1200 // See effect_param_t in EffectApi.h for psize and vsize
1203 int psize = byteArrayToInt(p, 4);
1205 byte[] param = new byte[psize];
1207 System.arraycopy(p, 12, param, 0, psize);
1260 private native final int native_setParameter(int psize, byte[] param, argument
1263 private native final int native_getParameter(int psize, byte[] param, argument
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyEffects.h100 // psize and vsize are rounded up to an int boundary for allocation
102 ((origParam->psize + 3) & ~3) +
H A DAudioPolicyEffects.cpp509 fx_param->psize = sizeof(int);
520 fx_param->psize = 0;
529 fx_param->psize += size;
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
H A DEffectBundle.cpp3360 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) *
3463 cmdSize < (sizeof(effect_param_t) + p->psize) ||
3465 *replySize < (sizeof(effect_param_t) + p->psize)) {
3469 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) {
3471 ALOGV("\tLVM_ERROR : EFFECT_CMD_GET_PARAM: psize too big");
3489 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
3496 p->psize,
3509 p->psize,
3524 p->psize,
3539 p->psize,
[all...]
/frameworks/av/media/libeffects/testlibs/
H A DEffectEqualizer.cpp673 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
675 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
694 p->data + p->psize);
/frameworks/av/media/libeffects/loudness/
H A DEffectLoudnessEnhancer.cpp381 if (p->psize != sizeof(uint32_t)) {
404 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) {
/frameworks/av/services/audioflinger/
H A DEffects.cpp656 p->psize = sizeof(uint32_t);
846 ((effect_param_t *)pCmdData)->psize > cmdSize
854 ((effect_param_t *)pCmdData)->psize > *replySize - sizeof(effect_param_t))) {
860 || ((effect_param_t *)pCmdData)->psize > *replySize
864 - ((effect_param_t *)pCmdData)->psize
865 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_t)sizeof(int)) >
868 - ((effect_param_t *)pCmdData)->psize
877 || ((effect_param_t *)pCmdData)->psize > cmdSize
881 - ((effect_param_t *)pCmdData)->psize
882 || roundUpDelta(((effect_param_t *)pCmdData)->psize, (uint32_
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp2044 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) {
2049 cmdSize < (sizeof(effect_param_t) + p->psize) ||
2051 *replySize < (sizeof(effect_param_t) + p->psize)) {
2057 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
2061 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
2095 if (p->psize != sizeof(int32_t)){
2097 "EFFECT_CMD_SET_PARAM: ERROR, psize is not sizeof(int32_t)");
2103 // "\tp->psize is %d\n"
2106 // cmdSize, sizeof(effect_param_t), p->psize, p->vsize );
2110 p->data + p->psize,
[all...]
/frameworks/av/media/libeffects/preprocessing/
H A DPreProcessing.cpp1499 cmdSize < (sizeof(effect_param_t) + p->psize) ||
1501 *replySize < (sizeof(effect_param_t) + p->psize)){
1507 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize);
1511 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t);
1532 if (p->psize != sizeof(int32_t)){
1534 "EFFECT_CMD_SET_PARAM: ERROR, psize is not sizeof(int32_t)");
1540 p->data + p->psize);
/frameworks/av/media/libaudioprocessing/
H A DBufferProviders.cpp245 param->psize = sizeof(downmix_params_t);
247 memcpy(param->data, &downmixParam, param->psize);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp486 if (p->psize != sizeof(uint32_t)) {
521 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) {
/frameworks/av/media/libeffects/dynamicsproc/
H A DEffectDynamicsProcessing.cpp80 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) *
513 uint32_t expectedCmdSize = DP_getParameterCmdSize(pEffectParam->psize,
528 p->psize,
550 p->psize,
/frameworks/av/media/libeffects/downmix/
H A DEffectDownmix.c566 if (cmd->psize != sizeof(int32_t)) {

Completed in 318 milliseconds