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 2 --hash notfrozen -t --stability vintf --min_sdk_version 33 --previous_api_dir=hardware/interfaces/bluetooth/ranging/aidl/aidl_api/android.hardware.bluetooth.ranging/1 --previous_hash d257bb74ef61a4cbb5854f4663604dd491b4a7bf --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSession.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/ranging/aidl hardware/interfaces/bluetooth/ranging/aidl/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSession.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/ranging/IBluetoothChannelSoundingSession.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 namespace ranging { 27 class BnBluetoothChannelSoundingSession : public ::ndk::BnCInterface<IBluetoothChannelSoundingSession> { 28 public: 29 BnBluetoothChannelSoundingSession(); 30 virtual ~BnBluetoothChannelSoundingSession(); 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 IBluetoothChannelSoundingSessionDelegator : public BnBluetoothChannelSoundingSession { 38 public: IBluetoothChannelSoundingSessionDelegator(const std::shared_ptr<IBluetoothChannelSoundingSession> & impl)39 explicit IBluetoothChannelSoundingSessionDelegator(const std::shared_ptr<IBluetoothChannelSoundingSession> &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 != IBluetoothChannelSoundingSession::version) { 45 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 46 } 47 } 48 getVendorSpecificReplies(std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::VendorSpecificData>>> * _aidl_return)49 ::ndk::ScopedAStatus getVendorSpecificReplies(std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::VendorSpecificData>>>* _aidl_return) override { 50 return _impl->getVendorSpecificReplies(_aidl_return); 51 } getSupportedResultTypes(std::vector<::aidl::android::hardware::bluetooth::ranging::ResultType> * _aidl_return)52 ::ndk::ScopedAStatus getSupportedResultTypes(std::vector<::aidl::android::hardware::bluetooth::ranging::ResultType>* _aidl_return) override { 53 return _impl->getSupportedResultTypes(_aidl_return); 54 } isAbortedProcedureRequired(bool * _aidl_return)55 ::ndk::ScopedAStatus isAbortedProcedureRequired(bool* _aidl_return) override { 56 return _impl->isAbortedProcedureRequired(_aidl_return); 57 } writeRawData(const::aidl::android::hardware::bluetooth::ranging::ChannelSoudingRawData & in_rawData)58 ::ndk::ScopedAStatus writeRawData(const ::aidl::android::hardware::bluetooth::ranging::ChannelSoudingRawData& in_rawData) override { 59 return _impl->writeRawData(in_rawData); 60 } close(::aidl::android::hardware::bluetooth::ranging::Reason in_reason)61 ::ndk::ScopedAStatus close(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override { 62 return _impl->close(in_reason); 63 } writeProcedureData(const::aidl::android::hardware::bluetooth::ranging::ChannelSoundingProcedureData & in_procedureData)64 ::ndk::ScopedAStatus writeProcedureData(const ::aidl::android::hardware::bluetooth::ranging::ChannelSoundingProcedureData& in_procedureData) override { 65 return _impl->writeProcedureData(in_procedureData); 66 } updateChannelSoundingConfig(const::aidl::android::hardware::bluetooth::ranging::Config & in_conifg)67 ::ndk::ScopedAStatus updateChannelSoundingConfig(const ::aidl::android::hardware::bluetooth::ranging::Config& in_conifg) override { 68 return _impl->updateChannelSoundingConfig(in_conifg); 69 } updateProcedureEnableConfig(const::aidl::android::hardware::bluetooth::ranging::ProcedureEnableConfig & in_procedureEnableConfig)70 ::ndk::ScopedAStatus updateProcedureEnableConfig(const ::aidl::android::hardware::bluetooth::ranging::ProcedureEnableConfig& in_procedureEnableConfig) override { 71 return _impl->updateProcedureEnableConfig(in_procedureEnableConfig); 72 } updateBleConnInterval(int32_t in_bleConnInterval)73 ::ndk::ScopedAStatus updateBleConnInterval(int32_t in_bleConnInterval) override { 74 return _impl->updateBleConnInterval(in_bleConnInterval); 75 } 76 protected: 77 private: 78 std::shared_ptr<IBluetoothChannelSoundingSession> _impl; 79 }; 80 81 } // namespace ranging 82 } // namespace bluetooth 83 } // namespace hardware 84 } // namespace android 85 } // namespace aidl 86