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/IBluetoothLe.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/IBluetoothLe.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/IBluetoothLe.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 BnBluetoothLe : public ::ndk::BnCInterface<IBluetoothLe> {
28 public:
29   BnBluetoothLe();
30   virtual ~BnBluetoothLe();
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 IBluetoothLeDelegator : public BnBluetoothLe {
38 public:
IBluetoothLeDelegator(const std::shared_ptr<IBluetoothLe> & impl)39   explicit IBluetoothLeDelegator(const std::shared_ptr<IBluetoothLe> &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 != IBluetoothLe::version) {
45         __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed.");
46      }
47   }
48 
isEnabled(bool * _aidl_return)49   ::ndk::ScopedAStatus isEnabled(bool* _aidl_return) override {
50     return _impl->isEnabled(_aidl_return);
51   }
setEnabled(bool in_enabled)52   ::ndk::ScopedAStatus setEnabled(bool in_enabled) override {
53     return _impl->setEnabled(in_enabled);
54   }
supportsOffloadReconfiguration(bool * _aidl_return)55   ::ndk::ScopedAStatus supportsOffloadReconfiguration(bool* _aidl_return) override {
56     return _impl->supportsOffloadReconfiguration(_aidl_return);
57   }
reconfigureOffload(const std::vector<::aidl::android::hardware::audio::core::VendorParameter> & in_parameters)58   ::ndk::ScopedAStatus reconfigureOffload(const std::vector<::aidl::android::hardware::audio::core::VendorParameter>& in_parameters) override {
59     return _impl->reconfigureOffload(in_parameters);
60   }
61 protected:
62 private:
63   std::shared_ptr<IBluetoothLe> _impl;
64 };
65 
66 }  // namespace core
67 }  // namespace audio
68 }  // namespace hardware
69 }  // namespace android
70 }  // namespace aidl
71