Home
last modified time | relevance | path

Searched refs:AudioSystem (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/media/java/android/media/
DAudioDeviceInfo.java250 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE); in convertDeviceTypeToInternalDevice()
264 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE); in INT_TO_EXT_DEVICE_MAPPING.put()
265 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER); in INT_TO_EXT_DEVICE_MAPPING.put()
266 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET); in INT_TO_EXT_DEVICE_MAPPING.put()
267 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES); in INT_TO_EXT_DEVICE_MAPPING.put()
268 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put()
269 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put()
270 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put()
271 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP); in INT_TO_EXT_DEVICE_MAPPING.put()
272 …INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, TYPE_BLUETOOTH_A2D… in INT_TO_EXT_DEVICE_MAPPING.put()
[all …]
DAudioAttributes.java598 case AudioSystem.STREAM_VOICE_CALL: in setInternalLegacyStreamType()
601 case AudioSystem.STREAM_SYSTEM_ENFORCED: in setInternalLegacyStreamType()
604 case AudioSystem.STREAM_SYSTEM: in setInternalLegacyStreamType()
607 case AudioSystem.STREAM_RING: in setInternalLegacyStreamType()
610 case AudioSystem.STREAM_MUSIC: in setInternalLegacyStreamType()
613 case AudioSystem.STREAM_ALARM: in setInternalLegacyStreamType()
616 case AudioSystem.STREAM_NOTIFICATION: in setInternalLegacyStreamType()
619 case AudioSystem.STREAM_BLUETOOTH_SCO: in setInternalLegacyStreamType()
623 case AudioSystem.STREAM_DTMF: in setInternalLegacyStreamType()
626 case AudioSystem.STREAM_TTS: in setInternalLegacyStreamType()
[all …]
DAudioManager.java316 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL;
318 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM;
320 public static final int STREAM_RING = AudioSystem.STREAM_RING;
322 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC;
324 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM;
326 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION;
328 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO;
330 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED;
332 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF;
334 public static final int STREAM_TTS = AudioSystem.STREAM_TTS;
[all …]
DAudioDevicePort.java19 import android.media.AudioSystem;
102 AudioSystem.getInputDeviceName(mType) : in toString()
103 AudioSystem.getOutputDeviceName(mType)); in toString()
DMediaSyncEvent.java33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE;
42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
DAudioSystem.java34 public class AudioSystem class
208 synchronized (AudioSystem.class) { in setErrorCallback()
219 synchronized (AudioSystem.class) { in errorCallbackFromNative()
245 synchronized (AudioSystem.class) { in setDynamicPolicyCallback()
254 synchronized (AudioSystem.class) { in dynamicPolicyCallbackFromNative()
298 synchronized (AudioSystem.class) { in setRecordingCallback()
316 synchronized (AudioSystem.class) { in recordingCallbackFromNative()
DAudioRecord.java84 public static final int SUCCESS = AudioSystem.SUCCESS;
88 public static final int ERROR = AudioSystem.ERROR;
92 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE;
96 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION;
101 public static final int ERROR_DEAD_OBJECT = AudioSystem.DEAD_OBJECT;
1546 case AudioSystem.NATIVE_EVENT_ROUTING_CHANGE: in NativeRoutingEventHandlerDelegate()
1576 handler.sendEmptyMessage(AudioSystem.NATIVE_EVENT_ROUTING_CHANGE); in broadcastRoutingChange()
1716 if (what == AudioSystem.NATIVE_EVENT_ROUTING_CHANGE) { in postEventFromNative()
DAudioTrack.java143 public static final int SUCCESS = AudioSystem.SUCCESS;
147 public static final int ERROR = AudioSystem.ERROR;
151 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE;
155 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION;
160 public static final int ERROR_DEAD_OBJECT = AudioSystem.DEAD_OBJECT;
166 public static final int ERROR_WOULD_BLOCK = AudioSystem.WOULD_BLOCK;
503 mStreamType = AudioSystem.STREAM_DEFAULT; in AudioTrack()
2596 handler.sendEmptyMessage(AudioSystem.NATIVE_EVENT_ROUTING_CHANGE); in broadcastRoutingChange()
2710 case AudioSystem.NATIVE_EVENT_ROUTING_CHANGE: in NativeRoutingEventHandlerDelegate()
2743 if (what == AudioSystem.NATIVE_EVENT_ROUTING_CHANGE) { in postEventFromNative()
/frameworks/av/media/libmedia/
DAudioSystem.cpp34 Mutex AudioSystem::gLock;
35 Mutex AudioSystem::gLockAPS;
36 sp<IAudioFlinger> AudioSystem::gAudioFlinger;
37 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient;
38 audio_error_callback AudioSystem::gAudioErrorCallback = NULL;
39 dynamic_policy_callback AudioSystem::gDynPolicyCallback = NULL;
40 record_config_callback AudioSystem::gRecordConfigCallback = NULL;
44 const sp<IAudioFlinger> AudioSystem::get_audio_flinger() in get_audio_flinger()
80 const sp<AudioSystem::AudioFlingerClient> AudioSystem::getAudioFlingerClient() in getAudioFlingerClient()
83 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getAudioFlingerClient()
[all …]
DAudioRecord.cpp47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size); in getMinFrameCount()
120 AudioSystem::removeAudioDeviceCallback(mDeviceCallback, mInput); in ~AudioRecord()
129 AudioSystem::releaseAudioSessionId(mSessionId, -1 /*pid*/); in ~AudioRecord()
231 mSessionId = (audio_session_t) AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_SESSION); in set()
279 AudioSystem::acquireAudioSessionId(mSessionId, -1); in set()
291 status_t AudioRecord::start(AudioSystem::sync_event_t event, audio_session_t triggerSession) in start()
453 return AudioSystem::getInputFramesLost(getInputPrivate()); in getInputFramesLost()
502 return AudioSystem::getDeviceIdForIo(mInput); in getRoutedDeviceId()
510 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in openRecord_l()
517 AudioSystem::removeAudioDeviceCallback(mDeviceCallback, mInput); in openRecord_l()
[all …]
DAudioTrack.cpp132 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount()
139 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType); in getMinFrameCount()
146 status = AudioSystem::getOutputLatency(&afLatency, streamType); in getMinFrameCount()
264 AudioSystem::removeAudioDeviceCallback(mDeviceCallback, mOutput); in ~AudioTrack()
273 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid); in ~AudioTrack()
480 mSessionId = (audio_session_t) AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_SESSION); in set()
531 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid); in set()
746 AudioSystem::getRenderPosition(mOutput, &halFrames, &mPausedPosition); in pause()
813 if (AudioSystem::getSamplingRate(mOutput, &afSamplingRate) != NO_ERROR) { in setSampleRate()
839 status_t status = AudioSystem::getSamplingRate(mOutput, &sampleRate); in getSampleRate()
[all …]
DAudioEffect.cpp110 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in set()
164 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid); in set()
177 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid); in ~AudioEffect()
415 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryNumberEffects()
422 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryEffect()
430 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getEffectDescriptor()
440 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in queryDefaultPreProcessing()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java58 import android.media.AudioSystem;
178 return mPlatformType == AudioSystem.PLATFORM_VOICE; in isPlatformVoice()
182 return mPlatformType == AudioSystem.PLATFORM_TELEVISION; in isPlatformTelevision()
245 private int mMode = AudioSystem.MODE_NORMAL;
300 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL
301 AudioSystem.STREAM_RING, // STREAM_SYSTEM
302 AudioSystem.STREAM_RING, // STREAM_RING
303 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
304 AudioSystem.STREAM_ALARM, // STREAM_ALARM
305 AudioSystem.STREAM_RING, // STREAM_NOTIFICATION
[all …]
DRotationHelper.java20 import android.media.AudioSystem;
114 AudioSystem.setParameters("rotation=0"); in publishRotation()
117 AudioSystem.setParameters("rotation=90"); in publishRotation()
120 AudioSystem.setParameters("rotation=180"); in publishRotation()
123 AudioSystem.setParameters("rotation=270"); in publishRotation()
DRecordingActivityMonitor.java22 import android.media.AudioSystem;
37 public final class RecordingActivityMonitor implements AudioSystem.AudioRecordingCallback {
76 AudioSystem.setRecordingCallback(this); in initMonitor()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyClientImpl.cpp30 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in loadHwModule()
47 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openOutput()
59 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openDuplicateOutput()
69 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeOutput()
79 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in suspendOutput()
90 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in restoreOutput()
107 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openInput()
118 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeInput()
136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in invalidateStream()
154 String8 result = AudioSystem::getParameters(io_handle, keys); in getParameters()
[all …]
DAudioPolicyClientImplLegacy.cpp56 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_load_hw_module()
74 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in open_output()
136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_open_dup_output()
146 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_close_output()
156 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_suspend_output()
167 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_restore_output()
182 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in open_input()
238 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_close_input()
248 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_invalidate_stream()
260 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_move_effects()
[all …]
/frameworks/base/media/java/android/media/audiopolicy/
DAudioMix.java24 import android.media.AudioSystem;
187 private int mDeviceSystemType = AudioSystem.DEVICE_NONE;
340 int rate = AudioSystem.getPrimaryOutputSamplingRate(); in build()
346 if ((mDeviceSystemType != AudioSystem.DEVICE_NONE) in build()
347 && (mDeviceSystemType != AudioSystem.DEVICE_OUT_REMOTE_SUBMIX) in build()
348 && (mDeviceSystemType != AudioSystem.DEVICE_IN_REMOTE_SUBMIX)) { in build()
363 mDeviceSystemType = AudioSystem.DEVICE_OUT_REMOTE_SUBMIX; in build()
365 mDeviceSystemType = AudioSystem.DEVICE_IN_REMOTE_SUBMIX; in build()
/frameworks/base/core/jni/
Dandroid_media_AudioSystem.cpp179 class JNIAudioPortCallback: public AudioSystem::AudioPortCallback
286 return (jint) check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); in android_media_AudioSystem_muteMicrophone()
293 AudioSystem::isMicrophoneMuted(&state); in android_media_AudioSystem_isMicrophoneMuted()
301 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActive()
310 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActiveRemotely()
318 AudioSystem::isSourceActive((audio_source_t) source, &state); in android_media_AudioSystem_isSourceActive()
325 return AudioSystem::newAudioUniqueId(AUDIO_UNIQUE_ID_USE_SESSION); in android_media_AudioSystem_newAudioSessionId()
339 int status = check_AudioSystem_Command(AudioSystem::setParameters(c_keyValuePairs8)); in android_media_AudioSystem_setParameters()
353 return env->NewStringUTF(AudioSystem::getParameters(c_keys8).string()); in android_media_AudioSystem_getParameters()
441 …int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <audio_de… in android_media_AudioSystem_setDeviceConnectionState()
[all …]
/frameworks/av/services/audioflinger/
DPlaybackTracks.h43 virtual status_t start(AudioSystem::sync_event_t event =
44 AudioSystem::SYNC_EVENT_NONE,
119 void triggerEvents(AudioSystem::sync_event_t type);
194 virtual status_t start(AudioSystem::sync_event_t event =
195 AudioSystem::SYNC_EVENT_NONE,
235 virtual status_t start(AudioSystem::sync_event_t event =
236 AudioSystem::SYNC_EVENT_NONE,
DTracks.cpp471 AudioSystem::releaseOutput(mThreadIoHandle, mStreamType, mSessionId); in destroy()
643 status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t event __unused, in start()
698 triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in start()
946 AudioSystem::unregisterEffect(effect->id()); in attachAuxEffect()
947 AudioSystem::registerEffect(&effect->desc(), in attachAuxEffect()
952 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled()); in attachAuxEffect()
997 triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in presentationComplete()
1004 void AudioFlinger::PlaybackThread::Track::triggerEvents(AudioSystem::sync_event_t type) in triggerEvents()
1192 status_t AudioFlinger::PlaybackThread::OutputTrack::start(AudioSystem::sync_event_t event, in start()
1378 status_t AudioFlinger::PlaybackThread::PatchTrack::start(AudioSystem::sync_event_t event, in start()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java21 import android.media.AudioSystem;
132 sb.append(AudioSystem.streamToString((Integer) list[0])); in writeEvent()
137 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
147 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
153 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
DVolumeDialogController.java30 import android.media.AudioSystem;
70 AudioSystem.STREAM_ALARM,
71 AudioSystem.STREAM_BLUETOOTH_SCO,
72 AudioSystem.STREAM_DTMF,
73 AudioSystem.STREAM_MUSIC,
74 AudioSystem.STREAM_NOTIFICATION,
75 AudioSystem.STREAM_RING,
76 AudioSystem.STREAM_SYSTEM,
77 AudioSystem.STREAM_SYSTEM_ENFORCED,
78 AudioSystem.STREAM_TTS,
[all …]
/frameworks/av/include/media/
DAudioRecord.h251 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE,
432 const sp<AudioSystem::AudioDeviceCallback>& callback);
442 const sp<AudioSystem::AudioDeviceCallback>& callback);
652 sp<AudioSystem::AudioDeviceCallback> mDeviceCallback;
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaManager.java25 import android.media.AudioSystem;
191 AudioSystem.DEVICE_OUT_USB_ACCESSORY : in notifyDeviceState()
192 AudioSystem.DEVICE_OUT_USB_DEVICE); in notifyDeviceState()
204 AudioSystem.DEVICE_IN_USB_ACCESSORY : in notifyDeviceState()
205 AudioSystem.DEVICE_IN_USB_DEVICE); in notifyDeviceState()

123