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 <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/Status.h> 18 #ifdef BINDER_STABILITY_SUPPORT 19 #include <android/binder_stability.h> 20 #endif // BINDER_STABILITY_SUPPORT 21 22 namespace aidl { 23 namespace android { 24 namespace hardware { 25 namespace bluetooth { 26 class IBluetoothHciCallbacksDelegator; 27 28 class IBluetoothHciCallbacks : public ::ndk::ICInterface { 29 public: 30 typedef IBluetoothHciCallbacksDelegator DefaultDelegator; 31 static const char* descriptor; 32 IBluetoothHciCallbacks(); 33 virtual ~IBluetoothHciCallbacks(); 34 35 static inline const int32_t version = 1; 36 static inline const std::string hash = "f0eb2eb6d3b970cef8fb1b6e22c4ec39a4da5119"; 37 static constexpr uint32_t TRANSACTION_aclDataReceived = FIRST_CALL_TRANSACTION + 0; 38 static constexpr uint32_t TRANSACTION_hciEventReceived = FIRST_CALL_TRANSACTION + 1; 39 static constexpr uint32_t TRANSACTION_initializationComplete = FIRST_CALL_TRANSACTION + 2; 40 static constexpr uint32_t TRANSACTION_isoDataReceived = FIRST_CALL_TRANSACTION + 3; 41 static constexpr uint32_t TRANSACTION_scoDataReceived = FIRST_CALL_TRANSACTION + 4; 42 43 static std::shared_ptr<IBluetoothHciCallbacks> fromBinder(const ::ndk::SpAIBinder& binder); 44 static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothHciCallbacks>& instance); 45 static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothHciCallbacks>* instance); 46 static bool setDefaultImpl(const std::shared_ptr<IBluetoothHciCallbacks>& impl); 47 static const std::shared_ptr<IBluetoothHciCallbacks>& getDefaultImpl(); 48 virtual ::ndk::ScopedAStatus aclDataReceived(const std::vector<uint8_t>& in_data) = 0; 49 virtual ::ndk::ScopedAStatus hciEventReceived(const std::vector<uint8_t>& in_event) = 0; 50 virtual ::ndk::ScopedAStatus initializationComplete(::aidl::android::hardware::bluetooth::Status in_status) = 0; 51 virtual ::ndk::ScopedAStatus isoDataReceived(const std::vector<uint8_t>& in_data) = 0; 52 virtual ::ndk::ScopedAStatus scoDataReceived(const std::vector<uint8_t>& in_data) = 0; 53 virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0; 54 virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0; 55 private: 56 static std::shared_ptr<IBluetoothHciCallbacks> default_impl; 57 }; 58 class IBluetoothHciCallbacksDefault : public IBluetoothHciCallbacks { 59 public: 60 ::ndk::ScopedAStatus aclDataReceived(const std::vector<uint8_t>& in_data) override; 61 ::ndk::ScopedAStatus hciEventReceived(const std::vector<uint8_t>& in_event) override; 62 ::ndk::ScopedAStatus initializationComplete(::aidl::android::hardware::bluetooth::Status in_status) override; 63 ::ndk::ScopedAStatus isoDataReceived(const std::vector<uint8_t>& in_data) override; 64 ::ndk::ScopedAStatus scoDataReceived(const std::vector<uint8_t>& in_data) override; 65 ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override; 66 ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override; 67 ::ndk::SpAIBinder asBinder() override; 68 bool isRemote() override; 69 }; 70 } // namespace bluetooth 71 } // namespace hardware 72 } // namespace android 73 } // namespace aidl 74