/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 | 34 aaudio_input_preset_t preset = DONT_SET, in checkAttributes() argument 58 if (preset != DONT_SET) { in checkAttributes() 59 AAudioStreamBuilder_setInputPreset(aaudioBuilder, preset); in checkAttributes() 86 (preset == DONT_SET || preset == AAUDIO_UNSPECIFIED) in checkAttributes() 88 : preset; in checkAttributes() 94 : preset; in checkAttributes() 99 ((preset == AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION in checkAttributes() 100 || 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()
|
D | EffectReverb.c | 109 int preset = 0; in EffectCreate() local 136 preset = 1; in EffectCreate() 141 ret = Reverb_Init(module, aux, preset); in EffectCreate() 456 int Reverb_Init(reverb_module_t *pRvbModule, int aux, int preset) { in Reverb_Init() argument 459 ALOGV("Reverb_Init module %p, aux: %d, preset: %d", pRvbModule,aux, preset); in Reverb_Init() 464 pRvbModule->context.m_Preset = (uint16_t)preset; in Reverb_Init() 2019 int preset; in ReverbReadInPresets() local 2023 for (preset = 0; preset < REVERB_NUM_PRESETS; preset++) { in ReverbReadInPresets() 2024 reverb_preset_t *pPreset = &pReverb->m_sPreset.m_sPreset[preset]; in ReverbReadInPresets() 2025 switch (preset + 1) { in ReverbReadInPresets()
|
/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/ |
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/java/android/media/ |
D | AudioAttributes.java | 1059 public Builder setCapturePreset(int preset) { in setCapturePreset() argument 1060 switch (preset) { in setCapturePreset() 1068 mSource = preset; in setCapturePreset() 1071 Log.e(TAG, "Invalid capture preset " + preset + " for AudioAttributes"); in setCapturePreset() 1084 public Builder setInternalCapturePreset(int preset) { in setInternalCapturePreset() argument 1085 if ((preset == MediaRecorder.AudioSource.HOTWORD) in setInternalCapturePreset() 1086 || (preset == MediaRecorder.AudioSource.REMOTE_SUBMIX) in setInternalCapturePreset() 1087 || (preset == MediaRecorder.AudioSource.RADIO_TUNER) in setInternalCapturePreset() 1088 || (preset == MediaRecorder.AudioSource.VOICE_DOWNLINK) in setInternalCapturePreset() 1089 || (preset == MediaRecorder.AudioSource.VOICE_UPLINK) in setInternalCapturePreset() [all …]
|
/frameworks/av/media/libaaudio/src/core/ |
D | AudioStreamBuilder.cpp | 163 aaudio_input_preset_t preset = getInputPreset(); in build() local 164 if (preset == AAUDIO_INPUT_PRESET_CAMCORDER in build() 165 || preset == AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION) { in build()
|
/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/utility/ |
D | AAudioUtilities.cpp | 221 audio_source_t AAudioConvert_inputPresetToAudioSource(aaudio_input_preset_t preset) { in AAudioConvert_inputPresetToAudioSource() argument 231 if (preset == AAUDIO_UNSPECIFIED) { in AAudioConvert_inputPresetToAudioSource() 232 preset = AAUDIO_INPUT_PRESET_VOICE_RECOGNITION; in AAudioConvert_inputPresetToAudioSource() 234 return (audio_source_t) preset; // same value in AAudioConvert_inputPresetToAudioSource()
|
/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()
|
D | build_and_run_all_unit_tests_reverb.sh | 67 --chMask $chMask $flags --fs $fs --preset $preset_val
|
/frameworks/av/media/libeffects/lvm/wrapper/Bundle/ |
D | EffectBundle.cpp | 1530 void EqualizerSetPreset(EffectContext* pContext, int preset) { in EqualizerSetPreset() argument 1532 pContext->pBundledContext->CurPreset = preset; in EqualizerSetPreset() 1537 EQNB_5BandSoftPresets[i + preset * FIVEBAND_NUMBANDS]; in EqualizerSetPreset() 1562 const char* EqualizerGetPresetName(int32_t preset) { in EqualizerGetPresetName() argument 1564 if (preset == PRESET_CUSTOM) { in EqualizerGetPresetName() 1567 return gEqualizerPresets[preset].name; in EqualizerGetPresetName() 2323 const int32_t preset = params[1]; in Equalizer_getParameter() local 2324 if ((preset < 0 && preset != PRESET_CUSTOM) || preset >= EqualizerGetNumPresets()) { in Equalizer_getParameter() 2325 if (preset < 0) { in Equalizer_getParameter() 2327 ALOGE("%s EQ_PARAM_GET_PRESET_NAME preset %d", __func__, preset); in Equalizer_getParameter() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 131 final int preset = getRawUserStyle(); in getUserStyle() local 132 if (preset == CaptionStyle.PRESET_CUSTOM) { in getUserStyle() 136 return CaptionStyle.PRESETS[preset]; in getUserStyle()
|