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 1 --hash notfrozen -t --stability vintf --min_sdk_version 33 -pout/soong/.intermediates/hardware/interfaces/contexthub/aidl/android.hardware.contexthub_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/socket/aidl/android.hardware.bluetooth.socket-V1-ndk-source/gen/staging/android/hardware/bluetooth/socket/IBluetoothSocket.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/socket/aidl/android.hardware.bluetooth.socket-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/socket/aidl/android.hardware.bluetooth.socket-V1-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/socket/aidl hardware/interfaces/bluetooth/socket/aidl/android/hardware/bluetooth/socket/IBluetoothSocket.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/socket/IBluetoothSocketCallback.h>
18 #include <aidl/android/hardware/bluetooth/socket/SocketCapabilities.h>
19 #include <aidl/android/hardware/bluetooth/socket/SocketContext.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl::android::hardware::bluetooth::socket {
25 class IBluetoothSocketCallback;
26 class SocketCapabilities;
27 class SocketContext;
28 }  // namespace aidl::android::hardware::bluetooth::socket
29 namespace aidl {
30 namespace android {
31 namespace hardware {
32 namespace bluetooth {
33 namespace socket {
34 class IBluetoothSocketDelegator;
35 
36 class IBluetoothSocket : public ::ndk::ICInterface {
37 public:
38   typedef IBluetoothSocketDelegator DefaultDelegator;
39   static const char* descriptor;
40   IBluetoothSocket();
41   virtual ~IBluetoothSocket();
42 
43   static inline const int32_t version = 1;
44   static inline const std::string hash = "notfrozen";
45   static constexpr uint32_t TRANSACTION_registerCallback = FIRST_CALL_TRANSACTION + 0;
46   static constexpr uint32_t TRANSACTION_getSocketCapabilities = FIRST_CALL_TRANSACTION + 1;
47   static constexpr uint32_t TRANSACTION_opened = FIRST_CALL_TRANSACTION + 2;
48   static constexpr uint32_t TRANSACTION_closed = FIRST_CALL_TRANSACTION + 3;
49 
50   static std::shared_ptr<IBluetoothSocket> fromBinder(const ::ndk::SpAIBinder& binder);
51   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothSocket>& instance);
52   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothSocket>* instance);
53   static bool setDefaultImpl(const std::shared_ptr<IBluetoothSocket>& impl);
54   static const std::shared_ptr<IBluetoothSocket>& getDefaultImpl();
55   virtual ::ndk::ScopedAStatus registerCallback(const std::shared_ptr<::aidl::android::hardware::bluetooth::socket::IBluetoothSocketCallback>& in_callback) = 0;
56   virtual ::ndk::ScopedAStatus getSocketCapabilities(::aidl::android::hardware::bluetooth::socket::SocketCapabilities* _aidl_return) = 0;
57   virtual ::ndk::ScopedAStatus opened(const ::aidl::android::hardware::bluetooth::socket::SocketContext& in_context) = 0;
58   virtual ::ndk::ScopedAStatus closed(int64_t in_socketId) = 0;
59   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
60   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
61 private:
62   static std::shared_ptr<IBluetoothSocket> default_impl;
63 };
64 class IBluetoothSocketDefault : public IBluetoothSocket {
65 public:
66   ::ndk::ScopedAStatus registerCallback(const std::shared_ptr<::aidl::android::hardware::bluetooth::socket::IBluetoothSocketCallback>& in_callback) override;
67   ::ndk::ScopedAStatus getSocketCapabilities(::aidl::android::hardware::bluetooth::socket::SocketCapabilities* _aidl_return) override;
68   ::ndk::ScopedAStatus opened(const ::aidl::android::hardware::bluetooth::socket::SocketContext& in_context) override;
69   ::ndk::ScopedAStatus closed(int64_t in_socketId) override;
70   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
71   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
72   ::ndk::SpAIBinder asBinder() override;
73   bool isRemote() override;
74 };
75 }  // namespace socket
76 }  // namespace bluetooth
77 }  // namespace hardware
78 }  // namespace android
79 }  // namespace aidl
80