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/CoolingType.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/CoolingType.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 CoolingType : int32_t {
27 FAN = 0,
28 BATTERY = 1,
29 CPU = 2,
30 GPU = 3,
31 MODEM = 4,
32 NPU = 5,
33 COMPONENT = 6,
34 TPU = 7,
35 POWER_AMPLIFIER = 8,
36 DISPLAY = 9,
37 SPEAKER = 10,
38 WIFI = 11,
39 CAMERA = 12,
40 FLASHLIGHT = 13,
41 USB_PORT = 14,
42 };
43
44 } // namespace thermal
45 } // namespace hardware
46 } // namespace android
47 } // namespace aidl
48 namespace aidl {
49 namespace android {
50 namespace hardware {
51 namespace thermal {
toString(CoolingType val)52 [[nodiscard]] static inline std::string toString(CoolingType val) {
53 switch(val) {
54 case CoolingType::FAN:
55 return "FAN";
56 case CoolingType::BATTERY:
57 return "BATTERY";
58 case CoolingType::CPU:
59 return "CPU";
60 case CoolingType::GPU:
61 return "GPU";
62 case CoolingType::MODEM:
63 return "MODEM";
64 case CoolingType::NPU:
65 return "NPU";
66 case CoolingType::COMPONENT:
67 return "COMPONENT";
68 case CoolingType::TPU:
69 return "TPU";
70 case CoolingType::POWER_AMPLIFIER:
71 return "POWER_AMPLIFIER";
72 case CoolingType::DISPLAY:
73 return "DISPLAY";
74 case CoolingType::SPEAKER:
75 return "SPEAKER";
76 case CoolingType::WIFI:
77 return "WIFI";
78 case CoolingType::CAMERA:
79 return "CAMERA";
80 case CoolingType::FLASHLIGHT:
81 return "FLASHLIGHT";
82 case CoolingType::USB_PORT:
83 return "USB_PORT";
84 default:
85 return std::to_string(static_cast<int32_t>(val));
86 }
87 }
88 } // namespace thermal
89 } // namespace hardware
90 } // namespace android
91 } // namespace aidl
92 namespace ndk {
93 namespace internal {
94 #pragma clang diagnostic push
95 #pragma clang diagnostic ignored "-Wc++17-extensions"
96 template <>
97 constexpr inline std::array<aidl::android::hardware::thermal::CoolingType, 15> enum_values<aidl::android::hardware::thermal::CoolingType> = {
98 aidl::android::hardware::thermal::CoolingType::FAN,
99 aidl::android::hardware::thermal::CoolingType::BATTERY,
100 aidl::android::hardware::thermal::CoolingType::CPU,
101 aidl::android::hardware::thermal::CoolingType::GPU,
102 aidl::android::hardware::thermal::CoolingType::MODEM,
103 aidl::android::hardware::thermal::CoolingType::NPU,
104 aidl::android::hardware::thermal::CoolingType::COMPONENT,
105 aidl::android::hardware::thermal::CoolingType::TPU,
106 aidl::android::hardware::thermal::CoolingType::POWER_AMPLIFIER,
107 aidl::android::hardware::thermal::CoolingType::DISPLAY,
108 aidl::android::hardware::thermal::CoolingType::SPEAKER,
109 aidl::android::hardware::thermal::CoolingType::WIFI,
110 aidl::android::hardware::thermal::CoolingType::CAMERA,
111 aidl::android::hardware::thermal::CoolingType::FLASHLIGHT,
112 aidl::android::hardware::thermal::CoolingType::USB_PORT,
113 };
114 #pragma clang diagnostic pop
115 } // namespace internal
116 } // namespace ndk
117