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 --previous_api_dir=hardware/interfaces/thermal/aidl/aidl_api/android.hardware.thermal/2 --previous_hash 2f49c78011338b42b43d5d0e250d9b520850cc1f --ninja -d out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/staging/android/hardware/thermal/ThrottlingSeverity.cpp.d -h out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/thermal/aidl/android.hardware.thermal-V3-ndk-source/gen/staging -Nhardware/interfaces/thermal/aidl hardware/interfaces/thermal/aidl/android/hardware/thermal/ThrottlingSeverity.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 thermal {
26 enum class ThrottlingSeverity : int32_t {
27 NONE = 0,
28 LIGHT = 1,
29 MODERATE = 2,
30 SEVERE = 3,
31 CRITICAL = 4,
32 EMERGENCY = 5,
33 SHUTDOWN = 6,
34 };
35
36 } // namespace thermal
37 } // namespace hardware
38 } // namespace android
39 } // namespace aidl
40 namespace aidl {
41 namespace android {
42 namespace hardware {
43 namespace thermal {
toString(ThrottlingSeverity val)44 [[nodiscard]] static inline std::string toString(ThrottlingSeverity val) {
45 switch(val) {
46 case ThrottlingSeverity::NONE:
47 return "NONE";
48 case ThrottlingSeverity::LIGHT:
49 return "LIGHT";
50 case ThrottlingSeverity::MODERATE:
51 return "MODERATE";
52 case ThrottlingSeverity::SEVERE:
53 return "SEVERE";
54 case ThrottlingSeverity::CRITICAL:
55 return "CRITICAL";
56 case ThrottlingSeverity::EMERGENCY:
57 return "EMERGENCY";
58 case ThrottlingSeverity::SHUTDOWN:
59 return "SHUTDOWN";
60 default:
61 return std::to_string(static_cast<int32_t>(val));
62 }
63 }
64 } // namespace thermal
65 } // namespace hardware
66 } // namespace android
67 } // namespace aidl
68 namespace ndk {
69 namespace internal {
70 #pragma clang diagnostic push
71 #pragma clang diagnostic ignored "-Wc++17-extensions"
72 template <>
73 constexpr inline std::array<aidl::android::hardware::thermal::ThrottlingSeverity, 7> enum_values<aidl::android::hardware::thermal::ThrottlingSeverity> = {
74 aidl::android::hardware::thermal::ThrottlingSeverity::NONE,
75 aidl::android::hardware::thermal::ThrottlingSeverity::LIGHT,
76 aidl::android::hardware::thermal::ThrottlingSeverity::MODERATE,
77 aidl::android::hardware::thermal::ThrottlingSeverity::SEVERE,
78 aidl::android::hardware::thermal::ThrottlingSeverity::CRITICAL,
79 aidl::android::hardware::thermal::ThrottlingSeverity::EMERGENCY,
80 aidl::android::hardware::thermal::ThrottlingSeverity::SHUTDOWN,
81 };
82 #pragma clang diagnostic pop
83 } // namespace internal
84 } // namespace ndk
85