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 31 --ninja -d out/soong/.intermediates/art/artd/binder/artd-aidl-ndk-source/gen/staging/com/android/server/art/ArtifactsLocation.cpp.d -h out/soong/.intermediates/art/artd/binder/artd-aidl-ndk-source/gen/include/staging -o out/soong/.intermediates/art/artd/binder/artd-aidl-ndk-source/gen/staging -Nart/artd/binder art/artd/binder/com/android/server/art/ArtifactsLocation.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 com {
24 namespace android {
25 namespace server {
26 namespace art {
27 enum class ArtifactsLocation : int32_t {
28 NONE_OR_ERROR = 0,
29 DALVIK_CACHE = 1,
30 NEXT_TO_DEX = 2,
31 DM = 3,
32 };
33
34 } // namespace art
35 } // namespace server
36 } // namespace android
37 } // namespace com
38 } // namespace aidl
39 namespace aidl {
40 namespace com {
41 namespace android {
42 namespace server {
43 namespace art {
toString(ArtifactsLocation val)44 [[nodiscard]] static inline std::string toString(ArtifactsLocation val) {
45 switch(val) {
46 case ArtifactsLocation::NONE_OR_ERROR:
47 return "NONE_OR_ERROR";
48 case ArtifactsLocation::DALVIK_CACHE:
49 return "DALVIK_CACHE";
50 case ArtifactsLocation::NEXT_TO_DEX:
51 return "NEXT_TO_DEX";
52 case ArtifactsLocation::DM:
53 return "DM";
54 default:
55 return std::to_string(static_cast<int32_t>(val));
56 }
57 }
58 } // namespace art
59 } // namespace server
60 } // namespace android
61 } // namespace com
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::com::android::server::art::ArtifactsLocation, 4> enum_values<aidl::com::android::server::art::ArtifactsLocation> = {
69 aidl::com::android::server::art::ArtifactsLocation::NONE_OR_ERROR,
70 aidl::com::android::server::art::ArtifactsLocation::DALVIK_CACHE,
71 aidl::com::android::server::art::ArtifactsLocation::NEXT_TO_DEX,
72 aidl::com::android::server::art::ArtifactsLocation::DM,
73 };
74 #pragma clang diagnostic pop
75 } // namespace internal
76 } // namespace ndk
77