Searched refs:AudioSystem (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/base/media/java/android/media/
H A DAudioDeviceInfo.java245 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE);
259 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE);
260 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER);
261 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET);
262 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES);
263 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO);
264 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO);
265 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO);
266 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP);
267 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem
[all...]
H A DAudioAttributes.java478 case AudioSystem.STREAM_VOICE_CALL:
481 case AudioSystem.STREAM_SYSTEM_ENFORCED:
484 case AudioSystem.STREAM_SYSTEM:
487 case AudioSystem.STREAM_RING:
490 case AudioSystem.STREAM_MUSIC:
493 case AudioSystem.STREAM_ALARM:
496 case AudioSystem.STREAM_NOTIFICATION:
499 case AudioSystem.STREAM_BLUETOOTH_SCO:
503 case AudioSystem.STREAM_DTMF:
506 case AudioSystem
[all...]
H A DMediaSyncEvent.java33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE;
42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
H A DAudioManager.java314 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL;
316 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM;
318 public static final int STREAM_RING = AudioSystem.STREAM_RING;
320 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC;
322 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM;
324 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION;
326 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO;
328 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED;
330 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF;
332 public static final int STREAM_TTS = AudioSystem
[all...]
H A DAudioDevicePort.java19 import android.media.AudioSystem;
102 AudioSystem.getInputDeviceName(mType) :
103 AudioSystem.getOutputDeviceName(mType));
H A DAudioRecord.java86 public static final int SUCCESS = AudioSystem.SUCCESS;
90 public static final int ERROR = AudioSystem.ERROR;
94 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE;
98 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION;
234 private int mSessionId = AudioSystem.AUDIO_SESSION_ALLOCATE;
346 rate = AudioSystem.getPrimaryOutputSamplingRate();
1338 case AudioSystem.NATIVE_EVENT_ROUTING_CHANGE:
1370 handler.sendEmptyMessage(AudioSystem.NATIVE_EVENT_ROUTING_CHANGE);
1509 if (what == AudioSystem.NATIVE_EVENT_ROUTING_CHANGE) {
H A DAudioTrack.java148 public static final int SUCCESS = AudioSystem.SUCCESS;
152 public static final int ERROR = AudioSystem.ERROR;
156 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE;
160 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION;
166 public static final int ERROR_DEAD_OBJECT = AudioSystem.DEAD_OBJECT;
172 public static final int ERROR_WOULD_BLOCK = AudioSystem.WOULD_BLOCK;
302 private int mSessionId = AudioSystem.AUDIO_SESSION_ALLOCATE;
371 bufferSizeInBytes, mode, AudioSystem.AUDIO_SESSION_ALLOCATE);
468 rate = AudioSystem.getPrimaryOutputSamplingRate();
491 mStreamType = AudioSystem
[all...]
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp17 #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;
43 const sp<IAudioFlinger> AudioSystem
[all...]
H A DAudioRecord.cpp47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size);
49 ALOGE("AudioSystem could not query the input buffer size for sampleRate %u, format %#x, "
119 AudioSystem::removeAudioDeviceCallback(mDeviceCallback, mInput);
128 AudioSystem::releaseAudioSessionId(mSessionId, -1 /*pid*/);
234 mSessionId = AudioSystem::newAudioUniqueId();
283 AudioSystem::acquireAudioSessionId(mSessionId, -1);
293 status_t AudioRecord::start(AudioSystem::sync_event_t event, int triggerSession)
444 return AudioSystem::getInputFramesLost(getInputPrivate());
472 return AudioSystem::getDeviceIdForIo(mInput);
480 const sp<IAudioFlinger>& audioFlinger = AudioSystem
[all...]
H A DAudioEffect.cpp110 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger();
164 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid);
177 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid);
415 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger();
422 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger();
430 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger();
440 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service();
H A DAudioTrack.cpp124 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType);
131 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType);
138 status = AudioSystem::getOutputLatency(&afLatency, streamType);
253 AudioSystem::removeAudioDeviceCallback(mDeviceCallback, mOutput);
262 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid);
437 mSessionId = AudioSystem::newAudioUniqueId();
489 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid);
689 AudioSystem::getRenderPosition(mOutput, &halFrames, &mPausedPosition);
756 if (AudioSystem::getSamplingRate(mOutput, &afSamplingRate) != NO_ERROR) {
786 status_t status = AudioSystem
[all...]
/frameworks/base/services/core/java/com/android/server/audio/
H A DAudioService.java57 import android.media.AudioSystem;
175 return mPlatformType == AudioSystem.PLATFORM_VOICE;
179 return mPlatformType == AudioSystem.PLATFORM_TELEVISION;
244 private int mMode = AudioSystem.MODE_NORMAL;
299 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL
300 AudioSystem.STREAM_RING, // STREAM_SYSTEM
301 AudioSystem.STREAM_RING, // STREAM_RING
302 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC
303 AudioSystem.STREAM_ALARM, // STREAM_ALARM
304 AudioSystem
[all...]
H A DRotationHelper.java20 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");
/frameworks/base/core/jni/
H A Dandroid_media_DeviceCallback.h21 #include <media/AudioSystem.h>
25 // keep in sync with AudioSystem.java
28 class JNIDeviceCallback: public AudioSystem::AudioDeviceCallback
H A Dandroid_media_AudioSystem.cpp20 #define LOG_TAG "AudioSystem-JNI"
27 #include <media/AudioSystem.h>
39 static const char* const kClassPathName = "android/media/AudioSystem";
175 class JNIAudioPortCallback: public AudioSystem::AudioPortCallback
282 return (jint) check_AudioSystem_Command(AudioSystem::muteMicrophone(on));
289 AudioSystem::isMicrophoneMuted(&state);
297 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs);
306 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs);
314 AudioSystem::isSourceActive((audio_source_t) source, &state);
321 return AudioSystem
[all...]
H A Dandroid_media_ToneGenerator.cpp29 #include <media/AudioSystem.h>
90 ToneGenerator *lpToneGen = new ToneGenerator((audio_stream_type_t) streamType, AudioSystem::linearToLog(volume), true);
H A Dandroid_media_DeviceCallback.cpp25 #include <media/AudioSystem.h>
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyClientImpl.cpp30 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
[all...]
H A DAudioPolicyClientImplLegacy.cpp56 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
74 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
146 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
156 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
167 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
182 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
237 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
247 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger();
259 sp<IAudioFlinger> af = AudioSystem
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DEvents.java21 import android.media.AudioSystem;
131 sb.append(AudioSystem.streamToString((Integer) list[0]));
136 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ')
146 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ')
152 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ')
H A DVolumeDialogController.java30 import android.media.AudioSystem;
71 AudioSystem.STREAM_ALARM,
72 AudioSystem.STREAM_BLUETOOTH_SCO,
73 AudioSystem.STREAM_DTMF,
74 AudioSystem.STREAM_MUSIC,
75 AudioSystem.STREAM_NOTIFICATION,
76 AudioSystem.STREAM_RING,
77 AudioSystem.STREAM_SYSTEM,
78 AudioSystem.STREAM_SYSTEM_ENFORCED,
79 AudioSystem
[all...]
/frameworks/av/include/media/
H A DAudioRecord.h21 #include <media/AudioSystem.h>
246 * If event is not AudioSystem::SYNC_EVENT_NONE, the capture start will be delayed until
249 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE,
418 const sp<AudioSystem::AudioDeviceCallback>& callback);
428 const sp<AudioSystem::AudioDeviceCallback>& callback);
590 audio_io_handle_t mInput; // returned by AudioSystem::getInput()
624 sp<AudioSystem::AudioDeviceCallback> mDeviceCallback;
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java19 import android.media.AudioSystem;
60 sessionId > 0 ? sessionId : AudioSystem.AUDIO_SESSION_ALLOCATE);
/frameworks/base/media/java/android/media/audiopolicy/
H A DAudioMix.java22 import android.media.AudioSystem;
280 int rate = AudioSystem.getPrimaryOutputSamplingRate();
/frameworks/av/services/audioflinger/
H A DPlaybackTracks.h43 virtual status_t start(AudioSystem::sync_event_t event =
44 AudioSystem::SYNC_EVENT_NONE,
113 void triggerEvents(AudioSystem::sync_event_t type);
266 virtual status_t start(AudioSystem::sync_event_t event =
267 AudioSystem::SYNC_EVENT_NONE,

Completed in 424 milliseconds

1234