blob: 7654ea2b7e6bbedec2583572535a4f599c5fc52f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef AIDL_GENERATED_ANDROID_GUI_DROP_INPUT_MODE_H_
#define AIDL_GENERATED_ANDROID_GUI_DROP_INPUT_MODE_H_
#include <array>
#include <binder/Enums.h>
#include <cstdint>
#include <string>
namespace android {
namespace gui {
enum class DropInputMode : int32_t {
NONE = 0,
ALL = 1,
};
static inline std::string toString(DropInputMode val) {
switch(val) {
case DropInputMode::NONE:
return "NONE";
case DropInputMode::ALL:
return "ALL";
default:
return std::to_string(static_cast<int32_t>(val));
}
}
} // namespace gui
} // namespace android
namespace android {
namespace internal {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++17-extensions"
template <>
constexpr inline std::array<::android::gui::DropInputMode, 2> enum_values<::android::gui::DropInputMode> = {
::android::gui::DropInputMode::NONE,
::android::gui::DropInputMode::ALL,
};
#pragma clang diagnostic pop
} // namespace internal
} // namespace android
#endif // AIDL_GENERATED_ANDROID_GUI_DROP_INPUT_MODE_H_
|