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 4 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/drm/common/aidl/android.hardware.drm.common_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/3 --previous_hash d24fcd9648b8b2e7287f9238eee9180244612c10 --ninja -d out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging/android/hardware/graphics/composer3/OverlayProperties.cpp.d -h out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging -Nhardware/interfaces/graphics/composer/aidl hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/OverlayProperties.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/graphics/common/Dataspace.h>
20 #include <aidl/android/hardware/graphics/common/PixelFormat.h>
21 #include <aidl/android/hardware/graphics/composer3/LutProperties.h>
22 #include <aidl/android/hardware/graphics/composer3/OverlayProperties.h>
23 #ifdef BINDER_STABILITY_SUPPORT
24 #include <android/binder_stability.h>
25 #endif  // BINDER_STABILITY_SUPPORT
26 
27 namespace aidl::android::hardware::graphics::composer3 {
28 class LutProperties;
29 }  // namespace aidl::android::hardware::graphics::composer3
30 namespace aidl {
31 namespace android {
32 namespace hardware {
33 namespace graphics {
34 namespace composer3 {
35 class OverlayProperties {
36 public:
37   typedef std::false_type fixed_size;
38   static const char* descriptor;
39 
40   class SupportedBufferCombinations {
41   public:
42     typedef std::false_type fixed_size;
43     static const char* descriptor;
44 
45     std::vector<::aidl::android::hardware::graphics::common::PixelFormat> pixelFormats;
46     std::vector<::aidl::android::hardware::graphics::common::Dataspace> standards;
47     std::vector<::aidl::android::hardware::graphics::common::Dataspace> transfers;
48     std::vector<::aidl::android::hardware::graphics::common::Dataspace> ranges;
49 
50     binder_status_t readFromParcel(const AParcel* parcel);
51     binder_status_t writeToParcel(AParcel* parcel) const;
52 
53     inline bool operator==(const SupportedBufferCombinations& _rhs) const {
54       return std::tie(pixelFormats, standards, transfers, ranges) == std::tie(_rhs.pixelFormats, _rhs.standards, _rhs.transfers, _rhs.ranges);
55     }
56     inline bool operator<(const SupportedBufferCombinations& _rhs) const {
57       return std::tie(pixelFormats, standards, transfers, ranges) < std::tie(_rhs.pixelFormats, _rhs.standards, _rhs.transfers, _rhs.ranges);
58     }
59     inline bool operator!=(const SupportedBufferCombinations& _rhs) const {
60       return !(*this == _rhs);
61     }
62     inline bool operator>(const SupportedBufferCombinations& _rhs) const {
63       return _rhs < *this;
64     }
65     inline bool operator>=(const SupportedBufferCombinations& _rhs) const {
66       return !(*this < _rhs);
67     }
68     inline bool operator<=(const SupportedBufferCombinations& _rhs) const {
69       return !(_rhs < *this);
70     }
71 
72     static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()73     inline std::string toString() const {
74       std::ostringstream _aidl_os;
75       _aidl_os << "SupportedBufferCombinations{";
76       _aidl_os << "pixelFormats: " << ::android::internal::ToString(pixelFormats);
77       _aidl_os << ", standards: " << ::android::internal::ToString(standards);
78       _aidl_os << ", transfers: " << ::android::internal::ToString(transfers);
79       _aidl_os << ", ranges: " << ::android::internal::ToString(ranges);
80       _aidl_os << "}";
81       return _aidl_os.str();
82     }
83   };
84   std::vector<::aidl::android::hardware::graphics::composer3::OverlayProperties::SupportedBufferCombinations> combinations;
85   bool supportMixedColorSpaces = false;
86   std::optional<std::vector<std::optional<::aidl::android::hardware::graphics::composer3::LutProperties>>> lutProperties;
87 
88   binder_status_t readFromParcel(const AParcel* parcel);
89   binder_status_t writeToParcel(AParcel* parcel) const;
90 
91   inline bool operator==(const OverlayProperties& _rhs) const {
92     return std::tie(combinations, supportMixedColorSpaces, lutProperties) == std::tie(_rhs.combinations, _rhs.supportMixedColorSpaces, _rhs.lutProperties);
93   }
94   inline bool operator<(const OverlayProperties& _rhs) const {
95     return std::tie(combinations, supportMixedColorSpaces, lutProperties) < std::tie(_rhs.combinations, _rhs.supportMixedColorSpaces, _rhs.lutProperties);
96   }
97   inline bool operator!=(const OverlayProperties& _rhs) const {
98     return !(*this == _rhs);
99   }
100   inline bool operator>(const OverlayProperties& _rhs) const {
101     return _rhs < *this;
102   }
103   inline bool operator>=(const OverlayProperties& _rhs) const {
104     return !(*this < _rhs);
105   }
106   inline bool operator<=(const OverlayProperties& _rhs) const {
107     return !(_rhs < *this);
108   }
109 
110   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()111   inline std::string toString() const {
112     std::ostringstream _aidl_os;
113     _aidl_os << "OverlayProperties{";
114     _aidl_os << "combinations: " << ::android::internal::ToString(combinations);
115     _aidl_os << ", supportMixedColorSpaces: " << ::android::internal::ToString(supportMixedColorSpaces);
116     _aidl_os << ", lutProperties: " << ::android::internal::ToString(lutProperties);
117     _aidl_os << "}";
118     return _aidl_os.str();
119   }
120 };
121 }  // namespace composer3
122 }  // namespace graphics
123 }  // namespace hardware
124 }  // namespace android
125 }  // namespace aidl
126