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/ModeType.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/ModeType.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 ModeType : int8_t {
28   ZERO = 0,
29   ONE = 1,
30   TWO = 2,
31   THREE = 3,
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(ModeType val)44 [[nodiscard]] static inline std::string toString(ModeType val) {
45   switch(val) {
46   case ModeType::ZERO:
47     return "ZERO";
48   case ModeType::ONE:
49     return "ONE";
50   case ModeType::TWO:
51     return "TWO";
52   case ModeType::THREE:
53     return "THREE";
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::ModeType, 4> enum_values<aidl::android::hardware::bluetooth::ranging::ModeType> = {
69   aidl::android::hardware::bluetooth::ranging::ModeType::ZERO,
70   aidl::android::hardware::bluetooth::ranging::ModeType::ONE,
71   aidl::android::hardware::bluetooth::ranging::ModeType::TWO,
72   aidl::android::hardware::bluetooth::ranging::ModeType::THREE,
73 };
74 #pragma clang diagnostic pop
75 }  // namespace internal
76 }  // namespace ndk
77