Home | History | Annotate | Download | only in audioflinger

Lines Matching refs:AudioFlinger

19 #define LOG_TAG "AudioFlinger"
45 #include "AudioFlinger.h"
83 static const char kDeadlockedString[] = "AudioFlinger may be deadlocked\n";
87 nsecs_t AudioFlinger::mStandbyTimeInNsecs = kDefaultStandbyTimeInNsecs;
89 uint32_t AudioFlinger::mScreenState;
92 bool AudioFlinger::mTeeSinkInputEnabled = false;
93 bool AudioFlinger::mTeeSinkOutputEnabled = false;
94 bool AudioFlinger::mTeeSinkTrackEnabled = false;
96 size_t AudioFlinger::mTeeSinkInputFrames = kTeeSinkInputFramesDefault;
97 size_t AudioFlinger::mTeeSinkOutputFrames = kTeeSinkOutputFramesDefault;
98 size_t AudioFlinger::mTeeSinkTrackFrames = kTeeSinkTrackFramesDefault;
138 AudioFlinger::AudioFlinger()
174 void AudioFlinger::onFirstRef()
197 AudioFlinger::~AudioFlinger()
222 AudioFlinger::AudioHwDevice* AudioFlinger::findSuitableHwDev_l(
252 void AudioFlinger::dumpClients(int fd, const Vector<String16>& args)
284 void AudioFlinger::dumpInternals(int fd, const Vector<String16>& args)
299 void AudioFlinger::dumpPermissionDenial(int fd, const Vector<String16>& args)
305 "can't dump AudioFlinger from pid=%d, uid=%d\n",
312 bool AudioFlinger::dumpTryLock(Mutex& mutex)
325 status_t AudioFlinger::dump(int fd, const Vector<String16>& args)
341 // failed to lock - AudioFlinger is probably deadlocked
391 sp<AudioFlinger::Client> AudioFlinger::registerPid_l(pid_t pid)
404 sp<NBLog::Writer> AudioFlinger::newWriter_l(size_t size, const char *name)
418 void AudioFlinger::unregisterWriter(const sp<NBLog::Writer>& writer)
439 sp<IAudioTrack> AudioFlinger::createTrack(
561 uint32_t AudioFlinger::sampleRate(audio_io_handle_t output) const
572 int AudioFlinger::channelCount(audio_io_handle_t output) const
583 audio_format_t AudioFlinger::format(audio_io_handle_t output) const
594 size_t AudioFlinger::frameCount(audio_io_handle_t output) const
607 uint32_t AudioFlinger::latency(audio_io_handle_t output) const
618 status_t AudioFlinger::setMasterVolume(float value)
655 status_t AudioFlinger::setMode(audio_mode_t mode)
689 status_t AudioFlinger::setMicMute(bool state)
709 bool AudioFlinger::getMicMute() const
725 status_t AudioFlinger::setMasterMute(bool muted)
762 float AudioFlinger::masterVolume() const
768 bool AudioFlinger::masterMute() const
774 float AudioFlinger::masterVolume_l() const
779 bool AudioFlinger::masterMute_l() const
784 status_t AudioFlinger::setStreamVolume(audio_stream_type_t stream, float value,
819 status_t AudioFlinger::setStreamMute(audio_stream_type_t stream, bool muted)
840 float AudioFlinger::streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const
861 bool AudioFlinger::streamMute(audio_stream_type_t stream) const
871 status_t AudioFlinger::setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs)
924 if (isOff != (AudioFlinger::mScreenState & 1)) {
925 AudioFlinger::mScreenState = ((AudioFlinger::mScreenState & ~1) + 2) | isOff;
957 String8 AudioFlinger::getParameters(audio_io_handle_t ioHandle, const String8& keys) const
993 size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t format,
1015 unsigned int AudioFlinger::getInputFramesLost(audio_io_handle_t ioHandle) const
1026 status_t AudioFlinger::setVoiceVolume(float value)
1047 status_t AudioFlinger::getRenderPosition(size_t *halFrames, size_t *dspFrames,
1062 void AudioFlinger::registerClient(const sp<IAudioFlingerClient>& client)
1091 void AudioFlinger::removeNotificationClient(pid_t pid)
1118 // audioConfigChanged_l() must be called with AudioFlinger::mLock held
1119 void AudioFlinger::audioConfigChanged_l(int event, audio_io_handle_t ioHandle, const void *param2)
1128 // removeClient_l() must be called with AudioFlinger::mLock held
1129 void AudioFlinger::removeClient_l(pid_t pid)
1136 // getEffectThread_l() must be called with AudioFlinger::mLock held
1137 sp<AudioFlinger::PlaybackThread> AudioFlinger::getEffectThread_l(int sessionId, int EffectId)
1155 AudioFlinger::Client::Client(const sp<AudioFlinger>& audioFlinger, pid_t pid)
1157 mAudioFlinger(audioFlinger),
1159 mMemoryDealer(new MemoryDealer(1024*1024, "AudioFlinger::Client")),
1166 // Client destructor must be called with AudioFlinger::mLock held
1167 AudioFlinger::Client::~Client()
1172 sp<MemoryDealer> AudioFlinger::Client::heap() const
1179 bool AudioFlinger::Client::reserveTimedTrack()
1196 void AudioFlinger::Client::releaseTimedTrack()
1204 AudioFlinger::NotificationClient::NotificationClient(const sp<AudioFlinger>& audioFlinger,
1207 : mAudioFlinger(audioFlinger), mPid(pid), mAudioFlingerClient(client)
1211 AudioFlinger::NotificationClient::~NotificationClient()
1215 void AudioFlinger::NotificationClient::binderDied(const wp<IBinder>& who)
1228 sp<IAudioRecord> AudioFlinger::openRecord(
1321 audio_module_handle_t AudioFlinger::loadHwModule(const char *name)
1330 // loadHwModule_l() must be called with AudioFlinger::mLock held
1331 audio_module_handle_t AudioFlinger::loadHwModule_l(const char *name)
1412 uint32_t AudioFlinger::getPrimaryOutputSamplingRate()
1419 size_t AudioFlinger::getPrimaryOutputFrameCount()
1428 status_t AudioFlinger::setLowRamDevice(bool isLowRamDevice)
1445 audio_io_handle_t AudioFlinger::openOutput(audio_module_handle_t module,
1556 audio_io_handle_t AudioFlinger::openDuplicateOutput(audio_io_handle_t output1,
1578 status_t AudioFlinger::closeOutput(audio_io_handle_t output)
1583 status_t AudioFlinger::closeOutput_nonvirtual(audio_io_handle_t output)
1614 // audioflinger lock is held here so the acquisition order of thread locks does not
1640 status_t AudioFlinger::suspendOutput(audio_io_handle_t output)
1655 status_t AudioFlinger::restoreOutput(audio_io_handle_t output)
1671 audio_io_handle_t AudioFlinger::openInput(audio_module_handle_t module,
1714 // conversion internally, try to open again with the proposed parameters. The AudioFlinger can
1812 status_t AudioFlinger::closeInput(audio_io_handle_t input)
1817 status_t AudioFlinger::closeInput_nonvirtual(audio_io_handle_t input)
1846 status_t AudioFlinger::setStreamOutput(audio_stream_type_t stream, audio_io_handle_t output)
1860 int AudioFlinger::newAudioSessionId()
1865 void AudioFlinger::acquireAudioSessionId(int audioSession)
1893 void AudioFlinger::releaseAudioSessionId(int audioSession)
1917 void AudioFlinger::purgeStaleEffects_l() {
1975 // checkPlaybackThread_l() must be called with AudioFlinger::mLock held
1976 AudioFlinger::PlaybackThread *AudioFlinger::checkPlaybackThread_l(audio_io_handle_t output) const
1981 // checkMixerThread_l() must be called with AudioFlinger::mLock held
1982 AudioFlinger::MixerThread *AudioFlinger::checkMixerThread_l(audio_io_handle_t output) const
1988 // checkRecordThread_l() must be called with AudioFlinger::mLock held
1989 AudioFlinger::RecordThread *AudioFlinger::checkRecordThread_l(audio_io_handle_t input) const
1994 uint32_t AudioFlinger::nextUniqueId()
1999 AudioFlinger::PlaybackThread *AudioFlinger::primaryPlaybackThread_l() const
2011 audio_devices_t AudioFlinger::primaryOutputDevice_l() const
2022 sp<AudioFlinger::SyncEvent> AudioFlinger::createSyncEvent(AudioSystem::sync_event_t type,
2059 status_t AudioFlinger::queryNumberEffects(uint32_t *numEffects) const
2065 status_t AudioFlinger::queryEffect(uint32_t index, effect_descriptor_t *descriptor) const
2071 status_t AudioFlinger::getEffectDescriptor(const effect_uuid_t *pUuid,
2079 sp<IEffect> AudioFlinger::createEffect(
2260 status_t AudioFlinger::moveEffects(int sessionId, audio_io_handle_t srcOutput,
2287 status_t AudioFlinger::moveEffectChain_l(int sessionId,
2288 AudioFlinger::PlaybackThread *srcThread,
2289 AudioFlinger::PlaybackThread *dstThread,
2368 bool AudioFlinger::isNonOffloadableGlobalEffectEnabled_l()
2385 void AudioFlinger::onNonOffloadableGlobalEffectEnable()
2411 void AudioFlinger::dumpTee(int fd, const sp<NBAIO_Source>& source, audio_io_handle_t id)
2530 status_t AudioFlinger::onTransact(