/frameworks/av/media/libmedia/ |
D | AudioSystem.cpp | 33 Mutex AudioSystem::gLock; 34 sp<IAudioFlinger> AudioSystem::gAudioFlinger; 35 sp<AudioSystem::AudioFlingerClient> AudioSystem::gAudioFlingerClient; 36 audio_error_callback AudioSystem::gAudioErrorCallback = NULL; 39 DefaultKeyedVector<audio_io_handle_t, AudioSystem::OutputDescriptor *> AudioSystem::gOutputs(0); 42 uint32_t AudioSystem::gPrevInSamplingRate = 16000; 43 audio_format_t AudioSystem::gPrevInFormat = AUDIO_FORMAT_PCM_16_BIT; 44 int AudioSystem::gPrevInChannelCount = 1; 45 size_t AudioSystem::gInBuffSize = 0; 49 const sp<IAudioFlinger>& AudioSystem::get_audio_flinger() in get_audio_flinger() [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 = (const AudioSystem::OutputDescriptor *)param2; in ioConfigChanged() 77 AudioSystem::OutputDescriptor desc; in onTransact() 79 if (event == AudioSystem::STREAM_CONFIG_CHANGED) { in onTransact() 83 } else if (event != AudioSystem::OUTPUT_CLOSED && event != AudioSystem::INPUT_CLOSED) { in onTransact()
|
D | AudioRecord.cpp | 55 if (AudioSystem::getInputBufferSize(sampleRate, format, channelCount, &size) in getMinFrameCount() 117 AudioSystem::releaseAudioSessionId(mSessionId); in ~AudioRecord() 167 mSessionId = AudioSystem::newAudioSessionId(); in set() 173 audio_io_handle_t input = AudioSystem::getInput(inputSource, in set() 234 AudioSystem::acquireAudioSessionId(mSessionId); in set() 282 status_t AudioRecord::start(AudioSystem::sync_event_t event, int triggerSession) in start() 337 cblk->bufferTimeoutMs = (event == AudioSystem::SYNC_EVENT_NONE) ? MAX_RUN_TIMEOUT_MS : in start() 338 AudioSystem::kSyncRecordStartTimeOutMs; in start() 449 return AudioSystem::getInputFramesLost(mInput); in getInputFramesLost() 465 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in openRecord_l() [all …]
|
D | AudioTrack.cpp | 64 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in getMinFrameCount() 68 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { in getMinFrameCount() 72 if (AudioSystem::getOutputLatency(&afLatency, streamType) != NO_ERROR) { in getMinFrameCount() 176 AudioSystem::releaseAudioSessionId(mSessionId); in ~AudioTrack() 212 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in set() 255 audio_io_handle_t output = AudioSystem::getOutput( in set() 314 AudioSystem::acquireAudioSessionId(mSessionId); in set() 565 if (AudioSystem::getOutputSamplingRate(&afSamplingRate, mStreamType) != NO_ERROR) { in setSampleRate() 721 return AudioSystem::getOutput(mStreamType, in getOutput_l() 754 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in createTrack_l() [all …]
|
D | AudioEffect.cpp | 108 const sp<IAudioFlinger>& audioFlinger = AudioSystem::get_audio_flinger(); in set() 403 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryNumberEffects() 410 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in queryEffect() 418 const sp<IAudioFlinger>& af = AudioSystem::get_audio_flinger(); in getEffectDescriptor() 428 const sp<IAudioPolicyService>& aps = AudioSystem::get_audio_policy_service(); in queryDefaultPreProcessing()
|
D | mediaplayer.cpp | 61 mAudioSessionId = AudioSystem::newAudioSessionId(); in MediaPlayer() 62 AudioSystem::acquireAudioSessionId(mAudioSessionId); in MediaPlayer() 70 AudioSystem::releaseAudioSessionId(mAudioSessionId); in ~MediaPlayer() 559 AudioSystem::releaseAudioSessionId(mAudioSessionId); in setAudioSessionId() 560 AudioSystem::acquireAudioSessionId(sessionId); in setAudioSessionId()
|
D | Android.mk | 22 AudioSystem.cpp \
|
D | SoundPool.cpp | 574 if (AudioSystem::getOutputFrameCount(&afFrameCount, streamType) != NO_ERROR) { in play() 577 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in play()
|
/frameworks/base/core/jni/ |
D | android_media_AudioSystem.cpp | 59 return check_AudioSystem_Command(AudioSystem::muteMicrophone(on)); in android_media_AudioSystem_muteMicrophone() 66 AudioSystem::isMicrophoneMuted(&state); in android_media_AudioSystem_isMicrophoneMuted() 74 AudioSystem::isStreamActive((audio_stream_type_t) stream, &state, inPastMs); in android_media_AudioSystem_isStreamActive() 87 int status = check_AudioSystem_Command(AudioSystem::setParameters(0, c_keyValuePairs8)); in android_media_AudioSystem_setParameters() 100 return env->NewStringUTF(AudioSystem::getParameters(0, c_keys8).string()); in android_media_AudioSystem_getParameters() 134 …int status = check_AudioSystem_Command(AudioSystem::setDeviceConnectionState(static_cast <audio_de… in android_media_AudioSystem_setDeviceConnectionState() 145 …int state = static_cast <int>(AudioSystem::getDeviceConnectionState(static_cast <audio_devices_t>(… in android_media_AudioSystem_getDeviceConnectionState() 154 return check_AudioSystem_Command(AudioSystem::setPhoneState((audio_mode_t) state)); in android_media_AudioSystem_setPhoneState() 160 …return check_AudioSystem_Command(AudioSystem::setForceUse(static_cast <audio_policy_force_use_t>(u… in android_media_AudioSystem_setForceUse() 167 … return static_cast <int>(AudioSystem::getForceUse(static_cast <audio_policy_force_use_t>(usage))); in android_media_AudioSystem_getForceUse() [all …]
|
D | android_media_ToneGenerator.cpp | 90 …ToneGenerator *lpToneGen = new ToneGenerator((audio_stream_type_t) streamType, AudioSystem::linear… in android_media_ToneGenerator_native_setup()
|
D | android_media_AudioTrack.cpp | 212 …if (AudioSystem::getOutputFrameCount(&afFrameCount, (audio_stream_type_t) streamType) != NO_ERROR)… in android_media_AudioTrack_native_setup() 216 …if (AudioSystem::getOutputSamplingRate(&afSampleRate, (audio_stream_type_t) streamType) != NO_ERRO… in android_media_AudioTrack_native_setup() 773 if (AudioSystem::getOutputSamplingRate(&afSamplingRate, nativeStreamType) != NO_ERROR) { in android_media_AudioTrack_get_output_sample_rate()
|
D | android_media_AudioRecord.cpp | 304 lpRecorder->start((AudioSystem::sync_event_t)event, triggerSession)); in android_media_AudioRecord_start()
|
/frameworks/base/media/java/android/media/ |
D | AudioService.java | 234 AudioSystem.STREAM_VOICE_CALL, // STREAM_VOICE_CALL 235 AudioSystem.STREAM_RING, // STREAM_SYSTEM 236 AudioSystem.STREAM_RING, // STREAM_RING 237 AudioSystem.STREAM_MUSIC, // STREAM_MUSIC 238 AudioSystem.STREAM_ALARM, // STREAM_ALARM 239 AudioSystem.STREAM_RING, // STREAM_NOTIFICATION 240 AudioSystem.STREAM_BLUETOOTH_SCO, // STREAM_BLUETOOTH_SCO 241 AudioSystem.STREAM_RING, // STREAM_SYSTEM_ENFORCED 242 AudioSystem.STREAM_RING, // STREAM_DTMF 243 AudioSystem.STREAM_MUSIC // STREAM_TTS [all …]
|
D | AudioManager.java | 197 public static final int STREAM_VOICE_CALL = AudioSystem.STREAM_VOICE_CALL; 199 public static final int STREAM_SYSTEM = AudioSystem.STREAM_SYSTEM; 201 public static final int STREAM_RING = AudioSystem.STREAM_RING; 203 public static final int STREAM_MUSIC = AudioSystem.STREAM_MUSIC; 205 public static final int STREAM_ALARM = AudioSystem.STREAM_ALARM; 207 public static final int STREAM_NOTIFICATION = AudioSystem.STREAM_NOTIFICATION; 209 public static final int STREAM_BLUETOOTH_SCO = AudioSystem.STREAM_BLUETOOTH_SCO; 211 public static final int STREAM_SYSTEM_ENFORCED = AudioSystem.STREAM_SYSTEM_ENFORCED; 213 public static final int STREAM_DTMF = AudioSystem.STREAM_DTMF; 215 public static final int STREAM_TTS = AudioSystem.STREAM_TTS; [all …]
|
D | MediaSyncEvent.java | 33 public static final int SYNC_EVENT_NONE = AudioSystem.SYNC_EVENT_NONE; 42 AudioSystem.SYNC_EVENT_PRESENTATION_COMPLETE;
|
D | AudioSystem.java | 28 public class AudioSystem class 163 synchronized (AudioSystem.class) { in setErrorCallback() 176 synchronized (AudioSystem.class) { in errorCallbackFromNative()
|
/frameworks/av/services/audioflinger/ |
D | AudioPolicyService.cpp | 184 AudioSystem::setMode(state); in setPhoneState() 685 command->mStatus = AudioSystem::setStreamVolume(data->mStream, in threadLoop() 698 command->mStatus = AudioSystem::setParameters(data->mIO, data->mKeyValuePairs); in threadLoop() 709 command->mStatus = AudioSystem::setVoiceVolume(data->mVolume); in threadLoop() 1336 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_load_hw_module() 1354 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_open_output() 1373 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_open_output_on_module() 1386 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_open_dup_output() 1396 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_close_output() 1405 sp<IAudioFlinger> af = AudioSystem::get_audio_flinger(); in aps_suspend_output() [all …]
|
D | AudioFlinger.h | 223 SyncEvent(AudioSystem::sync_event_t type, in SyncEvent() 237 AudioSystem::sync_event_t type() const { return mType; } in type() 243 const AudioSystem::sync_event_t mType; 251 sp<SyncEvent> createSyncEvent(AudioSystem::sync_event_t type, 389 … virtual status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 703 … virtual status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 767 void triggerEvents(AudioSystem::sync_event_t type); 912 … virtual status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 1339 … virtual status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE, 1388 AudioSystem::sync_event_t event,
|
D | AudioFlinger.cpp | 1056 mPlaybackThreads.valueAt(i)->sendConfigEvent(AudioSystem::OUTPUT_OPENED); in registerClient() 1060 mRecordThreads.valueAt(i)->sendConfigEvent(AudioSystem::INPUT_OPENED); in registerClient() 1771 uint32_t strategy = AudioSystem::getStrategyForStream(streamType); in createTrack_l() 1775 uint32_t actual = AudioSystem::getStrategyForStream(t->streamType()); in createTrack_l() 1802 chain->setStrategy(AudioSystem::getStrategyForStream(track->streamType())); in createTrack_l() 1931 track->triggerEvents(AudioSystem::SYNC_EVENT_PRESENTATION_COMPLETE); in removeTrack_l() 1968 AudioSystem::OutputDescriptor desc; in audioConfigChanged_l() 1974 case AudioSystem::OUTPUT_OPENED: in audioConfigChanged_l() 1975 case AudioSystem::OUTPUT_CONFIG_CHANGED: in audioConfigChanged_l() 1984 case AudioSystem::STREAM_CONFIG_CHANGED: in audioConfigChanged_l() [all …]
|
/frameworks/av/include/media/ |
D | AudioRecord.h | 223 status_t start(AudioSystem::sync_event_t event = AudioSystem::SYNC_EVENT_NONE,
|
D | AudioSystem.h | 37 class AudioSystem
|
/frameworks/base/core/java/android/view/ |
D | VolumePanel.java | 31 import android.media.AudioSystem; 272 mToneGenerators = new ToneGenerator[AudioSystem.getNumStreamTypes()]; in VolumePanel() 366 int plusOne = (streamType == AudioSystem.STREAM_BLUETOOTH_SCO || in createSliders() 367 streamType == AudioSystem.STREAM_VOICE_CALL) ? 1 : 0; in createSliders() 703 int numStreamTypes = AudioSystem.getNumStreamTypes(); in onStopSounds()
|
/frameworks/base/media/tests/SoundPoolTest/src/com/android/ |
D | SoundPoolTest.java | 27 import android.media.AudioSystem; 114 mSoundPool = new SoundPool(numStreams, AudioSystem.STREAM_MUSIC, 0); in initSoundPool()
|
/frameworks/av/libvideoeditor/lvpp/ |
D | VideoEditorPlayer.cpp | 413 if (AudioSystem::getOutputFrameCount(&afFrameCount, mStreamType) != in open() 417 if (AudioSystem::getOutputSamplingRate(&afSampleRate, mStreamType) != in open()
|
/frameworks/wilhelm/src/android/ |
D | AudioPlayer_to_android.cpp | 169 if (android::AudioSystem::getOutputSamplingRate(&afSampleRate, in android_getMinFrameCount() 174 if (android::AudioSystem::getOutputFrameCount(&afFrameCount, in android_getMinFrameCount() 179 if (android::AudioSystem::getOutputLatency(&afLatency, in android_getMinFrameCount() 1262 pAudioPlayer->mSessionId = android::AudioSystem::newAudioSessionId(); in android_audioPlayer_create()
|