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/IBluetoothSocketCallback.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/IBluetoothSocketCallback.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/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 namespace socket {
27 class IBluetoothSocketCallbackDelegator;
28 
29 class IBluetoothSocketCallback : public ::ndk::ICInterface {
30 public:
31   typedef IBluetoothSocketCallbackDelegator DefaultDelegator;
32   static const char* descriptor;
33   IBluetoothSocketCallback();
34   virtual ~IBluetoothSocketCallback();
35 
36   static inline const int32_t version = 1;
37   static inline const std::string hash = "notfrozen";
38   static constexpr uint32_t TRANSACTION_openedComplete = FIRST_CALL_TRANSACTION + 0;
39   static constexpr uint32_t TRANSACTION_close = FIRST_CALL_TRANSACTION + 1;
40 
41   static std::shared_ptr<IBluetoothSocketCallback> fromBinder(const ::ndk::SpAIBinder& binder);
42   static binder_status_t writeToParcel(AParcel* parcel, const std::shared_ptr<IBluetoothSocketCallback>& instance);
43   static binder_status_t readFromParcel(const AParcel* parcel, std::shared_ptr<IBluetoothSocketCallback>* instance);
44   static bool setDefaultImpl(const std::shared_ptr<IBluetoothSocketCallback>& impl);
45   static const std::shared_ptr<IBluetoothSocketCallback>& getDefaultImpl();
46   virtual ::ndk::ScopedAStatus openedComplete(int64_t in_socketId, ::aidl::android::hardware::bluetooth::socket::Status in_status, const std::string& in_reason) = 0;
47   virtual ::ndk::ScopedAStatus close(int64_t in_socketId, const std::string& in_reason) = 0;
48   virtual ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) = 0;
49   virtual ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) = 0;
50 private:
51   static std::shared_ptr<IBluetoothSocketCallback> default_impl;
52 };
53 class IBluetoothSocketCallbackDefault : public IBluetoothSocketCallback {
54 public:
55   ::ndk::ScopedAStatus openedComplete(int64_t in_socketId, ::aidl::android::hardware::bluetooth::socket::Status in_status, const std::string& in_reason) override;
56   ::ndk::ScopedAStatus close(int64_t in_socketId, const std::string& in_reason) override;
57   ::ndk::ScopedAStatus getInterfaceVersion(int32_t* _aidl_return) override;
58   ::ndk::ScopedAStatus getInterfaceHash(std::string* _aidl_return) override;
59   ::ndk::SpAIBinder asBinder() override;
60   bool isRemote() override;
61 };
62 }  // namespace socket
63 }  // namespace bluetooth
64 }  // namespace hardware
65 }  // namespace android
66 }  // namespace aidl
67