Searched refs:soundDoseManager (Results 1 – 1 of 1) sorted by relevance
270 sp<SoundDoseManager> soundDoseManager; in onMomentaryExposureWarning() local273 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() local306 soundDoseManager = mSoundDoseManager.promote(); in onNewMelValues()307 if (soundDoseManager == nullptr) { in onNewMelValues()[all …]