1 /**
2  * Copyright (c) 2021, The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "aidl/android/hardware/graphics/common/BlendMode.h"
18 #include "aidl/android/hardware/graphics/common/FRect.h"
19 #include "aidl/android/hardware/graphics/common/Rect.h"
20 #include "aidl/android/hardware/graphics/composer3/Capability.h"
21 #include "aidl/android/hardware/graphics/composer3/ClientTargetProperty.h"
22 #include "aidl/android/hardware/graphics/composer3/Color.h"
23 #include "aidl/android/hardware/graphics/composer3/Composition.h"
24 #include "aidl/android/hardware/graphics/composer3/ContentType.h"
25 #include "aidl/android/hardware/graphics/composer3/DisplayAttribute.h"
26 #include "aidl/android/hardware/graphics/composer3/DisplayCapability.h"
27 #include "aidl/android/hardware/graphics/composer3/DisplayConnectionType.h"
28 #include "aidl/android/hardware/graphics/composer3/FormatColorComponent.h"
29 #include "aidl/android/hardware/graphics/composer3/IComposer.h"
30 #include "aidl/android/hardware/graphics/composer3/PerFrameMetadata.h"
31 #include "aidl/android/hardware/graphics/composer3/PerFrameMetadataBlob.h"
32 #include "aidl/android/hardware/graphics/composer3/PerFrameMetadataKey.h"
33 #include "aidl/android/hardware/graphics/composer3/PowerMode.h"
34 #include "aidl/android/hardware/graphics/composer3/VsyncPeriodChangeConstraints.h"
35 #include "aidl/android/hardware/graphics/composer3/VsyncPeriodChangeTimeline.h"
36 #include "android/hardware/graphics/composer/2.1/IComposer.h"
37 #include "android/hardware/graphics/composer/2.1/IComposerCallback.h"
38 #include "android/hardware/graphics/composer/2.1/IComposerClient.h"
39 #include "android/hardware/graphics/composer/2.2/IComposerClient.h"
40 #include "android/hardware/graphics/composer/2.3/IComposerClient.h"
41 #include "android/hardware/graphics/composer/2.4/IComposerClient.h"
42 #include "android/hardware/graphics/composer/2.4/types.h"
43 
44 namespace android::h2a {
45 
46 static_assert(
47         aidl::android::hardware::graphics::composer3::IComposer::EX_NO_RESOURCES ==
48         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::NO_RESOURCES));
49 
50 static_assert(
51         aidl::android::hardware::graphics::composer3::IComposerClient::EX_BAD_CONFIG ==
52         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::BAD_CONFIG));
53 static_assert(
54         aidl::android::hardware::graphics::composer3::IComposerClient::EX_BAD_DISPLAY ==
55         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::BAD_DISPLAY));
56 static_assert(
57         aidl::android::hardware::graphics::composer3::IComposerClient::EX_BAD_LAYER ==
58         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::BAD_LAYER));
59 static_assert(
60         aidl::android::hardware::graphics::composer3::IComposerClient::EX_BAD_PARAMETER ==
61         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::BAD_PARAMETER));
62 static_assert(
63         aidl::android::hardware::graphics::composer3::IComposerClient::EX_NO_RESOURCES ==
64         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::NO_RESOURCES));
65 static_assert(
66         aidl::android::hardware::graphics::composer3::IComposerClient::EX_NOT_VALIDATED ==
67         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::NOT_VALIDATED));
68 static_assert(
69         aidl::android::hardware::graphics::composer3::IComposerClient::EX_UNSUPPORTED ==
70         static_cast<int32_t>(::android::hardware::graphics::composer::V2_4::Error::UNSUPPORTED));
71 static_assert(
72         aidl::android::hardware::graphics::composer3::IComposerClient::EX_SEAMLESS_NOT_ALLOWED ==
73         static_cast<int32_t>(
74                 ::android::hardware::graphics::composer::V2_4::Error::SEAMLESS_NOT_ALLOWED));
75 static_assert(
76         aidl::android::hardware::graphics::composer3::IComposerClient::EX_SEAMLESS_NOT_POSSIBLE ==
77         static_cast<int32_t>(
78                 ::android::hardware::graphics::composer::V2_4::Error::SEAMLESS_NOT_POSSIBLE));
79 
80 static_assert(
81         aidl::android::hardware::graphics::composer3::Capability::INVALID ==
82         static_cast<aidl::android::hardware::graphics::composer3::Capability>(
83                 ::android::hardware::graphics::composer::V2_1::IComposer::Capability::INVALID));
84 static_assert(aidl::android::hardware::graphics::composer3::Capability::SIDEBAND_STREAM ==
85               static_cast<aidl::android::hardware::graphics::composer3::Capability>(
86                       ::android::hardware::graphics::composer::V2_1::IComposer::Capability::
87                               SIDEBAND_STREAM));
88 static_assert(
89         aidl::android::hardware::graphics::composer3::Capability::SKIP_CLIENT_COLOR_TRANSFORM ==
90         static_cast<aidl::android::hardware::graphics::composer3::Capability>(
91                 ::android::hardware::graphics::composer::V2_1::IComposer::Capability::
92                         SKIP_CLIENT_COLOR_TRANSFORM));
93 static_assert(
94         aidl::android::hardware::graphics::composer3::Capability::PRESENT_FENCE_IS_NOT_RELIABLE ==
95         static_cast<aidl::android::hardware::graphics::composer3::Capability>(
96                 ::android::hardware::graphics::composer::V2_1::IComposer::Capability::
97                         PRESENT_FENCE_IS_NOT_RELIABLE));
98 // HWC2_CAPABILITY_SKIP_VALIDATE was never defined for HIDL, so we just hardcode its value
99 static_assert(aidl::android::hardware::graphics::composer3::Capability::SKIP_VALIDATE ==
100               static_cast<aidl::android::hardware::graphics::composer3::Capability>(4));
101 
102 static_assert(aidl::android::hardware::graphics::composer3::DisplayRequest::LayerRequest::
103                       CLEAR_CLIENT_TARGET ==
104               static_cast<int>(::android::hardware::graphics::composer::V2_1::IComposerClient::
105                                        LayerRequest::CLEAR_CLIENT_TARGET));
106 
107 static_assert(aidl::android::hardware::graphics::common::BlendMode::INVALID ==
108               static_cast<aidl::android::hardware::graphics::common::BlendMode>(
109                       ::android::hardware::graphics::composer::V2_1::IComposerClient::BlendMode::
110                               INVALID));
111 static_assert(
112         aidl::android::hardware::graphics::common::BlendMode::NONE ==
113         static_cast<aidl::android::hardware::graphics::common::BlendMode>(
114                 ::android::hardware::graphics::composer::V2_1::IComposerClient::BlendMode::NONE));
115 static_assert(aidl::android::hardware::graphics::common::BlendMode::PREMULTIPLIED ==
116               static_cast<aidl::android::hardware::graphics::common::BlendMode>(
117                       ::android::hardware::graphics::composer::V2_1::IComposerClient::BlendMode::
118                               PREMULTIPLIED));
119 static_assert(aidl::android::hardware::graphics::common::BlendMode::COVERAGE ==
120               static_cast<aidl::android::hardware::graphics::common::BlendMode>(
121                       ::android::hardware::graphics::composer::V2_1::IComposerClient::BlendMode::
122                               COVERAGE));
123 
124 static_assert(aidl::android::hardware::graphics::composer3::Composition::INVALID ==
125               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
126                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
127                               INVALID));
128 static_assert(aidl::android::hardware::graphics::composer3::Composition::CLIENT ==
129               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
130                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
131                               CLIENT));
132 static_assert(aidl::android::hardware::graphics::composer3::Composition::DEVICE ==
133               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
134                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
135                               DEVICE));
136 static_assert(aidl::android::hardware::graphics::composer3::Composition::SOLID_COLOR ==
137               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
138                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
139                               SOLID_COLOR));
140 static_assert(aidl::android::hardware::graphics::composer3::Composition::CURSOR ==
141               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
142                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
143                               CURSOR));
144 static_assert(aidl::android::hardware::graphics::composer3::Composition::SIDEBAND ==
145               static_cast<aidl::android::hardware::graphics::composer3::Composition>(
146                       ::android::hardware::graphics::composer::V2_1::IComposerClient::Composition::
147                               SIDEBAND));
148 
149 static_assert(aidl::android::hardware::graphics::composer3::DisplayRequest::FLIP_CLIENT_TARGET ==
150               static_cast<int>(::android::hardware::graphics::composer::V2_1::IComposerClient::
151                                        DisplayRequest::FLIP_CLIENT_TARGET));
152 static_assert(aidl::android::hardware::graphics::composer3::DisplayRequest::
153                       WRITE_CLIENT_TARGET_TO_OUTPUT ==
154               static_cast<int>(::android::hardware::graphics::composer::V2_1::IComposerClient::
155                                        DisplayRequest::WRITE_CLIENT_TARGET_TO_OUTPUT));
156 
157 static_assert(
158         aidl::android::hardware::graphics::composer3::PowerMode::OFF ==
159         static_cast<aidl::android::hardware::graphics::composer3::PowerMode>(
160                 ::android::hardware::graphics::composer::V2_2::IComposerClient::PowerMode::OFF));
161 static_assert(
162         aidl::android::hardware::graphics::composer3::PowerMode::DOZE ==
163         static_cast<aidl::android::hardware::graphics::composer3::PowerMode>(
164                 ::android::hardware::graphics::composer::V2_2::IComposerClient::PowerMode::DOZE));
165 static_assert(aidl::android::hardware::graphics::composer3::PowerMode::DOZE_SUSPEND ==
166               static_cast<aidl::android::hardware::graphics::composer3::PowerMode>(
167                       ::android::hardware::graphics::composer::V2_2::IComposerClient::PowerMode::
168                               DOZE_SUSPEND));
169 static_assert(
170         aidl::android::hardware::graphics::composer3::PowerMode::ON ==
171         static_cast<aidl::android::hardware::graphics::composer3::PowerMode>(
172                 ::android::hardware::graphics::composer::V2_2::IComposerClient::PowerMode::ON));
173 static_assert(aidl::android::hardware::graphics::composer3::PowerMode::ON_SUSPEND ==
174               static_cast<aidl::android::hardware::graphics::composer3::PowerMode>(
175                       ::android::hardware::graphics::composer::V2_2::IComposerClient::PowerMode::
176                               ON_SUSPEND));
177 
178 static_assert(aidl::android::hardware::graphics::composer3::DisplayCapability::INVALID ==
179               static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
180                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
181                               DisplayCapability::INVALID));
182 static_assert(aidl::android::hardware::graphics::composer3::DisplayCapability::
183                       SKIP_CLIENT_COLOR_TRANSFORM ==
184               static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
185                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
186                               DisplayCapability::SKIP_CLIENT_COLOR_TRANSFORM));
187 static_assert(aidl::android::hardware::graphics::composer3::DisplayCapability::DOZE ==
188               static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
189                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
190                               DisplayCapability::DOZE));
191 static_assert(aidl::android::hardware::graphics::composer3::DisplayCapability::BRIGHTNESS ==
192               static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
193                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
194                               DisplayCapability::BRIGHTNESS));
195 static_assert(aidl::android::hardware::graphics::composer3::DisplayCapability::PROTECTED_CONTENTS ==
196               static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
197                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
198                               DisplayCapability::PROTECTED_CONTENTS));
199 static_assert(
200         aidl::android::hardware::graphics::composer3::DisplayCapability::AUTO_LOW_LATENCY_MODE ==
201         static_cast<aidl::android::hardware::graphics::composer3::DisplayCapability>(
202                 ::android::hardware::graphics::composer::V2_4::IComposerClient::DisplayCapability::
203                         AUTO_LOW_LATENCY_MODE));
204 
205 static_assert(aidl::android::hardware::graphics::composer3::DisplayAttribute::INVALID ==
206               static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
207                       ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::
208                               INVALID));
209 static_assert(
210         aidl::android::hardware::graphics::composer3::DisplayAttribute::WIDTH ==
211         static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
212                 ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::WIDTH));
213 static_assert(
214         aidl::android::hardware::graphics::composer3::DisplayAttribute::HEIGHT ==
215         static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
216                 ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::HEIGHT));
217 static_assert(aidl::android::hardware::graphics::composer3::DisplayAttribute::VSYNC_PERIOD ==
218               static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
219                       ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::
220                               VSYNC_PERIOD));
221 static_assert(
222         aidl::android::hardware::graphics::composer3::DisplayAttribute::DPI_X ==
223         static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
224                 ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::DPI_X));
225 static_assert(
226         aidl::android::hardware::graphics::composer3::DisplayAttribute::DPI_Y ==
227         static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
228                 ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::DPI_Y));
229 static_assert(aidl::android::hardware::graphics::composer3::DisplayAttribute::CONFIG_GROUP ==
230               static_cast<aidl::android::hardware::graphics::composer3::DisplayAttribute>(
231                       ::android::hardware::graphics::composer::V2_4::IComposerClient::Attribute::
232                               CONFIG_GROUP));
233 
234 static_assert(aidl::android::hardware::graphics::composer3::DisplayConnectionType::INTERNAL ==
235               static_cast<aidl::android::hardware::graphics::composer3::DisplayConnectionType>(
236                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
237                               DisplayConnectionType::INTERNAL));
238 static_assert(aidl::android::hardware::graphics::composer3::DisplayConnectionType::EXTERNAL ==
239               static_cast<aidl::android::hardware::graphics::composer3::DisplayConnectionType>(
240                       ::android::hardware::graphics::composer::V2_4::IComposerClient::
241                               DisplayConnectionType::EXTERNAL));
242 
243 static_assert(
244         aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X ==
245         static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
246                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
247                         PerFrameMetadataKey::DISPLAY_RED_PRIMARY_X));
248 static_assert(
249         aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y ==
250         static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
251                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
252                         PerFrameMetadataKey::DISPLAY_RED_PRIMARY_Y));
253 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::
254                       DISPLAY_GREEN_PRIMARY_X ==
255               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
256                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
257                               PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_X));
258 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::
259                       DISPLAY_GREEN_PRIMARY_Y ==
260               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
261                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
262                               PerFrameMetadataKey::DISPLAY_GREEN_PRIMARY_Y));
263 static_assert(
264         aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X ==
265         static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
266                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
267                         PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_X));
268 static_assert(
269         aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y ==
270         static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
271                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
272                         PerFrameMetadataKey::DISPLAY_BLUE_PRIMARY_Y));
273 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::WHITE_POINT_X ==
274               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
275                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
276                               PerFrameMetadataKey::WHITE_POINT_X));
277 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::WHITE_POINT_Y ==
278               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
279                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
280                               PerFrameMetadataKey::WHITE_POINT_Y));
281 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::MAX_LUMINANCE ==
282               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
283                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
284                               PerFrameMetadataKey::MAX_LUMINANCE));
285 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::MIN_LUMINANCE ==
286               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
287                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
288                               PerFrameMetadataKey::MIN_LUMINANCE));
289 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::
290                       MAX_CONTENT_LIGHT_LEVEL ==
291               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
292                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
293                               PerFrameMetadataKey::MAX_CONTENT_LIGHT_LEVEL));
294 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::
295                       MAX_FRAME_AVERAGE_LIGHT_LEVEL ==
296               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
297                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
298                               PerFrameMetadataKey::MAX_FRAME_AVERAGE_LIGHT_LEVEL));
299 static_assert(aidl::android::hardware::graphics::composer3::PerFrameMetadataKey::HDR10_PLUS_SEI ==
300               static_cast<aidl::android::hardware::graphics::composer3::PerFrameMetadataKey>(
301                       ::android::hardware::graphics::composer::V2_3::IComposerClient::
302                               PerFrameMetadataKey::HDR10_PLUS_SEI));
303 
304 static_assert(
305         aidl::android::hardware::graphics::composer3::FormatColorComponent::FORMAT_COMPONENT_0 ==
306         static_cast<aidl::android::hardware::graphics::composer3::FormatColorComponent>(
307                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
308                         FormatColorComponent::FORMAT_COMPONENT_0));
309 static_assert(
310         aidl::android::hardware::graphics::composer3::FormatColorComponent::FORMAT_COMPONENT_1 ==
311         static_cast<aidl::android::hardware::graphics::composer3::FormatColorComponent>(
312                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
313                         FormatColorComponent::FORMAT_COMPONENT_1));
314 static_assert(
315         aidl::android::hardware::graphics::composer3::FormatColorComponent::FORMAT_COMPONENT_2 ==
316         static_cast<aidl::android::hardware::graphics::composer3::FormatColorComponent>(
317                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
318                         FormatColorComponent::FORMAT_COMPONENT_2));
319 static_assert(
320         aidl::android::hardware::graphics::composer3::FormatColorComponent::FORMAT_COMPONENT_3 ==
321         static_cast<aidl::android::hardware::graphics::composer3::FormatColorComponent>(
322                 ::android::hardware::graphics::composer::V2_3::IComposerClient::
323                         FormatColorComponent::FORMAT_COMPONENT_3));
324 
325 static_assert(
326         aidl::android::hardware::graphics::composer3::ContentType::NONE ==
327         static_cast<aidl::android::hardware::graphics::composer3::ContentType>(
328                 ::android::hardware::graphics::composer::V2_4::IComposerClient::ContentType::NONE));
329 static_assert(aidl::android::hardware::graphics::composer3::ContentType::GRAPHICS ==
330               static_cast<aidl::android::hardware::graphics::composer3::ContentType>(
331                       ::android::hardware::graphics::composer::V2_4::IComposerClient::ContentType::
332                               GRAPHICS));
333 static_assert(aidl::android::hardware::graphics::composer3::ContentType::PHOTO ==
334               static_cast<aidl::android::hardware::graphics::composer3::ContentType>(
335                       ::android::hardware::graphics::composer::V2_4::IComposerClient::ContentType::
336                               PHOTO));
337 static_assert(aidl::android::hardware::graphics::composer3::ContentType::CINEMA ==
338               static_cast<aidl::android::hardware::graphics::composer3::ContentType>(
339                       ::android::hardware::graphics::composer::V2_4::IComposerClient::ContentType::
340                               CINEMA));
341 static_assert(
342         aidl::android::hardware::graphics::composer3::ContentType::GAME ==
343         static_cast<aidl::android::hardware::graphics::composer3::ContentType>(
344                 ::android::hardware::graphics::composer::V2_4::IComposerClient::ContentType::GAME));
345 
346 static_assert(
347         aidl::android::hardware::graphics::composer3::PresentOrValidate::Result::Presented ==
348         static_cast<aidl::android::hardware::graphics::composer3::PresentOrValidate::Result>(1));
349 static_assert(
350         aidl::android::hardware::graphics::composer3::PresentOrValidate::Result::Validated ==
351         static_cast<aidl::android::hardware::graphics::composer3::PresentOrValidate::Result>(0));
352 
353 }  // namespace android::h2a
354