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