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 -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.effect_interface/3/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core.sounddose_interface/3/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.core/2 --previous_hash 003735b3fd3c94c53b02a6eb5e099731f7062610 --ninja -d out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging/android/hardware/audio/core/IStreamCommon.cpp.d -h out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/audio/aidl/android.hardware.audio.core-V3-ndk-source/gen/staging -Nhardware/interfaces/audio/aidl hardware/interfaces/audio/aidl/android/hardware/audio/core/IStreamCommon.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/IStreamCommon.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 class BnStreamCommon : public ::ndk::BnCInterface<IStreamCommon> {
28 public:
29   BnStreamCommon();
30   virtual ~BnStreamCommon();
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 IStreamCommonDelegator : public BnStreamCommon {
38 public:
IStreamCommonDelegator(const std::shared_ptr<IStreamCommon> & impl)39   explicit IStreamCommonDelegator(const std::shared_ptr<IStreamCommon> &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 != IStreamCommon::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
close()49   ::ndk::ScopedAStatus close() override {
50     return _impl->close();
51   }
prepareToClose()52   ::ndk::ScopedAStatus prepareToClose() override {
53     return _impl->prepareToClose();
54   }
updateHwAvSyncId(int32_t in_hwAvSyncId)55   ::ndk::ScopedAStatus updateHwAvSyncId(int32_t in_hwAvSyncId) override {
56     return _impl->updateHwAvSyncId(in_hwAvSyncId);
57   }
getVendorParameters(const std::vector<std::string> & in_ids,std::vector<::aidl::android::hardware::audio::core::VendorParameter> * _aidl_return)58   ::ndk::ScopedAStatus getVendorParameters(const std::vector<std::string>& in_ids, std::vector<::aidl::android::hardware::audio::core::VendorParameter>* _aidl_return) override {
59     return _impl->getVendorParameters(in_ids, _aidl_return);
60   }
setVendorParameters(const std::vector<::aidl::android::hardware::audio::core::VendorParameter> & in_parameters,bool in_async)61   ::ndk::ScopedAStatus setVendorParameters(const std::vector<::aidl::android::hardware::audio::core::VendorParameter>& in_parameters, bool in_async) override {
62     return _impl->setVendorParameters(in_parameters, in_async);
63   }
addEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect> & in_effect)64   ::ndk::ScopedAStatus addEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) override {
65     return _impl->addEffect(in_effect);
66   }
removeEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect> & in_effect)67   ::ndk::ScopedAStatus removeEffect(const std::shared_ptr<::aidl::android::hardware::audio::effect::IEffect>& in_effect) override {
68     return _impl->removeEffect(in_effect);
69   }
70 protected:
71 private:
72   std::shared_ptr<IStreamCommon> _impl;
73 };
74 
75 }  // namespace core
76 }  // namespace audio
77 }  // namespace hardware
78 }  // namespace android
79 }  // namespace aidl
80