Home
last modified time | relevance | path

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

123

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioEffectTest.java25 import android.media.audiofx.AudioEffect;
48 private AudioEffect mEffect = null;
97 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test0_0QueryEffects()
107 if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_EQUALIZER)) { in test0_0QueryEffects()
109 } if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_BASS_BOOST)) { in test0_0QueryEffects()
111 } else if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_VIRTUALIZER)) { in test0_0QueryEffects()
114 else if (desc[i].type.equals(AudioEffect.EFFECT_TYPE_ENV_REVERB)) { in test0_0QueryEffects()
152 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in test1_0ConstructorFromType()
157 if (AudioEffect.EFFECT_PRE_PROCESSING.equals(desc[0].connectMode)) { in test1_0ConstructorFromType()
164 AudioEffect effect = new AudioEffect(desc[0].type, in test1_0ConstructorFromType()
[all …]
DMediaPresetReverbTest.java22 import android.media.audiofx.AudioEffect;
192 AudioEffect vc = null; in test2_0AuxiliarySoundModification()
206 vc = new AudioEffect( in test2_0AuxiliarySoundModification()
207 AudioEffect.EFFECT_TYPE_NULL, in test2_0AuxiliarySoundModification()
264 AudioEffect vc = null; in test2_1InsertSoundModification()
266 AudioEffect rvb = null; in test2_1InsertSoundModification()
277 vc = new AudioEffect( in test2_1InsertSoundModification()
278 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
290 rvb = new AudioEffect( in test2_1InsertSoundModification()
291 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
DMediaEnvReverbTest.java22 import android.media.audiofx.AudioEffect;
347 AudioEffect vc = null; in test2_0AuxiliarySoundModification()
361 vc = new AudioEffect( in test2_0AuxiliarySoundModification()
362 AudioEffect.EFFECT_TYPE_NULL, in test2_0AuxiliarySoundModification()
421 AudioEffect vc = null; in test2_1InsertSoundModification()
423 AudioEffect rvb = null; in test2_1InsertSoundModification()
434 vc = new AudioEffect( in test2_1InsertSoundModification()
435 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
447 rvb = new AudioEffect( in test2_1InsertSoundModification()
448 AudioEffect.EFFECT_TYPE_NULL, in test2_1InsertSoundModification()
DMediaVisualizerTest.java22 import android.media.audiofx.AudioEffect;
227 AudioEffect vc = null; in test2_0PollingCapture()
240 vc = new AudioEffect( in test2_0PollingCapture()
241 AudioEffect.EFFECT_TYPE_NULL, in test2_0PollingCapture()
306 AudioEffect vc = null; in test2_1ListenerCapture()
319 vc = new AudioEffect( in test2_1ListenerCapture()
320 AudioEffect.EFFECT_TYPE_NULL, in test2_1ListenerCapture()
440 AudioEffect vc = null; in test2_2PollingCaptureVolumeScaling()
452 vc = new AudioEffect( in test2_2PollingCaptureVolumeScaling()
453 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.cpp201 android::status_t android_eq_getParam(const android::sp<android::AudioEffect>& pFx, in android_eq_getParam()
227 android::status_t android_eq_setParam(const android::sp<android::AudioEffect>& pFx, in android_eq_setParam()
250 android::status_t android_bb_setParam(const android::sp<android::AudioEffect>& pFx, in android_bb_setParam()
258 android::status_t android_bb_getParam(const android::sp<android::AudioEffect>& pFx, in android_bb_getParam()
353 android::status_t android_virt_setParam(const android::sp<android::AudioEffect>& pFx, in android_virt_setParam()
361 android::status_t android_virt_getParam(const android::sp<android::AudioEffect>& pFx, in android_virt_getParam()
389 android::status_t android_prev_setPreset(const android::sp<android::AudioEffect>& pFx, in android_prev_setPreset()
399 android::status_t android_prev_getPreset(const android::sp<android::AudioEffect>& pFx, in android_prev_getPreset()
429 android::status_t android_erev_setParam(const android::sp<android::AudioEffect>& pFx, in android_erev_setParam()
444 android::status_t android_erev_getParam(const android::sp<android::AudioEffect>& pFx, in android_erev_getParam()
[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.java20 import android.media.audiofx.AudioEffect;
197 public class EffectListner implements AudioEffect.OnEnableStatusChangeListener,
198 AudioEffect.OnControlStatusChangeListener, AudioEffect.OnParameterChangeListener
202 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in onEnableStatusChange()
205 public void onControlStatusChange(AudioEffect effect, boolean controlGranted) { in onControlStatusChange()
208 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
/frameworks/base/media/java/android/media/audiofx/
DHapticGenerator.java40 public class HapticGenerator extends AudioEffect implements AutoCloseable {
47 private AudioEffect mVolumeControlEffect;
54 && AudioEffect.isEffectTypeAvailable(AudioEffect.EFFECT_TYPE_HAPTIC_GENERATOR); in isAvailable()
86 mVolumeControlEffect = new AudioEffect( in HapticGenerator()
87 AudioEffect.EFFECT_TYPE_NULL, in HapticGenerator()
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.java75 public class AudioEffect { class
472 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession) in AudioEffect() method in AudioEffect
492 public AudioEffect(@NonNull UUID uuid, @NonNull AudioDeviceAttributes device) { in AudioEffect() method in AudioEffect
497 private AudioEffect(UUID type, UUID uuid, int priority, in AudioEffect() method in AudioEffect
504 private AudioEffect(UUID type, UUID uuid, int priority, in AudioEffect() method in AudioEffect
570 AudioEffect fx = new AudioEffect( in isEffectSupportedForDevice()
644 AudioEffect.Descriptor[] desc = AudioEffect.queryEffects(); in isEffectTypeAvailable()
1143 void onEnableStatusChange(AudioEffect effect, boolean enabled); in onEnableStatusChange()
1158 void onControlStatusChange(AudioEffect effect, boolean controlGranted); in onControlStatusChange()
1175 void onParameterChange(AudioEffect effect, int status, byte[] param, in onParameterChange()
[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()
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()
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()
DVirtualizer.java22 import android.media.audiofx.AudioEffect;
56 public class Virtualizer extends AudioEffect {
244 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in getAnglesInt()
448 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in forceVirtualizationMode()
480 } else if (status == AudioEffect.ERROR_BAD_VALUE) { in getVirtualizationMode()
513 private class BaseParameterListener implements AudioEffect.OnParameterChangeListener {
517 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { in onParameterChange()
/frameworks/av/media/libaudioclient/
DAudioEffect.cpp56 AudioEffect::AudioEffect(const android::content::AttributionSourceState& attributionSource) in AudioEffect() function in android::AudioEffect
61 status_t AudioEffect::set(const effect_uuid_t *type, in set()
189 class LegacyCallbackWrapper : public AudioEffect::IAudioEffectCallback {
191 LegacyCallbackWrapper(AudioEffect::legacy_callback_t callback, void* user): in LegacyCallbackWrapper()
195 mCallback(AudioEffect::EVENT_CONTROL_STATUS_CHANGED, mUser, &isGranted); in onControlStatusChanged()
199 mCallback(AudioEffect::EVENT_ENABLE_STATUS_CHANGED, mUser, &isEnabled); in onEnableStatusChanged()
203 mCallback(AudioEffect::EVENT_PARAMETER_CHANGED, mUser, param.data()); in onParameterChanged()
207 mCallback(AudioEffect::EVENT_ERROR, mUser, &errorCode); in onError()
211 mCallback(AudioEffect::EVENT_FRAMES_PROCESSED, mUser, &framesProcessed); in onFramesProcessed()
214 const AudioEffect::legacy_callback_t mCallback;
[all …]
/frameworks/base/media/java/android/media/
DAudioRecordingConfiguration.java25 import android.media.audiofx.AudioEffect;
76 private final AudioEffect.Descriptor[] mClientEffects;
78 private final AudioEffect.Descriptor[] mDeviceEffects;
87 AudioEffect.Descriptor[] clientEffects, AudioEffect.Descriptor[] deviceEffects) { in AudioRecordingConfiguration()
112 new AudioEffect.Descriptor[0] /*clientEffects*/, in AudioRecordingConfiguration()
113 new AudioEffect.Descriptor[0] /*deviceEffects*/); in AudioRecordingConfiguration()
130 for (AudioEffect.Descriptor desc : arc.mClientEffects) { in toLogFriendlyString()
134 for (AudioEffect.Descriptor desc : arc.mDeviceEffects) { in toLogFriendlyString()
310 public @NonNull List<AudioEffect.Descriptor> getClientEffects() { in getClientEffects()
311 return new ArrayList<AudioEffect.Descriptor>(Arrays.asList(mClientEffects)); in getClientEffects()
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudioeffect_tests.cpp32 class AudioEffectCallback : public AudioEffect::IAudioEffectCallback {
58 sp<AudioEffect> createEffect(const effect_uuid_t* type, const effect_uuid_t* uuid = nullptr, in createEffect()
67 sp<AudioEffect> effect = new AudioEffect(attributionSource); in createEffect()
75 sp<AudioEffect> effect = createEffect(type, uuid, priority, sessionId); in isEffectExistsOnAudioSession()
81 effect_descriptor_t descriptors[AudioEffect::kMaxPreProcessing]; in isEffectDefaultOnRecord()
82 uint32_t numEffects = AudioEffect::kMaxPreProcessing; in isEffectDefaultOnRecord()
83 status_t ret = AudioEffect::queryDefaultPreProcessing(audioRecord->getSessionId(), descriptors, in isEffectDefaultOnRecord()
85 if (ret != OK || numEffects > AudioEffect::kMaxPreProcessing) { in isEffectDefaultOnRecord()
99 ASSERT_EQ(NO_ERROR, AudioEffect::queryNumberEffects(&numEffects)); in listEffectsAvailable()
102 ASSERT_EQ(NO_ERROR, AudioEffect::queryEffect(i, &des)); in listEffectsAvailable()
[all …]
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp134 case AudioEffect::EVENT_CONTROL_STATUS_CHANGED: in effectCallback()
143 case AudioEffect::EVENT_ENABLE_STATUS_CHANGED: in effectCallback()
152 case AudioEffect::EVENT_PARAMETER_CHANGED: in effectCallback()
175 case AudioEffect::EVENT_ERROR: in effectCallback()
203 static sp<AudioEffect> getAudioEffect(JNIEnv* env, jobject thiz) in getAudioEffect()
206 AudioEffect* const ae = in getAudioEffect()
207 (AudioEffect*)env->GetLongField(thiz, fields.fidNativeAudioEffect); in getAudioEffect()
208 return sp<AudioEffect>::fromExisting(ae); in getAudioEffect()
211 static sp<AudioEffect> setAudioEffect(JNIEnv* env, jobject thiz, in setAudioEffect()
212 const sp<AudioEffect>& ae) in setAudioEffect()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h43 class AudioEffect : public virtual RefBase
292 friend AudioEffect; variable
385 explicit AudioEffect(const android::content::AttributionSourceState& client);
391 ~AudioEffect();
651 explicit EffectClient(const sp<AudioEffect>& effect) : mEffect(effect){} in EffectClient()
655 sp<AudioEffect> effect = mEffect.promote(); in controlStatusChanged()
662 sp<AudioEffect> effect = mEffect.promote(); in enableStatusChanged()
671 sp<AudioEffect> effect = mEffect.promote(); in commandExecuted()
678 sp<AudioEffect> effect = mEffect.promote(); in framesProcessed()
688 sp<AudioEffect> effect = mEffect.promote(); in binderDied()
[all …]

123