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/
DHapticGenerator.java71 public static @NonNull HapticGenerator create(int audioSession) { in create() argument
72 return new HapticGenerator(audioSession); in create()
84 private HapticGenerator(int audioSession) { in HapticGenerator() argument
85 super(EFFECT_TYPE_HAPTIC_GENERATOR, EFFECT_TYPE_NULL, 0, audioSession); in HapticGenerator()
90 audioSession); in HapticGenerator()
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()
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()
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.java472 public AudioEffect(UUID type, UUID uuid, int priority, int audioSession) in AudioEffect() argument
475 this(type, uuid, priority, audioSession, null); in AudioEffect()
498 int audioSession, @Nullable AudioDeviceAttributes device) in AudioEffect() argument
501 this(type, uuid, priority, audioSession, device, false); in AudioEffect()
505 int audioSession, @Nullable AudioDeviceAttributes device, boolean probe) in AudioEffect() argument
529 priority, audioSession, deviceType, deviceAddress, id, desc, in AudioEffect()
632 static public Descriptor[] queryPreProcessings(int audioSession) { in queryPreProcessings() argument
633 return (Descriptor[]) native_query_pre_processing(audioSession); in queryPreProcessings()
1396 String uuid, int priority, int audioSession, in native_setup() argument
1421 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.java217 public Visualizer(int audioSession) in Visualizer() argument
229 result = native_setup(new WeakReference<>(this), audioSession, id, in Visualizer()
696 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.cpp95 audio_session_t audioSession) in addInputEffects() argument
109 ssize_t idx = mInputSessions.indexOfKey(audioSession); in addInputEffects()
112 sessionDesc = new EffectVector(audioSession); in addInputEffects()
113 mInputSessions.add(audioSession, sessionDesc); in addInputEffects()
130 fx->set(NULL, &effect->mUuid, -1, 0, 0, audioSession, input); in addInputEffects()
153 audio_session_t audioSession) in releaseInputEffects() argument
158 ssize_t index = mInputSessions.indexOfKey(audioSession); in releaseInputEffects()
174 status_t AudioPolicyEffects::queryDefaultInputEffects(audio_session_t audioSession, in queryDefaultInputEffects() argument
183 if (mInputSessions.valueAt(index)->mSessionId == audioSession) { in queryDefaultInputEffects()
207 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.java246 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession = in loadModel() local
251 return loadedModel.load(model, audioSession); in loadModel()
256 mAudioSessionProvider.releaseSession(audioSession.mSessionHandle); in loadModel()
268 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession = in loadPhraseModel() local
273 int result = loadedModel.load(model, audioSession); in loadPhraseModel()
280 mAudioSessionProvider.releaseSession(audioSession.mSessionHandle); in loadPhraseModel()
395 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession) { in load() argument
396 mSession = audioSession; in load()
405 SoundTriggerMiddlewareImpl.AudioSessionProvider.AudioSession audioSession) { in load() argument
406 mSession = audioSession; in load()
/frameworks/av/media/libaudioclient/aidl/android/media/
DIAudioFlingerService.aidl145 void acquireAudioSessionId(int /* audio_session_t */ audioSession, in acquireAudioSessionId() argument
148 void releaseAudioSessionId(int /* audio_session_t */ audioSession, in releaseAudioSessionId() argument
DIAudioPolicyService.aidl168 EffectDescriptor[] queryDefaultPreProcessing(int /* audio_session_t */ audioSession, in queryDefaultPreProcessing() argument
/frameworks/av/media/libaudioclient/include/media/
DIAudioFlinger.h277 virtual void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) = 0;
278 virtual void releaseAudioSessionId(audio_session_t audioSession, pid_t pid) = 0;
430 void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) override;
431 void releaseAudioSessionId(audio_session_t audioSession, pid_t pid) override;
651 Status acquireAudioSessionId(int32_t audioSession, int32_t pid, int32_t uid) override;
652 Status releaseAudioSessionId(int32_t audioSession, int32_t pid) override;
DAudioEffect.h149 static status_t queryDefaultPreProcessing(audio_session_t audioSession,
DAudioSystem.h226 static void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid);
227 static void releaseAudioSessionId(audio_session_t audioSession, pid_t pid);
/frameworks/av/media/libaudioclient/
DIAudioFlinger.cpp532 void AudioFlingerClientAdapter::acquireAudioSessionId(audio_session_t audioSession, pid_t pid, in acquireAudioSessionId() argument
536 legacy2aidl_audio_session_t_int32_t(audioSession)); in acquireAudioSessionId()
545 void AudioFlingerClientAdapter::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) { in releaseAudioSessionId() argument
548 legacy2aidl_audio_session_t_int32_t(audioSession)); in releaseAudioSessionId()
1113 AudioFlingerServerAdapter::acquireAudioSessionId(int32_t audioSession, int32_t pid, int32_t uid) { in acquireAudioSessionId() argument
1115 aidl2legacy_int32_t_audio_session_t(audioSession)); in acquireAudioSessionId()
1122 Status AudioFlingerServerAdapter::releaseAudioSessionId(int32_t audioSession, int32_t pid) { in releaseAudioSessionId() argument
1124 aidl2legacy_int32_t_audio_session_t(audioSession)); in releaseAudioSessionId()
/frameworks/av/services/audioflinger/
DAudioFlinger.h217 void acquireAudioSessionId(audio_session_t audioSession, pid_t pid, uid_t uid) override;
219 virtual void releaseAudioSessionId(audio_session_t audioSession, pid_t pid);
818 bool isSessionAcquired_l(audio_session_t audioSession);
DAudioFlinger.cpp3365 audio_session_t audioSession, pid_t pid, uid_t uid) in acquireAudioSessionId() argument
3369 ALOGV("acquiring %d from %d, for %d", audioSession, caller, pid); in acquireAudioSessionId()
3385 ALOGW("acquireAudioSessionId() unknown client %d for session %d", caller, audioSession); in acquireAudioSessionId()
3393 if (ref->mSessionid == audioSession && ref->mPid == caller) { in acquireAudioSessionId()
3399 mAudioSessionRefs.push(new AudioSessionRef(audioSession, caller, uid)); in acquireAudioSessionId()
3400 ALOGV(" added new entry for %d", audioSession); in acquireAudioSessionId()
3403 void AudioFlinger::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) in releaseAudioSessionId() argument
3409 ALOGV("releasing %d from %d for %d", audioSession, caller, pid); in releaseAudioSessionId()
3417 if (ref->mSessionid == audioSession && ref->mPid == caller) { in releaseAudioSessionId()
3432 "session id %d not found for pid %d", audioSession, caller); in releaseAudioSessionId()
[all …]
/frameworks/base/media/jni/audioeffect/
Dandroid_media_AudioEffect.cpp776 jint audioSession) in android_media_AudioEffect_native_queryPreProcessings() argument
781 status_t status = AudioEffect::queryDefaultPreProcessing((audio_session_t) audioSession, in android_media_AudioEffect_native_queryPreProcessings()

12