HomeSort by relevance Sort by last modified time
    Searched refs:AudioSystem (Results 1 - 25 of 120) sorted by null

1 2 3 4 5

  /frameworks/base/media/java/android/media/
AudioDeviceInfo.java 250 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE);
264 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE);
265 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER);
266 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET);
267 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES);
268 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO);
269 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO);
270 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO);
271 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP);
272 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, TYPE_BLUETOOTH_A2DP)
    [all...]
AudioAttributes.java 537 case AudioSystem.STREAM_VOICE_CALL:
540 case AudioSystem.STREAM_SYSTEM_ENFORCED:
543 case AudioSystem.STREAM_SYSTEM:
546 case AudioSystem.STREAM_RING:
549 case AudioSystem.STREAM_MUSIC:
552 case AudioSystem.STREAM_ALARM:
555 case AudioSystem.STREAM_NOTIFICATION:
558 case AudioSystem.STREAM_BLUETOOTH_SCO:
562 case AudioSystem.STREAM_DTMF:
565 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 316 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...]
AudioDevicePort.java 19 import android.media.AudioSystem;
102 AudioSystem.getInputDeviceName(mType) :
103 AudioSystem.getOutputDeviceName(mType));
  /frameworks/av/media/libmedia/
AudioSystem.cpp 17 #define LOG_TAG "AudioSystem"
22 #include <media/AudioSystem.h>
34 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
    [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...]
  /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 58 import android.media.AudioSystem;
178 return mPlatformType == AudioSystem.PLATFORM_VOICE;
182 return mPlatformType == AudioSystem.PLATFORM_TELEVISION;
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_NOTIFICATIO
    [all...]
RotationHelper.java 20 import android.media.AudioSystem;
31 * to the audio HALs through AudioSystem.
35 * of 90deg, through AudioSystem.
114 AudioSystem.setParameters("rotation=0");
117 AudioSystem.setParameters("rotation=90");
120 AudioSystem.setParameters("rotation=180");
123 AudioSystem.setParameters("rotation=270");
  /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) {
AudioPolicyManagerBase.cpp 54 AudioSystem::device_connection_state state,
96 case AudioSystem::DEVICE_STATE_AVAILABLE:
135 case AudioSystem::DEVICE_STATE_UNAVAILABLE: {
174 if ((state == AudioSystem::DEVICE_STATE_UNAVAILABLE) ||
204 case AudioSystem::DEVICE_STATE_AVAILABLE: {
228 case AudioSystem::DEVICE_STATE_UNAVAILABLE: {
251 AudioSystem::device_connection_state AudioPolicyManagerBase::getDeviceConnectionState(audio_devices_t device,
258 AudioSystem::device_connection_state state = AudioSystem::DEVICE_STATE_UNAVAILABLE;
278 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);
147 return lap->apm->getOutput((AudioSystem::stream_type)stream,
149 (AudioSystem::output_flags)flags,
157 return lap->apm->startOutput(output, (AudioSystem::stream_type)stream,
165 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; }
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...]
  /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...]
  /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++) {

Completed in 528 milliseconds

1 2 3 4 5