Home
last modified time | relevance | path

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

12

/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp158 if (p->psize == 0 || p->vsize == 0) { in effectCallback()
162 arg1 = sizeof(effect_param_t) + ((p->psize - 1) / sizeof(int) + 1) * sizeof(int); in effectCallback()
532 jobject thiz, jint psize, jbyteArray pJavaParam, jint vsize, in android_media_AudioEffect_native_setParameter() argument
548 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_setParameter()
566 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_setParameter()
568 memcpy(p->data, lpParam, psize); in android_media_AudioEffect_native_setParameter()
569 p->psize = psize; in android_media_AudioEffect_native_setParameter()
593 jobject thiz, jint psize, jbyteArray pJavaParam, in android_media_AudioEffect_native_getParameter() argument
609 if (psize == 0 || vsize == 0 || pJavaParam == NULL || pJavaValue == NULL) { in android_media_AudioEffect_native_getParameter()
627 voffset = ((psize - 1) / sizeof(int) + 1) * sizeof(int); in android_media_AudioEffect_native_getParameter()
[all …]
DVisualizer.cpp167 p->psize = sizeof(uint32_t); in setCaptureSize()
196 p->psize = sizeof(uint32_t); in setScalingMode()
226 p->psize = sizeof(uint32_t); in setMeasurementMode()
396 p->psize = sizeof(uint32_t); in initCaptureSize()
/frameworks/av/media/libaudioclient/
DAudioEffect.cpp416 if (param == nullptr || param->psize == 0 || param->vsize == 0) { in setParameter()
420 uint32_t psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameter() local
423 (param->psize == 8) ? *((int *)param->data + 1): -1); in setParameter()
426 appendToBuffer(param, sizeof(effect_param_t) + psize, &cmd); in setParameter()
451 if (param == nullptr || param->psize == 0 || param->vsize == 0) { in setParameterDeferred()
457 int psize = ((param->psize - 1) / sizeof(int) + 1) * sizeof(int) + param->vsize; in setParameterDeferred() local
458 int size = ((sizeof(effect_param_t) + psize - 1) / sizeof(int) + 1) * sizeof(int); in setParameterDeferred()
465 memcpy(p, param, sizeof(effect_param_t) + psize); in setParameterDeferred()
506 if (param == nullptr || param->psize == 0 || param->vsize == 0) { in getParameter()
511 (param->psize == 8) ? *((int *)param->data + 1): -1); in getParameter()
[all …]
/frameworks/av/media/libeffects/tests/common/
DEffectTestHelper.h99 effectParam->psize = sizeof(type); in setParam()
116 p->psize = sizeof(uint32_t); in getParam()
123 uint32_t replySize = sizeof(effect_param_t) + p->psize + p->vsize; in getParam()
160 p->psize = sizeof(uint32_t); in setParam()
167 sizeof(effect_param_t) + p->psize + p->vsize, p, &replySize, in setParam()
/frameworks/wilhelm/src/android/
Dandroid_Effect.cpp208 p->psize = eq_paramSize(param); in android_eq_getParam()
210 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_getParam()
218 memcpy(pValue, p->data + p->psize, p->vsize); in android_eq_getParam()
234 p->psize = eq_paramSize(param); in android_eq_setParam()
236 if (p->psize == 2 * sizeof(int32_t)) { in android_eq_setParam()
240 memcpy(p->data + p->psize, pValue, p->vsize); in android_eq_setParam()
619 p->psize = sizeof(int32_t); in android_fx_setParam()
622 memcpy(p->data + p->psize, pValue, p->vsize); in android_fx_setParam()
639 p->psize = sizeof(int32_t); in android_fx_getParam()
646 memcpy(pValue, p->data + p->psize, p->vsize); in android_fx_getParam()
/frameworks/av/media/libaudioclient/tests/
Daudioeffect_analyser.cpp237 eqParam->psize = sizeof(uint32_t); in TEST()
245 eqParam->psize = sizeof(uint32_t); in TEST()
258 eqParam->psize = sizeof(uint32_t) * 2; in TEST()
297 eqParam->psize = sizeof(uint32_t); in TEST()
304 eqParam->psize = sizeof(uint32_t); in TEST()
356 bbParam->psize = sizeof(int32_t); in TEST()
405 bbParam->psize = sizeof(int32_t); in TEST()
Daudioeffect_tests.cpp193 vis_none->psize = sizeof(uint32_t); in TEST()
201 vis_tmp->psize = sizeof(uint32_t); in TEST()
211 vis_rms->psize = sizeof(uint32_t); in TEST()
/frameworks/av/services/audiopolicy/service/
DSpatializer.h260 p->psize = sizeof(uint32_t); in getHalParameter()
267 uint32_t replySize = sizeof(effect_param_t) + p->psize + p->vsize; in getHalParameter()
307 p->psize = sizeof(uint32_t); in setEffectParameter_l()
333 p->psize = sizeof(uint32_t); in setEffectParameter_l()
360 p->psize = sizeof(uint32_t); in getEffectParameter_l()
392 p->psize = sizeof(uint32_t); in getEffectParameter_l()
DAudioPolicyEffects.cpp655 fx_param->psize = sizeof(int); in loadEffectParameter()
666 fx_param->psize = 0; in loadEffectParameter()
675 fx_param->psize += size; in loadEffectParameter()
/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/base/media/java/android/media/audiofx/
DAudioEffect.java1352 int psize = byteArrayToInt(p, 4); in handleMessage() local
1354 byte[] param = new byte[psize]; in handleMessage()
1356 System.arraycopy(p, 12, param, 0, psize); in handleMessage()
1410 private native final int native_setParameter(int psize, byte[] param, in native_setParameter() argument
1413 private native final int native_getParameter(int psize, byte[] param, in native_getParameter() argument
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
DEffectReverb.cpp1832 if (SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Reverb_command()
1836 if (cmdSize < sizeof(effect_param_t) || cmdSize < (sizeof(effect_param_t) + p->psize) || in Reverb_command()
1838 *replySize < (sizeof(effect_param_t) + p->psize)) { in Reverb_command()
1844 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Reverb_command()
1848 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Reverb_command()
1879 if (p->psize != sizeof(int32_t)) { in Reverb_command()
1893 p->data + p->psize, p->vsize); in Reverb_command()
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/
DEffectBundle.cpp3062 return ((p->psize + sizeof(int32_t) - 1) / sizeof(int32_t)) * sizeof(int32_t); in computeParamVOffset()
3160 cmdSize < (sizeof(effect_param_t) + p->psize) || pReplyData == NULL || in Effect_command()
3161 replySize == NULL || *replySize < (sizeof(effect_param_t) + p->psize)) { in Effect_command()
3165 if (EFFECT_PARAM_SIZE_MAX - sizeof(effect_param_t) < (size_t)p->psize) { in Effect_command()
3184 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Effect_command()
3190 p->status = android::BassBoost_getParameter(pContext, p->psize, p->data, &p->vsize, in Effect_command()
3200 p->status = android::Virtualizer_getParameter(pContext, p->psize, (void*)p->data, in Effect_command()
3212 p->status = android::Equalizer_getParameter(pContext, p->psize, p->data, &p->vsize, in Effect_command()
3224 p->status = android::Volume_getParameter(pContext, p->psize, (void*)p->data, in Effect_command()
3265 pContext, p->psize, (void*)p->data, p->vsize, p->data + voffset); in Effect_command()
[all …]
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp65 effectParam->psize = sizeof(paramData[0]); in setParam()
DPreProcessingTest.cpp188 effectParam->psize = sizeof(paramData[0]); in preProcSetConfigParam()
/frameworks/av/media/libeffects/testlibs/
DEffectEqualizer.cpp672 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in Equalizer_command()
674 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in Equalizer_command()
693 p->data + p->psize); in Equalizer_command()
/frameworks/av/media/libeffects/lvm/benchmarks/
Dreverb_benchmark.cpp62 effectParam->psize = sizeof(paramData[0]); in reverbSetConfigParam()
/frameworks/av/media/libeffects/loudness/
DEffectLoudnessEnhancer.cpp418 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/
DEffects.cpp992 p->psize = sizeof(uint32_t); in configure_l()
1185 (param == nullptr || param->psize > cmdSize - sizeof(effect_param_t))) { in command()
1192 param->psize > maxReplySize - sizeof(effect_param_t))) { in command()
1198 || param->psize > maxReplySize - sizeof(effect_param_t) in command()
1200 - param->psize in command()
1201 || roundUpDelta(param->psize, (uint32_t) sizeof(int)) > in command()
1204 - param->psize in command()
1214 || param->psize > cmdSize - sizeof(effect_param_t) in command()
1216 - param->psize in command()
1217 || roundUpDelta(param->psize, in command()
[all …]
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp1186 cmdSize < (sizeof(effect_param_t) + p->psize) || pReplyData == NULL || in PreProcessingFx_Command()
1187 replySize == NULL || *replySize < (sizeof(effect_param_t) + p->psize)) { in PreProcessingFx_Command()
1193 memcpy(pReplyData, pCmdData, sizeof(effect_param_t) + p->psize); in PreProcessingFx_Command()
1197 int voffset = ((p->psize - 1) / sizeof(int32_t) + 1) * sizeof(int32_t); in PreProcessingFx_Command()
1215 if (p->psize != sizeof(int32_t)) { in PreProcessingFx_Command()
1222 effect->ops->set_parameter(effect, (void*)p->data, p->data + p->psize); in PreProcessingFx_Command()
/frameworks/av/media/libeffects/preprocessing/benchmarks/
Dpreprocessing_benchmark.cpp213 effectParam->psize = sizeof(paramData[0]); in preProcSetConfigParam()
/frameworks/av/media/libeffects/dynamicsproc/
DEffectDynamicsProcessing.cpp81 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/
DBufferProviders.cpp255 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider()
257 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
/frameworks/av/media/libeffects/visualizer/
DEffectVisualizer.cpp552 if (p->psize != sizeof(uint32_t)) { in Visualizer_command()
587 if (p->psize != sizeof(uint32_t) || p->vsize != sizeof(uint32_t)) { in Visualizer_command()
/frameworks/av/media/libeffects/lvm/tests/
Dreverb_test.cpp139 effectParam->psize = sizeof(paramData[0]); in reverbSetConfigParam()

12