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.eraser.types_interface/1/preprocessed.aidl -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.common_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/audio/aidl/aidl_api/android.hardware.audio.effect/2 --previous_hash 54d5a2e1d59066b57e35eb7bcb5ebc72a1259c1c --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/staging/android/hardware/audio/effect/IEffect.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/effect/IEffect.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/effect/IEffect.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 effect {
27 class BnEffect : public ::ndk::BnCInterface<IEffect> {
28 public:
29   BnEffect();
30   virtual ~BnEffect();
31   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final;
32   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final;
33 protected:
34   ::ndk::SpAIBinder createBinder() override;
35 private:
36 };
37 class IEffectDelegator : public BnEffect {
38 public:
IEffectDelegator(const std::shared_ptr<IEffect> & impl)39   explicit IEffectDelegator(const std::shared_ptr<IEffect> &impl) : _impl(impl) {
40      int32_t _impl_ver = 0;
41      if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {;
42         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation.");
43      }
44      if (_impl_ver != IEffect::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
open(const::aidl::android::hardware::audio::effect::Parameter::Common & in_common,const std::optional<::aidl::android::hardware::audio::effect::Parameter::Specific> & in_specific,::aidl::android::hardware::audio::effect::IEffect::OpenEffectReturn * _aidl_return)49   ::ndk::ScopedAStatus open(const ::aidl::android::hardware::audio::effect::Parameter::Common& in_common, const std::optional<::aidl::android::hardware::audio::effect::Parameter::Specific>& in_specific, ::aidl::android::hardware::audio::effect::IEffect::OpenEffectReturn* _aidl_return) override {
50     return _impl->open(in_common, in_specific, _aidl_return);
51   }
close()52   ::ndk::ScopedAStatus close() override {
53     return _impl->close();
54   }
getDescriptor(::aidl::android::hardware::audio::effect::Descriptor * _aidl_return)55   ::ndk::ScopedAStatus getDescriptor(::aidl::android::hardware::audio::effect::Descriptor* _aidl_return) override {
56     return _impl->getDescriptor(_aidl_return);
57   }
command(::aidl::android::hardware::audio::effect::CommandId in_commandId)58   ::ndk::ScopedAStatus command(::aidl::android::hardware::audio::effect::CommandId in_commandId) override {
59     return _impl->command(in_commandId);
60   }
getState(::aidl::android::hardware::audio::effect::State * _aidl_return)61   ::ndk::ScopedAStatus getState(::aidl::android::hardware::audio::effect::State* _aidl_return) override {
62     return _impl->getState(_aidl_return);
63   }
setParameter(const::aidl::android::hardware::audio::effect::Parameter & in_param)64   ::ndk::ScopedAStatus setParameter(const ::aidl::android::hardware::audio::effect::Parameter& in_param) override {
65     return _impl->setParameter(in_param);
66   }
getParameter(const::aidl::android::hardware::audio::effect::Parameter::Id & in_paramId,::aidl::android::hardware::audio::effect::Parameter * _aidl_return)67   ::ndk::ScopedAStatus getParameter(const ::aidl::android::hardware::audio::effect::Parameter::Id& in_paramId, ::aidl::android::hardware::audio::effect::Parameter* _aidl_return) override {
68     return _impl->getParameter(in_paramId, _aidl_return);
69   }
reopen(::aidl::android::hardware::audio::effect::IEffect::OpenEffectReturn * _aidl_return)70   ::ndk::ScopedAStatus reopen(::aidl::android::hardware::audio::effect::IEffect::OpenEffectReturn* _aidl_return) override {
71     return _impl->reopen(_aidl_return);
72   }
73 protected:
74 private:
75   std::shared_ptr<IEffect> _impl;
76 };
77 
78 }  // namespace effect
79 }  // namespace audio
80 }  // namespace hardware
81 }  // namespace android
82 }  // namespace aidl
83