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 6 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl --previous_api_dir=hardware/interfaces/power/aidl/aidl_api/android.hardware.power/5 --previous_hash d111735ed2b89b6c32443aac9b162b1afbbea3f2 --ninja -d out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/staging/android/hardware/power/SupportInfo.cpp.d -h out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/staging -Nhardware/interfaces/power/aidl hardware/interfaces/power/aidl/android/hardware/power/SupportInfo.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/power/SupportInfo.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl {
25 namespace android {
26 namespace hardware {
27 namespace power {
28 class SupportInfo {
29 public:
30   typedef std::false_type fixed_size;
31   static const char* descriptor;
32 
33   class CompositionDataSupportInfo {
34   public:
35     typedef std::false_type fixed_size;
36     static const char* descriptor;
37 
38     bool isSupported = false;
39     bool disableGpuFences = false;
40     int32_t maxBatchSize = 0;
41     bool alwaysBatch = false;
42 
43     binder_status_t readFromParcel(const AParcel* parcel);
44     binder_status_t writeToParcel(AParcel* parcel) const;
45 
46     inline bool operator==(const CompositionDataSupportInfo& _rhs) const {
47       return std::tie(isSupported, disableGpuFences, maxBatchSize, alwaysBatch) == std::tie(_rhs.isSupported, _rhs.disableGpuFences, _rhs.maxBatchSize, _rhs.alwaysBatch);
48     }
49     inline bool operator<(const CompositionDataSupportInfo& _rhs) const {
50       return std::tie(isSupported, disableGpuFences, maxBatchSize, alwaysBatch) < std::tie(_rhs.isSupported, _rhs.disableGpuFences, _rhs.maxBatchSize, _rhs.alwaysBatch);
51     }
52     inline bool operator!=(const CompositionDataSupportInfo& _rhs) const {
53       return !(*this == _rhs);
54     }
55     inline bool operator>(const CompositionDataSupportInfo& _rhs) const {
56       return _rhs < *this;
57     }
58     inline bool operator>=(const CompositionDataSupportInfo& _rhs) const {
59       return !(*this < _rhs);
60     }
61     inline bool operator<=(const CompositionDataSupportInfo& _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 << "CompositionDataSupportInfo{";
69       _aidl_os << "isSupported: " << ::android::internal::ToString(isSupported);
70       _aidl_os << ", disableGpuFences: " << ::android::internal::ToString(disableGpuFences);
71       _aidl_os << ", maxBatchSize: " << ::android::internal::ToString(maxBatchSize);
72       _aidl_os << ", alwaysBatch: " << ::android::internal::ToString(alwaysBatch);
73       _aidl_os << "}";
74       return _aidl_os.str();
75     }
76   };
77   class HeadroomSupportInfo {
78   public:
79     typedef std::false_type fixed_size;
80     static const char* descriptor;
81 
82     bool isCpuSupported = false;
83     bool isGpuSupported = false;
84     int32_t cpuMinIntervalMillis = 0;
85     int32_t gpuMinIntervalMillis = 0;
86 
87     binder_status_t readFromParcel(const AParcel* parcel);
88     binder_status_t writeToParcel(AParcel* parcel) const;
89 
90     inline bool operator==(const HeadroomSupportInfo& _rhs) const {
91       return std::tie(isCpuSupported, isGpuSupported, cpuMinIntervalMillis, gpuMinIntervalMillis) == std::tie(_rhs.isCpuSupported, _rhs.isGpuSupported, _rhs.cpuMinIntervalMillis, _rhs.gpuMinIntervalMillis);
92     }
93     inline bool operator<(const HeadroomSupportInfo& _rhs) const {
94       return std::tie(isCpuSupported, isGpuSupported, cpuMinIntervalMillis, gpuMinIntervalMillis) < std::tie(_rhs.isCpuSupported, _rhs.isGpuSupported, _rhs.cpuMinIntervalMillis, _rhs.gpuMinIntervalMillis);
95     }
96     inline bool operator!=(const HeadroomSupportInfo& _rhs) const {
97       return !(*this == _rhs);
98     }
99     inline bool operator>(const HeadroomSupportInfo& _rhs) const {
100       return _rhs < *this;
101     }
102     inline bool operator>=(const HeadroomSupportInfo& _rhs) const {
103       return !(*this < _rhs);
104     }
105     inline bool operator<=(const HeadroomSupportInfo& _rhs) const {
106       return !(_rhs < *this);
107     }
108 
109     static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()110     inline std::string toString() const {
111       std::ostringstream _aidl_os;
112       _aidl_os << "HeadroomSupportInfo{";
113       _aidl_os << "isCpuSupported: " << ::android::internal::ToString(isCpuSupported);
114       _aidl_os << ", isGpuSupported: " << ::android::internal::ToString(isGpuSupported);
115       _aidl_os << ", cpuMinIntervalMillis: " << ::android::internal::ToString(cpuMinIntervalMillis);
116       _aidl_os << ", gpuMinIntervalMillis: " << ::android::internal::ToString(gpuMinIntervalMillis);
117       _aidl_os << "}";
118       return _aidl_os.str();
119     }
120   };
121   bool usesSessions = false;
122   int64_t boosts = 0L;
123   int64_t modes = 0L;
124   int64_t sessionHints = 0L;
125   int64_t sessionModes = 0L;
126   int64_t sessionTags = 0L;
127   ::aidl::android::hardware::power::SupportInfo::CompositionDataSupportInfo compositionData;
128   ::aidl::android::hardware::power::SupportInfo::HeadroomSupportInfo headroom;
129 
130   binder_status_t readFromParcel(const AParcel* parcel);
131   binder_status_t writeToParcel(AParcel* parcel) const;
132 
133   inline bool operator==(const SupportInfo& _rhs) const {
134     return std::tie(usesSessions, boosts, modes, sessionHints, sessionModes, sessionTags, compositionData, headroom) == std::tie(_rhs.usesSessions, _rhs.boosts, _rhs.modes, _rhs.sessionHints, _rhs.sessionModes, _rhs.sessionTags, _rhs.compositionData, _rhs.headroom);
135   }
136   inline bool operator<(const SupportInfo& _rhs) const {
137     return std::tie(usesSessions, boosts, modes, sessionHints, sessionModes, sessionTags, compositionData, headroom) < std::tie(_rhs.usesSessions, _rhs.boosts, _rhs.modes, _rhs.sessionHints, _rhs.sessionModes, _rhs.sessionTags, _rhs.compositionData, _rhs.headroom);
138   }
139   inline bool operator!=(const SupportInfo& _rhs) const {
140     return !(*this == _rhs);
141   }
142   inline bool operator>(const SupportInfo& _rhs) const {
143     return _rhs < *this;
144   }
145   inline bool operator>=(const SupportInfo& _rhs) const {
146     return !(*this < _rhs);
147   }
148   inline bool operator<=(const SupportInfo& _rhs) const {
149     return !(_rhs < *this);
150   }
151 
152   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()153   inline std::string toString() const {
154     std::ostringstream _aidl_os;
155     _aidl_os << "SupportInfo{";
156     _aidl_os << "usesSessions: " << ::android::internal::ToString(usesSessions);
157     _aidl_os << ", boosts: " << ::android::internal::ToString(boosts);
158     _aidl_os << ", modes: " << ::android::internal::ToString(modes);
159     _aidl_os << ", sessionHints: " << ::android::internal::ToString(sessionHints);
160     _aidl_os << ", sessionModes: " << ::android::internal::ToString(sessionModes);
161     _aidl_os << ", sessionTags: " << ::android::internal::ToString(sessionTags);
162     _aidl_os << ", compositionData: " << ::android::internal::ToString(compositionData);
163     _aidl_os << ", headroom: " << ::android::internal::ToString(headroom);
164     _aidl_os << "}";
165     return _aidl_os.str();
166   }
167 };
168 }  // namespace power
169 }  // namespace hardware
170 }  // namespace android
171 }  // namespace aidl
172