1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current --ninja -d out/soong/.intermediates/system/hardware/interfaces/suspend/aidl/android.system.suspend.control.internal-cpp-source/gen/staging/android/system/suspend/internal/WakeupInfo.cpp.d -h out/soong/.intermediates/system/hardware/interfaces/suspend/aidl/android.system.suspend.control.internal-cpp-source/gen/include/staging -o out/soong/.intermediates/system/hardware/interfaces/suspend/aidl/android.system.suspend.control.internal-cpp-source/gen/staging -Nsystem/hardware/interfaces/suspend/aidl system/hardware/interfaces/suspend/aidl/android/system/suspend/internal/WakeupInfo.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 <android/binder_to_string.h>
12 #include <binder/Parcel.h>
13 #include <binder/Status.h>
14 #include <cstdint>
15 #include <string>
16 #include <tuple>
17 #include <utils/String16.h>
18 
19 namespace android {
20 namespace system {
21 namespace suspend {
22 namespace internal {
23 class LIBBINDER_EXPORTED WakeupInfo : public ::android::Parcelable {
24 public:
25   ::std::string name;
26   int64_t count = 0L;
27   inline bool operator==(const WakeupInfo& _rhs) const {
28     return std::tie(name, count) == std::tie(_rhs.name, _rhs.count);
29   }
30   inline bool operator<(const WakeupInfo& _rhs) const {
31     return std::tie(name, count) < std::tie(_rhs.name, _rhs.count);
32   }
33   inline bool operator!=(const WakeupInfo& _rhs) const {
34     return !(*this == _rhs);
35   }
36   inline bool operator>(const WakeupInfo& _rhs) const {
37     return _rhs < *this;
38   }
39   inline bool operator>=(const WakeupInfo& _rhs) const {
40     return !(*this < _rhs);
41   }
42   inline bool operator<=(const WakeupInfo& _rhs) const {
43     return !(_rhs < *this);
44   }
45 
46   ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final;
47   ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final;
getParcelableDescriptor()48   static const ::android::String16& getParcelableDescriptor() {
49     static const ::android::StaticString16 DESCRIPTOR (u"android.system.suspend.internal.WakeupInfo");
50     return DESCRIPTOR;
51   }
toString()52   inline std::string toString() const {
53     std::ostringstream _aidl_os;
54     _aidl_os << "WakeupInfo{";
55     _aidl_os << "name: " << ::android::internal::ToString(name);
56     _aidl_os << ", count: " << ::android::internal::ToString(count);
57     _aidl_os << "}";
58     return _aidl_os.str();
59   }
60 };  // class WakeupInfo
61 }  // namespace internal
62 }  // namespace suspend
63 }  // namespace system
64 }  // namespace android
65