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/SocketContext.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/SocketContext.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 <android/binder_parcelable_utils.h>
18 #include <android/binder_to_string.h>
19 #include <aidl/android/hardware/bluetooth/socket/ChannelInfo.h>
20 #include <aidl/android/hardware/contexthub/EndpointId.h>
21 #ifdef BINDER_STABILITY_SUPPORT
22 #include <android/binder_stability.h>
23 #endif  // BINDER_STABILITY_SUPPORT
24 
25 namespace aidl::android::hardware::contexthub {
26 class EndpointId;
27 }  // namespace aidl::android::hardware::contexthub
28 namespace aidl {
29 namespace android {
30 namespace hardware {
31 namespace bluetooth {
32 namespace socket {
33 class SocketContext {
34 public:
35   typedef std::false_type fixed_size;
36   static const char* descriptor;
37 
38   int64_t socketId = 0L;
39   std::string name;
40   int32_t aclConnectionHandle = 0;
41   ::aidl::android::hardware::bluetooth::socket::ChannelInfo channelInfo;
42   ::aidl::android::hardware::contexthub::EndpointId endpointId;
43 
44   binder_status_t readFromParcel(const AParcel* parcel);
45   binder_status_t writeToParcel(AParcel* parcel) const;
46 
47   inline bool operator==(const SocketContext& _rhs) const {
48     return std::tie(socketId, name, aclConnectionHandle, channelInfo, endpointId) == std::tie(_rhs.socketId, _rhs.name, _rhs.aclConnectionHandle, _rhs.channelInfo, _rhs.endpointId);
49   }
50   inline bool operator<(const SocketContext& _rhs) const {
51     return std::tie(socketId, name, aclConnectionHandle, channelInfo, endpointId) < std::tie(_rhs.socketId, _rhs.name, _rhs.aclConnectionHandle, _rhs.channelInfo, _rhs.endpointId);
52   }
53   inline bool operator!=(const SocketContext& _rhs) const {
54     return !(*this == _rhs);
55   }
56   inline bool operator>(const SocketContext& _rhs) const {
57     return _rhs < *this;
58   }
59   inline bool operator>=(const SocketContext& _rhs) const {
60     return !(*this < _rhs);
61   }
62   inline bool operator<=(const SocketContext& _rhs) const {
63     return !(_rhs < *this);
64   }
65 
66   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()67   inline std::string toString() const {
68     std::ostringstream _aidl_os;
69     _aidl_os << "SocketContext{";
70     _aidl_os << "socketId: " << ::android::internal::ToString(socketId);
71     _aidl_os << ", name: " << ::android::internal::ToString(name);
72     _aidl_os << ", aclConnectionHandle: " << ::android::internal::ToString(aclConnectionHandle);
73     _aidl_os << ", channelInfo: " << ::android::internal::ToString(channelInfo);
74     _aidl_os << ", endpointId: " << ::android::internal::ToString(endpointId);
75     _aidl_os << "}";
76     return _aidl_os.str();
77   }
78 };
79 }  // namespace socket
80 }  // namespace bluetooth
81 }  // namespace hardware
82 }  // namespace android
83 }  // namespace aidl
84