Home
last modified time | relevance | path

Searched refs:AudioEffect (Results 1 – 25 of 72) 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(const android::sp<android::AudioEffect>& pFx,
25 extern android::status_t android_eq_getParam(const android::sp<android::AudioEffect>& pFx,
33 extern android::status_t android_bb_setParam(const android::sp<android::AudioEffect>& pFx,
36 extern android::status_t android_bb_getParam(const android::sp<android::AudioEffect>& pFx,
44 extern android::status_t android_virt_setParam(const android::sp<android::AudioEffect>& pFx,
47 extern android::status_t android_virt_getParam(const android::sp<android::AudioEffect>& pFx,
55 extern android::status_t android_prev_setPreset(const android::sp<android::AudioEffect>& pFx,
58 extern android::status_t android_prev_getPreset(const android::sp<android::AudioEffect>& pFx,
66 extern android::status_t android_erev_setParam(const android::sp<android::AudioEffect>& pFx,
69 extern android::status_t android_erev_getParam(const android::sp<android::AudioEffect>& pFx,
[all …]
Dandroid_Effect.cpp199 android::status_t android_eq_getParam(const android::sp<android::AudioEffect>& pFx, in android_eq_getParam()
225 android::status_t android_eq_setParam(const android::sp<android::AudioEffect>& pFx, in android_eq_setParam()
248 android::status_t android_bb_setParam(const android::sp<android::AudioEffect>& pFx, in android_bb_setParam()
256 android::status_t android_bb_getParam(const android::sp<android::AudioEffect>& pFx, in android_bb_getParam()
351 android::status_t android_virt_setParam(const android::sp<android::AudioEffect>& pFx, in android_virt_setParam()
359 android::status_t android_virt_getParam(const android::sp<android::AudioEffect>& pFx, in android_virt_getParam()
387 android::status_t android_prev_setPreset(const android::sp<android::AudioEffect>& pFx, in android_prev_setPreset()
397 android::status_t android_prev_getPreset(const android::sp<android::AudioEffect>& pFx, in android_prev_getPreset()
427 android::status_t android_erev_setParam(const android::sp<android::AudioEffect>& pFx, in android_erev_setParam()
442 android::status_t android_erev_getParam(const android::sp<android::AudioEffect>& pFx, in android_erev_getParam()
[all …]
/frameworks/av/media/libaudioclient/
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
60 AudioEffect::AudioEffect(const char *typeStr, in AudioEffect() function in android::AudioEffect
95 status_t AudioEffect::set(const effect_uuid_t *type, in set()
187 AudioEffect::~AudioEffect() in ~AudioEffect()
207 status_t AudioEffect::initCheck() const in initCheck()
214 effect_descriptor_t AudioEffect::descriptor() const in descriptor()
219 bool AudioEffect::getEnabled() const in getEnabled()
224 status_t AudioEffect::setEnabled(bool enabled) in setEnabled()
248 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()
/frameworks/base/media/java/android/media/
DAudioRecordingConfiguration.java23 import android.media.audiofx.AudioEffect;
73 private final AudioEffect.Descriptor[] mClientEffects;
75 private final AudioEffect.Descriptor[] mDeviceEffects;
84 AudioEffect.Descriptor[] clientEffects, AudioEffect.Descriptor[] deviceEffects) { in AudioRecordingConfiguration()
109 new AudioEffect.Descriptor[0] /*clientEffects*/, in AudioRecordingConfiguration()
110 new AudioEffect.Descriptor[0] /*deviceEffects*/); in AudioRecordingConfiguration()
127 for (AudioEffect.Descriptor desc : arc.mClientEffects) { in toLogFriendlyString()
131 for (AudioEffect.Descriptor desc : arc.mDeviceEffects) { in toLogFriendlyString()
306 public @NonNull List<AudioEffect.Descriptor> getClientEffects() { in getClientEffects()
307 return new ArrayList<AudioEffect.Descriptor>(Arrays.asList(mClientEffects)); in getClientEffects()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h43 class AudioEffect : public RefBase
342 AudioEffect(const String16& opPackageName);
370 AudioEffect(const effect_uuid_t *type,
384 AudioEffect(const char *typeStr,
399 ~AudioEffect();
577 EffectClient(AudioEffect *effect) : mEffect(effect){} in EffectClient()
581 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged()
592 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged()
607 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted()
621 sp<AudioEffect> effect = mEffect.promote(); in binderDied()
[all …]
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp131 case AudioEffect::EVENT_CONTROL_STATUS_CHANGED: in effectCallback()
140 case AudioEffect::EVENT_ENABLE_STATUS_CHANGED: in effectCallback()
149 case AudioEffect::EVENT_PARAMETER_CHANGED: in effectCallback()
172 case AudioEffect::EVENT_ERROR: in effectCallback()
195 static sp<AudioEffect> getAudioEffect(JNIEnv* env, jobject thiz) in getAudioEffect()
198 AudioEffect* const ae = in getAudioEffect()
199 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect()
200 return sp<AudioEffect>(ae); in getAudioEffect()
203 static sp<AudioEffect> setAudioEffect(JNIEnv* env, jobject thiz, in setAudioEffect()
204 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.java73 public class AudioEffect { class
455 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession) in AudioEffect() method in AudioEffect
475 public AudioEffect(@NonNull UUID uuid, @NonNull AudioDeviceAddress device) { in AudioEffect() method in AudioEffect
479 private AudioEffect(UUID type, UUID uuid, int priority, in AudioEffect() method in AudioEffect
494 int initResult = native_setup(new WeakReference<AudioEffect>(this), in AudioEffect()
585 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in isEffectTypeAvailable()
1084 void onEnableStatusChange(AudioEffect effect, boolean enabled); in onEnableStatusChange()
1099 void onControlStatusChange(AudioEffect effect, boolean controlGranted); in onControlStatusChange()
1116 void onParameterChange(AudioEffect effect, int status, byte[] param, in onParameterChange()
1247 private AudioEffect mAudioEffect;
[all …]
DStreamDefaultEffect.java71 if (initResult != AudioEffect.SUCCESS) { in StreamDefaultEffect()
74 case AudioEffect.ERROR_BAD_VALUE: in StreamDefaultEffect()
77 case AudioEffect.ERROR_INVALID_OPERATION: in StreamDefaultEffect()
DSourceDefaultEffect.java72 if (initResult != AudioEffect.SUCCESS) { in SourceDefaultEffect()
75 case AudioEffect.ERROR_BAD_VALUE: in SourceDefaultEffect()
78 case AudioEffect.ERROR_INVALID_OPERATION: in SourceDefaultEffect()
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()
443 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in forceVirtualizationMode()
475 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in getVirtualizationMode()
508 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
512 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
/frameworks/wilhelm/src/
Ditfstruct.h225 android::sp<android::AudioEffect> mBassBoostEffect;
323 android::sp<android::AudioEffect> mEnvironmentalReverbEffect;
358 android::sp<android::AudioEffect> mEqEffect;
521 android::sp<android::AudioEffect> mPresetReverbEffect;
579 android::sp<android::AudioEffect> mVirtualizerEffect;
645 android::KeyedVector<SLuint32, android::sp<android::AudioEffect> > *mEffects;
689 android::sp<android::AudioEffect> mAECEffect;
697 android::sp<android::AudioEffect> mAGCEffect;
705 android::sp<android::AudioEffect> mNSEffect;

123