CSD: forward the native MEL exposure to AudioService
Added new aidl interface for the communication between the
SoundDoseManager and the SoundDoseHelper. Currently only the momentary
exposure warning is reported.
Test: manual
Bug: 257238734
Change-Id: I61560f81fedd31c30c39d676b7adf0ce087b495c
diff --git a/media/libaudioclient/IAudioFlinger.cpp b/media/libaudioclient/IAudioFlinger.cpp
index 6ad97d1..97b61a5 100644
--- a/media/libaudioclient/IAudioFlinger.cpp
+++ b/media/libaudioclient/IAudioFlinger.cpp
@@ -837,6 +837,11 @@
return NO_ERROR;
}
+status_t AudioFlingerClientAdapter::registerSoundDoseCallback(
+ const sp<media::ISoundDoseCallback> &callback) {
+ return statusTFromBinderStatus(mDelegate->registerSoundDoseCallback(callback));
+}
+
////////////////////////////////////////////////////////////////////////////////////////////////////
// AudioFlingerServerAdapter
AudioFlingerServerAdapter::AudioFlingerServerAdapter(
@@ -1355,4 +1360,10 @@
return Status::ok();
}
+Status AudioFlingerServerAdapter::registerSoundDoseCallback(
+ const sp<media::ISoundDoseCallback>& callback)
+{
+ return Status::fromStatusT(mDelegate->registerSoundDoseCallback(callback));
+}
+
} // namespace android