1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation --structured --version 3 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl --previous_api_dir=hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.core.sounddose/2 --previous_hash daed2ce165b383deb25a388fb04396a6b53746f3 --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose-V3-ndk-source/gen/staging/android/hardware/audio/core/sounddose/ISoundDose.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/core/sounddose/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 "aidl/android/hardware/audio/core/sounddose/ISoundDose.h" 12 13 #include <android/binder_ibinder.h> 14 #include <cassert> 15 16 #ifndef __BIONIC__ 17 #ifndef __assert2 18 #define __assert2(a,b,c,d) ((void)0) 19 #endif 20 #endif 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace audio { 26 namespace core { 27 namespace sounddose { 28 class BnSoundDose : public ::ndk::BnCInterface<ISoundDose> { 29 public: 30 BnSoundDose(); 31 virtual ~BnSoundDose(); 32 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final; 33 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final; 34 protected: 35 ::ndk::SpAIBinder createBinder() override; 36 private: 37 }; 38 class ISoundDoseDelegator : public BnSoundDose { 39 public: ISoundDoseDelegator(const std::shared_ptr<ISoundDose> & impl)40 explicit ISoundDoseDelegator(const std::shared_ptr<ISoundDose> &impl) : _impl(impl) { 41 int32_t _impl_ver = 0; 42 if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {; 43 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation."); 44 } 45 if (_impl_ver != ISoundDose::version) { 46 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 47 } 48 } 49 setOutputRs2UpperBound(float in_rs2ValueDbA)50 ::ndk::ScopedAStatus setOutputRs2UpperBound(float in_rs2ValueDbA) override { 51 return _impl->setOutputRs2UpperBound(in_rs2ValueDbA); 52 } getOutputRs2UpperBound(float * _aidl_return)53 ::ndk::ScopedAStatus getOutputRs2UpperBound(float* _aidl_return) override { 54 return _impl->getOutputRs2UpperBound(_aidl_return); 55 } registerSoundDoseCallback(const std::shared_ptr<::aidl::android::hardware::audio::core::sounddose::ISoundDose::IHalSoundDoseCallback> & in_callback)56 ::ndk::ScopedAStatus registerSoundDoseCallback(const std::shared_ptr<::aidl::android::hardware::audio::core::sounddose::ISoundDose::IHalSoundDoseCallback>& in_callback) override { 57 return _impl->registerSoundDoseCallback(in_callback); 58 } 59 protected: 60 private: 61 std::shared_ptr<ISoundDose> _impl; 62 }; 63 64 } // namespace sounddose 65 } // namespace core 66 } // namespace audio 67 } // namespace hardware 68 } // namespace android 69 } // namespace aidl 70