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