/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/av/media/libaudiohal/impl/effectsAidlConversion/ |
D | AidlConversionEq.cpp | 62 aidlParam = MAKE_SPECIFIC_PARAMETER(Equalizer, equalizer, preset, (int)value); in setParameter() 84 aidlParam = MAKE_SPECIFIC_PARAMETER(Equalizer, equalizer, preset, (int)num); in setParameter() 124 Parameter aidlParam = VALUE_OR_RETURN_STATUS(getAidlParameter(Equalizer::preset)); in getParameterPreset() 126 Equalizer::preset, int32_t)); in getParameterPreset() 139 for (const auto& preset : presets) { in getParameterPresetName() local 140 if (presetIdx == preset.index) { in getParameterPresetName() 141 return preset.name; in getParameterPresetName() 261 int32_t preset = VALUE_OR_RETURN_STATUS(getParameterPreset()); in getParameter() local 262 return param.writeToValue((uint16_t*)&preset); in getParameter() 271 std::erase_if(presets, [](const auto& preset) { return preset.index < 0; }); in getParameter() argument [all …]
|
D | AidlConversionPresetReverb.cpp | 59 aidlParam = MAKE_SPECIFIC_PARAMETER(PresetReverb, presetReverb, preset, in setParameter() 83 MAKE_SPECIFIC_PARAMETER_ID(PresetReverb, presetReverbTag, PresetReverb::preset); in getParameter() 87 PresetReverb::preset, PresetReverb::Presets)); in getParameter()
|
/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/base/services/core/java/com/android/server/display/config/ |
D | DisplayBrightnessMappingConfig.java | 167 int preset) { in getLuxArray() argument 169 autoBrightnessModeToString(mode) + "_" + autoBrightnessPresetToString(preset)); in getLuxArray() 193 @AutomaticBrightnessController.AutomaticBrightnessMode int mode, int preset) { in getBrightnessArray() argument 195 autoBrightnessModeToString(mode) + "_" + autoBrightnessPresetToString(preset)); in getBrightnessArray() 259 public static String autoBrightnessPresetToString(int preset) { in autoBrightnessPresetToString() argument 260 return switch (preset) { in autoBrightnessPresetToString() 268 "Unknown auto-brightness preset value: " + preset); in autoBrightnessPresetToString()
|
/frameworks/wilhelm/tests/examples/ |
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 | 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 | 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 | 135 RetCode ReverbContext::setPresetReverbPreset(const PresetReverb::Presets& preset) { in setPresetReverbPreset() argument 136 mNextPreset = preset; in setPresetReverbPreset() 269 const t_reverb_settings preset = mReverbPresets[mPreset]; in loadPreset() local 270 setEnvironmentalReverbRoomLevel(preset.roomLevel); in loadPreset() 271 setEnvironmentalReverbRoomHfLevel(preset.roomHFLevel); in loadPreset() 272 setEnvironmentalReverbDecayTime(preset.decayTime); in loadPreset() 273 setEnvironmentalReverbDecayHfRatio(preset.decayHFRatio); in loadPreset() 274 setEnvironmentalReverbLevel(preset.reverbLevel); in loadPreset() 276 setEnvironmentalReverbDiffusion(preset.diffusion); in loadPreset() 277 setEnvironmentalReverbDensity(preset.density); in loadPreset()
|
/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 | 128 short preset = mReverb.getPreset(); in test1_0Preset() local 131 preset); in test1_0Preset() 157 if (settings.preset == (short)PresetReverb.PRESET_LARGEROOM) { in test1_1Properties() 162 settings.preset = newPreset; in test1_1Properties() 165 assertEquals(msg +": setProperties failed", newPreset, settings.preset); in test1_1Properties()
|
D | MediaEqualizerTest.java | 188 short preset = mEqualizer.getCurrentPreset(); in test1_2Presets() local 189 assertEquals(msg + ": usePreset failed", preset, (short)(numPresets - 1)); in test1_2Presets() 190 String name = mEqualizer.getPresetName(preset); in test1_2Presets()
|
/frameworks/av/media/libaaudio/src/core/ |
D | AudioStreamBuilder.cpp | 199 aaudio_input_preset_t preset = getInputPreset(); in build() local 200 if (preset == AAUDIO_INPUT_PRESET_CAMCORDER in build() 201 || preset == AAUDIO_INPUT_PRESET_VOICE_COMMUNICATION) { in build()
|
/frameworks/av/media/libaudioclient/tests/ |
D | audioeffect_analyser.cpp | 295 for (auto preset = 0; preset < numPresets; preset++) { in TEST() local 300 *((uint16_t*)((int32_t*)eqParam->data + 1)) = preset; in TEST() 311 EXPECT_EQ(preset, settings->curPreset); in TEST() 328 preset, i, i + 1, diffA, diffB, diffA - diffB)); in TEST() 335 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/base/services/tests/displayservicetests/src/com/android/server/display/ |
D | BrightnessMappingStrategyTest.java | 698 int preset = Settings.System.SCREEN_BRIGHTNESS_AUTOMATIC_DIM; in testAutoBrightnessModeAndPreset() local 700 Settings.System.SCREEN_BRIGHTNESS_FOR_ALS, preset); in testAutoBrightnessModeAndPreset() local 704 .setAutoBrightnessLevels(mode, preset, DISPLAY_LEVELS) in testAutoBrightnessModeAndPreset() 705 .setAutoBrightnessLevelsLux(mode, preset, LUX_LEVELS).build(); in testAutoBrightnessModeAndPreset() 746 @AutomaticBrightnessController.AutomaticBrightnessMode int mode, int preset, in setAutoBrightnessLevelsLux() argument 748 when(mDdc.getAutoBrightnessBrighteningLevelsLux(mode, preset)).thenReturn(luxLevels); in setAutoBrightnessLevelsLux() 765 @AutomaticBrightnessController.AutomaticBrightnessMode int mode, int preset, in setAutoBrightnessLevels() argument 767 when(mDdc.getAutoBrightnessBrighteningLevels(mode, preset)) in setAutoBrightnessLevels()
|
/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()
|