1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 2 --hash 4470ddfe78d3a0c44832ac08f46e8283fd090347 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/1/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/staging/android/hardware/tv/input/TvInputType.cpp.d -h out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/tv/input/aidl/android.hardware.tv.input-V2-ndk-source/gen/staging -Nhardware/interfaces/tv/input/aidl/aidl_api/android.hardware.tv.input/2 hardware/interfaces/tv/input/aidl/aidl_api/android.hardware.tv.input/2/android/hardware/tv/input/TvInputType.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 tv {
26 namespace input {
27 enum class TvInputType : int32_t {
28   OTHER = 1,
29   TUNER = 2,
30   COMPOSITE = 3,
31   SVIDEO = 4,
32   SCART = 5,
33   COMPONENT = 6,
34   VGA = 7,
35   DVI = 8,
36   HDMI = 9,
37   DISPLAY_PORT = 10,
38 };
39 
40 }  // namespace input
41 }  // namespace tv
42 }  // namespace hardware
43 }  // namespace android
44 }  // namespace aidl
45 namespace aidl {
46 namespace android {
47 namespace hardware {
48 namespace tv {
49 namespace input {
toString(TvInputType val)50 [[nodiscard]] static inline std::string toString(TvInputType val) {
51   switch(val) {
52   case TvInputType::OTHER:
53     return "OTHER";
54   case TvInputType::TUNER:
55     return "TUNER";
56   case TvInputType::COMPOSITE:
57     return "COMPOSITE";
58   case TvInputType::SVIDEO:
59     return "SVIDEO";
60   case TvInputType::SCART:
61     return "SCART";
62   case TvInputType::COMPONENT:
63     return "COMPONENT";
64   case TvInputType::VGA:
65     return "VGA";
66   case TvInputType::DVI:
67     return "DVI";
68   case TvInputType::HDMI:
69     return "HDMI";
70   case TvInputType::DISPLAY_PORT:
71     return "DISPLAY_PORT";
72   default:
73     return std::to_string(static_cast<int32_t>(val));
74   }
75 }
76 }  // namespace input
77 }  // namespace tv
78 }  // namespace hardware
79 }  // namespace android
80 }  // namespace aidl
81 namespace ndk {
82 namespace internal {
83 #pragma clang diagnostic push
84 #pragma clang diagnostic ignored "-Wc++17-extensions"
85 template <>
86 constexpr inline std::array<aidl::android::hardware::tv::input::TvInputType, 10> enum_values<aidl::android::hardware::tv::input::TvInputType> = {
87   aidl::android::hardware::tv::input::TvInputType::OTHER,
88   aidl::android::hardware::tv::input::TvInputType::TUNER,
89   aidl::android::hardware::tv::input::TvInputType::COMPOSITE,
90   aidl::android::hardware::tv::input::TvInputType::SVIDEO,
91   aidl::android::hardware::tv::input::TvInputType::SCART,
92   aidl::android::hardware::tv::input::TvInputType::COMPONENT,
93   aidl::android::hardware::tv::input::TvInputType::VGA,
94   aidl::android::hardware::tv::input::TvInputType::DVI,
95   aidl::android::hardware::tv::input::TvInputType::HDMI,
96   aidl::android::hardware::tv::input::TvInputType::DISPLAY_PORT,
97 };
98 #pragma clang diagnostic pop
99 }  // namespace internal
100 }  // namespace ndk
101