/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...] |
AudioHardware.cpp | 264 AudioSystem::audio_in_acoustics acoustic_flags) 267 if (!AudioSystem::isInputDevice((AudioSystem::audio_devices)devices)) { 307 if (mode == AudioSystem::MODE_IN_CALL) { 320 if (((prevMode != AudioSystem::MODE_IN_CALL) && (mMode == AudioSystem::MODE_IN_CALL)) || 321 ((prevMode == AudioSystem::MODE_IN_CALL) && (mMode != AudioSystem::MODE_IN_CALL))) { 578 if (format != AudioSystem::PCM_16_BIT) { 842 } else if (mMode == AudioSystem::MODE_IN_CAL [all...] |
/frameworks/base/include/media/ |
IAudioPolicyService.h | 27 #include <media/AudioSystem.h> 42 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 43 AudioSystem::device_connection_state state, 45 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 49 virtual status_t setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config) = 0; 50 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage) = 0; 51 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream [all...] |
/hardware/libhardware_legacy/include/hardware_legacy/ |
AudioPolicyInterface.h | 20 #include <media/AudioSystem.h> 65 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 66 AudioSystem::device_connection_state state, 69 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 71 // indicate a change in phone state. Valid phones states are defined by AudioSystem::audio_mode 76 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config) = 0; 78 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage) = 0 [all...] |
AudioPolicyManagerBase.h | 64 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 65 AudioSystem::device_connection_state state, 67 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 71 virtual void setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config); 72 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage); 74 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 78 AudioSystem::output_flags flags) [all...] |
AudioHardwareInterface.h | 29 #include "media/AudioSystem.h" 58 * eg. AudioSystem:PCM_16_BIT 65 uint32_t frameSize() const { return AudioSystem::popCount(channels())*((format()==AudioSystem::PCM_16_BIT)?sizeof(int16_t):sizeof(int8_t)); } 127 * eg. AudioSystem:PCM_16_BIT 134 uint32_t frameSize() const { return AudioSystem::popCount(channels())*((format()==AudioSystem::PCM_16_BIT)?sizeof(int16_t):sizeof(int8_t)); } 237 AudioSystem::audio_in_acoustics acoustics) = 0;
|
/frameworks/base/media/libmedia/ |
AudioSystem.cpp | 17 #define LOG_TAG "AudioSystem" 22 #include <media/AudioSystem.h> 38 Mutex AudioSystem::gLock; 39 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 40 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 41 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 43 DefaultKeyedVector<int, audio_io_handle_t> AudioSystem::gStreamOutputMap(0); 44 DefaultKeyedVector<audio_io_handle_t, AudioSystem::OutputDescriptor *> AudioSystem::gOutputs(0) [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 AudioSystem::OutputDescriptor *desc = (AudioSystem::OutputDescriptor *)param2; 77 AudioSystem::OutputDescriptor desc; 79 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { 83 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) [all...] |
IAudioPolicyService.cpp | 59 AudioSystem::audio_devices device, 60 AudioSystem::device_connection_state state, 72 virtual AudioSystem::device_connection_state getDeviceConnectionState( 73 AudioSystem::audio_devices device, 81 return static_cast <AudioSystem::device_connection_state>(reply.readInt32()); 103 virtual status_t setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config) 113 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage) 119 return static_cast <AudioSystem::forced_config> (reply.readInt32()) [all...] |
AudioTrack.cpp | 31 #include <media/AudioSystem.h> 124 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { 128 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { 132 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) { 137 if (streamType == AudioSystem::DEFAULT) { 138 streamType = AudioSystem::MUSIC; 145 format = AudioSystem::PCM_16_BIT; 148 channels = AudioSystem::CHANNEL_OUT_STEREO; 152 if (!AudioSystem::isValidFormat(format)) { 158 if (!AudioSystem::isLinearPCM(format)) [all...] |
/frameworks/base/libs/audioflinger/ |
AudioPolicyManagerBase.cpp | 31 status_t AudioPolicyManagerBase::setDeviceConnectionState(AudioSystem::audio_devices device, 32 AudioSystem::device_connection_state state, 39 if (AudioSystem::popCount(device) != 1) return BAD_VALUE; 47 if (AudioSystem::isOutputDevice(device)) { 50 if (AudioSystem::isA2dpDevice(device)) { 59 case AudioSystem::DEVICE_STATE_AVAILABLE: 71 if (AudioSystem::isA2dpDevice(device)) { 80 if (AudioSystem::isBluetoothScoDevice(device)) { 86 mPhoneState != AudioSystem::MODE_NORMAL) { 94 case AudioSystem::DEVICE_STATE_UNAVAILABLE: [all...] |
AudioPolicyService.h | 43 virtual status_t setDeviceConnectionState(AudioSystem::audio_devices device, 44 AudioSystem::device_connection_state state, 46 virtual AudioSystem::device_connection_state getDeviceConnectionState(AudioSystem::audio_devices device, 50 virtual status_t setForceUse(AudioSystem::force_use usage, AudioSystem::forced_config config); 51 virtual AudioSystem::forced_config getForceUse(AudioSystem::force_use usage); 52 virtual audio_io_handle_t getOutput(AudioSystem::stream_type stream, 54 uint32_t format = AudioSystem::FORMAT_DEFAULT [all...] |
AudioHardwareGeneric.h | 49 virtual uint32_t channels() const { return AudioSystem::CHANNEL_OUT_STEREO; } 50 virtual int format() const { return AudioSystem::PCM_16_BIT; } 79 AudioSystem::audio_in_acoustics acoustics); 83 virtual uint32_t channels() const { return AudioSystem::CHANNEL_IN_MONO; } 84 virtual int format() const { return AudioSystem::PCM_16_BIT; } 129 AudioSystem::audio_in_acoustics acoustics);
|
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);
|
AudioPolicyService.cpp | 109 status_t AudioPolicyService::setDeviceConnectionState(AudioSystem::audio_devices device, 110 AudioSystem::device_connection_state state, 119 if (!AudioSystem::isOutputDevice(device) && !AudioSystem::isInputDevice(device)) { 122 if (state != AudioSystem::DEVICE_STATE_AVAILABLE && state != AudioSystem::DEVICE_STATE_UNAVAILABLE) { 131 AudioSystem::device_connection_state AudioPolicyService::getDeviceConnectionState(AudioSystem::audio_devices device, 135 return AudioSystem::DEVICE_STATE_UNAVAILABLE; 138 return AudioSystem::DEVICE_STATE_UNAVAILABLE [all...] |
AudioDumpInterface.cpp | 58 int lFormat = AudioSystem::PCM_16_BIT; 59 uint32_t lChannels = AudioSystem::CHANNEL_OUT_STEREO; 63 if (AudioSystem::isA2dpDevice((AudioSystem::audio_devices)devices) || mFirstHwOutput) { 69 if (!AudioSystem::isA2dpDevice((AudioSystem::audio_devices)devices)) { 77 lFormat = AudioSystem::PCM_16_BIT; 82 lChannels = AudioSystem::CHANNEL_OUT_STEREO; 122 uint32_t *sampleRate, status_t *status, AudioSystem::audio_in_acoustics acoustics) 125 int lFormat = AudioSystem::PCM_16_BIT [all...] |
/frameworks/base/core/jni/ |
android_media_AudioSystem.cpp | 18 #define LOG_TAG "AudioSystem" 30 #include <media/AudioSystem.h> 55 return check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); 62 AudioSystem::isMicrophoneMuted(&state); 70 AudioSystem::isStreamActive(stream, &state); 83 int status = check_AudioSystem_Command(AudioSystem::setParameters(0, c_keyValuePairs8)); 96 return env->NewStringUTF(AudioSystem::getParameters(0, c_keys8).string()); 102 jclass clazz = env->FindClass("android/media/AudioSystem"); 125 int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <AudioSystem::audio_devices>(device) [all...] |
/frameworks/base/media/java/android/media/ |
AudioService.java | 171 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 172 AudioSystem.STREAM_SYSTEM, // STREAM_SYSTEM 173 AudioSystem.STREAM_RING, // STREAM_RING 174 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 175 AudioSystem.STREAM_ALARM, // STREAM_ALARM 176 AudioSystem.STREAM_NOTIFICATION, // STREAM_NOTIFICATION 177 AudioSystem.STREAM_BLUETOOTH_SCO, // STREAM_BLUETOOTH_SCO 178 AudioSystem.STREAM_SYSTEM, // STREAM_SYSTEM_ENFORCED 179 AudioSystem.STREAM_VOICE_CALL, // STREAM_DTMF 180 AudioSystem.STREAM_MUSIC // STREAM_TT [all...] |
AudioManager.java | 144 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 146 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 148 public static final int STREAM_RING = AudioSystem.STREAM_RING; 150 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 152 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 154 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 156 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 158 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 160 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 162 public static final int STREAM_TTS = AudioSystem.STREAM_TTS [all...] |
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/ |
DataLine.java | 31 this.minBufferSize = AudioSystem.NOT_SPECIFIED; 32 this.maxBufferSize = AudioSystem.NOT_SPECIFIED; 83 if ((minBufferSize != AudioSystem.NOT_SPECIFIED 84 && inf.getMinBufferSize() != AudioSystem.NOT_SPECIFIED 86 || (maxBufferSize != AudioSystem.NOT_SPECIFIED 87 && inf.getMaxBufferSize() != AudioSystem.NOT_SPECIFIED 106 if (minBufferSize != AudioSystem.NOT_SPECIFIED) {
|
/external/webkit/WebKit/android/plugins/ |
ANPSoundInterface.cpp | 41 case android::AudioSystem::PCM_16_BIT: 43 case android::AudioSystem::PCM_8_BIT: 53 return android::AudioSystem::PCM_16_BIT; 55 return android::AudioSystem::PCM_8_BIT; 57 return android::AudioSystem::INVALID_FORMAT; 98 track->mTrack = new android::AudioTrack(android::AudioSystem::MUSIC, 101 (channelCount > 1) ? android::AudioSystem::CHANNEL_OUT_STEREO : android::AudioSystem::CHANNEL_OUT_MONO,
|
/frameworks/base/include/media/stagefright/ |
AudioSource.h | 21 #include <media/AudioSystem.h> 31 // but a bitmask of AudioSystem::audio_channels constants. 34 uint32_t channels = AudioSystem::CHANNEL_IN_MONO);
|
/external/srec/audio/AudioIn/UNIX/src/ |
audioinwrapper.cpp | 100 android::AudioSystem::PCM_16_BIT, 101 (numChannels > 1) ? android::AudioSystem::CHANNEL_IN_STEREO : android::AudioSystem::CHANNEL_IN_MONO, 154 return AudioSystem::setStreamVolume(stream_type, volume, 0); 164 AudioSystem::getStreamVolume(stream_type, &v, 0);
|
/cts/tests/src/android/media/cts/ |
AudioManagerStub.java | 25 import android.media.AudioSystem; 53 for (int i = 0; i < AudioSystem.getNumStreamTypes(); i++) { 67 for (int i = 0; i < AudioSystem.getNumStreamTypes(); i++) {
|
/frameworks/base/include/tts/ |
TtsEngine.h | 16 #include <media/AudioSystem.h> 162 virtual tts_result setAudioFormat(AudioSystem::audio_format& encoding, uint32_t& rate,
|