1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version 29 -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/media/libaudioclient/audioclient-types-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/av-types-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/media/libaudioclient/effect-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/native/libs/permission/framework-permission-aidl_interface/preprocessed.aidl -pout/soong/.intermediates/frameworks/av/media/libshmem/shared-file-region-aidl_interface/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/av/media/libaudioclient/audioflinger-aidl-cpp-source/gen/staging/android/media/ISoundDoseCallback.cpp.d -h out/soong/.intermediates/frameworks/av/media/libaudioclient/audioflinger-aidl-cpp-source/gen/include/staging -o out/soong/.intermediates/frameworks/av/media/libaudioclient/audioflinger-aidl-cpp-source/gen/staging -Nframeworks/av/media/libaudioclient/aidl frameworks/av/media/libaudioclient/aidl/android/media/ISoundDoseCallback.aidl
4  *
5  * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..).
6  * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER
7  * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE.
8  */
9 #pragma once
10 
11 #include <android/media/SoundDoseRecord.h>
12 #include <binder/IBinder.h>
13 #include <binder/IInterface.h>
14 #include <binder/Status.h>
15 #include <binder/Trace.h>
16 #include <cstdint>
17 #include <utils/StrongPointer.h>
18 #include <vector>
19 
20 namespace android::media {
21 class SoundDoseRecord;
22 }  // namespace android::media
23 namespace android {
24 namespace media {
25 class LIBBINDER_EXPORTED ISoundDoseCallbackDelegator;
26 
27 class LIBBINDER_EXPORTED ISoundDoseCallback : public ::android::IInterface {
28 public:
29   typedef ISoundDoseCallbackDelegator DefaultDelegator;
30   DECLARE_META_INTERFACE(SoundDoseCallback)
31   virtual ::android::binder::Status onMomentaryExposure(float currentMel, int32_t deviceId) = 0;
32   virtual ::android::binder::Status onNewCsdValue(float currentCsd, const ::std::vector<::android::media::SoundDoseRecord>& records) = 0;
33 };  // class ISoundDoseCallback
34 
35 class LIBBINDER_EXPORTED ISoundDoseCallbackDefault : public ISoundDoseCallback {
36 public:
onAsBinder()37   ::android::IBinder* onAsBinder() override {
38     return nullptr;
39   }
onMomentaryExposure(float,int32_t)40   ::android::binder::Status onMomentaryExposure(float /*currentMel*/, int32_t /*deviceId*/) override {
41     return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION);
42   }
onNewCsdValue(float,const::std::vector<::android::media::SoundDoseRecord> &)43   ::android::binder::Status onNewCsdValue(float /*currentCsd*/, const ::std::vector<::android::media::SoundDoseRecord>& /*records*/) override {
44     return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION);
45   }
46 };  // class ISoundDoseCallbackDefault
47 }  // namespace media
48 }  // namespace android
49