/hardware/msm7k/libaudio-qdsp5v2/ |
AudioPolicyManager.cpp | 64 if (mPhoneState != AudioSystem::MODE_IN_CALL) { 75 switch (mForceUse[AudioSystem::FOR_COMMUNICATION]) { 76 case AudioSystem::FORCE_BT_SCO: 77 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) { 78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; 82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; 84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; 90 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE; 92 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET; 95 if (mPhoneState != AudioSystem::MODE_IN_CALL) [all...] |
AudioHardware.h | 37 #define AUDIO_HW_OUT_CHANNELS (AudioSystem::CHANNEL_OUT_STEREO) // Default audio output channel mask 38 #define AUDIO_HW_OUT_FORMAT (AudioSystem::PCM_16_BIT) // Default audio output sample format 43 #define AUDIO_HW_IN_CHANNELS (AudioSystem::CHANNEL_IN_MONO) // Default audio input channel mask 44 #define AUDIO_HW_IN_FORMAT (AudioSystem::PCM_16_BIT) // Default audio input sample format 83 AudioSystem::audio_in_acoustics acoustics);
|
/hardware/msm7k/libaudio-qsd8k/ |
AudioPolicyManager.cpp | 64 if (mPhoneState != AudioSystem::MODE_IN_CALL) { 75 switch (mForceUse[AudioSystem::FOR_COMMUNICATION]) { 76 case AudioSystem::FORCE_BT_SCO: 77 if (mPhoneState != AudioSystem::MODE_IN_CALL || strategy != STRATEGY_DTMF) { 78 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT; 82 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET; 84 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_BLUETOOTH_SCO; 90 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADPHONE; 92 device = mAvailableOutputDevices & AudioSystem::DEVICE_OUT_WIRED_HEADSET; 95 if (mPhoneState != AudioSystem::MODE_IN_CALL) [all...] |
/hardware/libhardware_legacy/include/hardware_legacy/ |
AudioPolicyInterface.h | 20 #include <media/AudioSystem.h> 70 AudioSystem::device_connection_state state, 73 virtual AudioSystem::device_connection_state getDeviceConnectionState(audio_devices_t device, 75 // indicate a change in phone state. Valid phones states are defined by AudioSystem::audio_mode 78 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config) = 0; 80 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage) = 0; 91 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 93 uint32_t format = AudioSystem::FORMAT_DEFAULT [all...] |
AudioHardwareBase.h | 57 { return ((mode == AudioSystem::MODE_IN_CALL) 58 || (mode == AudioSystem::MODE_IN_COMMUNICATION)); };
|
AudioPolicyManagerBase.h | 76 AudioSystem::device_connection_state state, 78 virtual AudioSystem::device_connection_state getDeviceConnectionState(audio_devices_t device, 81 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config); 82 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage); 85 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 87 uint32_t format = AudioSystem::FORMAT_DEFAULT, 89 AudioSystem::output_flags flags = 90 AudioSystem::OUTPUT_FLAG_INDIRECT) [all...] |
/frameworks/av/media/libmedia/ |
AudioSystem.cpp | 17 #define LOG_TAG "AudioSystem" 22 #include <media/AudioSystem.h> 33 Mutex AudioSystem::gLock; 34 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 35 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 36 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 39 DefaultKeyedVector<audio_io_handle_t, AudioSystem::OutputDescriptor *> AudioSystem::gOutputs(0); 42 uint32_t AudioSystem::gPrevInSamplingRate = 16000 [all...] |
IAudioFlingerClient.cpp | 26 #include <media/AudioSystem.h> 48 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { 52 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { 53 const AudioSystem::OutputDescriptor *desc = 54 (const AudioSystem::OutputDescriptor *)param2; 78 AudioSystem::OutputDescriptor desc; 80 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { 84 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) [all...] |
/frameworks/base/core/jni/ |
android_media_AudioSystem.cpp | 18 #define LOG_TAG "AudioSystem" 30 #include <media/AudioSystem.h> 39 static const char* const kClassPathName = "android/media/AudioSystem"; 59 return check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); 66 AudioSystem::isMicrophoneMuted(&state); 74 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); 83 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs); 91 AudioSystem::isSourceActive((audio_source_t) source, &state); 104 int status = check_AudioSystem_Command(AudioSystem::setParameters(0, c_keyValuePairs8)); 117 return env->NewStringUTF(AudioSystem::getParameters(0, c_keys8).string()) [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioPolicyManagerALSA.cpp | 52 if (state < 0 || state >= AudioSystem::NUM_MODES) { 66 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { 112 if (isStateInCall(state) && oldState == AudioSystem::MODE_RINGTONE) { 117 setStreamMute(AudioSystem::RING, true, mPrimaryOutput); 139 if (state == AudioSystem::MODE_IN_CALL && oldState == AudioSystem::MODE_RINGTONE) { 152 if (oldState == AudioSystem::MODE_RINGTONE) { 153 setStreamMute(AudioSystem::RING, false, mPrimaryOutput, MUTE_TIME_MS); 155 for (int stream = 0; stream < AudioSystem::NUM_STREAM_TYPES; stream++) { 161 if (state == AudioSystem::MODE_RINGTONE & [all...] |
ALSAStreamOps.cpp | 104 if (mHandle->devices & AudioSystem::DEVICE_OUT_ALL) { 120 case AudioSystem::CHANNEL_IN_5POINT1: 145 case AudioSystem::FORMAT_DEFAULT: 148 case AudioSystem::PCM_16_BIT: 151 case AudioSystem::AMR_NB: 152 case AudioSystem::AMR_WB: 154 case AudioSystem::EVRC: 155 case AudioSystem::EVRCB: 156 case AudioSystem::EVRCWB: 161 case AudioSystem::PCM_8_BIT [all...] |
alsa_default.cpp | 202 static int callMode = AudioSystem::MODE_NORMAL; 296 if (handle->format == AudioSystem::AMR_NB 297 || handle->format == AudioSystem::AMR_WB 299 || handle->format == AudioSystem::EVRC 300 || handle->format == AudioSystem::EVRCB 301 || handle->format == AudioSystem::EVRCWB 403 if ((mode == AudioSystem::MODE_IN_CALL) || (mode == AudioSystem::MODE_IN_COMMUNICATION)) { 404 if ((devices & AudioSystem::DEVICE_OUT_WIRED_HEADSET) || 405 (devices & AudioSystem::DEVICE_IN_WIRED_HEADSET)) [all...] |
AudioHardwareALSA.cpp | 278 if(newMode == AudioSystem::MODE_IN_COMMUNICATION) { 280 } else if (newMode == AudioSystem::MODE_IN_CALL){ 329 if (mode == AudioSystem::MODE_IN_CALL) { 331 }else if (mode == AudioSystem::MODE_NORMAL) { 363 if(mMode != AudioSystem::MODE_IN_CALL){ 611 if ((device == AudioSystem::DEVICE_IN_VOICE_CALL) 613 || (device == AudioSystem::DEVICE_IN_FM_RX) 614 || (device == AudioSystem::DEVICE_OUT_DIRECTOUTPUT) 615 || (device == AudioSystem::DEVICE_IN_FM_RX_A2DP) 617 || (device == AudioSystem::DEVICE_IN_COMMUNICATION [all...] |
audio_policy_hal.cpp | 71 (AudioSystem::audio_devices)device, 72 (AudioSystem::device_connection_state)state, 83 (AudioSystem::audio_devices)device, 107 qap->apm->setForceUse((AudioSystem::force_use)usage, 108 (AudioSystem::forced_config)config); 118 (AudioSystem::force_use)usage); 146 return qap->apm->getOutput((AudioSystem::stream_type)stream, 148 (AudioSystem::output_flags)flags); 155 return qap->apm->startOutput(output, (AudioSystem::stream_type)stream, 163 return qap->apm->stopOutput(output, (AudioSystem::stream_type)stream [all...] |
audio_hw_hal.cpp | 66 { AudioSystem::DEVICE_OUT_EARPIECE, AUDIO_DEVICE_OUT_EARPIECE }, 67 { AudioSystem::DEVICE_OUT_SPEAKER, AUDIO_DEVICE_OUT_SPEAKER }, 68 { AudioSystem::DEVICE_OUT_WIRED_HEADSET, AUDIO_DEVICE_OUT_WIRED_HEADSET }, 69 { AudioSystem::DEVICE_OUT_WIRED_HEADPHONE, AUDIO_DEVICE_OUT_WIRED_HEADPHONE }, 70 { AudioSystem::DEVICE_OUT_BLUETOOTH_SCO, AUDIO_DEVICE_OUT_BLUETOOTH_SCO }, 71 { AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_HEADSET, AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET }, 72 { AudioSystem::DEVICE_OUT_BLUETOOTH_SCO_CARKIT, AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT }, 73 { AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP }, 74 { AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES }, 75 { AudioSystem::DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER } [all...] |
/frameworks/base/media/java/android/media/ |
MediaSyncEvent.java | 33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE; 42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
|
AudioManager.java | 200 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 202 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 204 public static final int STREAM_RING = AudioSystem.STREAM_RING; 206 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 208 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 210 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 212 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 214 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 216 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 218 public static final int STREAM_TTS = AudioSystem.STREAM_TTS [all...] |
AudioService.java | 235 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 236 AudioSystem.STREAM_RING, // STREAM_SYSTEM 237 AudioSystem.STREAM_RING, // STREAM_RING 238 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 239 AudioSystem.STREAM_ALARM, // STREAM_ALARM 240 AudioSystem.STREAM_RING, // STREAM_NOTIFICATION 241 AudioSystem.STREAM_BLUETOOTH_SCO, // STREAM_BLUETOOTH_SCO 242 AudioSystem.STREAM_RING, // STREAM_SYSTEM_ENFORCED 243 AudioSystem.STREAM_RING, // STREAM_DTMF 244 AudioSystem.STREAM_MUSIC // STREAM_TT [all...] |
/hardware/libhardware_legacy/audio/ |
AudioHardwareStub.h | 35 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } 36 virtual int format() const { return AudioSystem::PCM_16_BIT; } 49 virtual status_t set(int *pFormat, uint32_t *pChannels, uint32_t *pRate, AudioSystem::audio_in_acoustics acoustics); 52 virtual uint32_t channels() const { return AudioSystem::CHANNEL_IN_MONO; } 53 virtual int format() const { return AudioSystem::PCM_16_BIT; } 91 AudioSystem::audio_in_acoustics acoustics);
|
AudioHardwareInterface.cpp | 56 if ((mode < AudioSystem::MODE_INVALID) || (mode >= AudioSystem::NUM_MODES)) 91 if ((mode < 0) || (mode >= AudioSystem::NUM_MODES)) 119 if (format != AudioSystem::PCM_16_BIT) {
|
AudioPolicyManagerBase.cpp | 49 AudioSystem::device_connection_state state, 86 case AudioSystem::DEVICE_STATE_AVAILABLE: 128 case AudioSystem::DEVICE_STATE_UNAVAILABLE: { 166 if ((state == AudioSystem::DEVICE_STATE_UNAVAILABLE) || 200 case AudioSystem::DEVICE_STATE_AVAILABLE: { 210 case AudioSystem::DEVICE_STATE_UNAVAILABLE: { 244 AudioSystem::device_connection_state AudioPolicyManagerBase::getDeviceConnectionState(audio_devices_t device, 247 AudioSystem::device_connection_state state = AudioSystem::DEVICE_STATE_UNAVAILABLE; 267 state = AudioSystem::DEVICE_STATE_AVAILABLE [all...] |
audio_policy_hal.cpp | 71 (AudioSystem::audio_devices)device, 72 (AudioSystem::device_connection_state)state, 83 (AudioSystem::audio_devices)device, 107 lap->apm->setForceUse((AudioSystem::force_use)usage, 108 (AudioSystem::forced_config)config); 118 (AudioSystem::force_use)usage); 146 return lap->apm->getOutput((AudioSystem::stream_type)stream, 148 (AudioSystem::output_flags)flags); 155 return lap->apm->startOutput(output, (AudioSystem::stream_type)stream, 163 return lap->apm->stopOutput(output, (AudioSystem::stream_type)stream [all...] |
AudioHardwareGeneric.h | 52 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } 53 virtual int format() const { return AudioSystem::PCM_16_BIT; } 82 AudioSystem::audio_in_acoustics acoustics); 86 virtual uint32_t channels() const { return AudioSystem::CHANNEL_IN_MONO; } 87 virtual int format() const { return AudioSystem::PCM_16_BIT; } 132 AudioSystem::audio_in_acoustics acoustics);
|
AudioPolicyCompatClient.h | 58 virtual status_t setStreamOutput(AudioSystem::stream_type stream, audio_io_handle_t output); 67 virtual status_t setStreamVolume(AudioSystem::stream_type stream, 71 virtual status_t startTone(ToneGenerator::tone_type tone, AudioSystem::stream_type stream);
|
/cts/tests/tests/media/src/android/media/cts/ |
AudioManagerStub.java | 26 import android.media.AudioSystem; 54 for (int i = 0; i < AudioSystem.getNumStreamTypes(); i++) { 68 for (int i = 0; i < AudioSystem.getNumStreamTypes(); i++) {
|