-
Notifications
You must be signed in to change notification settings - Fork 2
/
emulator_controller.pb.go
5165 lines (4605 loc) · 203 KB
/
emulator_controller.pb.go
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Note that if you add/remove methods in this file you must update
// the metrics sql as well ./android/scripts/gen-grpc-sql.py
//
// Please group deleted methods in a block including the date (MM/DD/YY)
// it was removed. This enables us to easily keep metrics around after removal
//
// List of deleted methods
// rpc iWasDeleted (03/12/12)
// ...
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.4
// source: emulator_controller.proto
package android_emulator_control_proto
import (
empty "github.com/golang/protobuf/ptypes/empty"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type VmRunState_RunState int32
const (
// The emulator is in an unknown state. You cannot transition to this state.
VmRunState_UNKNOWN VmRunState_RunState = 0
// Guest is actively running. You can transition to this state from the
// paused state.
VmRunState_RUNNING VmRunState_RunState = 1
// Guest is paused to load a snapshot. You cannot transition to this state.
VmRunState_RESTORE_VM VmRunState_RunState = 2
// Guest has been paused. Transitioning to this state will pause the
// emulator the guest will not be consuming any cpu cycles.
VmRunState_PAUSED VmRunState_RunState = 3
// Guest is paused to take or export a snapshot. You cannot
// transition to this state.
VmRunState_SAVE_VM VmRunState_RunState = 4
// System shutdown, note that it is similar to power off. It tries to set
// the system status and notify guest. The system is likely going to
// disappear soon and do proper cleanup of resources, possibly taking
// a snapshot. This is the same behavior as closing the emulator by clicking
// the X (close) in the user interface.
VmRunState_SHUTDOWN VmRunState_RunState = 5
// Immediately terminate the emulator. No resource cleanup will take place.
// There is a good change to corrupt the system.
VmRunState_TERMINATE VmRunState_RunState = 7
// Will cause the emulator to reset. This is not a state you can observe.
VmRunState_RESET VmRunState_RunState = 9
// Guest experienced some error state, you cannot transition to this state.
VmRunState_INTERNAL_ERROR VmRunState_RunState = 10
)
// Enum value maps for VmRunState_RunState.
var (
VmRunState_RunState_name = map[int32]string{
0: "UNKNOWN",
1: "RUNNING",
2: "RESTORE_VM",
3: "PAUSED",
4: "SAVE_VM",
5: "SHUTDOWN",
7: "TERMINATE",
9: "RESET",
10: "INTERNAL_ERROR",
}
VmRunState_RunState_value = map[string]int32{
"UNKNOWN": 0,
"RUNNING": 1,
"RESTORE_VM": 2,
"PAUSED": 3,
"SAVE_VM": 4,
"SHUTDOWN": 5,
"TERMINATE": 7,
"RESET": 9,
"INTERNAL_ERROR": 10,
}
)
func (x VmRunState_RunState) Enum() *VmRunState_RunState {
p := new(VmRunState_RunState)
*p = x
return p
}
func (x VmRunState_RunState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VmRunState_RunState) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[0].Descriptor()
}
func (VmRunState_RunState) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[0]
}
func (x VmRunState_RunState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VmRunState_RunState.Descriptor instead.
func (VmRunState_RunState) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{0, 0}
}
type PhysicalModelValue_State int32
const (
PhysicalModelValue_OK PhysicalModelValue_State = 0
PhysicalModelValue_NO_SERVICE PhysicalModelValue_State = -3 // qemud service is not available/initiated.
PhysicalModelValue_DISABLED PhysicalModelValue_State = -2 // Sensor is disabled.
PhysicalModelValue_UNKNOWN PhysicalModelValue_State = -1 // Unknown sensor (should not happen)
)
// Enum value maps for PhysicalModelValue_State.
var (
PhysicalModelValue_State_name = map[int32]string{
0: "OK",
-3: "NO_SERVICE",
-2: "DISABLED",
-1: "UNKNOWN",
}
PhysicalModelValue_State_value = map[string]int32{
"OK": 0,
"NO_SERVICE": -3,
"DISABLED": -2,
"UNKNOWN": -1,
}
)
func (x PhysicalModelValue_State) Enum() *PhysicalModelValue_State {
p := new(PhysicalModelValue_State)
*p = x
return p
}
func (x PhysicalModelValue_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PhysicalModelValue_State) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[1].Descriptor()
}
func (PhysicalModelValue_State) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[1]
}
func (x PhysicalModelValue_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PhysicalModelValue_State.Descriptor instead.
func (PhysicalModelValue_State) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{2, 0}
}
// Details on the sensors documentation can be found here:
// https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_
// The types must follow the order defined in "external/qemu/android/hw-sensors.h"
type PhysicalModelValue_PhysicalType int32
const (
PhysicalModelValue_POSITION PhysicalModelValue_PhysicalType = 0
// All values are angles in degrees.
// values = [x,y,z]
PhysicalModelValue_ROTATION PhysicalModelValue_PhysicalType = 1
PhysicalModelValue_MAGNETIC_FIELD PhysicalModelValue_PhysicalType = 2
// Temperature in °C
PhysicalModelValue_TEMPERATURE PhysicalModelValue_PhysicalType = 3
// Proximity sensor distance measured in centimeters
PhysicalModelValue_PROXIMITY PhysicalModelValue_PhysicalType = 4
// Ambient light level in SI lux units
PhysicalModelValue_LIGHT PhysicalModelValue_PhysicalType = 5
// Atmospheric pressure in hPa (millibar)
PhysicalModelValue_PRESSURE PhysicalModelValue_PhysicalType = 6
// Relative ambient air humidity in percent
PhysicalModelValue_HUMIDITY PhysicalModelValue_PhysicalType = 7
PhysicalModelValue_VELOCITY PhysicalModelValue_PhysicalType = 8
PhysicalModelValue_AMBIENT_MOTION PhysicalModelValue_PhysicalType = 9
// Describing a hinge angle sensor in degrees.
PhysicalModelValue_HINGE_ANGLE0 PhysicalModelValue_PhysicalType = 10
PhysicalModelValue_HINGE_ANGLE1 PhysicalModelValue_PhysicalType = 11
PhysicalModelValue_HINGE_ANGLE2 PhysicalModelValue_PhysicalType = 12
PhysicalModelValue_ROLLABLE0 PhysicalModelValue_PhysicalType = 13
PhysicalModelValue_ROLLABLE1 PhysicalModelValue_PhysicalType = 14
PhysicalModelValue_ROLLABLE2 PhysicalModelValue_PhysicalType = 15
)
// Enum value maps for PhysicalModelValue_PhysicalType.
var (
PhysicalModelValue_PhysicalType_name = map[int32]string{
0: "POSITION",
1: "ROTATION",
2: "MAGNETIC_FIELD",
3: "TEMPERATURE",
4: "PROXIMITY",
5: "LIGHT",
6: "PRESSURE",
7: "HUMIDITY",
8: "VELOCITY",
9: "AMBIENT_MOTION",
10: "HINGE_ANGLE0",
11: "HINGE_ANGLE1",
12: "HINGE_ANGLE2",
13: "ROLLABLE0",
14: "ROLLABLE1",
15: "ROLLABLE2",
}
PhysicalModelValue_PhysicalType_value = map[string]int32{
"POSITION": 0,
"ROTATION": 1,
"MAGNETIC_FIELD": 2,
"TEMPERATURE": 3,
"PROXIMITY": 4,
"LIGHT": 5,
"PRESSURE": 6,
"HUMIDITY": 7,
"VELOCITY": 8,
"AMBIENT_MOTION": 9,
"HINGE_ANGLE0": 10,
"HINGE_ANGLE1": 11,
"HINGE_ANGLE2": 12,
"ROLLABLE0": 13,
"ROLLABLE1": 14,
"ROLLABLE2": 15,
}
)
func (x PhysicalModelValue_PhysicalType) Enum() *PhysicalModelValue_PhysicalType {
p := new(PhysicalModelValue_PhysicalType)
*p = x
return p
}
func (x PhysicalModelValue_PhysicalType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PhysicalModelValue_PhysicalType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[2].Descriptor()
}
func (PhysicalModelValue_PhysicalType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[2]
}
func (x PhysicalModelValue_PhysicalType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PhysicalModelValue_PhysicalType.Descriptor instead.
func (PhysicalModelValue_PhysicalType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{2, 1}
}
type SensorValue_State int32
const (
SensorValue_OK SensorValue_State = 0
SensorValue_NO_SERVICE SensorValue_State = -3 // qemud service is not available/initiated.
SensorValue_DISABLED SensorValue_State = -2 // Sensor is disabled.
SensorValue_UNKNOWN SensorValue_State = -1 // Unknown sensor (should not happen)
)
// Enum value maps for SensorValue_State.
var (
SensorValue_State_name = map[int32]string{
0: "OK",
-3: "NO_SERVICE",
-2: "DISABLED",
-1: "UNKNOWN",
}
SensorValue_State_value = map[string]int32{
"OK": 0,
"NO_SERVICE": -3,
"DISABLED": -2,
"UNKNOWN": -1,
}
)
func (x SensorValue_State) Enum() *SensorValue_State {
p := new(SensorValue_State)
*p = x
return p
}
func (x SensorValue_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SensorValue_State) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[3].Descriptor()
}
func (SensorValue_State) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[3]
}
func (x SensorValue_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SensorValue_State.Descriptor instead.
func (SensorValue_State) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{3, 0}
}
// These are the various sensors that can be available in an emulated
// devices.
type SensorValue_SensorType int32
const (
// Measures the acceleration force in m/s2 that is applied to a device
// on all three physical axes (x, y, and z), including the force of
// gravity.
SensorValue_ACCELERATION SensorValue_SensorType = 0
// Measures a device's rate of rotation in rad/s around each of the
// three physical axes (x, y, and z).
SensorValue_GYROSCOPE SensorValue_SensorType = 1
// Measures the ambient geomagnetic field for all three physical axes
// (x, y, z) in μT.
SensorValue_MAGNETIC_FIELD SensorValue_SensorType = 2
// Measures degrees of rotation that a device makes around all three
// physical axes (x, y, z)
SensorValue_ORIENTATION SensorValue_SensorType = 3
// Measures the temperature of the device in degrees Celsius (°C).
SensorValue_TEMPERATURE SensorValue_SensorType = 4
// Measures the proximity of an object in cm relative to the view screen
// of a device. This sensor is typically used to determine whether a
// handset is being held up to a person's ear.
SensorValue_PROXIMITY SensorValue_SensorType = 5
// Measures the ambient light level (illumination) in lx.
SensorValue_LIGHT SensorValue_SensorType = 6
// Measures the ambient air pressure in hPa or mbar.
SensorValue_PRESSURE SensorValue_SensorType = 7
// Measures the relative ambient humidity in percent (%).
SensorValue_HUMIDITY SensorValue_SensorType = 8
SensorValue_MAGNETIC_FIELD_UNCALIBRATED SensorValue_SensorType = 9
SensorValue_GYROSCOPE_UNCALIBRATED SensorValue_SensorType = 10
)
// Enum value maps for SensorValue_SensorType.
var (
SensorValue_SensorType_name = map[int32]string{
0: "ACCELERATION",
1: "GYROSCOPE",
2: "MAGNETIC_FIELD",
3: "ORIENTATION",
4: "TEMPERATURE",
5: "PROXIMITY",
6: "LIGHT",
7: "PRESSURE",
8: "HUMIDITY",
9: "MAGNETIC_FIELD_UNCALIBRATED",
10: "GYROSCOPE_UNCALIBRATED",
}
SensorValue_SensorType_value = map[string]int32{
"ACCELERATION": 0,
"GYROSCOPE": 1,
"MAGNETIC_FIELD": 2,
"ORIENTATION": 3,
"TEMPERATURE": 4,
"PROXIMITY": 5,
"LIGHT": 6,
"PRESSURE": 7,
"HUMIDITY": 8,
"MAGNETIC_FIELD_UNCALIBRATED": 9,
"GYROSCOPE_UNCALIBRATED": 10,
}
)
func (x SensorValue_SensorType) Enum() *SensorValue_SensorType {
p := new(SensorValue_SensorType)
*p = x
return p
}
func (x SensorValue_SensorType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (SensorValue_SensorType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[4].Descriptor()
}
func (SensorValue_SensorType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[4]
}
func (x SensorValue_SensorType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use SensorValue_SensorType.Descriptor instead.
func (SensorValue_SensorType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{3, 1}
}
type LogMessage_LogType int32
const (
LogMessage_Text LogMessage_LogType = 0
LogMessage_Parsed LogMessage_LogType = 1
)
// Enum value maps for LogMessage_LogType.
var (
LogMessage_LogType_name = map[int32]string{
0: "Text",
1: "Parsed",
}
LogMessage_LogType_value = map[string]int32{
"Text": 0,
"Parsed": 1,
}
)
func (x LogMessage_LogType) Enum() *LogMessage_LogType {
p := new(LogMessage_LogType)
*p = x
return p
}
func (x LogMessage_LogType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LogMessage_LogType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[5].Descriptor()
}
func (LogMessage_LogType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[5]
}
func (x LogMessage_LogType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LogMessage_LogType.Descriptor instead.
func (LogMessage_LogType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{4, 0}
}
// The possible log levels.
type LogcatEntry_LogLevel int32
const (
LogcatEntry_UNKNOWN LogcatEntry_LogLevel = 0
LogcatEntry_DEFAULT LogcatEntry_LogLevel = 1
LogcatEntry_VERBOSE LogcatEntry_LogLevel = 2
LogcatEntry_DEBUG LogcatEntry_LogLevel = 3
LogcatEntry_INFO LogcatEntry_LogLevel = 4
LogcatEntry_WARN LogcatEntry_LogLevel = 5
LogcatEntry_ERR LogcatEntry_LogLevel = 6
LogcatEntry_FATAL LogcatEntry_LogLevel = 7
LogcatEntry_SILENT LogcatEntry_LogLevel = 8
)
// Enum value maps for LogcatEntry_LogLevel.
var (
LogcatEntry_LogLevel_name = map[int32]string{
0: "UNKNOWN",
1: "DEFAULT",
2: "VERBOSE",
3: "DEBUG",
4: "INFO",
5: "WARN",
6: "ERR",
7: "FATAL",
8: "SILENT",
}
LogcatEntry_LogLevel_value = map[string]int32{
"UNKNOWN": 0,
"DEFAULT": 1,
"VERBOSE": 2,
"DEBUG": 3,
"INFO": 4,
"WARN": 5,
"ERR": 6,
"FATAL": 7,
"SILENT": 8,
}
)
func (x LogcatEntry_LogLevel) Enum() *LogcatEntry_LogLevel {
p := new(LogcatEntry_LogLevel)
*p = x
return p
}
func (x LogcatEntry_LogLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LogcatEntry_LogLevel) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[6].Descriptor()
}
func (LogcatEntry_LogLevel) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[6]
}
func (x LogcatEntry_LogLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LogcatEntry_LogLevel.Descriptor instead.
func (LogcatEntry_LogLevel) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{5, 0}
}
type VmConfiguration_VmHypervisorType int32
const (
// An unknown hypervisor
VmConfiguration_UNKNOWN VmConfiguration_VmHypervisorType = 0
// No hypervisor is in use. This usually means that the guest is
// running on a different CPU than the host, or you are using a
// platform where no hypervisor is available.
VmConfiguration_NONE VmConfiguration_VmHypervisorType = 1
// The Kernel based Virtual Machine
// (https://www.linux-kvm.org/page/Main_Page)
VmConfiguration_KVM VmConfiguration_VmHypervisorType = 2
// Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
// https://github.com/intel/haxm
VmConfiguration_HAXM VmConfiguration_VmHypervisorType = 3
// Hypervisor Framework.
// https://developer.apple.com/documentation/hypervisor
VmConfiguration_HVF VmConfiguration_VmHypervisorType = 4
// Window Hypervisor Platform
// https://docs.microsoft.com/en-us/virtualization/api/
VmConfiguration_WHPX VmConfiguration_VmHypervisorType = 5
VmConfiguration_GVM VmConfiguration_VmHypervisorType = 6
)
// Enum value maps for VmConfiguration_VmHypervisorType.
var (
VmConfiguration_VmHypervisorType_name = map[int32]string{
0: "UNKNOWN",
1: "NONE",
2: "KVM",
3: "HAXM",
4: "HVF",
5: "WHPX",
6: "GVM",
}
VmConfiguration_VmHypervisorType_value = map[string]int32{
"UNKNOWN": 0,
"NONE": 1,
"KVM": 2,
"HAXM": 3,
"HVF": 4,
"WHPX": 5,
"GVM": 6,
}
)
func (x VmConfiguration_VmHypervisorType) Enum() *VmConfiguration_VmHypervisorType {
p := new(VmConfiguration_VmHypervisorType)
*p = x
return p
}
func (x VmConfiguration_VmHypervisorType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (VmConfiguration_VmHypervisorType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[7].Descriptor()
}
func (VmConfiguration_VmHypervisorType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[7]
}
func (x VmConfiguration_VmHypervisorType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use VmConfiguration_VmHypervisorType.Descriptor instead.
func (VmConfiguration_VmHypervisorType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{6, 0}
}
type Touch_EventExpiration int32
const (
// The system will use the default time of 120s to track
// the touch event with the given identifier. If no update happens
// within this timeframe the identifier is considered expired
// and can be made available for re-use. This means that a touch event
// with pressure 0 for this identifier will be send to the emulator.
Touch_EVENT_EXPIRATION_UNSPECIFIED Touch_EventExpiration = 0
// Never expire the given slot. You must *ALWAYS* close the identifier
// by sending a touch event with 0 pressure.
Touch_NEVER_EXPIRE Touch_EventExpiration = 1
)
// Enum value maps for Touch_EventExpiration.
var (
Touch_EventExpiration_name = map[int32]string{
0: "EVENT_EXPIRATION_UNSPECIFIED",
1: "NEVER_EXPIRE",
}
Touch_EventExpiration_value = map[string]int32{
"EVENT_EXPIRATION_UNSPECIFIED": 0,
"NEVER_EXPIRE": 1,
}
)
func (x Touch_EventExpiration) Enum() *Touch_EventExpiration {
p := new(Touch_EventExpiration)
*p = x
return p
}
func (x Touch_EventExpiration) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Touch_EventExpiration) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[8].Descriptor()
}
func (Touch_EventExpiration) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[8]
}
func (x Touch_EventExpiration) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Touch_EventExpiration.Descriptor instead.
func (Touch_EventExpiration) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{8, 0}
}
// Code types that the emulator can receive. Note that the emulator
// will do its best to translate the code to an evdev value that
// will be send to the emulator. This translation is based on
// the chromium translation tables. See
// (this)[https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/android/android-grpc/android/emulation/control/keyboard/keycode_converter_data.inc]
// for details on the translation.
type KeyboardEvent_KeyCodeType int32
const (
KeyboardEvent_Usb KeyboardEvent_KeyCodeType = 0
KeyboardEvent_Evdev KeyboardEvent_KeyCodeType = 1
KeyboardEvent_XKB KeyboardEvent_KeyCodeType = 2
KeyboardEvent_Win KeyboardEvent_KeyCodeType = 3
KeyboardEvent_Mac KeyboardEvent_KeyCodeType = 4
)
// Enum value maps for KeyboardEvent_KeyCodeType.
var (
KeyboardEvent_KeyCodeType_name = map[int32]string{
0: "Usb",
1: "Evdev",
2: "XKB",
3: "Win",
4: "Mac",
}
KeyboardEvent_KeyCodeType_value = map[string]int32{
"Usb": 0,
"Evdev": 1,
"XKB": 2,
"Win": 3,
"Mac": 4,
}
)
func (x KeyboardEvent_KeyCodeType) Enum() *KeyboardEvent_KeyCodeType {
p := new(KeyboardEvent_KeyCodeType)
*p = x
return p
}
func (x KeyboardEvent_KeyCodeType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyboardEvent_KeyCodeType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[9].Descriptor()
}
func (KeyboardEvent_KeyCodeType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[9]
}
func (x KeyboardEvent_KeyCodeType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyboardEvent_KeyCodeType.Descriptor instead.
func (KeyboardEvent_KeyCodeType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{11, 0}
}
type KeyboardEvent_KeyEventType int32
const (
// Indicates that this keyevent should be send to the emulator
// as a key down event. Meaning that the key event will be
// translated to an EvDev event type and bit 11 (0x400) will be
// set before it is sent to the emulator.
KeyboardEvent_keydown KeyboardEvent_KeyEventType = 0
// Indicates that the keyevent should be send to the emulator
// as a key up event. Meaning that the key event will be
// translated to an EvDev event type and
// sent to the emulator.
KeyboardEvent_keyup KeyboardEvent_KeyEventType = 1
// Indicates that the keyevent will be send to the emulator
// as e key down event and immediately followed by a keyup event.
KeyboardEvent_keypress KeyboardEvent_KeyEventType = 2
)
// Enum value maps for KeyboardEvent_KeyEventType.
var (
KeyboardEvent_KeyEventType_name = map[int32]string{
0: "keydown",
1: "keyup",
2: "keypress",
}
KeyboardEvent_KeyEventType_value = map[string]int32{
"keydown": 0,
"keyup": 1,
"keypress": 2,
}
)
func (x KeyboardEvent_KeyEventType) Enum() *KeyboardEvent_KeyEventType {
p := new(KeyboardEvent_KeyEventType)
*p = x
return p
}
func (x KeyboardEvent_KeyEventType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (KeyboardEvent_KeyEventType) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[10].Descriptor()
}
func (KeyboardEvent_KeyEventType) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[10]
}
func (x KeyboardEvent_KeyEventType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use KeyboardEvent_KeyEventType.Descriptor instead.
func (KeyboardEvent_KeyEventType) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{11, 1}
}
type BatteryState_BatteryStatus int32
const (
BatteryState_UNKNOWN BatteryState_BatteryStatus = 0
BatteryState_CHARGING BatteryState_BatteryStatus = 1
BatteryState_DISCHARGING BatteryState_BatteryStatus = 2
BatteryState_NOT_CHARGING BatteryState_BatteryStatus = 3
BatteryState_FULL BatteryState_BatteryStatus = 4
)
// Enum value maps for BatteryState_BatteryStatus.
var (
BatteryState_BatteryStatus_name = map[int32]string{
0: "UNKNOWN",
1: "CHARGING",
2: "DISCHARGING",
3: "NOT_CHARGING",
4: "FULL",
}
BatteryState_BatteryStatus_value = map[string]int32{
"UNKNOWN": 0,
"CHARGING": 1,
"DISCHARGING": 2,
"NOT_CHARGING": 3,
"FULL": 4,
}
)
func (x BatteryState_BatteryStatus) Enum() *BatteryState_BatteryStatus {
p := new(BatteryState_BatteryStatus)
*p = x
return p
}
func (x BatteryState_BatteryStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BatteryState_BatteryStatus) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[11].Descriptor()
}
func (BatteryState_BatteryStatus) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[11]
}
func (x BatteryState_BatteryStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BatteryState_BatteryStatus.Descriptor instead.
func (BatteryState_BatteryStatus) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{14, 0}
}
type BatteryState_BatteryCharger int32
const (
BatteryState_NONE BatteryState_BatteryCharger = 0
BatteryState_AC BatteryState_BatteryCharger = 1
BatteryState_USB BatteryState_BatteryCharger = 2
BatteryState_WIRELESS BatteryState_BatteryCharger = 3
)
// Enum value maps for BatteryState_BatteryCharger.
var (
BatteryState_BatteryCharger_name = map[int32]string{
0: "NONE",
1: "AC",
2: "USB",
3: "WIRELESS",
}
BatteryState_BatteryCharger_value = map[string]int32{
"NONE": 0,
"AC": 1,
"USB": 2,
"WIRELESS": 3,
}
)
func (x BatteryState_BatteryCharger) Enum() *BatteryState_BatteryCharger {
p := new(BatteryState_BatteryCharger)
*p = x
return p
}
func (x BatteryState_BatteryCharger) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BatteryState_BatteryCharger) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[12].Descriptor()
}
func (BatteryState_BatteryCharger) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[12]
}
func (x BatteryState_BatteryCharger) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BatteryState_BatteryCharger.Descriptor instead.
func (BatteryState_BatteryCharger) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{14, 1}
}
type BatteryState_BatteryHealth int32
const (
BatteryState_GOOD BatteryState_BatteryHealth = 0
BatteryState_FAILED BatteryState_BatteryHealth = 1
BatteryState_DEAD BatteryState_BatteryHealth = 2
BatteryState_OVERVOLTAGE BatteryState_BatteryHealth = 3
BatteryState_OVERHEATED BatteryState_BatteryHealth = 4
)
// Enum value maps for BatteryState_BatteryHealth.
var (
BatteryState_BatteryHealth_name = map[int32]string{
0: "GOOD",
1: "FAILED",
2: "DEAD",
3: "OVERVOLTAGE",
4: "OVERHEATED",
}
BatteryState_BatteryHealth_value = map[string]int32{
"GOOD": 0,
"FAILED": 1,
"DEAD": 2,
"OVERVOLTAGE": 3,
"OVERHEATED": 4,
}
)
func (x BatteryState_BatteryHealth) Enum() *BatteryState_BatteryHealth {
p := new(BatteryState_BatteryHealth)
*p = x
return p
}
func (x BatteryState_BatteryHealth) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BatteryState_BatteryHealth) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[13].Descriptor()
}
func (BatteryState_BatteryHealth) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[13]
}
func (x BatteryState_BatteryHealth) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BatteryState_BatteryHealth.Descriptor instead.
func (BatteryState_BatteryHealth) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{14, 2}
}
type ImageTransport_TransportChannel int32
const (
// Return full frames over the gRPC transport
ImageTransport_TRANSPORT_CHANNEL_UNSPECIFIED ImageTransport_TransportChannel = 0
// Write images to the a file/shared memory handle.
ImageTransport_MMAP ImageTransport_TransportChannel = 1
)
// Enum value maps for ImageTransport_TransportChannel.
var (
ImageTransport_TransportChannel_name = map[int32]string{
0: "TRANSPORT_CHANNEL_UNSPECIFIED",
1: "MMAP",
}
ImageTransport_TransportChannel_value = map[string]int32{
"TRANSPORT_CHANNEL_UNSPECIFIED": 0,
"MMAP": 1,
}
)
func (x ImageTransport_TransportChannel) Enum() *ImageTransport_TransportChannel {
p := new(ImageTransport_TransportChannel)
*p = x
return p
}
func (x ImageTransport_TransportChannel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ImageTransport_TransportChannel) Descriptor() protoreflect.EnumDescriptor {
return file_emulator_controller_proto_enumTypes[14].Descriptor()
}
func (ImageTransport_TransportChannel) Type() protoreflect.EnumType {
return &file_emulator_controller_proto_enumTypes[14]
}
func (x ImageTransport_TransportChannel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ImageTransport_TransportChannel.Descriptor instead.
func (ImageTransport_TransportChannel) EnumDescriptor() ([]byte, []int) {
return file_emulator_controller_proto_rawDescGZIP(), []int{15, 0}
}
type ImageFormat_ImgFormat int32
const (
// Portable Network Graphics format
// (https://en.wikipedia.org/wiki/Portable_Network_Graphics)