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 -Werror -Weverything --structured --version 1 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.common.types_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.eraser.types-V1-ndk-source/gen/staging/android/media/audio/eraser/SoundClassification.cpp.d -h out/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.eraser.types-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/system/hardware/interfaces/media/android.media.audio.eraser.types-V1-ndk-source/gen/staging -Nsystem/hardware/interfaces/media/aidl system/hardware/interfaces/media/aidl/android/media/audio/eraser/SoundClassification.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 media {
25 namespace audio {
26 namespace eraser {
27 enum class SoundClassification : int32_t {
28   HUMAN = 0,
29   ANIMAL = 1,
30   NATURE = 2,
31   MUSIC = 3,
32   THINGS = 4,
33   AMBIGUOUS = 5,
34   ENVIRONMENT = 6,
35   VENDOR_EXTENSION = 7,
36 };
37 
38 }  // namespace eraser
39 }  // namespace audio
40 }  // namespace media
41 }  // namespace android
42 }  // namespace aidl
43 namespace aidl {
44 namespace android {
45 namespace media {
46 namespace audio {
47 namespace eraser {
toString(SoundClassification val)48 [[nodiscard]] static inline std::string toString(SoundClassification val) {
49   switch(val) {
50   case SoundClassification::HUMAN:
51     return "HUMAN";
52   case SoundClassification::ANIMAL:
53     return "ANIMAL";
54   case SoundClassification::NATURE:
55     return "NATURE";
56   case SoundClassification::MUSIC:
57     return "MUSIC";
58   case SoundClassification::THINGS:
59     return "THINGS";
60   case SoundClassification::AMBIGUOUS:
61     return "AMBIGUOUS";
62   case SoundClassification::ENVIRONMENT:
63     return "ENVIRONMENT";
64   case SoundClassification::VENDOR_EXTENSION:
65     return "VENDOR_EXTENSION";
66   default:
67     return std::to_string(static_cast<int32_t>(val));
68   }
69 }
70 }  // namespace eraser
71 }  // namespace audio
72 }  // namespace media
73 }  // namespace android
74 }  // namespace aidl
75 namespace ndk {
76 namespace internal {
77 #pragma clang diagnostic push
78 #pragma clang diagnostic ignored "-Wc++17-extensions"
79 template <>
80 constexpr inline std::array<aidl::android::media::audio::eraser::SoundClassification, 8> enum_values<aidl::android::media::audio::eraser::SoundClassification> = {
81   aidl::android::media::audio::eraser::SoundClassification::HUMAN,
82   aidl::android::media::audio::eraser::SoundClassification::ANIMAL,
83   aidl::android::media::audio::eraser::SoundClassification::NATURE,
84   aidl::android::media::audio::eraser::SoundClassification::MUSIC,
85   aidl::android::media::audio::eraser::SoundClassification::THINGS,
86   aidl::android::media::audio::eraser::SoundClassification::AMBIGUOUS,
87   aidl::android::media::audio::eraser::SoundClassification::ENVIRONMENT,
88   aidl::android::media::audio::eraser::SoundClassification::VENDOR_EXTENSION,
89 };
90 #pragma clang diagnostic pop
91 }  // namespace internal
92 }  // namespace ndk
93