Home
last modified time | relevance | path

Searched refs:soundDoseManager (Results 1 – 1 of 1) sorted by relevance

/frameworks/av/services/audioflinger/sounddose/
DSoundDoseManager.cpp270 sp<SoundDoseManager> soundDoseManager; in onMomentaryExposureWarning() local
273 soundDoseManager = mSoundDoseManager.promote(); in onMomentaryExposureWarning()
274 if (soundDoseManager == nullptr) { in onMomentaryExposureWarning()
279 if (!soundDoseManager->useHalSoundDose()) { in onMomentaryExposureWarning()
284 auto id = soundDoseManager->getIdForAudioDevice(in_audioDevice); in onMomentaryExposureWarning()
292 float attenuation = soundDoseManager->getAttenuationForDeviceId(id); in onMomentaryExposureWarning()
295 soundDoseManager->onMomentaryExposure(in_currentDbA - attenuation, id); in onMomentaryExposureWarning()
303 sp<SoundDoseManager> soundDoseManager; in onNewMelValues() local
306 soundDoseManager = mSoundDoseManager.promote(); in onNewMelValues()
307 if (soundDoseManager == nullptr) { in onNewMelValues()
[all …]