/frameworks/base/media/java/android/media/ |
AudioDeviceInfo.java | 254 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE); 268 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE); 269 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER); 270 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET); 271 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES); 272 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO); 273 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO); 274 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO); 275 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP); 276 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, TYPE_BLUETOOTH_A2DP) [all...] |
AudioAttributes.java | 645 case AudioSystem.STREAM_VOICE_CALL: 648 case AudioSystem.STREAM_SYSTEM_ENFORCED: 651 case AudioSystem.STREAM_SYSTEM: 654 case AudioSystem.STREAM_RING: 657 case AudioSystem.STREAM_MUSIC: 660 case AudioSystem.STREAM_ALARM: 663 case AudioSystem.STREAM_NOTIFICATION: 666 case AudioSystem.STREAM_BLUETOOTH_SCO: 670 case AudioSystem.STREAM_DTMF: 673 case AudioSystem.STREAM_TTS [all...] |
MediaSyncEvent.java | 33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE; 42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
|
AudioManager.java | 319 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 321 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 323 public static final int STREAM_RING = AudioSystem.STREAM_RING; 325 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 327 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 329 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 332 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 335 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 337 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 340 public static final int STREAM_TTS = AudioSystem.STREAM_TTS [all...] |
AudioDevicePort.java | 19 import android.media.AudioSystem; 102 AudioSystem.getInputDeviceName(mType) : 103 AudioSystem.getOutputDeviceName(mType));
|
/frameworks/av/media/libaudioclient/ |
AudioSystem.cpp | 17 #define LOG_TAG "AudioSystem" 23 #include <media/AudioSystem.h> 35 Mutex AudioSystem::gLock; 36 Mutex AudioSystem::gLockAPS; 37 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 38 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 39 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 40 dynamic_policy_callback AudioSystem::gDynPolicyCallback = NULL; 41 record_config_callback AudioSystem::gRecordConfigCallback = NULL [all...] |
/hardware/libhardware_legacy/include/hardware_legacy/ |
AudioPolicyInterface.h | 20 #include <media/AudioSystem.h> 71 AudioSystem::device_connection_state state, 74 virtual AudioSystem::device_connection_state getDeviceConnectionState(audio_devices_t device, 76 // indicate a change in phone state. Valid phones states are defined by AudioSystem::audio_mode 79 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config) = 0; 81 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage) = 0; 92 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 96 AudioSystem::output_flags flags [all...] |
AudioHardwareBase.h | 57 { return ((mode == AudioSystem::MODE_IN_CALL) 58 || (mode == AudioSystem::MODE_IN_COMMUNICATION)); };
|
AudioPolicyManagerBase.h | 80 AudioSystem::device_connection_state state, 82 virtual AudioSystem::device_connection_state getDeviceConnectionState(audio_devices_t device, 85 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config); 86 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage); 89 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 93 AudioSystem::output_flags flags, 96 AudioSystem::stream_type stream, 99 AudioSystem::stream_type stream [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/core/jni/ |
android_media_DeviceCallback.h | 21 #include <media/AudioSystem.h> 25 // keep in sync with AudioSystem.java 28 class JNIDeviceCallback: public AudioSystem::AudioDeviceCallback
|
/frameworks/base/services/core/java/com/android/server/audio/ |
AudioService.java | 66 import android.media.AudioSystem; 197 return mPlatformType == AudioSystem.PLATFORM_VOICE; 201 return mPlatformType == AudioSystem.PLATFORM_TELEVISION; 266 private int mMode = AudioSystem.MODE_NORMAL; 323 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 324 AudioSystem.STREAM_RING, // STREAM_SYSTEM 325 AudioSystem.STREAM_RING, // STREAM_RING 326 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 327 AudioSystem.STREAM_ALARM, // STREAM_ALARM 328 AudioSystem.STREAM_RING, // STREAM_NOTIFICATIO [all...] |
RotationHelper.java | 21 import android.media.AudioSystem; 29 * to the audio HALs through AudioSystem. 33 * of 90deg, through AudioSystem. 97 AudioSystem.setParameters("rotation=0"); 100 AudioSystem.setParameters("rotation=90"); 103 AudioSystem.setParameters("rotation=180"); 106 AudioSystem.setParameters("rotation=270");
|
AudioServiceEvents.java | 20 import android.media.AudioSystem; 45 return new StringBuilder("setMode(").append(AudioSystem.modeToString(mRequestedMode)) 48 .append(" selected mode=").append(AudioSystem.modeToString(mActualMode)) 64 .append(" state:").append(AudioSystem.deviceStateToString(mState.mState)) 85 .append(AudioSystem.forceUseUsageToString(mUsage)) 86 .append(", ").append(AudioSystem.forceUseConfigToString(mConfig)) 115 .append(AudioSystem.streamToString(mStream)) 122 .append(AudioSystem.streamToString(mStream)) 129 .append(AudioSystem.streamToString(mStream))
|
/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; } 93 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) {
|
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; } 134 AudioSystem::audio_in_acoustics acoustics);
|
/frameworks/base/media/java/android/media/audiopolicy/ |
AudioMix.java | 24 import android.media.AudioSystem; 47 final int mDeviceSystemType; // an AudioSystem.DEVICE_* value, not AudioDeviceInfo.TYPE_* 186 // an AudioSystem.DEVICE_* value, not AudioDeviceInfo.TYPE_* 187 private int mDeviceSystemType = AudioSystem.DEVICE_NONE; 245 * @param deviceType an AudioSystem.DEVICE_* value, not AudioDeviceInfo.TYPE_* 340 int rate = AudioSystem.getPrimaryOutputSamplingRate(); 346 if ((mDeviceSystemType != AudioSystem.DEVICE_NONE) 347 && (mDeviceSystemType != AudioSystem.DEVICE_OUT_REMOTE_SUBMIX) 348 && (mDeviceSystemType != AudioSystem.DEVICE_IN_REMOTE_SUBMIX)) { 363 mDeviceSystemType = AudioSystem.DEVICE_OUT_REMOTE_SUBMIX [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
AudioHelper.java | 21 import android.media.AudioSystem; 38 return AudioSystem.isSingleVolume(mContext);
|
/frameworks/av/services/audiopolicy/service/ |
AudioPolicyClientImpl.cpp | 30 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 47 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 59 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 69 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 79 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 90 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 107 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 118 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); 154 String8 result = AudioSystem::getParameters(io_handle, keys) [all...] |