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