1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 4 --hash c43fbb9be4a662cc9ace640dba21cccdb84c6c21 -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/biometrics/common/aidl/android.hardware.biometrics.common_interface/4/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/keymaster/aidl/android.hardware.keymaster_interface/4/preprocessed.aidl --ninja -d out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/staging/android/hardware/biometrics/face/Error.cpp.d -h out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/biometrics/face/aidl/android.hardware.biometrics.face-V4-ndk-source/gen/staging -Iframeworks/native/aidl/gui -Nhardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/4 hardware/interfaces/biometrics/face/aidl/aidl_api/android.hardware.biometrics.face/4/android/hardware/biometrics/face/Error.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 face {
27 enum class Error : int8_t {
28   UNKNOWN = 0,
29   HW_UNAVAILABLE = 1,
30   UNABLE_TO_PROCESS = 2,
31   TIMEOUT = 3,
32   NO_SPACE = 4,
33   CANCELED = 5,
34   UNABLE_TO_REMOVE = 6,
35   VENDOR = 7,
36   REENROLL_REQUIRED = 8,
37 };
38 
39 }  // namespace face
40 }  // namespace biometrics
41 }  // namespace hardware
42 }  // namespace android
43 }  // namespace aidl
44 namespace aidl {
45 namespace android {
46 namespace hardware {
47 namespace biometrics {
48 namespace face {
toString(Error val)49 [[nodiscard]] static inline std::string toString(Error val) {
50   switch(val) {
51   case Error::UNKNOWN:
52     return "UNKNOWN";
53   case Error::HW_UNAVAILABLE:
54     return "HW_UNAVAILABLE";
55   case Error::UNABLE_TO_PROCESS:
56     return "UNABLE_TO_PROCESS";
57   case Error::TIMEOUT:
58     return "TIMEOUT";
59   case Error::NO_SPACE:
60     return "NO_SPACE";
61   case Error::CANCELED:
62     return "CANCELED";
63   case Error::UNABLE_TO_REMOVE:
64     return "UNABLE_TO_REMOVE";
65   case Error::VENDOR:
66     return "VENDOR";
67   case Error::REENROLL_REQUIRED:
68     return "REENROLL_REQUIRED";
69   default:
70     return std::to_string(static_cast<int8_t>(val));
71   }
72 }
73 }  // namespace face
74 }  // namespace biometrics
75 }  // namespace hardware
76 }  // namespace android
77 }  // namespace aidl
78 namespace ndk {
79 namespace internal {
80 #pragma clang diagnostic push
81 #pragma clang diagnostic ignored "-Wc++17-extensions"
82 template <>
83 constexpr inline std::array<aidl::android::hardware::biometrics::face::Error, 9> enum_values<aidl::android::hardware::biometrics::face::Error> = {
84   aidl::android::hardware::biometrics::face::Error::UNKNOWN,
85   aidl::android::hardware::biometrics::face::Error::HW_UNAVAILABLE,
86   aidl::android::hardware::biometrics::face::Error::UNABLE_TO_PROCESS,
87   aidl::android::hardware::biometrics::face::Error::TIMEOUT,
88   aidl::android::hardware::biometrics::face::Error::NO_SPACE,
89   aidl::android::hardware::biometrics::face::Error::CANCELED,
90   aidl::android::hardware::biometrics::face::Error::UNABLE_TO_REMOVE,
91   aidl::android::hardware::biometrics::face::Error::VENDOR,
92   aidl::android::hardware::biometrics::face::Error::REENROLL_REQUIRED,
93 };
94 #pragma clang diagnostic pop
95 }  // namespace internal
96 }  // namespace ndk
97