Home
last modified time | relevance | path

Searched refs:AudioEffect (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioEffectTest.java22 import android.media.audiofx.AudioEffect;
50 private AudioEffect mEffect = null;
99 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test0_0QueryEffects()
109 if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_EQUALIZER)) { in test0_0QueryEffects()
111 } if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_BASS_BOOST)) { in test0_0QueryEffects()
113 } else if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_VIRTUALIZER)) { in test0_0QueryEffects()
116 else if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_ENV_REVERB)) { in test0_0QueryEffects()
154 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test1_0ConstructorFromType()
159 if (AudioEffect.EFFECT_PRE_PROCESSING.equals(desc[0].connectMode)) { in test1_0ConstructorFromType()
166 AudioEffect effect = new AudioEffect(desc[0].type, in test1_0ConstructorFromType()
[all …]
DMediaPresetReverbTest.java24 import android.media.audiofx.AudioEffect;
198 AudioEffect vc = null; in test2_0AuxiliarySoundModification()
212 vc = new AudioEffect( in test2_0AuxiliarySoundModification()
213 AudioEffect.EFFECT_TYPE_NULL, in test2_0AuxiliarySoundModification()
270 AudioEffect vc = null; in test2_1InsertSoundModification()
272 AudioEffect rvb = null; in test2_1InsertSoundModification()
283 vc = new AudioEffect( in test2_1InsertSoundModification()
284 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
296 rvb = new AudioEffect( in test2_1InsertSoundModification()
297 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
DMediaEnvReverbTest.java24 import android.media.audiofx.AudioEffect;
353 AudioEffect vc = null; in test2_0AuxiliarySoundModification()
367 vc = new AudioEffect( in test2_0AuxiliarySoundModification()
368 AudioEffect.EFFECT_TYPE_NULL, in test2_0AuxiliarySoundModification()
427 AudioEffect vc = null; in test2_1InsertSoundModification()
429 AudioEffect rvb = null; in test2_1InsertSoundModification()
440 vc = new AudioEffect( in test2_1InsertSoundModification()
441 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
453 rvb = new AudioEffect( in test2_1InsertSoundModification()
454 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
DMediaVisualizerTest.java23 import android.media.audiofx.AudioEffect;
231 AudioEffect vc = null; in test2_0PollingCapture()
244 vc = new AudioEffect( in test2_0PollingCapture()
245 AudioEffect.EFFECT_TYPE_NULL, in test2_0PollingCapture()
310 AudioEffect vc = null; in test2_1ListenerCapture()
323 vc = new AudioEffect( in test2_1ListenerCapture()
324 AudioEffect.EFFECT_TYPE_NULL, in test2_1ListenerCapture()
444 AudioEffect vc = null; in test2_2PollingCaptureVolumeScaling()
456 vc = new AudioEffect( in test2_2PollingCaptureVolumeScaling()
457 AudioEffect.EFFECT_TYPE_NULL, in test2_2PollingCaptureVolumeScaling()
/frameworks/wilhelm/src/android/
Dandroid_Effect.h22 extern android::status_t android_eq_setParam(android::sp<android::AudioEffect> pFx,
25 extern android::status_t android_eq_getParam(android::sp<android::AudioEffect> pFx,
33 extern android::status_t android_bb_setParam(android::sp<android::AudioEffect> pFx,
36 extern android::status_t android_bb_getParam(android::sp<android::AudioEffect> pFx,
44 extern android::status_t android_virt_setParam(android::sp<android::AudioEffect> pFx,
47 extern android::status_t android_virt_getParam(android::sp<android::AudioEffect> pFx,
55 extern android::status_t android_prev_setPreset(android::sp<android::AudioEffect> pFx,
58 extern android::status_t android_prev_getPreset(android::sp<android::AudioEffect> pFx,
66 extern android::status_t android_erev_setParam(android::sp<android::AudioEffect> pFx,
69 extern android::status_t android_erev_getParam(android::sp<android::AudioEffect> pFx,
[all …]
Dandroid_Effect.cpp199 android::status_t android_eq_getParam(android::sp<android::AudioEffect> pFx, in android_eq_getParam()
225 android::status_t android_eq_setParam(android::sp<android::AudioEffect> pFx, in android_eq_setParam()
248 android::status_t android_bb_setParam(android::sp<android::AudioEffect> pFx, in android_bb_setParam()
256 android::status_t android_bb_getParam(android::sp<android::AudioEffect> pFx, in android_bb_getParam()
351 android::status_t android_virt_setParam(android::sp<android::AudioEffect> pFx, in android_virt_setParam()
359 android::status_t android_virt_getParam(android::sp<android::AudioEffect> pFx, in android_virt_getParam()
387 android::status_t android_prev_setPreset(android::sp<android::AudioEffect> pFx, uint16_t preset) { in android_prev_setPreset()
396 android::status_t android_prev_getPreset(android::sp<android::AudioEffect> pFx, uint16_t* preset) { in android_prev_getPreset()
425 android::status_t android_erev_setParam(android::sp<android::AudioEffect> pFx, in android_erev_setParam()
440 android::status_t android_erev_getParam(android::sp<android::AudioEffect> pFx, in android_erev_getParam()
[all …]
/frameworks/av/media/libmedia/
DAudioEffect.cpp38 AudioEffect::AudioEffect(const String16& opPackageName) in AudioEffect() function in android::AudioEffect
44 AudioEffect::AudioEffect(const effect_uuid_t *type, in AudioEffect() function in android::AudioEffect
58 AudioEffect::AudioEffect(const char *typeStr, in AudioEffect() function in android::AudioEffect
91 status_t AudioEffect::set(const effect_uuid_t *type, in set()
171 AudioEffect::~AudioEffect() in ~AudioEffect()
191 status_t AudioEffect::initCheck() const in initCheck()
198 effect_descriptor_t AudioEffect::descriptor() const in descriptor()
203 bool AudioEffect::getEnabled() const in getEnabled()
208 status_t AudioEffect::setEnabled(bool enabled) in setEnabled()
232 status_t AudioEffect::command(uint32_t cmdCode, in command()
[all …]
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java34 import android.media.audiofx.AudioEffect;
94 AudioEffect.Descriptor[] descriptors = AudioEffect.queryEffects(); in onCreate()
105 AudioEffect.Descriptor[] mDescriptors;
107 public EffectListAdapter(Context context, AudioEffect.Descriptor[] descriptors) { in EffectListAdapter()
148 AudioEffect.Descriptor[] mDescriptors;
150 public EffectView(Context context, AudioEffect.Descriptor[] descriptors) { in EffectView()
159 if (effectType.equals(AudioEffect.EFFECT_TYPE_VIRTUALIZER)) { in effectUuidToString()
161 } else if (effectType.equals(AudioEffect.EFFECT_TYPE_ENV_REVERB)){ in effectUuidToString()
163 } else if (effectType.equals(AudioEffect.EFFECT_TYPE_PRESET_REVERB)){ in effectUuidToString()
165 } else if (effectType.equals(AudioEffect.EFFECT_TYPE_EQUALIZER)){ in effectUuidToString()
[all …]
DVirtualizerTest.java42 import android.media.audiofx.AudioEffect;
188 public class EffectListner implements AudioEffect.OnEnableStatusChangeListener,
189 AudioEffect.OnControlStatusChangeListener, AudioEffect.OnParameterChangeListener
193 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in onEnableStatusChange()
196 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { in onControlStatusChange()
199 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
DBassBoostTest.java42 import android.media.audiofx.AudioEffect;
191 public class EffectListner implements AudioEffect.OnEnableStatusChangeListener,
192 AudioEffect.OnControlStatusChangeListener, AudioEffect.OnParameterChangeListener
196 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in onEnableStatusChange()
199 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { in onControlStatusChange()
202 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
DPresetReverbTest.java42 import android.media.audiofx.AudioEffect;
218 public class EffectListner implements AudioEffect.OnEnableStatusChangeListener,
219 AudioEffect.OnControlStatusChangeListener,
224 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in onEnableStatusChange()
227 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { in onControlStatusChange()
DEqualizerTest.java43 import android.media.audiofx.AudioEffect;
324 public class EffectListner implements AudioEffect.OnEnableStatusChangeListener,
325 AudioEffect.OnControlStatusChangeListener,
330 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in onEnableStatusChange()
333 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { in onControlStatusChange()
/frameworks/av/include/media/
DAudioEffect.h43 class AudioEffect : public RefBase
209 AudioEffect(const String16& opPackageName);
234 AudioEffect(const effect_uuid_t *type,
247 AudioEffect(const char *typeStr,
261 ~AudioEffect();
437 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient()
441 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged()
447 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged()
457 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted()
466 sp<AudioEffect> effect = mEffect.promote(); in binderDied()
[all …]
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp123 case AudioEffect::EVENT_CONTROL_STATUS_CHANGED: in effectCallback()
132 case AudioEffect::EVENT_ENABLE_STATUS_CHANGED: in effectCallback()
141 case AudioEffect::EVENT_PARAMETER_CHANGED: in effectCallback()
164 case AudioEffect::EVENT_ERROR: in effectCallback()
187 static sp<AudioEffect> getAudioEffect(JNIEnv* env, jobject thiz) in getAudioEffect()
190 AudioEffect* const ae = in getAudioEffect()
191 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect()
192 return sp<AudioEffect>(ae); in getAudioEffect()
195 static sp<AudioEffect> setAudioEffect(JNIEnv* env, jobject thiz, in setAudioEffect()
196 const sp<AudioEffect>& ae) in setAudioEffect()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DAcousticEchoCanceler.java42 public class AcousticEchoCanceler extends AudioEffect {
51 return AudioEffect.isEffectTypeAvailable(AudioEffect.EFFECT_TYPE_AEC); in isAvailable()
DNoiseSuppressor.java43 public class NoiseSuppressor extends AudioEffect {
52 return AudioEffect.isEffectTypeAvailable(AudioEffect.EFFECT_TYPE_NS); in isAvailable()
DAutomaticGainControl.java42 public class AutomaticGainControl extends AudioEffect {
51 return AudioEffect.isEffectTypeAvailable(AudioEffect.EFFECT_TYPE_AGC); in isAvailable()
DLoudnessEnhancer.java21 import android.media.audiofx.AudioEffect;
39 public class LoudnessEnhancer extends AudioEffect {
162 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
166 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
168 if (status != AudioEffect.SUCCESS) { in onParameterChange()
DAudioEffect.java59 public class AudioEffect { class
391 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession) in AudioEffect() method in AudioEffect
397 int initResult = native_setup(new WeakReference<AudioEffect>(this), in AudioEffect()
486 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in isEffectTypeAvailable()
969 void onEnableStatusChange(AudioEffect effect, boolean enabled); in onEnableStatusChange()
984 void onControlStatusChange(AudioEffect effect, boolean controlGranted); in onControlStatusChange()
1000 void onParameterChange(AudioEffect effect, int status, byte[] param, in onParameterChange()
1131 private AudioEffect mAudioEffect;
1133 public NativeEventHandler(AudioEffect ae, Looper looper) { in NativeEventHandler()
1202 AudioEffect effect = (AudioEffect) ((WeakReference) effect_ref).get(); in postEventFromNative()
[all …]
DPresetReverb.java19 import android.media.audiofx.AudioEffect;
53 public class PresetReverb extends AudioEffect {
182 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
186 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
DBassBoost.java19 import android.media.audiofx.AudioEffect;
41 public class BassBoost extends AudioEffect {
166 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
170 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
DVirtualizer.java22 import android.media.audiofx.AudioEffect;
51 public class Virtualizer extends AudioEffect {
239 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in getAnglesInt()
442 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in forceVirtualizationMode()
474 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in getVirtualizationMode()
507 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
511 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
DEqualizer.java19 import android.media.audiofx.AudioEffect;
42 public class Equalizer extends AudioEffect {
392 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
396 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
/frameworks/wilhelm/src/
Ditfstruct.h223 android::sp<android::AudioEffect> mBassBoostEffect;
321 android::sp<android::AudioEffect> mEnvironmentalReverbEffect;
356 android::sp<android::AudioEffect> mEqEffect;
519 android::sp<android::AudioEffect> mPresetReverbEffect;
577 android::sp<android::AudioEffect> mVirtualizerEffect;
643 android::KeyedVector<SLuint32, android::sp<android::AudioEffect> > *mEffects;
685 android::sp<android::AudioEffect> mAECEffect;
693 android::sp<android::AudioEffect> mAGCEffect;
701 android::sp<android::AudioEffect> mNSEffect;
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp112 sp<AudioEffect> fx = new AudioEffect(NULL, String16("android"), &effect->mUuid, -1, 0, in addInputEffects()
172 Vector< sp<AudioEffect> > effects = mInputs.valueAt(index)->mEffects; in queryDefaultInputEffects()
205 Vector< sp<AudioEffect> > effects = mOutputSessions.valueAt(index)->mEffects; in queryDefaultOutputSessionEffects()
257 sp<AudioEffect> fx = new AudioEffect(NULL, String16("android"), &effect->mUuid, 0, 0, 0, in addOutputSessionEffects()
617 if (AudioEffect::stringToGuid(node->value, &uuid) != NO_ERROR) { in loadEffect()

123