Lines Matching refs:AudioFlinger

245 void AudioFlinger::instantiate() {  in instantiate()
248 new AudioFlingerServerAdapter(new AudioFlinger()), false, in instantiate()
252 AudioFlinger::AudioFlinger() in AudioFlinger() function in android::AudioFlinger
297 void AudioFlinger::onFirstRef() in onFirstRef()
319 status_t AudioFlinger::setAudioHalPids(const std::vector<pid_t>& pids) { in setAudioHalPids()
324 status_t AudioFlinger::setVibratorInfos( in setVibratorInfos()
331 status_t AudioFlinger::updateSecondaryOutputs( in updateSecondaryOutputs()
352 status_t AudioFlinger::getMmapPolicyInfos( in getMmapPolicyInfos()
380 int32_t AudioFlinger::getAAudioMixerBurstCount() const { in getAAudioMixerBurstCount()
385 int32_t AudioFlinger::getAAudioHardwareBurstMinUsec() const { in getAAudioHardwareBurstMinUsec()
390 status_t AudioFlinger::setDeviceConnectedState(const struct audio_port_v7 *port, in setDeviceConnectedState()
411 status_t AudioFlinger::setSimulateDeviceConnections(bool enabled) { in setSimulateDeviceConnections()
431 std::optional<media::AudioVibratorInfo> AudioFlinger::getDefaultVibratorInfo_l() const { in getDefaultVibratorInfo_l()
438 AudioFlinger::~AudioFlinger() in ~AudioFlinger()
488 sp<AudioFlinger> af = AudioFlinger::gAudioFlinger.load(); // either nullptr or singleton AF. in openMmapStream()
498 status_t AudioFlinger::openMmapStream(MmapStreamInterface::stream_direction_t direction, in openMmapStream()
612 status_t AudioFlinger::addEffectToHal( in addEffectToHal()
622 status_t AudioFlinger::removeEffectFromHal( in removeEffectFromHal()
638 AudioHwDevice* AudioFlinger::findSuitableHwDev_l( in findSuitableHwDev_l()
671 void AudioFlinger::dumpClients_ll(int fd, const Vector<String16>& args __unused) in dumpClients_ll()
705 void AudioFlinger::dumpInternals_l(int fd, const Vector<String16>& args __unused) in dumpInternals_l()
724 void AudioFlinger::dumpPermissionDenial(int fd, const Vector<String16>& args __unused) in dumpPermissionDenial()
737 status_t AudioFlinger::dump(int fd, const Vector<String16>& args) in dump()
913 sp<Client> AudioFlinger::registerPid(pid_t pid) in registerPid()
927 sp<NBLog::Writer> AudioFlinger::newWriter_l(size_t size, const char *name) in newWriter_l()
967 void AudioFlinger::unregisterWriter(const sp<NBLog::Writer>& writer) in unregisterWriter()
984 status_t AudioFlinger::createTrack(const media::CreateTrackRequest& _input, in createTrack()
1204 uint32_t AudioFlinger::sampleRate(audio_io_handle_t ioHandle) const in sampleRate()
1215 audio_format_t AudioFlinger::format(audio_io_handle_t output) const in format()
1226 size_t AudioFlinger::frameCount(audio_io_handle_t ioHandle) const in frameCount()
1239 size_t AudioFlinger::frameCountHAL(audio_io_handle_t ioHandle) const in frameCountHAL()
1250 uint32_t AudioFlinger::latency(audio_io_handle_t output) const in latency()
1261 status_t AudioFlinger::setMasterVolume(float value) in setMasterVolume()
1303 status_t AudioFlinger::setMasterBalance(float balance) in setMasterBalance()
1337 status_t AudioFlinger::setMode(audio_mode_t mode) in setMode()
1379 status_t AudioFlinger::setMicMute(bool state) in setMicMute()
1413 bool AudioFlinger::getMicMute() const in getMicMute()
1436 void AudioFlinger::setRecordSilenced(audio_port_handle_t portId, bool silenced) in setRecordSilenced()
1449 status_t AudioFlinger::setMasterMute(bool muted) in setMasterMute()
1490 float AudioFlinger::masterVolume() const in masterVolume()
1496 status_t AudioFlinger::getMasterBalance(float *balance) const in getMasterBalance()
1503 bool AudioFlinger::masterMute() const in masterMute()
1509 float AudioFlinger::masterVolume_l() const in masterVolume_l()
1514 float AudioFlinger::getMasterBalance_l() const in getMasterBalance_l()
1519 bool AudioFlinger::masterMute_l() const in masterMute_l()
1525 status_t AudioFlinger::checkStreamType(audio_stream_type_t stream) in checkStreamType()
1540 status_t AudioFlinger::setStreamVolume(audio_stream_type_t stream, float value, in setStreamVolume()
1568 status_t AudioFlinger::setRequestedLatencyMode( in setRequestedLatencyMode()
1581 status_t AudioFlinger::getSupportedLatencyModes(audio_io_handle_t output, in getSupportedLatencyModes()
1594 status_t AudioFlinger::setBluetoothVariableLatencyEnabled(bool enabled) { in setBluetoothVariableLatencyEnabled()
1609 status_t AudioFlinger::isBluetoothVariableLatencyEnabled(bool* enabled) const { in isBluetoothVariableLatencyEnabled()
1617 status_t AudioFlinger::supportsBluetoothVariableLatency(bool* support) const { in supportsBluetoothVariableLatency()
1632 status_t AudioFlinger::getSoundDoseInterface(const sp<media::ISoundDoseCallback>& callback, in getSoundDoseInterface()
1642 status_t AudioFlinger::setStreamMute(audio_stream_type_t stream, bool muted) in setStreamMute()
1670 float AudioFlinger::streamVolume(audio_stream_type_t stream, audio_io_handle_t output) const in streamVolume()
1689 bool AudioFlinger::streamMute(audio_stream_type_t stream) const in streamMute()
1701 void AudioFlinger::broadcastParametersToRecordThreads_l(const String8& keyValuePairs) in broadcastParametersToRecordThreads_l()
1708 void AudioFlinger::updateOutDevicesForRecordThreads_l(const DeviceDescriptorBaseVector& devices) in updateOutDevicesForRecordThreads_l()
1716 void AudioFlinger::forwardParametersToDownstreamPatches_l( in forwardParametersToDownstreamPatches_l()
1734 void AudioFlinger::updateDownStreamPatches_l(const struct audio_patch *patch, in updateDownStreamPatches_l()
1750 void AudioFlinger::filterReservedParameters(String8& keyValuePairs, uid_t callingUid) in filterReservedParameters()
1787 void AudioFlinger::logFilteredParameters(size_t originalKVPSize, const String8& originalKVPs, in logFilteredParameters()
1802 status_t AudioFlinger::setParameters(audio_io_handle_t ioHandle, const String8& keyValuePairs) in setParameters()
1889 String8 AudioFlinger::getParameters(audio_io_handle_t ioHandle, const String8& keys) const in getParameters()
1924 size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t format, in getInputBufferSize()
2032 uint32_t AudioFlinger::getInputFramesLost(audio_io_handle_t ioHandle) const in getInputFramesLost()
2043 status_t AudioFlinger::setVoiceVolume(float value) in setVoiceVolume()
2071 status_t AudioFlinger::getRenderPosition(uint32_t *halFrames, uint32_t *dspFrames, in getRenderPosition()
2084 void AudioFlinger::registerClient(const sp<media::IAudioFlingerClient>& client) in registerClient()
2123 void AudioFlinger::removeNotificationClient(pid_t pid) in removeNotificationClient()
2162 void AudioFlinger::ioConfigChanged_l(audio_io_config_event_t event, in ioConfigChanged_l()
2180 void AudioFlinger::onSupportedLatencyModesChanged( in onSupportedLatencyModesChanged()
2195 void AudioFlinger::onHardError(std::set<audio_port_handle_t>& trackPortIds) { in onHardError()
2203 void AudioFlinger::removeClient_l(pid_t pid) in removeClient_l()
2211 sp<IAfThreadBase> AudioFlinger::getEffectThread_l(audio_session_t sessionId, in getEffectThread_l()
2239 AudioFlinger::NotificationClient::NotificationClient(const sp<AudioFlinger>& audioFlinger, in NotificationClient()
2247 AudioFlinger::NotificationClient::~NotificationClient() in ~NotificationClient()
2251 void AudioFlinger::NotificationClient::binderDied(const wp<IBinder>& who __unused) in binderDied()
2258 AudioFlinger::MediaLogNotifier::MediaLogNotifier() in MediaLogNotifier()
2262 void AudioFlinger::MediaLogNotifier::requestMerge() { in requestMerge()
2268 bool AudioFlinger::MediaLogNotifier::threadLoop() { in threadLoop()
2289 void AudioFlinger::requestLogMerge() { in requestLogMerge()
2295 status_t AudioFlinger::createRecord(const media::CreateRecordRequest& _input, in createRecord()
2485 status_t AudioFlinger::getAudioPolicyConfig(media::AudioPolicyConfig *config) in getAudioPolicyConfig()
2526 audio_module_handle_t AudioFlinger::loadHwModule(const char *name) in loadHwModule()
2542 AudioHwDevice* AudioFlinger::loadHwModule_ll(const char *name) in loadHwModule_ll()
2651 bool AudioFlinger::inputBufferSizeDevsCmp(const AudioHwDevice* lhs, const AudioHwDevice* rhs) { in inputBufferSizeDevsCmp()
2678 uint32_t AudioFlinger::getPrimaryOutputSamplingRate() const in getPrimaryOutputSamplingRate()
2685 size_t AudioFlinger::getPrimaryOutputFrameCount() const in getPrimaryOutputFrameCount()
2694 status_t AudioFlinger::setLowRamDevice(bool isLowRamDevice, int64_t totalMemory) in setLowRamDevice()
2733 size_t AudioFlinger::getClientSharedHeapSize() const in getClientSharedHeapSize()
2742 status_t AudioFlinger::setAudioPortConfig(const struct audio_port_config *config) in setAudioPortConfig()
2770 audio_hw_sync_t AudioFlinger::getAudioHwSyncForSession(audio_session_t sessionId) in getAudioHwSyncForSession()
2830 status_t AudioFlinger::systemReady() in systemReady()
2858 sp<IAudioManager> AudioFlinger::getOrCreateAudioManager() in getOrCreateAudioManager()
2873 status_t AudioFlinger::getMicrophones(std::vector<media::MicrophoneInfoFw>* microphones) const in getMicrophones()
2900 void AudioFlinger::setAudioHwSyncForSession_l( in setAudioHwSyncForSession_l()
2920 sp<IAfThreadBase> AudioFlinger::openOutput_l(audio_module_handle_t module, in openOutput_l()
3006 status_t AudioFlinger::openOutput(const media::OpenOutputRequest& request, in openOutput()
3077 audio_io_handle_t AudioFlinger::openDuplicateOutput(audio_io_handle_t output1, in openDuplicateOutput()
3100 status_t AudioFlinger::closeOutput(audio_io_handle_t output) in closeOutput()
3105 status_t AudioFlinger::closeOutput_nonvirtual(audio_io_handle_t output) in closeOutput_nonvirtual()
3198 void AudioFlinger::closeOutputFinish(const sp<IAfPlaybackThread>& thread) in closeOutputFinish()
3206 void AudioFlinger::closeThreadInternal_l(const sp<IAfPlaybackThread>& thread) in closeThreadInternal_l()
3213 status_t AudioFlinger::suspendOutput(audio_io_handle_t output) in suspendOutput()
3228 status_t AudioFlinger::restoreOutput(audio_io_handle_t output) in restoreOutput()
3244 status_t AudioFlinger::openInput(const media::OpenInputRequest& request, in openInput()
3284 sp<IAfThreadBase> AudioFlinger::openInput_l(audio_module_handle_t module, in openInput_l()
3350 status_t AudioFlinger::closeInput(audio_io_handle_t input) in closeInput()
3355 status_t AudioFlinger::closeInput_nonvirtual(audio_io_handle_t input) in closeInput_nonvirtual()
3431 void AudioFlinger::closeInputFinish(const sp<IAfRecordThread>& thread) in closeInputFinish()
3440 void AudioFlinger::closeThreadInternal_l(const sp<IAfRecordThread>& thread) in closeThreadInternal_l()
3446 status_t AudioFlinger::invalidateTracks(const std::vector<audio_port_handle_t> &portIds) { in invalidateTracks()
3468 audio_unique_id_t AudioFlinger::newAudioUniqueId(audio_unique_id_use_t use) in newAudioUniqueId()
3479 void AudioFlinger::acquireAudioSessionId( in acquireAudioSessionId()
3518 void AudioFlinger::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) in releaseAudioSessionId()
3556 bool AudioFlinger::isSessionAcquired_l(audio_session_t audioSession) in isSessionAcquired_l()
3568 std::vector<sp<IAfEffectModule>> AudioFlinger::purgeStaleEffects_l() { in purgeStaleEffects_l()
3643 std::vector< sp<IAfEffectModule> > AudioFlinger::purgeOrphanEffectChains_l() in purgeOrphanEffectChains_l()
3680 void AudioFlinger::dumpToThreadLog_l(const sp<IAfThreadBase> &thread) in dumpToThreadLog_l()
3701 IAfThreadBase* AudioFlinger::checkThread_l(audio_io_handle_t ioHandle) const in checkThread_l()
3720 sp<IAfThreadBase> AudioFlinger::checkOutputThread_l(audio_io_handle_t ioHandle) const in checkOutputThread_l()
3734 IAfPlaybackThread* AudioFlinger::checkPlaybackThread_l(audio_io_handle_t output) const in checkPlaybackThread_l()
3740 IAfPlaybackThread* AudioFlinger::checkMixerThread_l(audio_io_handle_t output) const in checkMixerThread_l()
3747 IAfRecordThread* AudioFlinger::checkRecordThread_l(audio_io_handle_t input) const in checkRecordThread_l()
3753 IAfMmapThread* AudioFlinger::checkMmapThread_l(audio_io_handle_t io) const in checkMmapThread_l()
3760 sp<VolumeInterface> AudioFlinger::getVolumeInterface_l(audio_io_handle_t output) const in getVolumeInterface_l()
3776 std::vector<sp<VolumeInterface>> AudioFlinger::getAllVolumeInterfaces_l() const in getAllVolumeInterfaces_l()
3792 audio_unique_id_t AudioFlinger::nextUniqueId(audio_unique_id_use_t use) in nextUniqueId()
3813 IAfPlaybackThread* AudioFlinger::primaryPlaybackThread_l() const in primaryPlaybackThread_l()
3832 DeviceTypeSet AudioFlinger::primaryOutputDevice_l() const in primaryOutputDevice_l()
3844 IAfPlaybackThread* AudioFlinger::fastPlaybackThread_l() const in fastPlaybackThread_l()
3863 IAfThreadBase* AudioFlinger::hapticPlaybackThread_l() const { in hapticPlaybackThread_l()
3873 void AudioFlinger::updateSecondaryOutputsForTrack_l( in updateSecondaryOutputsForTrack_l()
3968 sp<audioflinger::SyncEvent> AudioFlinger::createSyncEvent(AudioSystem::sync_event_t type, in createSyncEvent()
4005 sp<EffectsFactoryHalInterface> AudioFlinger::getEffectsFactory() { in getEffectsFactory()
4009 status_t AudioFlinger::queryNumberEffects(uint32_t *numEffects) const in queryNumberEffects()
4019 status_t AudioFlinger::queryEffect(uint32_t index, effect_descriptor_t *descriptor) const in queryEffect()
4029 status_t AudioFlinger::getEffectDescriptor(const effect_uuid_t *pUuid, in getEffectDescriptor()
4099 status_t AudioFlinger::createEffect(const media::CreateEffectRequest& request, in createEffect()
4446 sp<IAfEffectHandle> AudioFlinger::createOrphanEffect_l( in createOrphanEffect_l()
4525 status_t AudioFlinger::moveEffects(audio_session_t sessionId, audio_io_handle_t srcIo, in moveEffects()
4595 void AudioFlinger::setEffectSuspended(int effectId, in setEffectSuspended()
4614 status_t AudioFlinger::moveEffectChain_ll(audio_session_t sessionId, in moveEffectChain_ll()
4740 status_t AudioFlinger::moveEffectChain_ll(audio_session_t sessionId, in moveEffectChain_ll()
4779 status_t AudioFlinger::moveAuxEffectToIo(int EffectId, in moveAuxEffectToIo()
4827 bool AudioFlinger::isNonOffloadableGlobalEffectEnabled_l() const in isNonOffloadableGlobalEffectEnabled_l()
4845 void AudioFlinger::onNonOffloadableGlobalEffectEnable() in onNonOffloadableGlobalEffectEnable()
4860 status_t AudioFlinger::putOrphanEffectChain_l(const sp<IAfEffectChain>& chain) in putOrphanEffectChain_l()
4878 sp<IAfEffectChain> AudioFlinger::getOrphanEffectChain_l(audio_session_t session) in getOrphanEffectChain_l()
4890 bool AudioFlinger::updateOrphanEffectChains(const sp<IAfEffectModule>& effect) in updateOrphanEffectChains()
4896 bool AudioFlinger::updateOrphanEffectChains_l(const sp<IAfEffectModule>& effect) in updateOrphanEffectChains_l()
4916 status_t AudioFlinger::listAudioPorts(unsigned int* num_ports, in listAudioPorts()
4924 status_t AudioFlinger::getAudioPort(struct audio_port_v7* port) const { in getAudioPort()
4935 status_t AudioFlinger::createAudioPatch( in createAudioPatch()
4948 status_t AudioFlinger::releaseAudioPatch(audio_patch_handle_t handle) in releaseAudioPatch()
4955 status_t AudioFlinger::listAudioPatches( in listAudioPatches()
4965 status_t AudioFlinger::getAudioMixPort(const struct audio_port_v7 *devicePort, in getAudioMixPort()
4980 status_t AudioFlinger::setTracksInternalMute( in setTracksInternalMute()
4997 status_t AudioFlinger::resetReferencesForTest() { in resetReferencesForTest()
5006 status_t AudioFlinger::onTransactWrapper(TransactionCode code, in onTransactWrapper()