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/LocationType.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/LocationType.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 LocationType : int8_t { 28 UNKNOWN = 0, 29 INDOOR = 1, 30 OUTDOOR = 2, 31 }; 32 33 } // namespace ranging 34 } // namespace bluetooth 35 } // namespace hardware 36 } // namespace android 37 } // namespace aidl 38 namespace aidl { 39 namespace android { 40 namespace hardware { 41 namespace bluetooth { 42 namespace ranging { toString(LocationType val)43[[nodiscard]] static inline std::string toString(LocationType val) { 44 switch(val) { 45 case LocationType::UNKNOWN: 46 return "UNKNOWN"; 47 case LocationType::INDOOR: 48 return "INDOOR"; 49 case LocationType::OUTDOOR: 50 return "OUTDOOR"; 51 default: 52 return std::to_string(static_cast<int8_t>(val)); 53 } 54 } 55 } // namespace ranging 56 } // namespace bluetooth 57 } // namespace hardware 58 } // namespace android 59 } // namespace aidl 60 namespace ndk { 61 namespace internal { 62 #pragma clang diagnostic push 63 #pragma clang diagnostic ignored "-Wc++17-extensions" 64 template <> 65 constexpr inline std::array<aidl::android::hardware::bluetooth::ranging::LocationType, 3> enum_values<aidl::android::hardware::bluetooth::ranging::LocationType> = { 66 aidl::android::hardware::bluetooth::ranging::LocationType::UNKNOWN, 67 aidl::android::hardware::bluetooth::ranging::LocationType::INDOOR, 68 aidl::android::hardware::bluetooth::ranging::LocationType::OUTDOOR, 69 }; 70 #pragma clang diagnostic pop 71 } // namespace internal 72 } // namespace ndk 73