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