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 -t --min_sdk_version 30 --ninja -d out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging/com/android/server/thread/openthread/OtDaemonState.cpp.d -h out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/external/ot-br-posix/src/android/aidl/ot-daemon-aidl-ndk-source/gen/staging -Nexternal/ot-br-posix/src/android/aidl -Npackages/modules/Connectivity/thread/framework/java external/ot-br-posix/src/android/aidl/com/android/server/thread/openthread/OtDaemonState.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 com {
25 namespace android {
26 namespace server {
27 namespace thread {
28 namespace openthread {
29 class OtDaemonState {
30 public:
31   typedef std::false_type fixed_size;
32   static const char* descriptor;
33 
34   bool isInterfaceUp = false;
35   int32_t deviceRole = 0;
36   int64_t partitionId = 0L;
37   std::vector<uint8_t> activeDatasetTlvs;
38   std::vector<uint8_t> pendingDatasetTlvs;
39   int32_t threadEnabled = 0;
40   int32_t ephemeralKeyState = 0;
41   std::string ephemeralKeyPasscode;
42   int64_t ephemeralKeyLifetimeMillis = 0L;
43 
44   binder_status_t readFromParcel(const AParcel* parcel);
45   binder_status_t writeToParcel(AParcel* parcel) const;
46 
47   inline bool operator==(const OtDaemonState& _rhs) const {
48     return std::tie(isInterfaceUp, deviceRole, partitionId, activeDatasetTlvs, pendingDatasetTlvs, threadEnabled, ephemeralKeyState, ephemeralKeyPasscode, ephemeralKeyLifetimeMillis) == std::tie(_rhs.isInterfaceUp, _rhs.deviceRole, _rhs.partitionId, _rhs.activeDatasetTlvs, _rhs.pendingDatasetTlvs, _rhs.threadEnabled, _rhs.ephemeralKeyState, _rhs.ephemeralKeyPasscode, _rhs.ephemeralKeyLifetimeMillis);
49   }
50   inline bool operator<(const OtDaemonState& _rhs) const {
51     return std::tie(isInterfaceUp, deviceRole, partitionId, activeDatasetTlvs, pendingDatasetTlvs, threadEnabled, ephemeralKeyState, ephemeralKeyPasscode, ephemeralKeyLifetimeMillis) < std::tie(_rhs.isInterfaceUp, _rhs.deviceRole, _rhs.partitionId, _rhs.activeDatasetTlvs, _rhs.pendingDatasetTlvs, _rhs.threadEnabled, _rhs.ephemeralKeyState, _rhs.ephemeralKeyPasscode, _rhs.ephemeralKeyLifetimeMillis);
52   }
53   inline bool operator!=(const OtDaemonState& _rhs) const {
54     return !(*this == _rhs);
55   }
56   inline bool operator>(const OtDaemonState& _rhs) const {
57     return _rhs < *this;
58   }
59   inline bool operator>=(const OtDaemonState& _rhs) const {
60     return !(*this < _rhs);
61   }
62   inline bool operator<=(const OtDaemonState& _rhs) const {
63     return !(_rhs < *this);
64   }
65 
66   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_LOCAL;
toString()67   inline std::string toString() const {
68     std::ostringstream _aidl_os;
69     _aidl_os << "OtDaemonState{";
70     _aidl_os << "isInterfaceUp: " << ::android::internal::ToString(isInterfaceUp);
71     _aidl_os << ", deviceRole: " << ::android::internal::ToString(deviceRole);
72     _aidl_os << ", partitionId: " << ::android::internal::ToString(partitionId);
73     _aidl_os << ", activeDatasetTlvs: " << ::android::internal::ToString(activeDatasetTlvs);
74     _aidl_os << ", pendingDatasetTlvs: " << ::android::internal::ToString(pendingDatasetTlvs);
75     _aidl_os << ", threadEnabled: " << ::android::internal::ToString(threadEnabled);
76     _aidl_os << ", ephemeralKeyState: " << ::android::internal::ToString(ephemeralKeyState);
77     _aidl_os << ", ephemeralKeyPasscode: " << ::android::internal::ToString(ephemeralKeyPasscode);
78     _aidl_os << ", ephemeralKeyLifetimeMillis: " << ::android::internal::ToString(ephemeralKeyLifetimeMillis);
79     _aidl_os << "}";
80     return _aidl_os.str();
81   }
82 };
83 }  // namespace openthread
84 }  // namespace thread
85 }  // namespace server
86 }  // namespace android
87 }  // namespace com
88 }  // namespace aidl
89