1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash 8a6cd86630181a4df6f20056259ec200ffe39209 -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/staging/android/hardware/biometrics/common/FoldState.cpp.d -h out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common-V4-ndk-source/gen/staging -Nhardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/4 hardware/interfaces/biometrics/common/aidl/aidl_api/android.hardware.biometrics.common/4/android/hardware/biometrics/common/FoldState.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 biometrics {
26 namespace common {
27 enum class FoldState : int32_t {
28   UNKNOWN = 0,
29   HALF_OPENED = 1,
30   FULLY_OPENED = 2,
31   FULLY_CLOSED = 3,
32 };
33 
34 }  // namespace common
35 }  // namespace biometrics
36 }  // namespace hardware
37 }  // namespace android
38 }  // namespace aidl
39 namespace aidl {
40 namespace android {
41 namespace hardware {
42 namespace biometrics {
43 namespace common {
toString(FoldState val)44 [[nodiscard]] static inline std::string toString(FoldState val) {
45   switch(val) {
46   case FoldState::UNKNOWN:
47     return "UNKNOWN";
48   case FoldState::HALF_OPENED:
49     return "HALF_OPENED";
50   case FoldState::FULLY_OPENED:
51     return "FULLY_OPENED";
52   case FoldState::FULLY_CLOSED:
53     return "FULLY_CLOSED";
54   default:
55     return std::to_string(static_cast<int32_t>(val));
56   }
57 }
58 }  // namespace common
59 }  // namespace biometrics
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::biometrics::common::FoldState, 4> enum_values<aidl::android::hardware::biometrics::common::FoldState> = {
69   aidl::android::hardware::biometrics::common::FoldState::UNKNOWN,
70   aidl::android::hardware::biometrics::common::FoldState::HALF_OPENED,
71   aidl::android::hardware::biometrics::common::FoldState::FULLY_OPENED,
72   aidl::android::hardware::biometrics::common::FoldState::FULLY_CLOSED,
73 };
74 #pragma clang diagnostic pop
75 }  // namespace internal
76 }  // namespace ndk
77