1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub enum SELinux {
3 Disabled,
4 Permissive,
5}
6
7#[derive(Debug, Clone, Copy, PartialEq, Eq)]
8pub enum Engine {
9 Auto,
10 Classic,
11 Qemu2,
12}
13
14#[derive(Debug, Clone, Copy, PartialEq, Eq)]
15pub enum Netspeed {
16 Gsm,
17 Hscsd,
18 Gprs,
19 Wdge,
20 Umts,
21 Hsdpa,
22 Lte,
23 Evdo,
24 Full,
25 Num,
26 Up,
27 Down,
28}
29
30#[derive(Debug, Clone, Copy, PartialEq, Eq)]
31pub enum CameraMode {
32 Emulated,
33 None,
34 Webcam,
35}
36
37#[derive(Debug, Clone, Copy, PartialEq, Eq)]
38pub enum ScreenMode {
39 Touch,
40 MultiTouch,
41 NoTouch,
42}
43
44#[derive(Debug, Clone, Copy, PartialEq, Eq)]
45pub enum AccelMode {
46 Auto,
47 Off,
48 On,
49}
50
51#[derive(Debug, Clone, Copy, PartialEq, Eq)]
52pub enum DebugTags {
53 Init,
54 Console,
55 Modem,
56 Radio,
57 Keys,
58 Events,
59 Slirp,
60 Timezone,
61 Socket,
62 Proxy,
63 Audio,
64 Audioin,
65 Audioout,
66 Surface,
67 Qemud,
68 Gps,
69 NandLimits,
70 HwControl,
71 AvdConfig,
72 Sensors,
73 Memcheck,
74 Camera,
75 Adevice,
76 SensorsPort,
77 Mtport,
78 Mtscreen,
79 Gles,
80 Gles1emu,
81 Adbserver,
82 Adbclient,
83 Adb,
84 Asconnector,
85 Asyncsocket,
86 Sdkctlsocket,
87 Updater,
88 Metrics,
89 Rotation,
90 Goldfishsync,
91 Syncthreads,
92 Memory,
93 Car,
94 Record,
95 Snapshot,
96 Virtualscene,
97 Automation,
98 Offworld,
99 Videoinjection,
100 Foldable,
101 Curl,
102 CarRotary,
103 Wifi,
104 Tvremote,
105 Time,
106 Ini,
107 All,
108}
109
110impl std::fmt::Display for SELinux {
111 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
112 match *self {
113 Self::Disabled => write!(f, "disabled"),
114 Self::Permissive => write!(f, "permissive"),
115 }
116 }
117}
118
119impl std::fmt::Display for Engine {
120 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121 match *self {
122 Self::Auto => write!(f, "auto"),
123 Self::Classic => write!(f, "classic"),
124 Self::Qemu2 => write!(f, "qemu2"),
125 }
126 }
127}
128
129impl std::fmt::Display for Netspeed {
130 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
131 match *self {
132 Self::Gsm => write!(f, "gsm"),
133 Self::Hscsd => write!(f, "hscsd"),
134 Self::Gprs => write!(f, "gprs"),
135 Self::Wdge => write!(f, "wdge"),
136 Self::Umts => write!(f, "umts"),
137 Self::Hsdpa => write!(f, "hsdpa"),
138 Self::Lte => write!(f, "lte"),
139 Self::Evdo => write!(f, "evdo"),
140 Self::Full => write!(f, "full"),
141 Self::Num => write!(f, "num"),
142 Self::Up => write!(f, "up"),
143 Self::Down => write!(f, "down"),
144 }
145 }
146}
147
148impl std::fmt::Display for CameraMode {
149 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150 match *self {
151 Self::Emulated => write!(f, "emulated"),
152 Self::None => write!(f, "none"),
153 Self::Webcam => write!(f, "webcam"),
154 }
155 }
156}
157
158impl std::fmt::Display for ScreenMode {
159 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
160 match *self {
161 Self::Touch => write!(f, "touch"),
162 Self::MultiTouch => write!(f, "multi-touch"),
163 Self::NoTouch => write!(f, "no-touch"),
164 }
165 }
166}
167
168impl std::fmt::Display for AccelMode {
169 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
170 match *self {
171 Self::Auto => write!(f, "auto"),
172 Self::Off => write!(f, "off"),
173 Self::On => write!(f, "on"),
174 }
175 }
176}
177
178impl std::fmt::Display for DebugTags {
179 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180 match *self {
181 Self::Init => write!(f, "init"),
182 Self::Console => write!(f, "console"),
183 Self::Modem => write!(f, "modem"),
184 Self::Radio => write!(f, "radio"),
185 Self::Keys => write!(f, "keys"),
186 Self::Events => write!(f, "events"),
187 Self::Slirp => write!(f, "slirp"),
188 Self::Timezone => write!(f, "timezone"),
189 Self::Socket => write!(f, "socket"),
190 Self::Proxy => write!(f, "proxy"),
191 Self::Audio => write!(f, "audio"),
192 Self::Audioin => write!(f, "audioin"),
193 Self::Audioout => write!(f, "audioout"),
194 Self::Surface => write!(f, "surface"),
195 Self::Qemud => write!(f, "qemud"),
196 Self::Gps => write!(f, "gps"),
197 Self::NandLimits => write!(f, "nand_limits"),
198 Self::HwControl => write!(f, "hw_control"),
199 Self::AvdConfig => write!(f, "avd_config"),
200 Self::Sensors => write!(f, "sensors"),
201 Self::Memcheck => write!(f, "memcheck"),
202 Self::Camera => write!(f, "camera"),
203 Self::Adevice => write!(f, "adevice"),
204 Self::SensorsPort => write!(f, "sensors_port"),
205 Self::Mtport => write!(f, "mtport"),
206 Self::Mtscreen => write!(f, "mtscreen"),
207 Self::Gles => write!(f, "gles"),
208 Self::Gles1emu => write!(f, "gles1emu"),
209 Self::Adbserver => write!(f, "adbserver"),
210 Self::Adbclient => write!(f, "adbclient"),
211 Self::Adb => write!(f, "adb"),
212 Self::Asconnector => write!(f, "asconnector"),
213 Self::Asyncsocket => write!(f, "asyncsocket"),
214 Self::Sdkctlsocket => write!(f, "sdkctlsocket"),
215 Self::Updater => write!(f, "updater"),
216 Self::Metrics => write!(f, "metrics"),
217 Self::Rotation => write!(f, "rotation"),
218 Self::Goldfishsync => write!(f, "goldfishsync"),
219 Self::Syncthreads => write!(f, "syncthreads"),
220 Self::Memory => write!(f, "memory"),
221 Self::Car => write!(f, "car"),
222 Self::Record => write!(f, "record"),
223 Self::Snapshot => write!(f, "snapshot"),
224 Self::Virtualscene => write!(f, "virtualscene"),
225 Self::Automation => write!(f, "automation"),
226 Self::Offworld => write!(f, "offworld"),
227 Self::Videoinjection => write!(f, "videoinjection"),
228 Self::Foldable => write!(f, "foldable"),
229 Self::Curl => write!(f, "curl"),
230 Self::CarRotary => write!(f, "car_rotary"),
231 Self::Wifi => write!(f, "wifi"),
232 Self::Tvremote => write!(f, "tvremote"),
233 Self::Time => write!(f, "time"),
234 Self::Ini => write!(f, "ini"),
235 Self::All => write!(f, "all"),
236 }
237 }
238}