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 current -pout/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power_interface/6/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/base/core/java/android.os.hintmanager_aidl-ndk-source/gen/staging/android/os/GpuHeadroomParamsInternal.cpp.d -h out/soong/.intermediates/frameworks/base/core/java/android.os.hintmanager_aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/frameworks/base/core/java/android.os.hintmanager_aidl-ndk-source/gen/staging -Nframeworks/base/core/java frameworks/base/core/java/android/os/GpuHeadroomParamsInternal.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/GpuHeadroomParams.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 os {
27 class GpuHeadroomParamsInternal {
28 public:
29   typedef std::false_type fixed_size;
30   static const char* descriptor;
31 
32   int32_t calculationWindowMillis = 1000;
33   ::aidl::android::hardware::power::GpuHeadroomParams::CalculationType calculationType = ::aidl::android::hardware::power::GpuHeadroomParams::CalculationType::MIN;
34 
35   binder_status_t readFromParcel(const AParcel* parcel);
36   binder_status_t writeToParcel(AParcel* parcel) const;
37 
38   inline bool operator==(const GpuHeadroomParamsInternal& _rhs) const {
39     return std::tie(calculationWindowMillis, calculationType) == std::tie(_rhs.calculationWindowMillis, _rhs.calculationType);
40   }
41   inline bool operator<(const GpuHeadroomParamsInternal& _rhs) const {
42     return std::tie(calculationWindowMillis, calculationType) < std::tie(_rhs.calculationWindowMillis, _rhs.calculationType);
43   }
44   inline bool operator!=(const GpuHeadroomParamsInternal& _rhs) const {
45     return !(*this == _rhs);
46   }
47   inline bool operator>(const GpuHeadroomParamsInternal& _rhs) const {
48     return _rhs < *this;
49   }
50   inline bool operator>=(const GpuHeadroomParamsInternal& _rhs) const {
51     return !(*this < _rhs);
52   }
53   inline bool operator<=(const GpuHeadroomParamsInternal& _rhs) const {
54     return !(_rhs < *this);
55   }
56 
57   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_LOCAL;
toString()58   inline std::string toString() const {
59     std::ostringstream _aidl_os;
60     _aidl_os << "GpuHeadroomParamsInternal{";
61     _aidl_os << "calculationWindowMillis: " << ::android::internal::ToString(calculationWindowMillis);
62     _aidl_os << ", calculationType: " << ::android::internal::ToString(calculationType);
63     _aidl_os << "}";
64     return _aidl_os.str();
65   }
66 };
67 }  // namespace os
68 }  // namespace android
69 }  // namespace aidl
70