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 <binder/IInterface.h> 12 #include <android/media/ISoundDoseCallback.h> 13 #include <android/media/BnSoundDoseCallback.h> 14 #include <binder/Delegate.h> 15 16 17 namespace android { 18 namespace media { 19 class LIBBINDER_EXPORTED BnSoundDoseCallback : public ::android::BnInterface<ISoundDoseCallback> { 20 public: 21 static constexpr uint32_t TRANSACTION_onMomentaryExposure = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; 22 static constexpr uint32_t TRANSACTION_onNewCsdValue = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; 23 explicit BnSoundDoseCallback(); 24 ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; 25 }; // class BnSoundDoseCallback 26 27 class LIBBINDER_EXPORTED ISoundDoseCallbackDelegator : public BnSoundDoseCallback { 28 public: ISoundDoseCallbackDelegator(const::android::sp<ISoundDoseCallback> & impl)29 explicit ISoundDoseCallbackDelegator(const ::android::sp<ISoundDoseCallback> &impl) : _aidl_delegate(impl) {} 30 getImpl()31 ::android::sp<ISoundDoseCallback> getImpl() { return _aidl_delegate; } onMomentaryExposure(float currentMel,int32_t deviceId)32 ::android::binder::Status onMomentaryExposure(float currentMel, int32_t deviceId) override { 33 return _aidl_delegate->onMomentaryExposure(currentMel, deviceId); 34 } onNewCsdValue(float currentCsd,const::std::vector<::android::media::SoundDoseRecord> & records)35 ::android::binder::Status onNewCsdValue(float currentCsd, const ::std::vector<::android::media::SoundDoseRecord>& records) override { 36 return _aidl_delegate->onNewCsdValue(currentCsd, records); 37 } 38 private: 39 ::android::sp<ISoundDoseCallback> _aidl_delegate; 40 }; // class ISoundDoseCallbackDelegator 41 } // namespace media 42 } // namespace android 43