android-env 1.2.1__py3-none-any.whl → 1.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. android_env/__init__.py +1 -1
  2. android_env/components/__init__.py +1 -1
  3. android_env/components/a11y/__init__.py +15 -0
  4. android_env/components/a11y/a11y_events.py +118 -0
  5. android_env/components/a11y/a11y_events_test.py +173 -0
  6. android_env/components/a11y/a11y_forests.py +128 -0
  7. android_env/components/a11y/a11y_forests_test.py +237 -0
  8. android_env/components/a11y/a11y_servicer.py +199 -0
  9. android_env/components/a11y/a11y_servicer_test.py +224 -0
  10. android_env/components/action_fns.py +132 -0
  11. android_env/components/action_fns_test.py +227 -0
  12. android_env/components/action_type.py +26 -3
  13. android_env/components/adb_call_parser.py +239 -196
  14. android_env/components/adb_call_parser_test.py +179 -209
  15. android_env/components/adb_controller.py +90 -52
  16. android_env/components/adb_controller_test.py +187 -16
  17. android_env/components/adb_log_stream.py +17 -5
  18. android_env/components/adb_log_stream_test.py +17 -3
  19. android_env/components/app_screen_checker.py +17 -15
  20. android_env/components/app_screen_checker_test.py +7 -8
  21. android_env/components/config_classes.py +203 -0
  22. android_env/components/coordinator.py +102 -338
  23. android_env/components/coordinator_test.py +59 -199
  24. android_env/components/device_settings.py +174 -0
  25. android_env/components/device_settings_test.py +228 -0
  26. android_env/components/dumpsys_thread.py +3 -4
  27. android_env/components/dumpsys_thread_test.py +1 -1
  28. android_env/components/errors.py +52 -10
  29. android_env/components/errors_test.py +110 -0
  30. android_env/components/log_stream.py +7 -5
  31. android_env/components/log_stream_test.py +1 -1
  32. android_env/components/logcat_thread.py +9 -8
  33. android_env/components/logcat_thread_test.py +3 -4
  34. android_env/components/{utils.py → pixel_fns.py} +20 -20
  35. android_env/components/{utils_test.py → pixel_fns_test.py} +20 -15
  36. android_env/components/setup_step_interpreter.py +47 -39
  37. android_env/components/setup_step_interpreter_test.py +4 -4
  38. android_env/components/simulators/__init__.py +1 -1
  39. android_env/components/simulators/base_simulator.py +116 -44
  40. android_env/components/simulators/base_simulator_test.py +131 -9
  41. android_env/components/simulators/emulator/__init__.py +1 -1
  42. android_env/components/simulators/emulator/emulator_launcher.py +67 -77
  43. android_env/components/simulators/emulator/emulator_launcher_test.py +153 -49
  44. android_env/components/simulators/emulator/emulator_simulator.py +276 -95
  45. android_env/components/simulators/emulator/emulator_simulator_test.py +314 -89
  46. android_env/components/simulators/fake/__init__.py +1 -1
  47. android_env/components/simulators/fake/fake_simulator.py +17 -25
  48. android_env/components/simulators/fake/fake_simulator_test.py +29 -12
  49. android_env/components/specs.py +18 -28
  50. android_env/components/specs_test.py +1 -44
  51. android_env/components/task_manager.py +48 -48
  52. android_env/components/task_manager_test.py +71 -60
  53. android_env/env_interface.py +37 -23
  54. android_env/environment.py +83 -51
  55. android_env/environment_test.py +68 -29
  56. android_env/loader.py +57 -43
  57. android_env/loader_test.py +115 -35
  58. android_env/proto/__init__.py +1 -1
  59. android_env/proto/a11y/__init__.py +15 -0
  60. android_env/proto/a11y/a11y.proto +75 -0
  61. android_env/proto/a11y/a11y_pb2.py +54 -0
  62. android_env/proto/a11y/a11y_pb2.pyi +49 -0
  63. android_env/proto/a11y/a11y_pb2_grpc.py +202 -0
  64. android_env/proto/a11y/android_accessibility_action.proto +32 -0
  65. android_env/proto/a11y/android_accessibility_action_pb2.py +37 -0
  66. android_env/proto/a11y/android_accessibility_action_pb2.pyi +13 -0
  67. android_env/proto/a11y/android_accessibility_action_pb2_grpc.py +24 -0
  68. android_env/proto/a11y/android_accessibility_forest.proto +29 -0
  69. android_env/proto/a11y/android_accessibility_forest_pb2.py +38 -0
  70. android_env/proto/a11y/android_accessibility_forest_pb2.pyi +13 -0
  71. android_env/proto/a11y/android_accessibility_forest_pb2_grpc.py +24 -0
  72. android_env/proto/a11y/android_accessibility_node_info.proto +122 -0
  73. android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto +49 -0
  74. android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2.py +39 -0
  75. android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2.pyi +28 -0
  76. android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2_grpc.py +24 -0
  77. android_env/proto/a11y/android_accessibility_node_info_pb2.py +42 -0
  78. android_env/proto/a11y/android_accessibility_node_info_pb2.pyi +75 -0
  79. android_env/proto/a11y/android_accessibility_node_info_pb2_grpc.py +24 -0
  80. android_env/proto/a11y/android_accessibility_tree.proto +29 -0
  81. android_env/proto/a11y/android_accessibility_tree_pb2.py +38 -0
  82. android_env/proto/a11y/android_accessibility_tree_pb2.pyi +13 -0
  83. android_env/proto/a11y/android_accessibility_tree_pb2_grpc.py +24 -0
  84. android_env/proto/a11y/android_accessibility_window_info.proto +84 -0
  85. android_env/proto/a11y/android_accessibility_window_info_pb2.py +41 -0
  86. android_env/proto/a11y/android_accessibility_window_info_pb2.pyi +48 -0
  87. android_env/proto/a11y/android_accessibility_window_info_pb2_grpc.py +24 -0
  88. android_env/proto/a11y/rect.proto +30 -0
  89. android_env/proto/a11y/rect_pb2.py +37 -0
  90. android_env/proto/a11y/rect_pb2.pyi +17 -0
  91. android_env/proto/a11y/rect_pb2_grpc.py +24 -0
  92. android_env/proto/adb.proto +17 -6
  93. android_env/proto/adb_pb2.py +120 -107
  94. android_env/proto/adb_pb2.pyi +396 -0
  95. android_env/proto/adb_pb2_grpc.py +20 -0
  96. android_env/proto/emulator_controller.proto +68 -63
  97. android_env/proto/emulator_controller_pb2.py +142 -131
  98. android_env/proto/emulator_controller_pb2.pyi +672 -0
  99. android_env/proto/emulator_controller_pb2_grpc.py +505 -142
  100. android_env/proto/snapshot.proto +169 -0
  101. android_env/proto/snapshot_pb2.py +47 -0
  102. android_env/proto/snapshot_pb2.pyi +117 -0
  103. android_env/proto/snapshot_pb2_grpc.py +24 -0
  104. android_env/proto/snapshot_service.proto +289 -0
  105. android_env/proto/snapshot_service_pb2.py +54 -0
  106. android_env/proto/snapshot_service_pb2.pyi +86 -0
  107. android_env/proto/snapshot_service_pb2_grpc.py +487 -0
  108. android_env/proto/state.proto +63 -0
  109. android_env/proto/state_pb2.py +63 -0
  110. android_env/proto/state_pb2.pyi +85 -0
  111. android_env/proto/state_pb2_grpc.py +24 -0
  112. android_env/proto/task.proto +5 -1
  113. android_env/proto/task_pb2.py +42 -31
  114. android_env/proto/task_pb2.pyi +160 -0
  115. android_env/proto/task_pb2_grpc.py +20 -0
  116. android_env/wrappers/__init__.py +1 -1
  117. android_env/wrappers/a11y_grpc_wrapper.py +500 -0
  118. android_env/wrappers/a11y_grpc_wrapper_test.py +849 -0
  119. android_env/wrappers/base_wrapper.py +34 -13
  120. android_env/wrappers/base_wrapper_test.py +22 -16
  121. android_env/wrappers/discrete_action_wrapper.py +18 -17
  122. android_env/wrappers/discrete_action_wrapper_test.py +4 -4
  123. android_env/wrappers/flat_interface_wrapper.py +5 -5
  124. android_env/wrappers/flat_interface_wrapper_test.py +7 -11
  125. android_env/wrappers/float_pixels_wrapper.py +9 -10
  126. android_env/wrappers/float_pixels_wrapper_test.py +3 -3
  127. android_env/wrappers/gym_wrapper.py +19 -13
  128. android_env/wrappers/gym_wrapper_test.py +3 -5
  129. android_env/wrappers/image_rescale_wrapper.py +18 -21
  130. android_env/wrappers/image_rescale_wrapper_test.py +25 -37
  131. android_env/wrappers/last_action_wrapper.py +16 -13
  132. android_env/wrappers/last_action_wrapper_test.py +44 -51
  133. android_env/wrappers/rate_limit_wrapper.py +6 -3
  134. android_env/wrappers/rate_limit_wrapper_test.py +22 -1
  135. android_env/wrappers/tap_action_wrapper.py +16 -17
  136. android_env/wrappers/tap_action_wrapper_test.py +51 -16
  137. {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/METADATA +14 -18
  138. android_env-1.2.3.dist-info/RECORD +141 -0
  139. {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/WHEEL +1 -1
  140. android_env/proto/raw_observation.proto +0 -39
  141. android_env/proto/raw_observation_pb2.py +0 -27
  142. android_env/proto/raw_observation_pb2_grpc.py +0 -4
  143. android_env-1.2.1.dist-info/RECORD +0 -81
  144. {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info/licenses}/LICENSE +0 -0
  145. {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- // Copyright 2022 DeepMind Technologies Limited.
1
+ // Copyright 2024 DeepMind Technologies Limited.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@
32
32
  // Please group deleted methods in a block including the date (MM/DD/YY)
33
33
  // it was removed. This enables us to easily keep metrics around after removal
34
34
  //
35
- // List of deleted methods
35
+ // list of deleted methods
36
36
  // rpc iWasDeleted (03/12/12)
37
37
  // ...
38
38
 
@@ -40,13 +40,14 @@
40
40
 
41
41
  syntax = "proto3";
42
42
 
43
+ package android.emulation.control;
44
+
45
+ import "google/protobuf/empty.proto";
46
+
43
47
  option java_multiple_files = true;
44
48
  option java_package = "com.android.emulator.control";
45
49
  option objc_class_prefix = "AEC";
46
50
 
47
- package android.emulation.control;
48
- import "google/protobuf/empty.proto";
49
-
50
51
  // An EmulatorController service lets you control the emulator.
51
52
  // Note that this is currently an experimental feature, and that the
52
53
  // service definition might change without notice. Use at your own risk!
@@ -61,7 +62,6 @@ import "google/protobuf/empty.proto";
61
62
  // sendXXX --> send a single event XXX, possibly returning state information.
62
63
  // android usually responds to these events.
63
64
  service EmulatorController {
64
-
65
65
  // Set the sensor data
66
66
  rpc streamSensor(SensorValue) returns (stream SensorValue) {}
67
67
  // Get the sensor data
@@ -170,7 +170,6 @@ service EmulatorController {
170
170
  // produce any audio whatsoever!
171
171
  rpc streamAudio(AudioFormat) returns (stream AudioPacket) {}
172
172
 
173
-
174
173
  // Injects a series of audio packets to the android microphone.
175
174
  // A new frame will be delivered whenever the emulated device
176
175
  // requests a new audio frame. Audio is usually delivered at a rate
@@ -181,7 +180,8 @@ service EmulatorController {
181
180
  //
182
181
  // - INVALID_ARGUMENT (code 3) The sampling rate was too high
183
182
  // - INVALID_ARGUMENT (code 3) The audio packet was too large to handle.
184
- // - FAILED_PRECONDITION (code 9) If there was a microphone registered already.
183
+ // - FAILED_PRECONDITION (code 9) If there was a microphone registered
184
+ // already.
185
185
  rpc injectAudio(stream AudioPacket) returns (google.protobuf.Empty) {}
186
186
 
187
187
  // Returns the last 128Kb of logcat output from the emulator
@@ -207,8 +207,8 @@ service EmulatorController {
207
207
  // After this call the given display configurations will be activated. You
208
208
  // can only update secondary displays. Displays with id 0 will be ignored.
209
209
  //
210
- // This call can result in the removal or addition of secondary displays, the final
211
- // display state can be observed by the returned configuration.
210
+ // This call can result in the removal or addition of secondary displays, the
211
+ // final display state can be observed by the returned configuration.
212
212
  //
213
213
  // The following gRPC error codes can be returned:
214
214
  // - FAILED_PRECONDITION (code 9) if the AVD does not support a configurable
@@ -231,18 +231,18 @@ service EmulatorController {
231
231
  //
232
232
  // - Virtual scene camera status change.
233
233
  // - Display configuration changes from extended ui. This will only be fired
234
- // if the user makes modifications the extended displays through the extended
235
- // control tab.
234
+ // if the user makes modifications the extended displays through the
235
+ // extended control tab.
236
236
  //
237
- // Note that this method will send the initial virtual scene state immediately.
237
+ // Note that this method will send the initial virtual scene state
238
+ // immediately.
238
239
  rpc streamNotification(google.protobuf.Empty) returns (stream Notification) {}
239
240
 
240
241
  // RotationRadian is relative to the camera's current orientation.
241
242
  rpc rotateVirtualSceneCamera(RotationRadian) returns (google.protobuf.Empty) {
242
243
  }
243
244
  // Velocity is absolute
244
- rpc setVirtualSceneCameraVelocity(Velocity)
245
- returns (google.protobuf.Empty) {}
245
+ rpc setVirtualSceneCameraVelocity(Velocity) returns (google.protobuf.Empty) {}
246
246
  // Set foldable posture
247
247
  rpc setPosture(Posture) returns (google.protobuf.Empty) {}
248
248
  }
@@ -281,19 +281,22 @@ message VmRunState {
281
281
  RunState state = 1;
282
282
  }
283
283
 
284
- message ParameterValue { repeated float data = 1 [ packed = true ]; }
284
+ message ParameterValue {
285
+ repeated float data = 1 [packed = true];
286
+ }
285
287
 
286
288
  message PhysicalModelValue {
287
289
  enum State {
288
290
  OK = 0;
289
- NO_SERVICE = -3; // qemud service is not available/initiated.
290
- DISABLED = -2; // Sensor is disabled.
291
- UNKNOWN = -1; // Unknown sensor (should not happen)
291
+ NO_SERVICE = -3; // qemud service is not available/initiated.
292
+ DISABLED = -2; // Sensor is disabled.
293
+ UNKNOWN = -1; // Unknown sensor (should not happen)
292
294
  }
293
295
 
294
296
  // Details on the sensors documentation can be found here:
295
297
  // https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_
296
- // The types must follow the order defined in "external/qemu/android/hw-sensors.h"
298
+ // The types must follow the order defined in
299
+ // "external/qemu/android/hw-sensors.h"
297
300
  enum PhysicalType {
298
301
  POSITION = 0;
299
302
 
@@ -343,9 +346,9 @@ message PhysicalModelValue {
343
346
  message SensorValue {
344
347
  enum State {
345
348
  OK = 0;
346
- NO_SERVICE = -3; // qemud service is not available/initiated.
347
- DISABLED = -2; // Sensor is disabled.
348
- UNKNOWN = -1; // Unknown sensor (should not happen)
349
+ NO_SERVICE = -3; // qemud service is not available/initiated.
350
+ DISABLED = -2; // Sensor is disabled.
351
+ UNKNOWN = -1; // Unknown sensor (should not happen)
349
352
  }
350
353
 
351
354
  // These are the various sensors that can be available in an emulated
@@ -432,7 +435,7 @@ message LogcatEntry {
432
435
  ERR = 6;
433
436
  FATAL = 7;
434
437
  SILENT = 8;
435
- };
438
+ }
436
439
 
437
440
  // A Unix timestamps in milliseconds (The number of milliseconds that
438
441
  // have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
@@ -477,7 +480,7 @@ message VmConfiguration {
477
480
  WHPX = 5;
478
481
 
479
482
  GVM = 6;
480
- };
483
+ }
481
484
 
482
485
  VmHypervisorType hypervisorType = 1;
483
486
  int32 numberOfCpuCores = 2;
@@ -613,7 +616,7 @@ message KeyboardEvent {
613
616
  XKB = 2;
614
617
  Win = 3;
615
618
  Mac = 4;
616
- };
619
+ }
617
620
 
618
621
  enum KeyEventType {
619
622
  // Indicates that this keyevent should be send to the emulator
@@ -631,7 +634,7 @@ message KeyboardEvent {
631
634
  // Indicates that the keyevent will be send to the emulator
632
635
  // as e key down event and immediately followed by a keyup event.
633
636
  keypress = 2;
634
- };
637
+ }
635
638
 
636
639
  // Type of keycode contained in the keyCode field.
637
640
  KeyCodeType codeType = 1;
@@ -736,14 +739,14 @@ message BatteryState {
736
739
  DISCHARGING = 2;
737
740
  NOT_CHARGING = 3;
738
741
  FULL = 4;
739
- };
742
+ }
740
743
 
741
744
  enum BatteryCharger {
742
745
  NONE = 0;
743
746
  AC = 1;
744
747
  USB = 2;
745
748
  WIRELESS = 3;
746
- };
749
+ }
747
750
 
748
751
  enum BatteryHealth {
749
752
  GOOD = 0;
@@ -751,7 +754,7 @@ message BatteryState {
751
754
  DEAD = 2;
752
755
  OVERVOLTAGE = 3;
753
756
  OVERHEATED = 4;
754
- };
757
+ }
755
758
 
756
759
  bool hasBattery = 1;
757
760
  bool isPresent = 2;
@@ -787,13 +790,14 @@ message ImageTransport {
787
790
  // The aspect ratio (width/height) will be different from the one
788
791
  // where the device is unfolded.
789
792
  message FoldedDisplay {
790
- uint32 width = 1;
791
- uint32 height = 2;
792
- // It is possible for the screen to be folded in different ways depending
793
- // on which surface is shown to the user. So xOffset and yOffset indicate
794
- // the top left corner of the folded screen within the original unfolded screen.
795
- uint32 xOffset = 3;
796
- uint32 yOffset = 4;
793
+ uint32 width = 1;
794
+ uint32 height = 2;
795
+ // It is possible for the screen to be folded in different ways depending
796
+ // on which surface is shown to the user. So xOffset and yOffset indicate
797
+ // the top left corner of the folded screen within the original unfolded
798
+ // screen.
799
+ uint32 xOffset = 3;
800
+ uint32 yOffset = 4;
797
801
  }
798
802
 
799
803
  message ImageFormat {
@@ -850,8 +854,8 @@ message ImageFormat {
850
854
  message Image {
851
855
  ImageFormat format = 1;
852
856
 
853
- uint32 width = 2 [ deprecated = true ]; // width is contained in format.
854
- uint32 height = 3 [ deprecated = true ]; // height is contained in format.
857
+ uint32 width = 2 [deprecated = true]; // width is contained in format.
858
+ uint32 height = 3 [deprecated = true]; // height is contained in format.
855
859
 
856
860
  // The organization of the pixels in the image buffer is from left to
857
861
  // right and bottom up. This will be empty if an alternative image transport
@@ -875,10 +879,10 @@ message Image {
875
879
 
876
880
  message Rotation {
877
881
  enum SkinRotation {
878
- PORTRAIT = 0; // 0 degrees
879
- LANDSCAPE = 1; // 90 degrees
880
- REVERSE_PORTRAIT = 2; // -180 degrees
881
- REVERSE_LANDSCAPE = 3; // -90 degrees
882
+ PORTRAIT = 0; // 0 degrees
883
+ LANDSCAPE = 1; // 90 degrees
884
+ REVERSE_PORTRAIT = 2; // -180 degrees
885
+ REVERSE_LANDSCAPE = 3; // -90 degrees
882
886
  }
883
887
 
884
888
  // The rotation of the device, derived from the sensor state
@@ -909,11 +913,11 @@ message PhoneCall {
909
913
  message PhoneResponse {
910
914
  enum Response {
911
915
  OK = 0;
912
- BadOperation = 1; // Enum out of range
913
- BadNumber = 2; // Mal-formed telephone number
914
- InvalidAction = 3; // E.g., disconnect when no call is in progress
915
- ActionFailed = 4; // Internal error
916
- RadioOff = 5; // Radio power off
916
+ BadOperation = 1; // Enum out of range
917
+ BadNumber = 2; // Mal-formed telephone number
918
+ InvalidAction = 3; // E.g., disconnect when no call is in progress
919
+ ActionFailed = 4; // Internal error
920
+ RadioOff = 5; // Radio power off
917
921
  }
918
922
  Response response = 1;
919
923
  }
@@ -923,7 +927,9 @@ message Entry {
923
927
  string value = 2;
924
928
  }
925
929
 
926
- message EntryList { repeated Entry entry = 1; }
930
+ message EntryList {
931
+ repeated Entry entry = 1;
932
+ }
927
933
 
928
934
  message EmulatorStatus {
929
935
  // The emulator version string.
@@ -943,18 +949,18 @@ message EmulatorStatus {
943
949
  // The hardware configuration of the running emulator as
944
950
  // key valure pairs.
945
951
  EntryList hardwareConfig = 5;
946
- };
952
+ }
947
953
 
948
954
  message AudioFormat {
949
955
  enum SampleFormat {
950
- AUD_FMT_U8 = 0; // Unsigned 8 bit
951
- AUD_FMT_S16 = 1; // Signed 16 bit (little endian)
952
- };
956
+ AUD_FMT_U8 = 0; // Unsigned 8 bit
957
+ AUD_FMT_S16 = 1; // Signed 16 bit (little endian)
958
+ }
953
959
 
954
960
  enum Channels {
955
961
  Mono = 0;
956
962
  Stereo = 1;
957
- };
963
+ }
958
964
 
959
965
  // Sampling rate to use, defaulting to 44100 if this is not set.
960
966
  // Note, that android devices typically will not use a sampling
@@ -962,7 +968,7 @@ message AudioFormat {
962
968
  uint64 samplingRate = 1;
963
969
  Channels channels = 2;
964
970
  SampleFormat format = 3;
965
- };
971
+ }
966
972
 
967
973
  message AudioPacket {
968
974
  AudioFormat format = 1;
@@ -1003,7 +1009,6 @@ message SmsMessage {
1003
1009
  // this method. By default, virtual displays are created to be private,
1004
1010
  // non-presentation and unsecure.
1005
1011
  message DisplayConfiguration {
1006
-
1007
1012
  // These are the set of known android flags and their respective values.
1008
1013
  // you can combine the int values to (de)construct the flags field below.
1009
1014
  enum DisplayFlags {
@@ -1100,16 +1105,16 @@ message Notification {
1100
1105
  }
1101
1106
 
1102
1107
  message RotationRadian {
1103
- float x = 1; // x axis is horizontal and orthogonal to the view direction.
1104
- float y = 2; // y axis points up and is perpendicular to the floor.
1105
- float z = 3; // z axis is the view direction and is set to 0.0 in
1106
- // rotateVirtualSceneCamera call.
1108
+ float x = 1; // x axis is horizontal and orthogonal to the view direction.
1109
+ float y = 2; // y axis points up and is perpendicular to the floor.
1110
+ float z = 3; // z axis is the view direction and is set to 0.0 in
1111
+ // rotateVirtualSceneCamera call.
1107
1112
  }
1108
1113
 
1109
1114
  message Velocity {
1110
- float x = 1; // x axis is horizontal and orthogonal to the view direction.
1111
- float y = 2; // y axis points up and is perpendicular to the floor.
1112
- float z = 3; // z axis is the view direction
1115
+ float x = 1; // x axis is horizontal and orthogonal to the view direction.
1116
+ float y = 2; // y axis points up and is perpendicular to the floor.
1117
+ float z = 3; // z axis is the view direction
1113
1118
  }
1114
1119
 
1115
1120
  // must follow the definition in "external/qemu/android/hw-sensors.h"
@@ -1,11 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: android_env/proto/emulator_controller.proto
5
+ # Protobuf Python Version: 5.29.0
4
6
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'android_env/proto/emulator_controller.proto'
19
+ )
9
20
  # @@protoc_insertion_point(imports)
10
21
 
11
22
  _sym_db = _symbol_database.Default()
@@ -16,134 +27,134 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
16
27
 
17
28
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+android_env/proto/emulator_controller.proto\x12\x19\x61ndroid.emulation.control\x1a\x1bgoogle/protobuf/empty.proto\"\xd7\x01\n\nVmRunState\x12=\n\x05state\x18\x01 \x01(\x0e\x32..android.emulation.control.VmRunState.RunState\"\x89\x01\n\x08RunState\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nRESTORE_VM\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07SAVE_VM\x10\x04\x12\x0c\n\x08SHUTDOWN\x10\x05\x12\r\n\tTERMINATE\x10\x07\x12\t\n\x05RESET\x10\t\x12\x12\n\x0eINTERNAL_ERROR\x10\n\"\"\n\x0eParameterValue\x12\x10\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01\"\xc3\x04\n\x12PhysicalModelValue\x12J\n\x06target\x18\x01 \x01(\x0e\x32:.android.emulation.control.PhysicalModelValue.PhysicalType\x12\x43\n\x06status\x18\x02 \x01(\x0e\x32\x33.android.emulation.control.PhysicalModelValue.State\x12\x38\n\x05value\x18\x03 \x01(\x0b\x32).android.emulation.control.ParameterValue\"U\n\x05State\x12\x06\n\x02OK\x10\x00\x12\x17\n\nNO_SERVICE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x15\n\x08\x44ISABLED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x14\n\x07UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\"\x8a\x02\n\x0cPhysicalType\x12\x0c\n\x08POSITION\x10\x00\x12\x0c\n\x08ROTATION\x10\x01\x12\x12\n\x0eMAGNETIC_FIELD\x10\x02\x12\x0f\n\x0bTEMPERATURE\x10\x03\x12\r\n\tPROXIMITY\x10\x04\x12\t\n\x05LIGHT\x10\x05\x12\x0c\n\x08PRESSURE\x10\x06\x12\x0c\n\x08HUMIDITY\x10\x07\x12\x0c\n\x08VELOCITY\x10\x08\x12\x12\n\x0e\x41MBIENT_MOTION\x10\t\x12\x10\n\x0cHINGE_ANGLE0\x10\n\x12\x10\n\x0cHINGE_ANGLE1\x10\x0b\x12\x10\n\x0cHINGE_ANGLE2\x10\x0c\x12\r\n\tROLLABLE0\x10\r\x12\r\n\tROLLABLE1\x10\x0e\x12\r\n\tROLLABLE2\x10\x0f\"\xf8\x03\n\x0bSensorValue\x12\x41\n\x06target\x18\x01 \x01(\x0e\x32\x31.android.emulation.control.SensorValue.SensorType\x12<\n\x06status\x18\x02 \x01(\x0e\x32,.android.emulation.control.SensorValue.State\x12\x38\n\x05value\x18\x03 \x01(\x0b\x32).android.emulation.control.ParameterValue\"U\n\x05State\x12\x06\n\x02OK\x10\x00\x12\x17\n\nNO_SERVICE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x15\n\x08\x44ISABLED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x14\n\x07UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01\"\xd6\x01\n\nSensorType\x12\x10\n\x0c\x41\x43\x43\x45LERATION\x10\x00\x12\r\n\tGYROSCOPE\x10\x01\x12\x12\n\x0eMAGNETIC_FIELD\x10\x02\x12\x0f\n\x0bORIENTATION\x10\x03\x12\x0f\n\x0bTEMPERATURE\x10\x04\x12\r\n\tPROXIMITY\x10\x05\x12\t\n\x05LIGHT\x10\x06\x12\x0c\n\x08PRESSURE\x10\x07\x12\x0c\n\x08HUMIDITY\x10\x08\x12\x1f\n\x1bMAGNETIC_FIELD_UNCALIBRATED\x10\t\x12\x1a\n\x16GYROSCOPE_UNCALIBRATED\x10\n\"\xd2\x01\n\nLogMessage\x12\x10\n\x08\x63ontents\x18\x01 \x01(\t\x12\r\n\x05start\x18\x02 \x01(\x03\x12\x0c\n\x04next\x18\x03 \x01(\x03\x12;\n\x04sort\x18\x04 \x01(\x0e\x32-.android.emulation.control.LogMessage.LogType\x12\x37\n\x07\x65ntries\x18\x05 \x03(\x0b\x32&.android.emulation.control.LogcatEntry\"\x1f\n\x07LogType\x12\x08\n\x04Text\x10\x00\x12\n\n\x06Parsed\x10\x01\"\x86\x02\n\x0bLogcatEntry\x12\x11\n\ttimestamp\x18\x01 \x01(\x04\x12\x0b\n\x03pid\x18\x02 \x01(\r\x12\x0b\n\x03tid\x18\x03 \x01(\r\x12>\n\x05level\x18\x04 \x01(\x0e\x32/.android.emulation.control.LogcatEntry.LogLevel\x12\x0b\n\x03tag\x18\x05 \x01(\t\x12\x0b\n\x03msg\x18\x06 \x01(\t\"p\n\x08LogLevel\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0b\n\x07VERBOSE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\x07\n\x03\x45RR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\n\n\x06SILENT\x10\x08\"\xf0\x01\n\x0fVmConfiguration\x12S\n\x0ehypervisorType\x18\x01 \x01(\x0e\x32;.android.emulation.control.VmConfiguration.VmHypervisorType\x12\x18\n\x10numberOfCpuCores\x18\x02 \x01(\x05\x12\x14\n\x0cramSizeBytes\x18\x03 \x01(\x03\"X\n\x10VmHypervisorType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03KVM\x10\x02\x12\x08\n\x04HAXM\x10\x03\x12\x07\n\x03HVF\x10\x04\x12\x08\n\x04WHPX\x10\x05\x12\x07\n\x03GVM\x10\x06\"\x18\n\x08\x43lipData\x12\x0c\n\x04text\x18\x01 \x01(\t\"\xfa\x01\n\x05Touch\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\x12\n\nidentifier\x18\x03 \x01(\x05\x12\x10\n\x08pressure\x18\x04 \x01(\x05\x12\x13\n\x0btouch_major\x18\x05 \x01(\x05\x12\x13\n\x0btouch_minor\x18\x06 \x01(\x05\x12\x44\n\nexpiration\x18\x07 \x01(\x0e\x32\x30.android.emulation.control.Touch.EventExpiration\"E\n\x0f\x45ventExpiration\x12 \n\x1c\x45VENT_EXPIRATION_UNSPECIFIED\x10\x00\x12\x10\n\x0cNEVER_EXPIRE\x10\x01\"P\n\nTouchEvent\x12\x31\n\x07touches\x18\x01 \x03(\x0b\x32 .android.emulation.control.Touch\x12\x0f\n\x07\x64isplay\x18\x02 \x01(\x05\"D\n\nMouseEvent\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\x0f\n\x07\x62uttons\x18\x03 \x01(\x05\x12\x0f\n\x07\x64isplay\x18\x04 \x01(\x05\"\xc1\x02\n\rKeyboardEvent\x12\x46\n\x08\x63odeType\x18\x01 \x01(\x0e\x32\x34.android.emulation.control.KeyboardEvent.KeyCodeType\x12H\n\teventType\x18\x02 \x01(\x0e\x32\x35.android.emulation.control.KeyboardEvent.KeyEventType\x12\x0f\n\x07keyCode\x18\x03 \x01(\x05\x12\x0b\n\x03key\x18\x04 \x01(\t\x12\x0c\n\x04text\x18\x05 \x01(\t\"<\n\x0bKeyCodeType\x12\x07\n\x03Usb\x10\x00\x12\t\n\x05\x45vdev\x10\x01\x12\x07\n\x03XKB\x10\x02\x12\x07\n\x03Win\x10\x03\x12\x07\n\x03Mac\x10\x04\"4\n\x0cKeyEventType\x12\x0b\n\x07keydown\x10\x00\x12\t\n\x05keyup\x10\x01\x12\x0c\n\x08keypress\x10\x02\"2\n\x0b\x46ingerprint\x12\x12\n\nisTouching\x18\x01 \x01(\x08\x12\x0f\n\x07touchId\x18\x02 \x01(\x05\"\x8c\x01\n\x08GpsState\x12\x15\n\rpassiveUpdate\x18\x01 \x01(\x08\x12\x10\n\x08latitude\x18\x02 \x01(\x01\x12\x11\n\tlongitude\x18\x03 \x01(\x01\x12\r\n\x05speed\x18\x04 \x01(\x01\x12\x0f\n\x07\x62\x65\x61ring\x18\x05 \x01(\x01\x12\x10\n\x08\x61ltitude\x18\x06 \x01(\x01\x12\x12\n\nsatellites\x18\x07 \x01(\x05\"\x87\x04\n\x0c\x42\x61tteryState\x12\x12\n\nhasBattery\x18\x01 \x01(\x08\x12\x11\n\tisPresent\x18\x02 \x01(\x08\x12G\n\x07\x63harger\x18\x03 \x01(\x0e\x32\x36.android.emulation.control.BatteryState.BatteryCharger\x12\x13\n\x0b\x63hargeLevel\x18\x04 \x01(\x05\x12\x45\n\x06health\x18\x05 \x01(\x0e\x32\x35.android.emulation.control.BatteryState.BatteryHealth\x12\x45\n\x06status\x18\x06 \x01(\x0e\x32\x35.android.emulation.control.BatteryState.BatteryStatus\"W\n\rBatteryStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43HARGING\x10\x01\x12\x0f\n\x0b\x44ISCHARGING\x10\x02\x12\x10\n\x0cNOT_CHARGING\x10\x03\x12\x08\n\x04\x46ULL\x10\x04\"9\n\x0e\x42\x61tteryCharger\x12\x08\n\x04NONE\x10\x00\x12\x06\n\x02\x41\x43\x10\x01\x12\x07\n\x03USB\x10\x02\x12\x0c\n\x08WIRELESS\x10\x03\"P\n\rBatteryHealth\x12\x08\n\x04GOOD\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0f\n\x0bOVERVOLTAGE\x10\x03\x12\x0e\n\nOVERHEATED\x10\x04\"\xae\x01\n\x0eImageTransport\x12K\n\x07\x63hannel\x18\x01 \x01(\x0e\x32:.android.emulation.control.ImageTransport.TransportChannel\x12\x0e\n\x06handle\x18\x02 \x01(\t\"?\n\x10TransportChannel\x12!\n\x1dTRANSPORT_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04MMAP\x10\x01\"P\n\rFoldedDisplay\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x0f\n\x07xOffset\x18\x03 \x01(\r\x12\x0f\n\x07yOffset\x18\x04 \x01(\r\"\xe5\x02\n\x0bImageFormat\x12@\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x30.android.emulation.control.ImageFormat.ImgFormat\x12\x35\n\x08rotation\x18\x02 \x01(\x0b\x32#.android.emulation.control.Rotation\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x0f\n\x07\x64isplay\x18\x05 \x01(\r\x12<\n\ttransport\x18\x06 \x01(\x0b\x32).android.emulation.control.ImageTransport\x12?\n\rfoldedDisplay\x18\x07 \x01(\x0b\x32(.android.emulation.control.FoldedDisplay\".\n\tImgFormat\x12\x07\n\x03PNG\x10\x00\x12\x0c\n\x08RGBA8888\x10\x01\x12\n\n\x06RGB888\x10\x02\"\x97\x01\n\x05Image\x12\x36\n\x06\x66ormat\x18\x01 \x01(\x0b\x32&.android.emulation.control.ImageFormat\x12\x11\n\x05width\x18\x02 \x01(\rB\x02\x18\x01\x12\x12\n\x06height\x18\x03 \x01(\rB\x02\x18\x01\x12\r\n\x05image\x18\x04 \x01(\x0c\x12\x0b\n\x03seq\x18\x05 \x01(\r\x12\x13\n\x0btimestampUs\x18\x06 \x01(\x04\"\xd5\x01\n\x08Rotation\x12\x42\n\x08rotation\x18\x01 \x01(\x0e\x32\x30.android.emulation.control.Rotation.SkinRotation\x12\r\n\x05xAxis\x18\x02 \x01(\x01\x12\r\n\x05yAxis\x18\x03 \x01(\x01\x12\r\n\x05zAxis\x18\x04 \x01(\x01\"X\n\x0cSkinRotation\x12\x0c\n\x08PORTRAIT\x10\x00\x12\r\n\tLANDSCAPE\x10\x01\x12\x14\n\x10REVERSE_PORTRAIT\x10\x02\x12\x15\n\x11REVERSE_LANDSCAPE\x10\x03\"\xf4\x01\n\tPhoneCall\x12\x41\n\toperation\x18\x01 \x01(\x0e\x32..android.emulation.control.PhoneCall.Operation\x12\x0e\n\x06number\x18\x02 \x01(\t\"\x93\x01\n\tOperation\x12\x0c\n\x08InitCall\x10\x00\x12\x0e\n\nAcceptCall\x10\x01\x12\x16\n\x12RejectCallExplicit\x10\x02\x12\x12\n\x0eRejectCallBusy\x10\x03\x12\x12\n\x0e\x44isconnectCall\x10\x04\x12\x13\n\x0fPlaceCallOnHold\x10\x05\x12\x13\n\x0fTakeCallOffHold\x10\x06\"\xbc\x01\n\rPhoneResponse\x12\x43\n\x08response\x18\x01 \x01(\x0e\x32\x31.android.emulation.control.PhoneResponse.Response\"f\n\x08Response\x12\x06\n\x02OK\x10\x00\x12\x10\n\x0c\x42\x61\x64Operation\x10\x01\x12\r\n\tBadNumber\x10\x02\x12\x11\n\rInvalidAction\x10\x03\x12\x10\n\x0c\x41\x63tionFailed\x10\x04\x12\x0c\n\x08RadioOff\x10\x05\"#\n\x05\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"<\n\tEntryList\x12/\n\x05\x65ntry\x18\x01 \x03(\x0b\x32 .android.emulation.control.Entry\"\xbd\x01\n\x0e\x45mulatorStatus\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0e\n\x06uptime\x18\x02 \x01(\x04\x12\x0e\n\x06\x62ooted\x18\x03 \x01(\x08\x12<\n\x08vmConfig\x18\x04 \x01(\x0b\x32*.android.emulation.control.VmConfiguration\x12<\n\x0ehardwareConfig\x18\x05 \x01(\x0b\x32$.android.emulation.control.EntryList\"\xfe\x01\n\x0b\x41udioFormat\x12\x14\n\x0csamplingRate\x18\x01 \x01(\x04\x12\x41\n\x08\x63hannels\x18\x02 \x01(\x0e\x32/.android.emulation.control.AudioFormat.Channels\x12\x43\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x33.android.emulation.control.AudioFormat.SampleFormat\"/\n\x0cSampleFormat\x12\x0e\n\nAUD_FMT_U8\x10\x00\x12\x0f\n\x0b\x41UD_FMT_S16\x10\x01\" \n\x08\x43hannels\x12\x08\n\x04Mono\x10\x00\x12\n\n\x06Stereo\x10\x01\"g\n\x0b\x41udioPacket\x12\x36\n\x06\x66ormat\x18\x01 \x01(\x0b\x32&.android.emulation.control.AudioFormat\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\r\n\x05\x61udio\x18\x03 \x01(\x0c\".\n\nSmsMessage\x12\x12\n\nsrcAddress\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"\xcb\x02\n\x14\x44isplayConfiguration\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x0b\n\x03\x64pi\x18\x03 \x01(\r\x12\r\n\x05\x66lags\x18\x04 \x01(\r\x12\x0f\n\x07\x64isplay\x18\x05 \x01(\r\"\xe6\x01\n\x0c\x44isplayFlags\x12\x1c\n\x18\x44ISPLAYFLAGS_UNSPECIFIED\x10\x00\x12\x1f\n\x1bVIRTUAL_DISPLAY_FLAG_PUBLIC\x10\x01\x12%\n!VIRTUAL_DISPLAY_FLAG_PRESENTATION\x10\x02\x12\x1f\n\x1bVIRTUAL_DISPLAY_FLAG_SECURE\x10\x04\x12)\n%VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY\x10\x08\x12$\n VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR\x10\x10\"Z\n\x15\x44isplayConfigurations\x12\x41\n\x08\x64isplays\x18\x01 \x03(\x0b\x32/.android.emulation.control.DisplayConfiguration\"\xc8\x01\n\x0cNotification\x12@\n\x05\x65vent\x18\x01 \x01(\x0e\x32\x31.android.emulation.control.Notification.EventType\"v\n\tEventType\x12!\n\x1dVIRTUAL_SCENE_CAMERA_INACTIVE\x10\x00\x12\x1f\n\x1bVIRTUAL_SCENE_CAMERA_ACTIVE\x10\x01\x12%\n!DISPLAY_CONFIGURATIONS_CHANGED_UI\x10\x02\"1\n\x0eRotationRadian\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"+\n\x08Velocity\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02\"\xe8\x01\n\x07Posture\x12>\n\x05value\x18\x03 \x01(\x0e\x32/.android.emulation.control.Posture.PostureValue\"\x9c\x01\n\x0cPostureValue\x12\x13\n\x0fPOSTURE_UNKNOWN\x10\x00\x12\x12\n\x0ePOSTURE_CLOSED\x10\x01\x12\x17\n\x13POSTURE_HALF_OPENED\x10\x02\x12\x12\n\x0ePOSTURE_OPENED\x10\x03\x12\x13\n\x0fPOSTURE_FLIPPED\x10\x04\x12\x10\n\x0cPOSTURE_TENT\x10\x05\x12\x0f\n\x0bPOSTURE_MAX\x10\x06\x32\x8a\x18\n\x12\x45mulatorController\x12\x62\n\x0cstreamSensor\x12&.android.emulation.control.SensorValue\x1a&.android.emulation.control.SensorValue\"\x00\x30\x01\x12]\n\tgetSensor\x12&.android.emulation.control.SensorValue\x1a&.android.emulation.control.SensorValue\"\x00\x12M\n\tsetSensor\x12&.android.emulation.control.SensorValue\x1a\x16.google.protobuf.Empty\"\x00\x12[\n\x10setPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a\x16.google.protobuf.Empty\"\x00\x12r\n\x10getPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a-.android.emulation.control.PhysicalModelValue\"\x00\x12w\n\x13streamPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a-.android.emulation.control.PhysicalModelValue\"\x00\x30\x01\x12M\n\x0csetClipboard\x12#.android.emulation.control.ClipData\x1a\x16.google.protobuf.Empty\"\x00\x12M\n\x0cgetClipboard\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.ClipData\"\x00\x12R\n\x0fstreamClipboard\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.ClipData\"\x00\x30\x01\x12O\n\nsetBattery\x12\'.android.emulation.control.BatteryState\x1a\x16.google.protobuf.Empty\"\x00\x12O\n\ngetBattery\x12\x16.google.protobuf.Empty\x1a\'.android.emulation.control.BatteryState\"\x00\x12G\n\x06setGps\x12#.android.emulation.control.GpsState\x1a\x16.google.protobuf.Empty\"\x00\x12G\n\x06getGps\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.GpsState\"\x00\x12S\n\x0fsendFingerprint\x12&.android.emulation.control.Fingerprint\x1a\x16.google.protobuf.Empty\"\x00\x12M\n\x07sendKey\x12(.android.emulation.control.KeyboardEvent\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\tsendTouch\x12%.android.emulation.control.TouchEvent\x1a\x16.google.protobuf.Empty\"\x00\x12L\n\tsendMouse\x12%.android.emulation.control.MouseEvent\x1a\x16.google.protobuf.Empty\"\x00\x12]\n\tsendPhone\x12$.android.emulation.control.PhoneCall\x1a(.android.emulation.control.PhoneResponse\"\x00\x12\\\n\x07sendSms\x12%.android.emulation.control.SmsMessage\x1a(.android.emulation.control.PhoneResponse\"\x00\x12P\n\tgetStatus\x12\x16.google.protobuf.Empty\x1a).android.emulation.control.EmulatorStatus\"\x00\x12[\n\rgetScreenshot\x12&.android.emulation.control.ImageFormat\x1a .android.emulation.control.Image\"\x00\x12`\n\x10streamScreenshot\x12&.android.emulation.control.ImageFormat\x1a .android.emulation.control.Image\"\x00\x30\x01\x12\x61\n\x0bstreamAudio\x12&.android.emulation.control.AudioFormat\x1a&.android.emulation.control.AudioPacket\"\x00\x30\x01\x12Q\n\x0binjectAudio\x12&.android.emulation.control.AudioPacket\x1a\x16.google.protobuf.Empty\"\x00(\x01\x12[\n\tgetLogcat\x12%.android.emulation.control.LogMessage\x1a%.android.emulation.control.LogMessage\"\x00\x12`\n\x0cstreamLogcat\x12%.android.emulation.control.LogMessage\x1a%.android.emulation.control.LogMessage\"\x00\x30\x01\x12M\n\nsetVmState\x12%.android.emulation.control.VmRunState\x1a\x16.google.protobuf.Empty\"\x00\x12M\n\ngetVmState\x12\x16.google.protobuf.Empty\x1a%.android.emulation.control.VmRunState\"\x00\x12\x80\x01\n\x18setDisplayConfigurations\x12\x30.android.emulation.control.DisplayConfigurations\x1a\x30.android.emulation.control.DisplayConfigurations\"\x00\x12\x66\n\x18getDisplayConfigurations\x12\x16.google.protobuf.Empty\x1a\x30.android.emulation.control.DisplayConfigurations\"\x00\x12Y\n\x12streamNotification\x12\x16.google.protobuf.Empty\x1a\'.android.emulation.control.Notification\"\x00\x30\x01\x12_\n\x18rotateVirtualSceneCamera\x12).android.emulation.control.RotationRadian\x1a\x16.google.protobuf.Empty\"\x00\x12^\n\x1dsetVirtualSceneCameraVelocity\x12#.android.emulation.control.Velocity\x1a\x16.google.protobuf.Empty\"\x00\x12J\n\nsetPosture\x12\".android.emulation.control.Posture\x1a\x16.google.protobuf.Empty\"\x00\x42&\n\x1c\x63om.android.emulator.controlP\x01\xa2\x02\x03\x41\x45\x43\x62\x06proto3')
18
29
 
19
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.emulator_controller_pb2', globals())
21
- if _descriptor._USE_C_DESCRIPTORS == False:
22
-
23
- DESCRIPTOR._options = None
24
- DESCRIPTOR._serialized_options = b'\n\034com.android.emulator.controlP\001\242\002\003AEC'
25
- _PARAMETERVALUE.fields_by_name['data']._options = None
26
- _PARAMETERVALUE.fields_by_name['data']._serialized_options = b'\020\001'
27
- _IMAGE.fields_by_name['width']._options = None
28
- _IMAGE.fields_by_name['width']._serialized_options = b'\030\001'
29
- _IMAGE.fields_by_name['height']._options = None
30
- _IMAGE.fields_by_name['height']._serialized_options = b'\030\001'
31
- _VMRUNSTATE._serialized_start=104
32
- _VMRUNSTATE._serialized_end=319
33
- _VMRUNSTATE_RUNSTATE._serialized_start=182
34
- _VMRUNSTATE_RUNSTATE._serialized_end=319
35
- _PARAMETERVALUE._serialized_start=321
36
- _PARAMETERVALUE._serialized_end=355
37
- _PHYSICALMODELVALUE._serialized_start=358
38
- _PHYSICALMODELVALUE._serialized_end=937
39
- _PHYSICALMODELVALUE_STATE._serialized_start=583
40
- _PHYSICALMODELVALUE_STATE._serialized_end=668
41
- _PHYSICALMODELVALUE_PHYSICALTYPE._serialized_start=671
42
- _PHYSICALMODELVALUE_PHYSICALTYPE._serialized_end=937
43
- _SENSORVALUE._serialized_start=940
44
- _SENSORVALUE._serialized_end=1444
45
- _SENSORVALUE_STATE._serialized_start=583
46
- _SENSORVALUE_STATE._serialized_end=668
47
- _SENSORVALUE_SENSORTYPE._serialized_start=1230
48
- _SENSORVALUE_SENSORTYPE._serialized_end=1444
49
- _LOGMESSAGE._serialized_start=1447
50
- _LOGMESSAGE._serialized_end=1657
51
- _LOGMESSAGE_LOGTYPE._serialized_start=1626
52
- _LOGMESSAGE_LOGTYPE._serialized_end=1657
53
- _LOGCATENTRY._serialized_start=1660
54
- _LOGCATENTRY._serialized_end=1922
55
- _LOGCATENTRY_LOGLEVEL._serialized_start=1810
56
- _LOGCATENTRY_LOGLEVEL._serialized_end=1922
57
- _VMCONFIGURATION._serialized_start=1925
58
- _VMCONFIGURATION._serialized_end=2165
59
- _VMCONFIGURATION_VMHYPERVISORTYPE._serialized_start=2077
60
- _VMCONFIGURATION_VMHYPERVISORTYPE._serialized_end=2165
61
- _CLIPDATA._serialized_start=2167
62
- _CLIPDATA._serialized_end=2191
63
- _TOUCH._serialized_start=2194
64
- _TOUCH._serialized_end=2444
65
- _TOUCH_EVENTEXPIRATION._serialized_start=2375
66
- _TOUCH_EVENTEXPIRATION._serialized_end=2444
67
- _TOUCHEVENT._serialized_start=2446
68
- _TOUCHEVENT._serialized_end=2526
69
- _MOUSEEVENT._serialized_start=2528
70
- _MOUSEEVENT._serialized_end=2596
71
- _KEYBOARDEVENT._serialized_start=2599
72
- _KEYBOARDEVENT._serialized_end=2920
73
- _KEYBOARDEVENT_KEYCODETYPE._serialized_start=2806
74
- _KEYBOARDEVENT_KEYCODETYPE._serialized_end=2866
75
- _KEYBOARDEVENT_KEYEVENTTYPE._serialized_start=2868
76
- _KEYBOARDEVENT_KEYEVENTTYPE._serialized_end=2920
77
- _FINGERPRINT._serialized_start=2922
78
- _FINGERPRINT._serialized_end=2972
79
- _GPSSTATE._serialized_start=2975
80
- _GPSSTATE._serialized_end=3115
81
- _BATTERYSTATE._serialized_start=3118
82
- _BATTERYSTATE._serialized_end=3637
83
- _BATTERYSTATE_BATTERYSTATUS._serialized_start=3409
84
- _BATTERYSTATE_BATTERYSTATUS._serialized_end=3496
85
- _BATTERYSTATE_BATTERYCHARGER._serialized_start=3498
86
- _BATTERYSTATE_BATTERYCHARGER._serialized_end=3555
87
- _BATTERYSTATE_BATTERYHEALTH._serialized_start=3557
88
- _BATTERYSTATE_BATTERYHEALTH._serialized_end=3637
89
- _IMAGETRANSPORT._serialized_start=3640
90
- _IMAGETRANSPORT._serialized_end=3814
91
- _IMAGETRANSPORT_TRANSPORTCHANNEL._serialized_start=3751
92
- _IMAGETRANSPORT_TRANSPORTCHANNEL._serialized_end=3814
93
- _FOLDEDDISPLAY._serialized_start=3816
94
- _FOLDEDDISPLAY._serialized_end=3896
95
- _IMAGEFORMAT._serialized_start=3899
96
- _IMAGEFORMAT._serialized_end=4256
97
- _IMAGEFORMAT_IMGFORMAT._serialized_start=4210
98
- _IMAGEFORMAT_IMGFORMAT._serialized_end=4256
99
- _IMAGE._serialized_start=4259
100
- _IMAGE._serialized_end=4410
101
- _ROTATION._serialized_start=4413
102
- _ROTATION._serialized_end=4626
103
- _ROTATION_SKINROTATION._serialized_start=4538
104
- _ROTATION_SKINROTATION._serialized_end=4626
105
- _PHONECALL._serialized_start=4629
106
- _PHONECALL._serialized_end=4873
107
- _PHONECALL_OPERATION._serialized_start=4726
108
- _PHONECALL_OPERATION._serialized_end=4873
109
- _PHONERESPONSE._serialized_start=4876
110
- _PHONERESPONSE._serialized_end=5064
111
- _PHONERESPONSE_RESPONSE._serialized_start=4962
112
- _PHONERESPONSE_RESPONSE._serialized_end=5064
113
- _ENTRY._serialized_start=5066
114
- _ENTRY._serialized_end=5101
115
- _ENTRYLIST._serialized_start=5103
116
- _ENTRYLIST._serialized_end=5163
117
- _EMULATORSTATUS._serialized_start=5166
118
- _EMULATORSTATUS._serialized_end=5355
119
- _AUDIOFORMAT._serialized_start=5358
120
- _AUDIOFORMAT._serialized_end=5612
121
- _AUDIOFORMAT_SAMPLEFORMAT._serialized_start=5531
122
- _AUDIOFORMAT_SAMPLEFORMAT._serialized_end=5578
123
- _AUDIOFORMAT_CHANNELS._serialized_start=5580
124
- _AUDIOFORMAT_CHANNELS._serialized_end=5612
125
- _AUDIOPACKET._serialized_start=5614
126
- _AUDIOPACKET._serialized_end=5717
127
- _SMSMESSAGE._serialized_start=5719
128
- _SMSMESSAGE._serialized_end=5765
129
- _DISPLAYCONFIGURATION._serialized_start=5768
130
- _DISPLAYCONFIGURATION._serialized_end=6099
131
- _DISPLAYCONFIGURATION_DISPLAYFLAGS._serialized_start=5869
132
- _DISPLAYCONFIGURATION_DISPLAYFLAGS._serialized_end=6099
133
- _DISPLAYCONFIGURATIONS._serialized_start=6101
134
- _DISPLAYCONFIGURATIONS._serialized_end=6191
135
- _NOTIFICATION._serialized_start=6194
136
- _NOTIFICATION._serialized_end=6394
137
- _NOTIFICATION_EVENTTYPE._serialized_start=6276
138
- _NOTIFICATION_EVENTTYPE._serialized_end=6394
139
- _ROTATIONRADIAN._serialized_start=6396
140
- _ROTATIONRADIAN._serialized_end=6445
141
- _VELOCITY._serialized_start=6447
142
- _VELOCITY._serialized_end=6490
143
- _POSTURE._serialized_start=6493
144
- _POSTURE._serialized_end=6725
145
- _POSTURE_POSTUREVALUE._serialized_start=6569
146
- _POSTURE_POSTUREVALUE._serialized_end=6725
147
- _EMULATORCONTROLLER._serialized_start=6728
148
- _EMULATORCONTROLLER._serialized_end=9810
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.emulator_controller_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.android.emulator.controlP\001\242\002\003AEC'
36
+ _globals['_PARAMETERVALUE'].fields_by_name['data']._loaded_options = None
37
+ _globals['_PARAMETERVALUE'].fields_by_name['data']._serialized_options = b'\020\001'
38
+ _globals['_IMAGE'].fields_by_name['width']._loaded_options = None
39
+ _globals['_IMAGE'].fields_by_name['width']._serialized_options = b'\030\001'
40
+ _globals['_IMAGE'].fields_by_name['height']._loaded_options = None
41
+ _globals['_IMAGE'].fields_by_name['height']._serialized_options = b'\030\001'
42
+ _globals['_VMRUNSTATE']._serialized_start=104
43
+ _globals['_VMRUNSTATE']._serialized_end=319
44
+ _globals['_VMRUNSTATE_RUNSTATE']._serialized_start=182
45
+ _globals['_VMRUNSTATE_RUNSTATE']._serialized_end=319
46
+ _globals['_PARAMETERVALUE']._serialized_start=321
47
+ _globals['_PARAMETERVALUE']._serialized_end=355
48
+ _globals['_PHYSICALMODELVALUE']._serialized_start=358
49
+ _globals['_PHYSICALMODELVALUE']._serialized_end=937
50
+ _globals['_PHYSICALMODELVALUE_STATE']._serialized_start=583
51
+ _globals['_PHYSICALMODELVALUE_STATE']._serialized_end=668
52
+ _globals['_PHYSICALMODELVALUE_PHYSICALTYPE']._serialized_start=671
53
+ _globals['_PHYSICALMODELVALUE_PHYSICALTYPE']._serialized_end=937
54
+ _globals['_SENSORVALUE']._serialized_start=940
55
+ _globals['_SENSORVALUE']._serialized_end=1444
56
+ _globals['_SENSORVALUE_STATE']._serialized_start=583
57
+ _globals['_SENSORVALUE_STATE']._serialized_end=668
58
+ _globals['_SENSORVALUE_SENSORTYPE']._serialized_start=1230
59
+ _globals['_SENSORVALUE_SENSORTYPE']._serialized_end=1444
60
+ _globals['_LOGMESSAGE']._serialized_start=1447
61
+ _globals['_LOGMESSAGE']._serialized_end=1657
62
+ _globals['_LOGMESSAGE_LOGTYPE']._serialized_start=1626
63
+ _globals['_LOGMESSAGE_LOGTYPE']._serialized_end=1657
64
+ _globals['_LOGCATENTRY']._serialized_start=1660
65
+ _globals['_LOGCATENTRY']._serialized_end=1922
66
+ _globals['_LOGCATENTRY_LOGLEVEL']._serialized_start=1810
67
+ _globals['_LOGCATENTRY_LOGLEVEL']._serialized_end=1922
68
+ _globals['_VMCONFIGURATION']._serialized_start=1925
69
+ _globals['_VMCONFIGURATION']._serialized_end=2165
70
+ _globals['_VMCONFIGURATION_VMHYPERVISORTYPE']._serialized_start=2077
71
+ _globals['_VMCONFIGURATION_VMHYPERVISORTYPE']._serialized_end=2165
72
+ _globals['_CLIPDATA']._serialized_start=2167
73
+ _globals['_CLIPDATA']._serialized_end=2191
74
+ _globals['_TOUCH']._serialized_start=2194
75
+ _globals['_TOUCH']._serialized_end=2444
76
+ _globals['_TOUCH_EVENTEXPIRATION']._serialized_start=2375
77
+ _globals['_TOUCH_EVENTEXPIRATION']._serialized_end=2444
78
+ _globals['_TOUCHEVENT']._serialized_start=2446
79
+ _globals['_TOUCHEVENT']._serialized_end=2526
80
+ _globals['_MOUSEEVENT']._serialized_start=2528
81
+ _globals['_MOUSEEVENT']._serialized_end=2596
82
+ _globals['_KEYBOARDEVENT']._serialized_start=2599
83
+ _globals['_KEYBOARDEVENT']._serialized_end=2920
84
+ _globals['_KEYBOARDEVENT_KEYCODETYPE']._serialized_start=2806
85
+ _globals['_KEYBOARDEVENT_KEYCODETYPE']._serialized_end=2866
86
+ _globals['_KEYBOARDEVENT_KEYEVENTTYPE']._serialized_start=2868
87
+ _globals['_KEYBOARDEVENT_KEYEVENTTYPE']._serialized_end=2920
88
+ _globals['_FINGERPRINT']._serialized_start=2922
89
+ _globals['_FINGERPRINT']._serialized_end=2972
90
+ _globals['_GPSSTATE']._serialized_start=2975
91
+ _globals['_GPSSTATE']._serialized_end=3115
92
+ _globals['_BATTERYSTATE']._serialized_start=3118
93
+ _globals['_BATTERYSTATE']._serialized_end=3637
94
+ _globals['_BATTERYSTATE_BATTERYSTATUS']._serialized_start=3409
95
+ _globals['_BATTERYSTATE_BATTERYSTATUS']._serialized_end=3496
96
+ _globals['_BATTERYSTATE_BATTERYCHARGER']._serialized_start=3498
97
+ _globals['_BATTERYSTATE_BATTERYCHARGER']._serialized_end=3555
98
+ _globals['_BATTERYSTATE_BATTERYHEALTH']._serialized_start=3557
99
+ _globals['_BATTERYSTATE_BATTERYHEALTH']._serialized_end=3637
100
+ _globals['_IMAGETRANSPORT']._serialized_start=3640
101
+ _globals['_IMAGETRANSPORT']._serialized_end=3814
102
+ _globals['_IMAGETRANSPORT_TRANSPORTCHANNEL']._serialized_start=3751
103
+ _globals['_IMAGETRANSPORT_TRANSPORTCHANNEL']._serialized_end=3814
104
+ _globals['_FOLDEDDISPLAY']._serialized_start=3816
105
+ _globals['_FOLDEDDISPLAY']._serialized_end=3896
106
+ _globals['_IMAGEFORMAT']._serialized_start=3899
107
+ _globals['_IMAGEFORMAT']._serialized_end=4256
108
+ _globals['_IMAGEFORMAT_IMGFORMAT']._serialized_start=4210
109
+ _globals['_IMAGEFORMAT_IMGFORMAT']._serialized_end=4256
110
+ _globals['_IMAGE']._serialized_start=4259
111
+ _globals['_IMAGE']._serialized_end=4410
112
+ _globals['_ROTATION']._serialized_start=4413
113
+ _globals['_ROTATION']._serialized_end=4626
114
+ _globals['_ROTATION_SKINROTATION']._serialized_start=4538
115
+ _globals['_ROTATION_SKINROTATION']._serialized_end=4626
116
+ _globals['_PHONECALL']._serialized_start=4629
117
+ _globals['_PHONECALL']._serialized_end=4873
118
+ _globals['_PHONECALL_OPERATION']._serialized_start=4726
119
+ _globals['_PHONECALL_OPERATION']._serialized_end=4873
120
+ _globals['_PHONERESPONSE']._serialized_start=4876
121
+ _globals['_PHONERESPONSE']._serialized_end=5064
122
+ _globals['_PHONERESPONSE_RESPONSE']._serialized_start=4962
123
+ _globals['_PHONERESPONSE_RESPONSE']._serialized_end=5064
124
+ _globals['_ENTRY']._serialized_start=5066
125
+ _globals['_ENTRY']._serialized_end=5101
126
+ _globals['_ENTRYLIST']._serialized_start=5103
127
+ _globals['_ENTRYLIST']._serialized_end=5163
128
+ _globals['_EMULATORSTATUS']._serialized_start=5166
129
+ _globals['_EMULATORSTATUS']._serialized_end=5355
130
+ _globals['_AUDIOFORMAT']._serialized_start=5358
131
+ _globals['_AUDIOFORMAT']._serialized_end=5612
132
+ _globals['_AUDIOFORMAT_SAMPLEFORMAT']._serialized_start=5531
133
+ _globals['_AUDIOFORMAT_SAMPLEFORMAT']._serialized_end=5578
134
+ _globals['_AUDIOFORMAT_CHANNELS']._serialized_start=5580
135
+ _globals['_AUDIOFORMAT_CHANNELS']._serialized_end=5612
136
+ _globals['_AUDIOPACKET']._serialized_start=5614
137
+ _globals['_AUDIOPACKET']._serialized_end=5717
138
+ _globals['_SMSMESSAGE']._serialized_start=5719
139
+ _globals['_SMSMESSAGE']._serialized_end=5765
140
+ _globals['_DISPLAYCONFIGURATION']._serialized_start=5768
141
+ _globals['_DISPLAYCONFIGURATION']._serialized_end=6099
142
+ _globals['_DISPLAYCONFIGURATION_DISPLAYFLAGS']._serialized_start=5869
143
+ _globals['_DISPLAYCONFIGURATION_DISPLAYFLAGS']._serialized_end=6099
144
+ _globals['_DISPLAYCONFIGURATIONS']._serialized_start=6101
145
+ _globals['_DISPLAYCONFIGURATIONS']._serialized_end=6191
146
+ _globals['_NOTIFICATION']._serialized_start=6194
147
+ _globals['_NOTIFICATION']._serialized_end=6394
148
+ _globals['_NOTIFICATION_EVENTTYPE']._serialized_start=6276
149
+ _globals['_NOTIFICATION_EVENTTYPE']._serialized_end=6394
150
+ _globals['_ROTATIONRADIAN']._serialized_start=6396
151
+ _globals['_ROTATIONRADIAN']._serialized_end=6445
152
+ _globals['_VELOCITY']._serialized_start=6447
153
+ _globals['_VELOCITY']._serialized_end=6490
154
+ _globals['_POSTURE']._serialized_start=6493
155
+ _globals['_POSTURE']._serialized_end=6725
156
+ _globals['_POSTURE_POSTUREVALUE']._serialized_start=6569
157
+ _globals['_POSTURE_POSTUREVALUE']._serialized_end=6725
158
+ _globals['_EMULATORCONTROLLER']._serialized_start=6728
159
+ _globals['_EMULATORCONTROLLER']._serialized_end=9810
149
160
  # @@protoc_insertion_point(module_scope)