/frameworks/base/media/java/android/media/ |
D | AudioDevice.java | 153 return EXT_TO_INT_DEVICE_MAPPING.get(deviceType, AudioSystem.DEVICE_NONE); in convertDeviceTypeToInternalDevice() 167 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_EARPIECE, TYPE_BUILTIN_EARPIECE); in INT_TO_EXT_DEVICE_MAPPING.put() 168 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_SPEAKER, TYPE_BUILTIN_SPEAKER); in INT_TO_EXT_DEVICE_MAPPING.put() 169 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADSET, TYPE_WIRED_HEADSET); in INT_TO_EXT_DEVICE_MAPPING.put() 170 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_WIRED_HEADPHONE, TYPE_WIRED_HEADPHONES); in INT_TO_EXT_DEVICE_MAPPING.put() 171 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 172 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_HEADSET, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 173 … INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_SCO_CARKIT, TYPE_BLUETOOTH_SCO); in INT_TO_EXT_DEVICE_MAPPING.put() 174 INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP, TYPE_BLUETOOTH_A2DP); in INT_TO_EXT_DEVICE_MAPPING.put() 175 …INT_TO_EXT_DEVICE_MAPPING.put(AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES, TYPE_BLUETOOTH_A2D… in INT_TO_EXT_DEVICE_MAPPING.put() [all …]
|
D | AudioService.java | 228 private int mMode = AudioSystem.MODE_NORMAL; 289 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 290 AudioSystem.STREAM_RING, // STREAM_SYSTEM 291 AudioSystem.STREAM_RING, // STREAM_RING 292 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 293 AudioSystem.STREAM_ALARM, // STREAM_ALARM 294 AudioSystem.STREAM_RING, // STREAM_NOTIFICATION 295 AudioSystem.STREAM_BLUETOOTH_SCO, // STREAM_BLUETOOTH_SCO 296 AudioSystem.STREAM_RING, // STREAM_SYSTEM_ENFORCED 297 AudioSystem.STREAM_RING, // STREAM_DTMF [all …]
|
D | AudioAttributes.java | 462 case AudioSystem.STREAM_VOICE_CALL: in setInternalLegacyStreamType() 465 case AudioSystem.STREAM_SYSTEM_ENFORCED: in setInternalLegacyStreamType() 468 case AudioSystem.STREAM_SYSTEM: in setInternalLegacyStreamType() 471 case AudioSystem.STREAM_RING: in setInternalLegacyStreamType() 474 case AudioSystem.STREAM_MUSIC: in setInternalLegacyStreamType() 477 case AudioSystem.STREAM_ALARM: in setInternalLegacyStreamType() 480 case AudioSystem.STREAM_NOTIFICATION: in setInternalLegacyStreamType() 483 case AudioSystem.STREAM_BLUETOOTH_SCO: in setInternalLegacyStreamType() 487 case AudioSystem.STREAM_DTMF: in setInternalLegacyStreamType() 490 case AudioSystem.STREAM_TTS: in setInternalLegacyStreamType() [all …]
|
D | AudioManager.java | 361 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 363 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 365 public static final int STREAM_RING = AudioSystem.STREAM_RING; 367 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 369 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 371 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 373 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 375 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 377 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 379 public static final int STREAM_TTS = AudioSystem.STREAM_TTS; [all …]
|
D | AudioDevicePort.java | 19 import android.media.AudioSystem; 91 AudioSystem.getInputDeviceName(mType) : in toString() 92 AudioSystem.getOutputDeviceName(mType)); in toString()
|
D | MediaSyncEvent.java | 33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE; 42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
|
D | AudioRecord.java | 72 public static final int SUCCESS = AudioSystem.SUCCESS; 76 public static final int ERROR = AudioSystem.ERROR; 80 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE; 84 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION; 189 private int mSessionId = AudioSystem.AUDIO_SESSION_ALLOCATE; 301 rate = AudioSystem.getPrimaryOutputSamplingRate(); in AudioRecord()
|
D | AudioTrack.java | 136 public static final int SUCCESS = AudioSystem.SUCCESS; 140 public static final int ERROR = AudioSystem.ERROR; 144 public static final int ERROR_BAD_VALUE = AudioSystem.BAD_VALUE; 148 public static final int ERROR_INVALID_OPERATION = AudioSystem.INVALID_OPERATION; 261 private int mSessionId = AudioSystem.AUDIO_SESSION_ALLOCATE; 317 bufferSizeInBytes, mode, AudioSystem.AUDIO_SESSION_ALLOCATE); in AudioTrack() 414 rate = AudioSystem.getPrimaryOutputSamplingRate(); in AudioTrack() 429 mStreamType = AudioSystem.STREAM_DEFAULT; in AudioTrack()
|
D | AudioSystem.java | 30 public class AudioSystem class 190 synchronized (AudioSystem.class) { in setErrorCallback() 201 synchronized (AudioSystem.class) { in errorCallbackFromNative()
|
/frameworks/av/media/libmedia/ |
D | AudioSystem.cpp | 34 Mutex AudioSystem::gLock; 35 Mutex AudioSystem::gLockCache; 36 Mutex AudioSystem::gLockAPS; 37 Mutex AudioSystem::gLockAPC; 38 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 39 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 40 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 43 DefaultKeyedVector<audio_io_handle_t, AudioSystem::OutputDescriptor *> AudioSystem::gOutputs(NULL); 46 uint32_t AudioSystem::gPrevInSamplingRate; 47 audio_format_t AudioSystem::gPrevInFormat; [all …]
|
D | IAudioFlingerClient.cpp | 48 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { in ioConfigChanged() 52 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { in ioConfigChanged() 53 const AudioSystem::OutputDescriptor *desc = in ioConfigChanged() 54 (const AudioSystem::OutputDescriptor *)param2; in ioConfigChanged() 78 AudioSystem::OutputDescriptor desc; in onTransact() 80 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { in onTransact() 84 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { in onTransact()
|
D | AudioEffect.cpp | 108 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in set() 159 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid); in set() 172 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid); in ~AudioEffect() 410 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryNumberEffects() 417 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryEffect() 425 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getEffectDescriptor() 435 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in queryDefaultPreProcessing()
|
D | AudioRecord.cpp | 47 status_t status = AudioSystem::getInputBufferSize(sampleRate, format, channelMask, &size); in getMinFrameCount() 115 AudioSystem::releaseAudioSessionId(mSessionId, -1); in ~AudioRecord() 224 mSessionId = AudioSystem::newAudioUniqueId(); in set() 259 AudioSystem::acquireAudioSessionId(mSessionId, -1); in set() 269 status_t AudioRecord::start(AudioSystem::sync_event_t event, int triggerSession) in start() 411 return AudioSystem::getInputFramesLost(getInput()); in getInputFramesLost() 420 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in openRecord_l() 428 uint32_t afSampleRate = AudioSystem::getPrimaryOutputSamplingRate(); in openRecord_l() 455 status = AudioSystem::getInputForAttr(&mAttributes, &input, (audio_session_t)mSessionId, in openRecord_l() 584 AudioSystem::releaseInput(input, (audio_session_t)mSessionId); in openRecord_l() [all …]
|
D | AudioTrack.cpp | 72 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount() 79 status = AudioSystem::getOutputFrameCount(&afFrameCount, streamType); in getMinFrameCount() 86 status = AudioSystem::getOutputLatency(&afLatency, streamType); in getMinFrameCount() 204 AudioSystem::releaseAudioSessionId(mSessionId, mClientPid); in ~AudioTrack() 383 mSessionId = AudioSystem::newAudioUniqueId(); in set() 432 AudioSystem::acquireAudioSessionId(mSessionId, mClientPid); in set() 618 AudioSystem::getRenderPosition(mOutput, &halFrames, &mPausedPosition); in pause() 681 if (AudioSystem::getSamplingRate(mOutput, &afSamplingRate) != NO_ERROR) { in setSampleRate() 708 status_t status = AudioSystem::getSamplingRate(mOutput, &sampleRate); in getSampleRate() 853 AudioSystem::getRenderPosition(mOutput, &halFrames, &dspFrames); in getPosition() [all …]
|
D | mediaplayer.cpp | 63 mAudioSessionId = AudioSystem::newAudioUniqueId(); in MediaPlayer() 64 AudioSystem::acquireAudioSessionId(mAudioSessionId, -1); in MediaPlayer() 76 AudioSystem::releaseAudioSessionId(mAudioSessionId, -1); in ~MediaPlayer() 606 AudioSystem::acquireAudioSessionId(sessionId, -1); in setAudioSessionId() 607 AudioSystem::releaseAudioSessionId(mAudioSessionId, -1); in setAudioSessionId()
|
/frameworks/av/services/audiopolicy/ |
D | AudioPolicyClientImpl.cpp | 30 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in loadHwModule() 47 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openOutput() 59 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openDuplicateOutput() 69 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeOutput() 79 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in suspendOutput() 90 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in restoreOutput() 107 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in openInput() 118 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in closeInput() 136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in invalidateStream() 154 String8 result = AudioSystem::getParameters(io_handle, keys); in getParameters() [all …]
|
D | AudioPolicyClientImplLegacy.cpp | 56 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_load_hw_module() 74 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in open_output() 136 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_open_dup_output() 146 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_close_output() 156 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_suspend_output() 167 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_restore_output() 182 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in open_input() 237 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_close_input() 247 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_invalidate_stream() 259 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_move_effects() [all …]
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 163 class JNIAudioPortCallback: public AudioSystem::AudioPortCallback 253 return (jint) check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); in android_media_AudioSystem_muteMicrophone() 260 AudioSystem::isMicrophoneMuted(&state); in android_media_AudioSystem_isMicrophoneMuted() 268 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActive() 277 AudioSystem::isStreamActiveRemotely((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActiveRemotely() 285 AudioSystem::isSourceActive((audio_source_t) source, &state); in android_media_AudioSystem_isSourceActive() 292 return AudioSystem::newAudioUniqueId(); in android_media_AudioSystem_newAudioSessionId() 304 int status = check_AudioSystem_Command(AudioSystem::setParameters(c_keyValuePairs8)); in android_media_AudioSystem_setParameters() 317 return env->NewStringUTF(AudioSystem::getParameters(c_keys8).string()); in android_media_AudioSystem_getParameters() 341 …int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <audio_de… in android_media_AudioSystem_setDeviceConnectionState() [all …]
|
/frameworks/av/services/audioflinger/ |
D | PlaybackTracks.h | 43 virtual status_t start(AudioSystem::sync_event_t event = 44 AudioSystem::SYNC_EVENT_NONE, 113 void triggerEvents(AudioSystem::sync_event_t type); 270 virtual status_t start(AudioSystem::sync_event_t event = 271 AudioSystem::SYNC_EVENT_NONE,
|
D | Tracks.cpp | 494 AudioSystem::releaseOutput(mThreadIoHandle, mStreamType, (audio_session_t)mSessionId); in destroy() 654 status_t AudioFlinger::PlaybackThread::Track::start(AudioSystem::sync_event_t event __unused, in start() 698 triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in start() 984 AudioSystem::unregisterEffect(effect->id()); in attachAuxEffect() 985 AudioSystem::registerEffect(&effect->desc(), in attachAuxEffect() 990 AudioSystem::setEffectEnabled(effect->id(), effect->isEnabled()); in attachAuxEffect() 1022 triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in presentationComplete() 1029 void AudioFlinger::PlaybackThread::Track::triggerEvents(AudioSystem::sync_event_t type) in triggerEvents() 1691 status_t AudioFlinger::PlaybackThread::OutputTrack::start(AudioSystem::sync_event_t event, in start() 1958 return mRecordTrack->start((AudioSystem::sync_event_t)event, triggerSession); in start() [all …]
|
D | Threads.cpp | 976 lStatus = AudioSystem::registerEffect(desc, mId, chain->strategy(), sessionId, id); in createEffect_l() 1018 AudioSystem::unregisterEffect(effect->id()); in createEffect_l() 1493 uint32_t strategy = AudioSystem::getStrategyForStream(streamType); in createTrack_l() 1497 uint32_t actual = AudioSystem::getStrategyForStream(t->streamType()); in createTrack_l() 1530 chain->setStrategy(AudioSystem::getStrategyForStream(track->streamType())); in createTrack_l() 1626 status = AudioSystem::startOutput(mId, track->streamType(), in addTrack_l() 1633 AudioSystem::stopOutput(mId, track->streamType(), in addTrack_l() 1687 track->triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in removeTrack_l() 1730 AudioSystem::OutputDescriptor desc; in audioConfigChanged() 1737 case AudioSystem::OUTPUT_OPENED: in audioConfigChanged() [all …]
|
D | AudioFlinger.cpp | 1226 mPlaybackThreads.valueAt(i)->sendIoConfigEvent(AudioSystem::OUTPUT_OPENED); in registerClient() 1230 mRecordThreads.valueAt(i)->sendIoConfigEvent(AudioSystem::INPUT_OPENED); in registerClient() 1799 thread->audioConfigChanged(AudioSystem::OUTPUT_OPENED); in openOutput() 1837 thread->audioConfigChanged(AudioSystem::OUTPUT_OPENED); in openDuplicateOutput() 1887 audioConfigChanged(AudioSystem::OUTPUT_CLOSED, output, NULL); in closeOutput_nonvirtual() 1965 thread->audioConfigChanged(AudioSystem::INPUT_OPENED); in openInput() 2148 audioConfigChanged(AudioSystem::INPUT_CLOSED, input, NULL); in closeInput_nonvirtual() 2304 AudioSystem::unregisterEffect(effect->id()); in purgeStaleEffects_l() 2358 sp<AudioFlinger::SyncEvent> AudioFlinger::createSyncEvent(AudioSystem::sync_event_t type, in createSyncEvent() 2528 io = AudioSystem::getOutputForEffect(&desc); in createEffect() [all …]
|
/frameworks/base/media/java/android/media/audiopolicy/ |
D | AudioMix.java | 22 import android.media.AudioSystem; 217 int rate = AudioSystem.getPrimaryOutputSamplingRate(); in build()
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackQueueItem.java | 19 import android.media.AudioSystem; 61 sessionId > 0 ? sessionId : AudioSystem.AUDIO_SESSION_ALLOCATE); in run()
|
/frameworks/av/include/media/ |
D | AudioRecord.h | 232 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE,
|