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 3 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/tv/tuner/aidl/aidl_api/android.hardware.tv.tuner/2 --previous_hash f8d74c149f04e76b6d622db2bd8e465dae24b08c --ninja -d out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/staging/android/hardware/tv/tuner/AudioStreamType.cpp.d -h out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/tv/tuner/aidl/android.hardware.tv.tuner-V3-ndk-source/gen/staging -Nhardware/interfaces/tv/tuner/aidl hardware/interfaces/tv/tuner/aidl/android/hardware/tv/tuner/AudioStreamType.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 tuner {
27 enum class AudioStreamType : int32_t {
28 UNDEFINED = 0,
29 PCM = 1,
30 MP3 = 2,
31 MPEG1 = 3,
32 MPEG2 = 4,
33 MPEGH = 5,
34 AAC = 6,
35 AC3 = 7,
36 EAC3 = 8,
37 AC4 = 9,
38 DTS = 10,
39 DTS_HD = 11,
40 WMA = 12,
41 OPUS = 13,
42 VORBIS = 14,
43 DRA = 15,
44 AAC_ADTS = 16,
45 AAC_LATM = 17,
46 AAC_HE_ADTS = 18,
47 AAC_HE_LATM = 19,
48 };
49
50 } // namespace tuner
51 } // namespace tv
52 } // namespace hardware
53 } // namespace android
54 } // namespace aidl
55 namespace aidl {
56 namespace android {
57 namespace hardware {
58 namespace tv {
59 namespace tuner {
toString(AudioStreamType val)60 [[nodiscard]] static inline std::string toString(AudioStreamType val) {
61 switch(val) {
62 case AudioStreamType::UNDEFINED:
63 return "UNDEFINED";
64 case AudioStreamType::PCM:
65 return "PCM";
66 case AudioStreamType::MP3:
67 return "MP3";
68 case AudioStreamType::MPEG1:
69 return "MPEG1";
70 case AudioStreamType::MPEG2:
71 return "MPEG2";
72 case AudioStreamType::MPEGH:
73 return "MPEGH";
74 case AudioStreamType::AAC:
75 return "AAC";
76 case AudioStreamType::AC3:
77 return "AC3";
78 case AudioStreamType::EAC3:
79 return "EAC3";
80 case AudioStreamType::AC4:
81 return "AC4";
82 case AudioStreamType::DTS:
83 return "DTS";
84 case AudioStreamType::DTS_HD:
85 return "DTS_HD";
86 case AudioStreamType::WMA:
87 return "WMA";
88 case AudioStreamType::OPUS:
89 return "OPUS";
90 case AudioStreamType::VORBIS:
91 return "VORBIS";
92 case AudioStreamType::DRA:
93 return "DRA";
94 case AudioStreamType::AAC_ADTS:
95 return "AAC_ADTS";
96 case AudioStreamType::AAC_LATM:
97 return "AAC_LATM";
98 case AudioStreamType::AAC_HE_ADTS:
99 return "AAC_HE_ADTS";
100 case AudioStreamType::AAC_HE_LATM:
101 return "AAC_HE_LATM";
102 default:
103 return std::to_string(static_cast<int32_t>(val));
104 }
105 }
106 } // namespace tuner
107 } // namespace tv
108 } // namespace hardware
109 } // namespace android
110 } // namespace aidl
111 namespace ndk {
112 namespace internal {
113 #pragma clang diagnostic push
114 #pragma clang diagnostic ignored "-Wc++17-extensions"
115 template <>
116 constexpr inline std::array<aidl::android::hardware::tv::tuner::AudioStreamType, 20> enum_values<aidl::android::hardware::tv::tuner::AudioStreamType> = {
117 aidl::android::hardware::tv::tuner::AudioStreamType::UNDEFINED,
118 aidl::android::hardware::tv::tuner::AudioStreamType::PCM,
119 aidl::android::hardware::tv::tuner::AudioStreamType::MP3,
120 aidl::android::hardware::tv::tuner::AudioStreamType::MPEG1,
121 aidl::android::hardware::tv::tuner::AudioStreamType::MPEG2,
122 aidl::android::hardware::tv::tuner::AudioStreamType::MPEGH,
123 aidl::android::hardware::tv::tuner::AudioStreamType::AAC,
124 aidl::android::hardware::tv::tuner::AudioStreamType::AC3,
125 aidl::android::hardware::tv::tuner::AudioStreamType::EAC3,
126 aidl::android::hardware::tv::tuner::AudioStreamType::AC4,
127 aidl::android::hardware::tv::tuner::AudioStreamType::DTS,
128 aidl::android::hardware::tv::tuner::AudioStreamType::DTS_HD,
129 aidl::android::hardware::tv::tuner::AudioStreamType::WMA,
130 aidl::android::hardware::tv::tuner::AudioStreamType::OPUS,
131 aidl::android::hardware::tv::tuner::AudioStreamType::VORBIS,
132 aidl::android::hardware::tv::tuner::AudioStreamType::DRA,
133 aidl::android::hardware::tv::tuner::AudioStreamType::AAC_ADTS,
134 aidl::android::hardware::tv::tuner::AudioStreamType::AAC_LATM,
135 aidl::android::hardware::tv::tuner::AudioStreamType::AAC_HE_ADTS,
136 aidl::android::hardware::tv::tuner::AudioStreamType::AAC_HE_LATM,
137 };
138 #pragma clang diagnostic pop
139 } // namespace internal
140 } // namespace ndk
141