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/Mode.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/Mode.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 Mode : int8_t { 28 ERASER = 0, 29 CLASSIFIER = 1, 30 }; 31 32 } // namespace eraser 33 } // namespace audio 34 } // namespace media 35 } // namespace android 36 } // namespace aidl 37 namespace aidl { 38 namespace android { 39 namespace media { 40 namespace audio { 41 namespace eraser { toString(Mode val)42[[nodiscard]] static inline std::string toString(Mode val) { 43 switch(val) { 44 case Mode::ERASER: 45 return "ERASER"; 46 case Mode::CLASSIFIER: 47 return "CLASSIFIER"; 48 default: 49 return std::to_string(static_cast<int8_t>(val)); 50 } 51 } 52 } // namespace eraser 53 } // namespace audio 54 } // namespace media 55 } // namespace android 56 } // namespace aidl 57 namespace ndk { 58 namespace internal { 59 #pragma clang diagnostic push 60 #pragma clang diagnostic ignored "-Wc++17-extensions" 61 template <> 62 constexpr inline std::array<aidl::android::media::audio::eraser::Mode, 2> enum_values<aidl::android::media::audio::eraser::Mode> = { 63 aidl::android::media::audio::eraser::Mode::ERASER, 64 aidl::android::media::audio::eraser::Mode::CLASSIFIER, 65 }; 66 #pragma clang diagnostic pop 67 } // namespace internal 68 } // namespace ndk 69