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/IBluetoothHci.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/IBluetoothHci.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/IBluetoothHciCallbacks.h>
18 #ifdef BINDER_STABILITY_SUPPORT
19 #include <android/binder_stability.h>
20 #endif  // BINDER_STABILITY_SUPPORT
21 
22 namespace aidl::android::hardware::bluetooth {
23 class IBluetoothHciCallbacks;
24 }  // namespace aidl::android::hardware::bluetooth
25 namespace aidl {
26 namespace android {
27 namespace hardware {
28 namespace bluetooth {
29 class IBluetoothHciDelegator;
30 
31 class IBluetoothHci : public ::ndk::ICInterface {
32 public:
33   typedef IBluetoothHciDelegator DefaultDelegator;
34   static const char* descriptor;
35   IBluetoothHci();
36   virtual ~IBluetoothHci();
37 
38   static inline const int32_t version = 1;
39   static inline const std::string hash = "f0eb2eb6d3b970cef8fb1b6e22c4ec39a4da5119";
40   static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 0;
41   static constexpr uint32_t TRANSACTION_initialize = FIRST_CALL_TRANSACTION + 1;
42   static constexpr uint32_t TRANSACTION_sendAclData = FIRST_CALL_TRANSACTION + 2;
43   static constexpr uint32_t TRANSACTION_sendHciCommand = FIRST_CALL_TRANSACTION + 3;
44   static constexpr uint32_t TRANSACTION_sendIsoData = FIRST_CALL_TRANSACTION + 4;
45   static constexpr uint32_t TRANSACTION_sendScoData = FIRST_CALL_TRANSACTION + 5;
46 
47   static std::shared_ptr<IBluetoothHci> fromBinder(const ::ndk::SpAIBinder& binder);
48   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothHci>& instance);
49   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothHci>* instance);
50   static bool setDefaultImpl(const std::shared_ptr<IBluetoothHci>& impl);
51   static const std::shared_ptr<IBluetoothHci>& getDefaultImpl();
52   virtual ::ndk::ScopedAStatus close() = 0;
53   virtual ::ndk::ScopedAStatus initialize(const std::shared_ptr<::aidl::android::hardware::bluetooth::IBluetoothHciCallbacks>& in_callback) = 0;
54   virtual ::ndk::ScopedAStatus sendAclData(const std::vector<uint8_t>& in_data) = 0;
55   virtual ::ndk::ScopedAStatus sendHciCommand(const std::vector<uint8_t>& in_command) = 0;
56   virtual ::ndk::ScopedAStatus sendIsoData(const std::vector<uint8_t>& in_data) = 0;
57   virtual ::ndk::ScopedAStatus sendScoData(const std::vector<uint8_t>& in_data) = 0;
58   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
59   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
60 private:
61   static std::shared_ptr<IBluetoothHci> default_impl;
62 };
63 class IBluetoothHciDefault : public IBluetoothHci {
64 public:
65   ::ndk::ScopedAStatus close() override;
66   ::ndk::ScopedAStatus initialize(const std::shared_ptr<::aidl::android::hardware::bluetooth::IBluetoothHciCallbacks>& in_callback) override;
67   ::ndk::ScopedAStatus sendAclData(const std::vector<uint8_t>& in_data) override;
68   ::ndk::ScopedAStatus sendHciCommand(const std::vector<uint8_t>& in_command) override;
69   ::ndk::ScopedAStatus sendIsoData(const std::vector<uint8_t>& in_data) override;
70   ::ndk::ScopedAStatus sendScoData(const std::vector<uint8_t>& in_data) override;
71   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
72   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
73   ::ndk::SpAIBinder asBinder() override;
74   bool isRemote() override;
75 };
76 }  // namespace bluetooth
77 }  // namespace hardware
78 }  // namespace android
79 }  // namespace aidl
80