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