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/ISoundDose.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/ISoundDose.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/ISoundDose.h> 13 #include <android/media/BnSoundDose.h> 14 #include <binder/Delegate.h> 15 16 17 namespace android { 18 namespace media { 19 class LIBBINDER_EXPORTED BnSoundDose : public ::android::BnInterface<ISoundDose> { 20 public: 21 static constexpr uint32_t TRANSACTION_setOutputRs2UpperBound = ::android::IBinder::FIRST_CALL_TRANSACTION + 0; 22 static constexpr uint32_t TRANSACTION_resetCsd = ::android::IBinder::FIRST_CALL_TRANSACTION + 1; 23 static constexpr uint32_t TRANSACTION_updateAttenuation = ::android::IBinder::FIRST_CALL_TRANSACTION + 2; 24 static constexpr uint32_t TRANSACTION_setCsdEnabled = ::android::IBinder::FIRST_CALL_TRANSACTION + 3; 25 static constexpr uint32_t TRANSACTION_initCachedAudioDeviceCategories = ::android::IBinder::FIRST_CALL_TRANSACTION + 4; 26 static constexpr uint32_t TRANSACTION_setAudioDeviceCategory = ::android::IBinder::FIRST_CALL_TRANSACTION + 5; 27 static constexpr uint32_t TRANSACTION_getOutputRs2UpperBound = ::android::IBinder::FIRST_CALL_TRANSACTION + 6; 28 static constexpr uint32_t TRANSACTION_getCsd = ::android::IBinder::FIRST_CALL_TRANSACTION + 7; 29 static constexpr uint32_t TRANSACTION_isSoundDoseHalSupported = ::android::IBinder::FIRST_CALL_TRANSACTION + 8; 30 static constexpr uint32_t TRANSACTION_forceUseFrameworkMel = ::android::IBinder::FIRST_CALL_TRANSACTION + 9; 31 static constexpr uint32_t TRANSACTION_forceComputeCsdOnAllDevices = ::android::IBinder::FIRST_CALL_TRANSACTION + 10; 32 explicit BnSoundDose(); 33 ::android::status_t onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) override; 34 }; // class BnSoundDose 35 36 class LIBBINDER_EXPORTED ISoundDoseDelegator : public BnSoundDose { 37 public: ISoundDoseDelegator(const::android::sp<ISoundDose> & impl)38 explicit ISoundDoseDelegator(const ::android::sp<ISoundDose> &impl) : _aidl_delegate(impl) {} 39 getImpl()40 ::android::sp<ISoundDose> getImpl() { return _aidl_delegate; } setOutputRs2UpperBound(float rs2Value)41 ::android::binder::Status setOutputRs2UpperBound(float rs2Value) override { 42 return _aidl_delegate->setOutputRs2UpperBound(rs2Value); 43 } resetCsd(float currentCsd,const::std::vector<::android::media::SoundDoseRecord> & records)44 ::android::binder::Status resetCsd(float currentCsd, const ::std::vector<::android::media::SoundDoseRecord>& records) override { 45 return _aidl_delegate->resetCsd(currentCsd, records); 46 } updateAttenuation(float attenuationDB,int32_t device)47 ::android::binder::Status updateAttenuation(float attenuationDB, int32_t device) override { 48 return _aidl_delegate->updateAttenuation(attenuationDB, device); 49 } setCsdEnabled(bool enabled)50 ::android::binder::Status setCsdEnabled(bool enabled) override { 51 return _aidl_delegate->setCsdEnabled(enabled); 52 } initCachedAudioDeviceCategories(const::std::vector<::android::media::ISoundDose::AudioDeviceCategory> & audioDevices)53 ::android::binder::Status initCachedAudioDeviceCategories(const ::std::vector<::android::media::ISoundDose::AudioDeviceCategory>& audioDevices) override { 54 return _aidl_delegate->initCachedAudioDeviceCategories(audioDevices); 55 } setAudioDeviceCategory(const::android::media::ISoundDose::AudioDeviceCategory & audioDevice)56 ::android::binder::Status setAudioDeviceCategory(const ::android::media::ISoundDose::AudioDeviceCategory& audioDevice) override { 57 return _aidl_delegate->setAudioDeviceCategory(audioDevice); 58 } getOutputRs2UpperBound(float * _aidl_return)59 ::android::binder::Status getOutputRs2UpperBound(float* _aidl_return) override { 60 return _aidl_delegate->getOutputRs2UpperBound(_aidl_return); 61 } getCsd(float * _aidl_return)62 ::android::binder::Status getCsd(float* _aidl_return) override { 63 return _aidl_delegate->getCsd(_aidl_return); 64 } isSoundDoseHalSupported(bool * _aidl_return)65 ::android::binder::Status isSoundDoseHalSupported(bool* _aidl_return) override { 66 return _aidl_delegate->isSoundDoseHalSupported(_aidl_return); 67 } forceUseFrameworkMel(bool useFrameworkMel)68 ::android::binder::Status forceUseFrameworkMel(bool useFrameworkMel) override { 69 return _aidl_delegate->forceUseFrameworkMel(useFrameworkMel); 70 } forceComputeCsdOnAllDevices(bool computeCsdOnAllDevices)71 ::android::binder::Status forceComputeCsdOnAllDevices(bool computeCsdOnAllDevices) override { 72 return _aidl_delegate->forceComputeCsdOnAllDevices(computeCsdOnAllDevices); 73 } 74 private: 75 ::android::sp<ISoundDose> _aidl_delegate; 76 }; // class ISoundDoseDelegator 77 } // namespace media 78 } // namespace android 79