Home
last modified time | relevance | path

Searched refs:audioSession (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/media/java/android/media/audiofx/
DNoiseSuppressor.java63 public static NoiseSuppressor create(int audioSession) { in create() argument
66 ns = new NoiseSuppressor(audioSession); in create()
94 private NoiseSuppressor(int audioSession) in NoiseSuppressor() argument
96 super(EFFECT_TYPE_NS, EFFECT_TYPE_NULL, 0, audioSession); in NoiseSuppressor()
DAutomaticGainControl.java61 public static AutomaticGainControl create(int audioSession) { in create() argument
64 agc = new AutomaticGainControl(audioSession); in create()
92 private AutomaticGainControl(int audioSession) in AutomaticGainControl() argument
94 super(EFFECT_TYPE_AGC, EFFECT_TYPE_NULL, 0, audioSession); in AutomaticGainControl()
DAcousticEchoCanceler.java61 public static AcousticEchoCanceler create(int audioSession) { in create() argument
64 aec = new AcousticEchoCanceler(audioSession); in create()
92 private AcousticEchoCanceler(int audioSession) in AcousticEchoCanceler() argument
94 super(EFFECT_TYPE_AEC, EFFECT_TYPE_NULL, 0, audioSession); in AcousticEchoCanceler()
DLoudnessEnhancer.java77 public LoudnessEnhancer(int audioSession) in LoudnessEnhancer() argument
80 super(EFFECT_TYPE_LOUDNESS_ENHANCER, EFFECT_TYPE_NULL, 0, audioSession); in LoudnessEnhancer()
82 if (audioSession == 0) { in LoudnessEnhancer()
103 public LoudnessEnhancer(int priority, int audioSession) in LoudnessEnhancer() argument
106 super(EFFECT_TYPE_LOUDNESS_ENHANCER, EFFECT_TYPE_NULL, priority, audioSession); in LoudnessEnhancer()
108 if (audioSession == 0) { in LoudnessEnhancer()
DBassBoost.java91 public BassBoost(int priority, int audioSession) in BassBoost() argument
94 super(EFFECT_TYPE_BASS_BOOST, EFFECT_TYPE_NULL, priority, audioSession); in BassBoost()
96 if (audioSession == 0) { in BassBoost()
DAudioEffect.java459 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession) in AudioEffect() argument
462 this(type, uuid, priority, audioSession, null); in AudioEffect()
485 int audioSession, @Nullable AudioDeviceAttributes device) in AudioEffect() argument
488 this(type, uuid, priority, audioSession, device, false); in AudioEffect()
492 int audioSession, @Nullable AudioDeviceAttributes device, boolean probe) in AudioEffect() argument
507 type.toString(), uuid.toString(), priority, audioSession, in AudioEffect()
610 static public Descriptor[] queryPreProcessings(int audioSession) { in queryPreProcessings() argument
611 return (Descriptor[]) native_query_pre_processing(audioSession); in queryPreProcessings()
1374 String uuid, int priority, int audioSession, in native_setup() argument
1399 private static native Object[] native_query_pre_processing(int audioSession); in native_query_pre_processing() argument
DPresetReverb.java126 public PresetReverb(int priority, int audioSession) in PresetReverb() argument
128 super(EFFECT_TYPE_PRESET_REVERB, EFFECT_TYPE_NULL, priority, audioSession); in PresetReverb()
DVisualizer.java214 public Visualizer(int audioSession) in Visualizer() argument
221 int result = native_setup(new WeakReference<Visualizer>(this), audioSession, id, in Visualizer()
687 int audioSession, in native_setup() argument
DEqualizer.java136 public Equalizer(int priority, int audioSession) in Equalizer() argument
139 super(EFFECT_TYPE_EQUALIZER, EFFECT_TYPE_NULL, priority, audioSession); in Equalizer()
141 if (audioSession == 0) { in Equalizer()
DVirtualizer.java117 public Virtualizer(int priority, int audioSession) in Virtualizer() argument
120 super(EFFECT_TYPE_VIRTUALIZER, EFFECT_TYPE_NULL, priority, audioSession); in Virtualizer()
122 if (audioSession == 0) { in Virtualizer()
DEnvironmentalReverb.java136 public EnvironmentalReverb(int priority, int audioSession) in EnvironmentalReverb() argument
138 super(EFFECT_TYPE_ENV_REVERB, EFFECT_TYPE_NULL, priority, audioSession); in EnvironmentalReverb()
DDynamicsProcessing.java148 public DynamicsProcessing(int audioSession) { in DynamicsProcessing() argument
149 this(0 /*priority*/, audioSession); in DynamicsProcessing()
163 public DynamicsProcessing(int priority, int audioSession) { in DynamicsProcessing() argument
164 this(priority, audioSession, null); in DynamicsProcessing()
182 public DynamicsProcessing(int priority, int audioSession, @Nullable Config cfg) { in DynamicsProcessing() argument
183 super(EFFECT_TYPE_DYNAMICS_PROCESSING, EFFECT_TYPE_NULL, priority, audioSession); in DynamicsProcessing()
184 if (audioSession == 0) { in DynamicsProcessing()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp93 audio_session_t audioSession) in addInputEffects() argument
107 ssize_t idx = mInputSessions.indexOfKey(audioSession); in addInputEffects()
110 sessionDesc = new EffectVector(audioSession); in addInputEffects()
111 mInputSessions.add(audioSession, sessionDesc); in addInputEffects()
125 0, audioSession, input); in addInputEffects()
148 audio_session_t audioSession) in releaseInputEffects() argument
153 ssize_t index = mInputSessions.indexOfKey(audioSession); in releaseInputEffects()
169 status_t AudioPolicyEffects::queryDefaultInputEffects(audio_session_t audioSession, in queryDefaultInputEffects() argument
178 if (mInputSessions.valueAt(index)->mSessionId == audioSession) { in queryDefaultInputEffects()
202 status_t AudioPolicyEffects::queryDefaultOutputSessionEffects(audio_session_t audioSession, in queryDefaultOutputSessionEffects() argument
[all …]
DAudioPolicyEffects.h56 status_t queryDefaultInputEffects(audio_session_t audioSession,
64 audio_session_t audioSession);
68 audio_session_t audioSession);
72 status_t queryDefaultOutputSessionEffects(audio_session_t audioSession,
80 audio_session_t audioSession);
85 audio_session_t audioSession);
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerModule.java276 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession = in loadModel() local
287 int result = loadedModel.load(model, audioSession); in loadModel()
294 mAudioSessionProvider.releaseSession(audioSession.mSessionHandle); in loadModel()
303 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession = in loadPhraseModel() local
314 int result = loadedModel.load(model, audioSession); in loadPhraseModel()
322 mAudioSessionProvider.releaseSession(audioSession.mSessionHandle); in loadPhraseModel()
465 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession) { in load() argument
467 mSession = audioSession; in load()
477 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession) { in load() argument
479 mSession = audioSession; in load()
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp574 void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) override in acquireAudioSessionId() argument
578 data.writeInt32(audioSession); in acquireAudioSessionId()
584 virtual void releaseAudioSessionId(audio_session_t audioSession, int pid) in releaseAudioSessionId() argument
588 data.writeInt32(audioSession); in releaseAudioSessionId()
1331 audio_session_t audioSession = (audio_session_t) data.readInt32(); in onTransact() local
1334 acquireAudioSessionId(audioSession, pid, uid); in onTransact()
1339 audio_session_t audioSession = (audio_session_t) data.readInt32(); in onTransact() local
1341 releaseAudioSessionId(audioSession, pid); in onTransact()
DAudioEffect.cpp482 status_t AudioEffect::queryDefaultPreProcessing(audio_session_t audioSession, in queryDefaultPreProcessing() argument
488 return aps->queryDefaultPreProcessing(audioSession, descriptors, count); in queryDefaultPreProcessing()
DAudioSystem.cpp444 void AudioSystem::acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) in acquireAudioSessionId() argument
448 af->acquireAudioSessionId(audioSession, pid, uid); in acquireAudioSessionId()
452 void AudioSystem::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) in releaseAudioSessionId() argument
456 af->releaseAudioSessionId(audioSession, pid); in releaseAudioSessionId()
/frameworks/av/media/libaudioclient/include/media/
DAudioEffect.h149 static status_t queryDefaultPreProcessing(audio_session_t audioSession,
DIAudioFlinger.h454 virtual void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) = 0;
455 virtual void releaseAudioSessionId(audio_session_t audioSession, pid_t pid) = 0;
DAudioSystem.h185 static void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid);
186 static void releaseAudioSessionId(audio_session_t audioSession, pid_t pid);
DIAudioPolicyService.h132 virtual status_t queryDefaultPreProcessing(audio_session_t audioSession,
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp2982 audio_session_t audioSession, pid_t pid, uid_t uid) in acquireAudioSessionId() argument
2986 ALOGV("acquiring %d from %d, for %d", audioSession, caller, pid); in acquireAudioSessionId()
3002 ALOGW("acquireAudioSessionId() unknown client %d for session %d", caller, audioSession); in acquireAudioSessionId()
3010 if (ref->mSessionid == audioSession && ref->mPid == caller) { in acquireAudioSessionId()
3016 mAudioSessionRefs.push(new AudioSessionRef(audioSession, caller, uid)); in acquireAudioSessionId()
3017 ALOGV(" added new entry for %d", audioSession); in acquireAudioSessionId()
3020 void AudioFlinger::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) in releaseAudioSessionId() argument
3026 ALOGV("releasing %d from %d for %d", audioSession, caller, pid); in releaseAudioSessionId()
3034 if (ref->mSessionid == audioSession && ref->mPid == caller) { in releaseAudioSessionId()
3049 "session id %d not found for pid %d", audioSession, caller); in releaseAudioSessionId()
[all …]
DAudioFlinger.h221 void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) override;
223 virtual void releaseAudioSessionId(audio_session_t audioSession, pid_t pid);
764 bool isSessionAcquired_l(audio_session_t audioSession);
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp752 jint audioSession) in android_media_AudioEffect_native_queryPreProcessings() argument
757 status_t status = AudioEffect::queryDefaultPreProcessing((audio_session_t) audioSession, in android_media_AudioEffect_native_queryPreProcessings()

12