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/IBluetoothChannelSounding.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/IBluetoothChannelSounding.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 <cstdint> 12 #include <memory> 13 #include <optional> 14 #include <string> 15 #include <vector> 16 #include <android/binder_interface_utils.h> 17 #include <aidl/android/hardware/bluetooth/ranging/BluetoothChannelSoundingParameters.h> 18 #include <aidl/android/hardware/bluetooth/ranging/CsSecurityLevel.h> 19 #include <aidl/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSession.h> 20 #include <aidl/android/hardware/bluetooth/ranging/IBluetoothChannelSoundingSessionCallback.h> 21 #include <aidl/android/hardware/bluetooth/ranging/SessionType.h> 22 #include <aidl/android/hardware/bluetooth/ranging/VendorSpecificData.h> 23 #ifdef BINDER_STABILITY_SUPPORT 24 #include <android/binder_stability.h> 25 #endif // BINDER_STABILITY_SUPPORT 26 27 namespace aidl::android::hardware::bluetooth::ranging { 28 class BluetoothChannelSoundingParameters; 29 class IBluetoothChannelSoundingSession; 30 class IBluetoothChannelSoundingSessionCallback; 31 class VendorSpecificData; 32 } // namespace aidl::android::hardware::bluetooth::ranging 33 namespace aidl { 34 namespace android { 35 namespace hardware { 36 namespace bluetooth { 37 namespace ranging { 38 class IBluetoothChannelSoundingDelegator; 39 40 class IBluetoothChannelSounding : public ::ndk::ICInterface { 41 public: 42 typedef IBluetoothChannelSoundingDelegator DefaultDelegator; 43 static const char* descriptor; 44 IBluetoothChannelSounding(); 45 virtual ~IBluetoothChannelSounding(); 46 47 static inline const int32_t version = true ? 1 : 2; 48 static inline const std::string hash = true ? "d257bb74ef61a4cbb5854f4663604dd491b4a7bf" : "notfrozen"; 49 static constexpr uint32_t TRANSACTION_getVendorSpecificData = FIRST_CALL_TRANSACTION + 0; 50 static constexpr uint32_t TRANSACTION_getSupportedSessionTypes = FIRST_CALL_TRANSACTION + 1; 51 static constexpr uint32_t TRANSACTION_getMaxSupportedCsSecurityLevel = FIRST_CALL_TRANSACTION + 2; 52 static constexpr uint32_t TRANSACTION_openSession = FIRST_CALL_TRANSACTION + 3; 53 static constexpr uint32_t TRANSACTION_getSupportedCsSecurityLevels = FIRST_CALL_TRANSACTION + 4; 54 55 static std::shared_ptr<IBluetoothChannelSounding> fromBinder(const ::ndk::SpAIBinder& binder); 56 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothChannelSounding>& instance); 57 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothChannelSounding>* instance); 58 static bool setDefaultImpl(const std::shared_ptr<IBluetoothChannelSounding>& impl); 59 static const std::shared_ptr<IBluetoothChannelSounding>& getDefaultImpl(); 60 virtual ::ndk::ScopedAStatus getVendorSpecificData(std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::VendorSpecificData>>>* _aidl_return) = 0; 61 virtual ::ndk::ScopedAStatus getSupportedSessionTypes(std::optional<std::vector<::aidl::android::hardware::bluetooth::ranging::SessionType>>* _aidl_return) = 0; 62 virtual ::ndk::ScopedAStatus getMaxSupportedCsSecurityLevel(::aidl::android::hardware::bluetooth::ranging::CsSecurityLevel* _aidl_return) __attribute__((deprecated("use getSupportedCsSecurityLevels() instead"))) = 0; 63 virtual ::ndk::ScopedAStatus openSession(const ::aidl::android::hardware::bluetooth::ranging::BluetoothChannelSoundingParameters& in_params, const std::shared_ptr<::aidl::android::hardware::bluetooth::ranging::IBluetoothChannelSoundingSessionCallback>& in_callback, std::shared_ptr<::aidl::android::hardware::bluetooth::ranging::IBluetoothChannelSoundingSession>* _aidl_return) = 0; 64 virtual ::ndk::ScopedAStatus getSupportedCsSecurityLevels(std::vector<::aidl::android::hardware::bluetooth::ranging::CsSecurityLevel>* _aidl_return) = 0; 65 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 66 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 67 private: 68 static std::shared_ptr<IBluetoothChannelSounding> default_impl; 69 }; 70 class IBluetoothChannelSoundingDefault : public IBluetoothChannelSounding { 71 public: 72 ::ndk::ScopedAStatus getVendorSpecificData(std::optional<std::vector<std::optional<::aidl::android::hardware::bluetooth::ranging::VendorSpecificData>>>* _aidl_return) override; 73 ::ndk::ScopedAStatus getSupportedSessionTypes(std::optional<std::vector<::aidl::android::hardware::bluetooth::ranging::SessionType>>* _aidl_return) override; 74 ::ndk::ScopedAStatus getMaxSupportedCsSecurityLevel(::aidl::android::hardware::bluetooth::ranging::CsSecurityLevel* _aidl_return) override __attribute__((deprecated("use getSupportedCsSecurityLevels() instead"))); 75 ::ndk::ScopedAStatus openSession(const ::aidl::android::hardware::bluetooth::ranging::BluetoothChannelSoundingParameters& in_params, const std::shared_ptr<::aidl::android::hardware::bluetooth::ranging::IBluetoothChannelSoundingSessionCallback>& in_callback, std::shared_ptr<::aidl::android::hardware::bluetooth::ranging::IBluetoothChannelSoundingSession>* _aidl_return) override; 76 ::ndk::ScopedAStatus getSupportedCsSecurityLevels(std::vector<::aidl::android::hardware::bluetooth::ranging::CsSecurityLevel>* _aidl_return) override; 77 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 78 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 79 ::ndk::SpAIBinder asBinder() override; 80 bool isRemote() override; 81 }; 82 } // namespace ranging 83 } // namespace bluetooth 84 } // namespace hardware 85 } // namespace android 86 } // namespace aidl 87