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 -t --min_sdk_version current --ninja -d out/soong/.intermediates/system/security/keystore2/aidl/android.security.apc-ndk-source/gen/staging/android/security/apc/ResponseCode.cpp.d -h out/soong/.intermediates/system/security/keystore2/aidl/android.security.apc-ndk-source/gen/include/staging -o out/soong/.intermediates/system/security/keystore2/aidl/android.security.apc-ndk-source/gen/staging -Nsystem/security/keystore2/aidl system/security/keystore2/aidl/android/security/apc/ResponseCode.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 security {
25 namespace apc {
26 enum class ResponseCode : int32_t {
27 OK = 0,
28 CANCELLED = 1,
29 ABORTED = 2,
30 OPERATION_PENDING = 3,
31 IGNORED = 4,
32 SYSTEM_ERROR = 5,
33 UNIMPLEMENTED = 6,
34 PERMISSION_DENIED = 30,
35 };
36
37 } // namespace apc
38 } // namespace security
39 } // namespace android
40 } // namespace aidl
41 namespace aidl {
42 namespace android {
43 namespace security {
44 namespace apc {
toString(ResponseCode val)45 [[nodiscard]] static inline std::string toString(ResponseCode val) {
46 switch(val) {
47 case ResponseCode::OK:
48 return "OK";
49 case ResponseCode::CANCELLED:
50 return "CANCELLED";
51 case ResponseCode::ABORTED:
52 return "ABORTED";
53 case ResponseCode::OPERATION_PENDING:
54 return "OPERATION_PENDING";
55 case ResponseCode::IGNORED:
56 return "IGNORED";
57 case ResponseCode::SYSTEM_ERROR:
58 return "SYSTEM_ERROR";
59 case ResponseCode::UNIMPLEMENTED:
60 return "UNIMPLEMENTED";
61 case ResponseCode::PERMISSION_DENIED:
62 return "PERMISSION_DENIED";
63 default:
64 return std::to_string(static_cast<int32_t>(val));
65 }
66 }
67 } // namespace apc
68 } // namespace security
69 } // namespace android
70 } // namespace aidl
71 namespace ndk {
72 namespace internal {
73 #pragma clang diagnostic push
74 #pragma clang diagnostic ignored "-Wc++17-extensions"
75 template <>
76 constexpr inline std::array<aidl::android::security::apc::ResponseCode, 8> enum_values<aidl::android::security::apc::ResponseCode> = {
77 aidl::android::security::apc::ResponseCode::OK,
78 aidl::android::security::apc::ResponseCode::CANCELLED,
79 aidl::android::security::apc::ResponseCode::ABORTED,
80 aidl::android::security::apc::ResponseCode::OPERATION_PENDING,
81 aidl::android::security::apc::ResponseCode::IGNORED,
82 aidl::android::security::apc::ResponseCode::SYSTEM_ERROR,
83 aidl::android::security::apc::ResponseCode::UNIMPLEMENTED,
84 aidl::android::security::apc::ResponseCode::PERMISSION_DENIED,
85 };
86 #pragma clang diagnostic pop
87 } // namespace internal
88 } // namespace ndk
89