/frameworks/wilhelm/src/itf/ |
D | IPresetReverb.cpp | 30 static SLresult IPresetReverb_SetPreset(SLPresetReverbItf self, SLuint16 preset) in IPresetReverb_SetPreset() argument 35 switch (preset) { in IPresetReverb_SetPreset() 44 thiz->mPreset = preset; in IPresetReverb_SetPreset() 51 android::status_t status = android_prev_setPreset(thiz->mPresetReverbEffect, preset); in IPresetReverb_SetPreset() 74 SLuint16 preset = SL_REVERBPRESET_NONE; in IPresetReverb_GetPreset() local 76 preset = thiz->mPreset; in IPresetReverb_GetPreset() 80 preset = thiz->mPreset; in IPresetReverb_GetPreset() 83 android::status_t status = android_prev_getPreset(thiz->mPresetReverbEffect, &preset); in IPresetReverb_GetPreset() 92 *pPreset = preset; in IPresetReverb_GetPreset()
|
D | IEqualizer.cpp | 349 SLuint16 preset = thiz->mPreset; in IEqualizer_GetCurrentPreset() local 351 *pPreset = preset; in IEqualizer_GetCurrentPreset() 354 uint16_t preset = 0; in IEqualizer_GetCurrentPreset() local 359 android_eq_getParam(thiz->mEqEffect, EQ_PARAM_CUR_PRESET, 0, &preset); in IEqualizer_GetCurrentPreset() 364 *pPreset = (SLuint16) preset; in IEqualizer_GetCurrentPreset()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | PresetReverb.java | 142 public void setPreset(short preset) in setPreset() argument 144 checkStatus(setParameter(PARAM_PRESET, preset)); in setPreset() 231 public short preset; field in PresetReverb.Settings 257 preset = Short.parseShort(st.nextToken()); in Settings() 267 ";preset="+Short.toString(preset) in toString() 287 settings.preset = value[0]; in getProperties() 301 checkStatus(setParameter(PARAM_PRESET, settings.preset)); in setProperties()
|
D | Equalizer.java | 333 public void usePreset(short preset) in usePreset() argument 335 checkStatus(setParameter(PARAM_CURRENT_PRESET, preset)); in usePreset() 361 public String getPresetName(short preset) in getPresetName() argument 363 if (preset >= 0 && preset < mNumPresets) { in getPresetName() 364 return mPresetNames[preset]; in getPresetName()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_attributes.cpp | 39 aaudio_input_preset_t preset = DONT_SET, in checkAttributes() argument 63 if (preset != DONT_SET) { in checkAttributes() 64 AAudioStreamBuilder_setInputPreset(aaudioBuilder, preset); in checkAttributes() 91 (preset == DONT_SET || preset == AAUDIO_UNSPECIFIED) in checkAttributes() 93 : preset; in checkAttributes() 104 ((preset == AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION in checkAttributes() 105 || preset == AAUDIO_INPUT_PRESET_CAMCORDER) ? true : false) : in checkAttributes()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioEqualizer.cpp | 186 const char * AudioEqualizer::getPresetName(int preset) const { in getPresetName() 187 assert(preset < mNumPresets && preset >= PRESET_CUSTOM); in getPresetName() 188 if (preset == PRESET_CUSTOM) { in getPresetName() 191 return mpPresets[preset].name; in getPresetName() 203 void AudioEqualizer::setPreset(int preset) { in setPreset() argument 204 ALOGV("AudioEqualizer::setPreset(preset=%d)", preset); in setPreset() 205 assert(preset < mNumPresets && preset >= 0); in setPreset() 206 const PresetConfig &presetCfg = mpPresets[preset]; in setPreset() 213 mCurPreset = preset; in setPreset()
|
D | AudioEqualizer.h | 155 const char * getPresetName(int preset) const; 170 void setPreset(int preset);
|
D | EffectEqualizer.cpp | 538 int32_t preset; in Equalizer_setParameter() local 546 preset = (int32_t)(*(uint16_t *)pValue); in Equalizer_setParameter() 548 ALOGV("setParameter() EQ_PARAM_CUR_PRESET %d", preset); in Equalizer_setParameter() 549 if (preset < 0 || preset >= pEqualizer->getNumPresets()) { in Equalizer_setParameter() 553 pEqualizer->setPreset(preset); in Equalizer_setParameter()
|
/frameworks/av/media/libaudiohal/impl/effectsAidlConversion/ |
D | AidlConversionEq.cpp | 61 aidlParam = MAKE_SPECIFIC_PARAMETER(Equalizer, equalizer, preset, (int)value); in setParameter() 83 aidlParam = MAKE_SPECIFIC_PARAMETER(Equalizer, equalizer, preset, (int)num); in setParameter() 123 Parameter aidlParam = VALUE_OR_RETURN_STATUS(getAidlParameter(Equalizer::preset)); in getParameterPreset() 125 Equalizer::preset, int32_t)); in getParameterPreset() 138 for (const auto& preset : presets) { in getParameterPresetName() local 139 if (presetIdx == preset.index) { in getParameterPresetName() 140 return preset.name; in getParameterPresetName() 260 int32_t preset = VALUE_OR_RETURN_STATUS(getParameterPreset()); in getParameter() local 261 return param.writeToValue((uint16_t*)&preset); in getParameter() 276 int32_t preset = VALUE_OR_RETURN_STATUS(getParameterPreset()); in getParameter() local [all …]
|
D | AidlConversionPresetReverb.cpp | 59 aidlParam = MAKE_SPECIFIC_PARAMETER(PresetReverb, presetReverb, preset, in setParameter() 84 MAKE_SPECIFIC_PARAMETER_ID(PresetReverb, presetReverbTag, PresetReverb::preset); in getParameter() 88 PresetReverb::preset, PresetReverb::Presets)); in getParameter()
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestEqOutputPath.cpp | 203 SLuint16 nbPresets, preset, nbBands = 0; in TestEQPathFromFD() local 209 preset = nbPresets > 2 ? 2 : 0; in TestEQPathFromFD() 210 result = (*eqOutputItf)->UsePreset(eqOutputItf, preset); in TestEQPathFromFD() 212 preset = 1977; in TestEQPathFromFD() 213 result = (*eqOutputItf)->GetCurrentPreset(eqOutputItf, &preset); in TestEQPathFromFD() 215 if (SL_EQUALIZER_UNDEFINED == preset) { in TestEQPathFromFD() 218 fprintf(stdout, "Using preset %d\n", preset); in TestEQPathFromFD()
|
D | slesTestEqFdPath.cpp | 199 SLuint16 nbPresets, preset, nbBands = 0; in TestEQPathFromFD() local 205 preset = nbPresets > 2 ? 2 : 0; in TestEQPathFromFD() 206 result = (*eqItf)->UsePreset(eqItf, preset); in TestEQPathFromFD() 208 preset = 1977; in TestEQPathFromFD() 209 result = (*eqItf)->GetCurrentPreset(eqItf, &preset); in TestEQPathFromFD() 211 if (SL_EQUALIZER_UNDEFINED == preset) { in TestEQPathFromFD() 214 fprintf(stdout, "Using preset %d\n", preset); in TestEQPathFromFD()
|
D | slesTestSendToPresetReverb.cpp | 72 void TestSendToPresetReverb( SLObjectItf sl, const char* path, int preset, SLmillibel directLevel, in TestSendToPresetReverb() argument 142 switch(preset) { in TestSendToPresetReverb() 155 result = (*reverbItf)->SetPreset(reverbItf, preset); in TestSendToPresetReverb() 292 result = (*reverbItf)->SetPreset(reverbItf, enabled ? preset : SL_REVERBPRESET_NONE); in TestSendToPresetReverb() 293 fprintf(stdout, "SetPreset(%d)=%d\n", enabled ? preset : SL_REVERBPRESET_NONE, result); in TestSendToPresetReverb()
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/aidl/ |
D | ReverbContext.cpp | 138 RetCode ReverbContext::setPresetReverbPreset(const PresetReverb::Presets& preset) { in setPresetReverbPreset() argument 139 mNextPreset = preset; in setPresetReverbPreset() 289 const t_reverb_settings preset = mReverbPresets[mPreset]; in loadPreset() local 290 setEnvironmentalReverbRoomLevel(preset.roomLevel); in loadPreset() 291 setEnvironmentalReverbRoomHfLevel(preset.roomHFLevel); in loadPreset() 292 setEnvironmentalReverbDecayTime(preset.decayTime); in loadPreset() 293 setEnvironmentalReverbDecayHfRatio(preset.decayHFRatio); in loadPreset() 294 setEnvironmentalReverbLevel(preset.reverbLevel); in loadPreset() 296 setEnvironmentalReverbDiffusion(preset.diffusion); in loadPreset() 297 setEnvironmentalReverbDensity(preset.density); in loadPreset()
|
D | EffectReverb.cpp | 142 case PresetReverb::preset: { in setParameterPresetReverb() 143 RETURN_IF(mContext->setPresetReverbPreset(prParam.get<PresetReverb::preset>()) != in setParameterPresetReverb() 267 case PresetReverb::preset: { in getParameterPresetReverb() 268 prParam.set<PresetReverb::preset>(mContext->getPresetReverbPreset()); in getParameterPresetReverb()
|
/frameworks/base/media/java/android/media/ |
D | AudioAttributes.java | 1244 public Builder setCapturePreset(int preset) { in setCapturePreset() argument 1245 switch (preset) { in setCapturePreset() 1253 mSource = preset; in setCapturePreset() 1256 Log.e(TAG, "Invalid capture preset " + preset + " for AudioAttributes"); in setCapturePreset() 1270 public Builder setInternalCapturePreset(int preset) { in setInternalCapturePreset() argument 1271 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset() 1272 || (preset == MediaRecorder.AudioSource.REMOTE_SUBMIX) in setInternalCapturePreset() 1273 || (preset == MediaRecorder.AudioSource.RADIO_TUNER) in setInternalCapturePreset() 1274 || (preset == MediaRecorder.AudioSource.VOICE_DOWNLINK) in setInternalCapturePreset() 1275 || (preset == MediaRecorder.AudioSource.VOICE_UPLINK) in setInternalCapturePreset() [all …]
|
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/ |
D | EffectReverb.cpp | 160 bool preset; member 233 pContext->preset = false; in EffectCreate() 235 pContext->preset = true; in EffectCreate() 364 if (pContext->preset && pContext->nextPreset != pContext->curPreset) { in process() 389 if (pContext->preset && pContext->curPreset == REVERB_PRESET_NONE) { in process() 1353 const t_reverb_settings* preset = &sReverbPresets[pContext->curPreset]; in Reverb_LoadPreset() local 1354 ReverbSetRoomLevel(pContext, preset->roomLevel); in Reverb_LoadPreset() 1355 ReverbSetRoomHfLevel(pContext, preset->roomHFLevel); in Reverb_LoadPreset() 1356 ReverbSetDecayTime(pContext, preset->decayTime); in Reverb_LoadPreset() 1357 ReverbSetDecayHfRatio(pContext, preset->decayHFRatio); in Reverb_LoadPreset() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaPresetReverbTest.java | 134 short preset = mReverb.getPreset(); in test1_0Preset() local 137 preset); in test1_0Preset() 163 if (settings.preset == (short)PresetReverb.PRESET_LARGEROOM) { in test1_1Properties() 168 settings.preset = newPreset; in test1_1Properties() 171 assertEquals(msg +": setProperties failed", newPreset, settings.preset); in test1_1Properties()
|
D | MediaEqualizerTest.java | 202 short preset = mEqualizer.getCurrentPreset(); in test1_2Presets() local 203 assertEquals(msg + ": usePreset failed", preset, (short)(numPresets - 1)); in test1_2Presets() 204 String name = mEqualizer.getPresetName(preset); in test1_2Presets()
|
/frameworks/av/media/libaaudio/src/core/ |
D | AudioStreamBuilder.cpp | 193 aaudio_input_preset_t preset = getInputPreset(); in build() local 194 if (preset == AAUDIO_INPUT_PRESET_CAMCORDER in build() 195 || preset == AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION) { in build()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audioeffect_analyser.cpp | 292 for (auto preset = 0; preset < numPresets; preset++) { in TEST() local 297 *((uint16_t*)((int32_t*)eqParam->data + 1)) = preset; in TEST() 308 EXPECT_EQ(preset, settings->curPreset); in TEST() 325 preset, i, i + 1, diffA, diffB, diffA - diffB)); in TEST() 332 preset, i, i + 1, diffA, diffB)); in TEST()
|
/frameworks/wilhelm/src/android/ |
D | android_Effect.cpp | 380 uint16_t preset; in android_prev_init() local 381 if (android::NO_ERROR == android_prev_getPreset(ipr->mPresetReverbEffect, &preset)) { in android_prev_init() 382 ipr->mPreset = preset; in android_prev_init() 384 ipr->mPresetReverbEffect->setEnabled(SL_REVERBPRESET_NONE != preset); in android_prev_init() 390 uint16_t preset) { in android_prev_setPreset() argument 392 PRESETREVERB_PARAM_SIZE_MAX, &preset, sizeof(uint16_t)); in android_prev_setPreset() 394 pFx->setEnabled(SL_REVERBPRESET_NONE != preset); in android_prev_setPreset() 400 uint16_t* preset) { in android_prev_getPreset() argument 401 return android_fx_getParam(pFx, REVERB_PARAM_PRESET, PRESETREVERB_PARAM_SIZE_MAX, preset, in android_prev_getPreset()
|
D | android_Effect.h | 56 uint16_t preset); 59 uint16_t* preset);
|
/frameworks/av/media/libeffects/lvm/benchmarks/ |
D | reverb_benchmark.cpp | 102 const size_t preset = kPresets[state.range(0)]; in BM_REVERB() local 145 if (int status = reverbSetConfigParam(REVERB_PARAM_PRESET, preset, effectHandle); status != 0) { in BM_REVERB()
|
/frameworks/av/media/libeffects/lvm/tests/ |
D | reverb_test.cpp | 66 int preset = 0; member 267 revConfigParams.preset = atoi(optarg); in main() 332 if (int status = reverbSetConfigParam(REVERB_PARAM_PRESET, (uint32_t)revConfigParams.preset, in main()
|