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 29 -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl --previous_api_dir=hardware/interfaces/graphics/common/aidl/aidl_api/android.hardware.graphics.common/5 --previous_hash 2ffe8da1136972e9b6bed7903f0d5aca289005a9 --ninja -d out/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-V6-ndk-source/gen/staging/android/hardware/graphics/common/DisplayHotplugEvent.cpp.d -h out/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-V6-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common-V6-ndk-source/gen/staging -Nhardware/interfaces/graphics/common/aidl hardware/interfaces/graphics/common/aidl/android/hardware/graphics/common/DisplayHotplugEvent.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 <array>
12 #include <cstdint>
13 #include <memory>
14 #include <optional>
15 #include <string>
16 #include <vector>
17 #include <android/binder_enums.h>
18 #ifdef BINDER_STABILITY_SUPPORT
19 #include <android/binder_stability.h>
20 #endif  // BINDER_STABILITY_SUPPORT
21 
22 namespace aidl {
23 namespace android {
24 namespace hardware {
25 namespace graphics {
26 namespace common {
27 enum class DisplayHotplugEvent : int32_t {
28   CONNECTED = 0,
29   DISCONNECTED = 1,
30   ERROR_UNKNOWN = -1,
31   ERROR_INCOMPATIBLE_CABLE = -2,
32   ERROR_TOO_MANY_DISPLAYS = -3,
33   ERROR_LINK_UNSTABLE = -4,
34 };
35 
36 }  // namespace common
37 }  // namespace graphics
38 }  // namespace hardware
39 }  // namespace android
40 }  // namespace aidl
41 namespace aidl {
42 namespace android {
43 namespace hardware {
44 namespace graphics {
45 namespace common {
toString(DisplayHotplugEvent val)46 [[nodiscard]] static inline std::string toString(DisplayHotplugEvent val) {
47   switch(val) {
48   case DisplayHotplugEvent::CONNECTED:
49     return "CONNECTED";
50   case DisplayHotplugEvent::DISCONNECTED:
51     return "DISCONNECTED";
52   case DisplayHotplugEvent::ERROR_UNKNOWN:
53     return "ERROR_UNKNOWN";
54   case DisplayHotplugEvent::ERROR_INCOMPATIBLE_CABLE:
55     return "ERROR_INCOMPATIBLE_CABLE";
56   case DisplayHotplugEvent::ERROR_TOO_MANY_DISPLAYS:
57     return "ERROR_TOO_MANY_DISPLAYS";
58   case DisplayHotplugEvent::ERROR_LINK_UNSTABLE:
59     return "ERROR_LINK_UNSTABLE";
60   default:
61     return std::to_string(static_cast<int32_t>(val));
62   }
63 }
64 }  // namespace common
65 }  // namespace graphics
66 }  // namespace hardware
67 }  // namespace android
68 }  // namespace aidl
69 namespace ndk {
70 namespace internal {
71 #pragma clang diagnostic push
72 #pragma clang diagnostic ignored "-Wc++17-extensions"
73 template <>
74 constexpr inline std::array<aidl::android::hardware::graphics::common::DisplayHotplugEvent, 6> enum_values<aidl::android::hardware::graphics::common::DisplayHotplugEvent> = {
75   aidl::android::hardware::graphics::common::DisplayHotplugEvent::CONNECTED,
76   aidl::android::hardware::graphics::common::DisplayHotplugEvent::DISCONNECTED,
77   aidl::android::hardware::graphics::common::DisplayHotplugEvent::ERROR_UNKNOWN,
78   aidl::android::hardware::graphics::common::DisplayHotplugEvent::ERROR_INCOMPATIBLE_CABLE,
79   aidl::android::hardware::graphics::common::DisplayHotplugEvent::ERROR_TOO_MANY_DISPLAYS,
80   aidl::android::hardware::graphics::common::DisplayHotplugEvent::ERROR_LINK_UNSTABLE,
81 };
82 #pragma clang diagnostic pop
83 }  // namespace internal
84 }  // namespace ndk
85