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/WakeLockInfo.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/WakeLockInfo.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 WakeLockInfo : public ::android::Parcelable { 24 public: 25 ::std::string name; 26 int64_t activeCount = 0L; 27 int64_t lastChange = 0L; 28 int64_t maxTime = 0L; 29 int64_t totalTime = 0L; 30 bool isActive = false; 31 int64_t activeTime = 0L; 32 bool isKernelWakelock = false; 33 int32_t pid = 0; 34 int64_t eventCount = 0L; 35 int64_t expireCount = 0L; 36 int64_t preventSuspendTime = 0L; 37 int64_t wakeupCount = 0L; 38 inline bool operator==(const WakeLockInfo& _rhs) const { 39 return std::tie(name, activeCount, lastChange, maxTime, totalTime, isActive, activeTime, isKernelWakelock, pid, eventCount, expireCount, preventSuspendTime, wakeupCount) == std::tie(_rhs.name, _rhs.activeCount, _rhs.lastChange, _rhs.maxTime, _rhs.totalTime, _rhs.isActive, _rhs.activeTime, _rhs.isKernelWakelock, _rhs.pid, _rhs.eventCount, _rhs.expireCount, _rhs.preventSuspendTime, _rhs.wakeupCount); 40 } 41 inline bool operator<(const WakeLockInfo& _rhs) const { 42 return std::tie(name, activeCount, lastChange, maxTime, totalTime, isActive, activeTime, isKernelWakelock, pid, eventCount, expireCount, preventSuspendTime, wakeupCount) < std::tie(_rhs.name, _rhs.activeCount, _rhs.lastChange, _rhs.maxTime, _rhs.totalTime, _rhs.isActive, _rhs.activeTime, _rhs.isKernelWakelock, _rhs.pid, _rhs.eventCount, _rhs.expireCount, _rhs.preventSuspendTime, _rhs.wakeupCount); 43 } 44 inline bool operator!=(const WakeLockInfo& _rhs) const { 45 return !(*this == _rhs); 46 } 47 inline bool operator>(const WakeLockInfo& _rhs) const { 48 return _rhs < *this; 49 } 50 inline bool operator>=(const WakeLockInfo& _rhs) const { 51 return !(*this < _rhs); 52 } 53 inline bool operator<=(const WakeLockInfo& _rhs) const { 54 return !(_rhs < *this); 55 } 56 57 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 58 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()59 static const ::android::String16& getParcelableDescriptor() { 60 static const ::android::StaticString16 DESCRIPTOR (u"android.system.suspend.internal.WakeLockInfo"); 61 return DESCRIPTOR; 62 } toString()63 inline std::string toString() const { 64 std::ostringstream _aidl_os; 65 _aidl_os << "WakeLockInfo{"; 66 _aidl_os << "name: " << ::android::internal::ToString(name); 67 _aidl_os << ", activeCount: " << ::android::internal::ToString(activeCount); 68 _aidl_os << ", lastChange: " << ::android::internal::ToString(lastChange); 69 _aidl_os << ", maxTime: " << ::android::internal::ToString(maxTime); 70 _aidl_os << ", totalTime: " << ::android::internal::ToString(totalTime); 71 _aidl_os << ", isActive: " << ::android::internal::ToString(isActive); 72 _aidl_os << ", activeTime: " << ::android::internal::ToString(activeTime); 73 _aidl_os << ", isKernelWakelock: " << ::android::internal::ToString(isKernelWakelock); 74 _aidl_os << ", pid: " << ::android::internal::ToString(pid); 75 _aidl_os << ", eventCount: " << ::android::internal::ToString(eventCount); 76 _aidl_os << ", expireCount: " << ::android::internal::ToString(expireCount); 77 _aidl_os << ", preventSuspendTime: " << ::android::internal::ToString(preventSuspendTime); 78 _aidl_os << ", wakeupCount: " << ::android::internal::ToString(wakeupCount); 79 _aidl_os << "}"; 80 return _aidl_os.str(); 81 } 82 }; // class WakeLockInfo 83 } // namespace internal 84 } // namespace suspend 85 } // namespace system 86 } // namespace android 87