1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash f0eb2eb6d3b970cef8fb1b6e22c4ec39a4da5119 -t --stability vintf --min_sdk_version 33 --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/aidl/android.hardware.bluetooth-V1-ndk-source/gen/staging/android/hardware/bluetooth/IBluetoothHciCallbacks.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/aidl/android.hardware.bluetooth-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/aidl/android.hardware.bluetooth-V1-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/aidl/aidl_api/android.hardware.bluetooth/1 hardware/interfaces/bluetooth/aidl/aidl_api/android.hardware.bluetooth/1/android/hardware/bluetooth/IBluetoothHciCallbacks.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/bluetooth/IBluetoothHciCallbacks.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 bluetooth { 26 class BnBluetoothHciCallbacks : public ::ndk::BnCInterface<IBluetoothHciCallbacks> { 27 public: 28 BnBluetoothHciCallbacks(); 29 virtual ~BnBluetoothHciCallbacks(); 30 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) final; 31 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) final; 32 protected: 33 ::ndk::SpAIBinder createBinder() override; 34 private: 35 }; 36 class IBluetoothHciCallbacksDelegator : public BnBluetoothHciCallbacks { 37 public: IBluetoothHciCallbacksDelegator(const std::shared_ptr<IBluetoothHciCallbacks> & impl)38 explicit IBluetoothHciCallbacksDelegator(const std::shared_ptr<IBluetoothHciCallbacks> &impl) : _impl(impl) { 39 int32_t _impl_ver = 0; 40 if (!impl->getInterfaceVersion(&_impl_ver).isOk()) {; 41 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Delegator failed to get version of the implementation."); 42 } 43 if (_impl_ver != IBluetoothHciCallbacks::version) { 44 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 45 } 46 } 47 aclDataReceived(const std::vector<uint8_t> & in_data)48 ::ndk::ScopedAStatus aclDataReceived(const std::vector<uint8_t>& in_data) override { 49 return _impl->aclDataReceived(in_data); 50 } hciEventReceived(const std::vector<uint8_t> & in_event)51 ::ndk::ScopedAStatus hciEventReceived(const std::vector<uint8_t>& in_event) override { 52 return _impl->hciEventReceived(in_event); 53 } initializationComplete(::aidl::android::hardware::bluetooth::Status in_status)54 ::ndk::ScopedAStatus initializationComplete(::aidl::android::hardware::bluetooth::Status in_status) override { 55 return _impl->initializationComplete(in_status); 56 } isoDataReceived(const std::vector<uint8_t> & in_data)57 ::ndk::ScopedAStatus isoDataReceived(const std::vector<uint8_t>& in_data) override { 58 return _impl->isoDataReceived(in_data); 59 } scoDataReceived(const std::vector<uint8_t> & in_data)60 ::ndk::ScopedAStatus scoDataReceived(const std::vector<uint8_t>& in_data) override { 61 return _impl->scoDataReceived(in_data); 62 } 63 protected: 64 private: 65 std::shared_ptr<IBluetoothHciCallbacks> _impl; 66 }; 67 68 } // namespace bluetooth 69 } // namespace hardware 70 } // namespace android 71 } // namespace aidl 72