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/IBluetoothChannelSoundingSessionCallback.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/IBluetoothChannelSoundingSessionCallback.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/IBluetoothChannelSoundingSessionCallback.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 BnBluetoothChannelSoundingSessionCallback : public ::ndk::BnCInterface<IBluetoothChannelSoundingSessionCallback> { 28 public: 29 BnBluetoothChannelSoundingSessionCallback(); 30 virtual ~BnBluetoothChannelSoundingSessionCallback(); 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 IBluetoothChannelSoundingSessionCallbackDelegator : public BnBluetoothChannelSoundingSessionCallback { 38 public: IBluetoothChannelSoundingSessionCallbackDelegator(const std::shared_ptr<IBluetoothChannelSoundingSessionCallback> & impl)39 explicit IBluetoothChannelSoundingSessionCallbackDelegator(const std::shared_ptr<IBluetoothChannelSoundingSessionCallback> &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 != IBluetoothChannelSoundingSessionCallback::version) { 45 __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, "Mismatched versions of delegator and implementation is not allowed."); 46 } 47 } 48 onOpened(::aidl::android::hardware::bluetooth::ranging::Reason in_reason)49 ::ndk::ScopedAStatus onOpened(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override { 50 return _impl->onOpened(in_reason); 51 } onOpenFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason)52 ::ndk::ScopedAStatus onOpenFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override { 53 return _impl->onOpenFailed(in_reason); 54 } onResult(const::aidl::android::hardware::bluetooth::ranging::RangingResult & in_result)55 ::ndk::ScopedAStatus onResult(const ::aidl::android::hardware::bluetooth::ranging::RangingResult& in_result) override { 56 return _impl->onResult(in_result); 57 } onClose(::aidl::android::hardware::bluetooth::ranging::Reason in_reason)58 ::ndk::ScopedAStatus onClose(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override { 59 return _impl->onClose(in_reason); 60 } onCloseFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason)61 ::ndk::ScopedAStatus onCloseFailed(::aidl::android::hardware::bluetooth::ranging::Reason in_reason) override { 62 return _impl->onCloseFailed(in_reason); 63 } 64 protected: 65 private: 66 std::shared_ptr<IBluetoothChannelSoundingSessionCallback> _impl; 67 }; 68 69 } // namespace ranging 70 } // namespace bluetooth 71 } // namespace hardware 72 } // namespace android 73 } // namespace aidl 74