1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash da59ee6c3e1088cbace3b6a913077ce52ca2ef25 -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/staging/android/hardware/fastboot/FileSystemType.cpp.d -h out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/fastboot/aidl/android.hardware.fastboot-V1-ndk-source/gen/staging -Nhardware/interfaces/fastboot/aidl/aidl_api/android.hardware.fastboot/1 hardware/interfaces/fastboot/aidl/aidl_api/android.hardware.fastboot/1/android/hardware/fastboot/FileSystemType.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 fastboot {
26 enum class FileSystemType : int8_t {
27   EXT4 = 0,
28   F2FS = 1,
29   RAW = 2,
30 };
31 
32 }  // namespace fastboot
33 }  // namespace hardware
34 }  // namespace android
35 }  // namespace aidl
36 namespace aidl {
37 namespace android {
38 namespace hardware {
39 namespace fastboot {
toString(FileSystemType val)40 [[nodiscard]] static inline std::string toString(FileSystemType val) {
41   switch(val) {
42   case FileSystemType::EXT4:
43     return "EXT4";
44   case FileSystemType::F2FS:
45     return "F2FS";
46   case FileSystemType::RAW:
47     return "RAW";
48   default:
49     return std::to_string(static_cast<int8_t>(val));
50   }
51 }
52 }  // namespace fastboot
53 }  // namespace hardware
54 }  // namespace android
55 }  // namespace aidl
56 namespace ndk {
57 namespace internal {
58 #pragma clang diagnostic push
59 #pragma clang diagnostic ignored "-Wc++17-extensions"
60 template <>
61 constexpr inline std::array<aidl::android::hardware::fastboot::FileSystemType, 3> enum_values<aidl::android::hardware::fastboot::FileSystemType> = {
62   aidl::android::hardware::fastboot::FileSystemType::EXT4,
63   aidl::android::hardware::fastboot::FileSystemType::F2FS,
64   aidl::android::hardware::fastboot::FileSystemType::RAW,
65 };
66 #pragma clang diagnostic pop
67 }  // namespace internal
68 }  // namespace ndk
69