1 /*
2 * This file is auto-generated. DO NOT MODIFY.
3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash cb628c69682659911bca5c1d04042adba7f0de4b -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging/android/hardware/usb/gadget/UsbSpeed.cpp.d -h out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging -Nhardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1 hardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1/android/hardware/usb/gadget/UsbSpeed.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 usb {
26 namespace gadget {
27 enum class UsbSpeed : int32_t {
28 UNKNOWN = -1,
29 LOWSPEED = 0,
30 FULLSPEED = 1,
31 HIGHSPEED = 2,
32 SUPERSPEED = 3,
33 SUPERSPEED_10Gb = 4,
34 SUPERSPEED_20Gb = 5,
35 USB4_GEN2_10Gb = 6,
36 USB4_GEN2_20Gb = 7,
37 USB4_GEN3_20Gb = 8,
38 USB4_GEN3_40Gb = 9,
39 };
40
41 } // namespace gadget
42 } // namespace usb
43 } // namespace hardware
44 } // namespace android
45 } // namespace aidl
46 namespace aidl {
47 namespace android {
48 namespace hardware {
49 namespace usb {
50 namespace gadget {
toString(UsbSpeed val)51 [[nodiscard]] static inline std::string toString(UsbSpeed val) {
52 switch(val) {
53 case UsbSpeed::UNKNOWN:
54 return "UNKNOWN";
55 case UsbSpeed::LOWSPEED:
56 return "LOWSPEED";
57 case UsbSpeed::FULLSPEED:
58 return "FULLSPEED";
59 case UsbSpeed::HIGHSPEED:
60 return "HIGHSPEED";
61 case UsbSpeed::SUPERSPEED:
62 return "SUPERSPEED";
63 case UsbSpeed::SUPERSPEED_10Gb:
64 return "SUPERSPEED_10Gb";
65 case UsbSpeed::SUPERSPEED_20Gb:
66 return "SUPERSPEED_20Gb";
67 case UsbSpeed::USB4_GEN2_10Gb:
68 return "USB4_GEN2_10Gb";
69 case UsbSpeed::USB4_GEN2_20Gb:
70 return "USB4_GEN2_20Gb";
71 case UsbSpeed::USB4_GEN3_20Gb:
72 return "USB4_GEN3_20Gb";
73 case UsbSpeed::USB4_GEN3_40Gb:
74 return "USB4_GEN3_40Gb";
75 default:
76 return std::to_string(static_cast<int32_t>(val));
77 }
78 }
79 } // namespace gadget
80 } // namespace usb
81 } // namespace hardware
82 } // namespace android
83 } // namespace aidl
84 namespace ndk {
85 namespace internal {
86 #pragma clang diagnostic push
87 #pragma clang diagnostic ignored "-Wc++17-extensions"
88 template <>
89 constexpr inline std::array<aidl::android::hardware::usb::gadget::UsbSpeed, 11> enum_values<aidl::android::hardware::usb::gadget::UsbSpeed> = {
90 aidl::android::hardware::usb::gadget::UsbSpeed::UNKNOWN,
91 aidl::android::hardware::usb::gadget::UsbSpeed::LOWSPEED,
92 aidl::android::hardware::usb::gadget::UsbSpeed::FULLSPEED,
93 aidl::android::hardware::usb::gadget::UsbSpeed::HIGHSPEED,
94 aidl::android::hardware::usb::gadget::UsbSpeed::SUPERSPEED,
95 aidl::android::hardware::usb::gadget::UsbSpeed::SUPERSPEED_10Gb,
96 aidl::android::hardware::usb::gadget::UsbSpeed::SUPERSPEED_20Gb,
97 aidl::android::hardware::usb::gadget::UsbSpeed::USB4_GEN2_10Gb,
98 aidl::android::hardware::usb::gadget::UsbSpeed::USB4_GEN2_20Gb,
99 aidl::android::hardware::usb::gadget::UsbSpeed::USB4_GEN3_20Gb,
100 aidl::android::hardware::usb::gadget::UsbSpeed::USB4_GEN3_40Gb,
101 };
102 #pragma clang diagnostic pop
103 } // namespace internal
104 } // namespace ndk
105