/frameworks/base/media/jni/audioeffect/ |
D | android_media_AudioEffect.cpp | 158 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 …]
|
D | Visualizer.cpp | 167 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/ |
D | AudioEffect.cpp | 416 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/ |
D | EffectTestHelper.h | 99 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/ |
D | android_Effect.cpp | 208 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/ |
D | audioeffect_analyser.cpp | 237 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()
|
D | audioeffect_tests.cpp | 193 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/ |
D | Spatializer.h | 260 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()
|
D | AudioPolicyEffects.cpp | 655 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/ |
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 | 1352 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/ |
D | EffectReverb.cpp | 1832 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/ |
D | EffectBundle.cpp | 3062 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/ |
D | EffectTestHelper.cpp | 65 effectParam->psize = sizeof(paramData[0]); in setParam()
|
D | PreProcessingTest.cpp | 188 effectParam->psize = sizeof(paramData[0]); in preProcSetConfigParam()
|
/frameworks/av/media/libeffects/testlibs/ |
D | EffectEqualizer.cpp | 672 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/ |
D | reverb_benchmark.cpp | 62 effectParam->psize = sizeof(paramData[0]); in reverbSetConfigParam()
|
/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 | 992 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/ |
D | PreProcessing.cpp | 1186 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/ |
D | preprocessing_benchmark.cpp | 213 effectParam->psize = sizeof(paramData[0]); in preProcSetConfigParam()
|
/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 | 255 param->psize = sizeof(downmix_params_t); in DownmixerBufferProvider() 257 memcpy(param->data, &downmixParam, param->psize); in DownmixerBufferProvider()
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 552 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/ |
D | reverb_test.cpp | 139 effectParam->psize = sizeof(paramData[0]); in reverbSetConfigParam()
|