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 2 --hash notfrozen -t --stability vintf --min_sdk_version 33 --previous_api_dir=hardware/interfaces/bluetooth/ranging/aidl/aidl_api/android.hardware.bluetooth.ranging/1 --previous_hash d257bb74ef61a4cbb5854f4663604dd491b4a7bf --ninja -d out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging/android/hardware/bluetooth/ranging/SubModeType.cpp.d -h out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/bluetooth/ranging/aidl/android.hardware.bluetooth.ranging-V2-ndk-source/gen/staging -Nhardware/interfaces/bluetooth/ranging/aidl hardware/interfaces/bluetooth/ranging/aidl/android/hardware/bluetooth/ranging/SubModeType.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 bluetooth {
26 namespace ranging {
27 enum class SubModeType : int8_t {
28   ONE = 1,
29   TWO = 2,
30   THREE = 3,
31   UNUSED = -1,
32 };
33 
34 }  // namespace ranging
35 }  // namespace bluetooth
36 }  // namespace hardware
37 }  // namespace android
38 }  // namespace aidl
39 namespace aidl {
40 namespace android {
41 namespace hardware {
42 namespace bluetooth {
43 namespace ranging {
toString(SubModeType val)44 [[nodiscard]] static inline std::string toString(SubModeType val) {
45   switch(val) {
46   case SubModeType::ONE:
47     return "ONE";
48   case SubModeType::TWO:
49     return "TWO";
50   case SubModeType::THREE:
51     return "THREE";
52   case SubModeType::UNUSED:
53     return "UNUSED";
54   default:
55     return std::to_string(static_cast<int8_t>(val));
56   }
57 }
58 }  // namespace ranging
59 }  // namespace bluetooth
60 }  // namespace hardware
61 }  // namespace android
62 }  // namespace aidl
63 namespace ndk {
64 namespace internal {
65 #pragma clang diagnostic push
66 #pragma clang diagnostic ignored "-Wc++17-extensions"
67 template <>
68 constexpr inline std::array<aidl::android::hardware::bluetooth::ranging::SubModeType, 4> enum_values<aidl::android::hardware::bluetooth::ranging::SubModeType> = {
69   aidl::android::hardware::bluetooth::ranging::SubModeType::ONE,
70   aidl::android::hardware::bluetooth::ranging::SubModeType::TWO,
71   aidl::android::hardware::bluetooth::ranging::SubModeType::THREE,
72   aidl::android::hardware::bluetooth::ranging::SubModeType::UNUSED,
73 };
74 #pragma clang diagnostic pop
75 }  // namespace internal
76 }  // namespace ndk
77