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,10 +1,30 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
+ import warnings
4
5
 
5
6
  from android_env.proto import emulator_controller_pb2 as android__env_dot_proto_dot_emulator__controller__pb2
6
7
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
8
 
9
+ GRPC_GENERATED_VERSION = '1.71.0'
10
+ GRPC_VERSION = grpc.__version__
11
+ _version_not_supported = False
12
+
13
+ try:
14
+ from grpc._utilities import first_version_is_lower
15
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
16
+ except ImportError:
17
+ _version_not_supported = True
18
+
19
+ if _version_not_supported:
20
+ raise RuntimeError(
21
+ f'The grpc package installed is at version {GRPC_VERSION},'
22
+ + f' but the generated code in android_env/proto/emulator_controller_pb2_grpc.py depends on'
23
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
24
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
25
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
26
+ )
27
+
8
28
 
9
29
  class EmulatorControllerStub(object):
10
30
  """An EmulatorController service lets you control the emulator.
@@ -32,172 +52,172 @@ class EmulatorControllerStub(object):
32
52
  '/android.emulation.control.EmulatorController/streamSensor',
33
53
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
34
54
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
35
- )
55
+ _registered_method=True)
36
56
  self.getSensor = channel.unary_unary(
37
57
  '/android.emulation.control.EmulatorController/getSensor',
38
58
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
39
59
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
40
- )
60
+ _registered_method=True)
41
61
  self.setSensor = channel.unary_unary(
42
62
  '/android.emulation.control.EmulatorController/setSensor',
43
63
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
44
64
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
45
- )
65
+ _registered_method=True)
46
66
  self.setPhysicalModel = channel.unary_unary(
47
67
  '/android.emulation.control.EmulatorController/setPhysicalModel',
48
68
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
49
69
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
50
- )
70
+ _registered_method=True)
51
71
  self.getPhysicalModel = channel.unary_unary(
52
72
  '/android.emulation.control.EmulatorController/getPhysicalModel',
53
73
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
54
74
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
55
- )
75
+ _registered_method=True)
56
76
  self.streamPhysicalModel = channel.unary_stream(
57
77
  '/android.emulation.control.EmulatorController/streamPhysicalModel',
58
78
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
59
79
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
60
- )
80
+ _registered_method=True)
61
81
  self.setClipboard = channel.unary_unary(
62
82
  '/android.emulation.control.EmulatorController/setClipboard',
63
83
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.ClipData.SerializeToString,
64
84
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
65
- )
85
+ _registered_method=True)
66
86
  self.getClipboard = channel.unary_unary(
67
87
  '/android.emulation.control.EmulatorController/getClipboard',
68
88
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
69
89
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
70
- )
90
+ _registered_method=True)
71
91
  self.streamClipboard = channel.unary_stream(
72
92
  '/android.emulation.control.EmulatorController/streamClipboard',
73
93
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
74
94
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
75
- )
95
+ _registered_method=True)
76
96
  self.setBattery = channel.unary_unary(
77
97
  '/android.emulation.control.EmulatorController/setBattery',
78
98
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.SerializeToString,
79
99
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
80
- )
100
+ _registered_method=True)
81
101
  self.getBattery = channel.unary_unary(
82
102
  '/android.emulation.control.EmulatorController/getBattery',
83
103
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
84
104
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.FromString,
85
- )
105
+ _registered_method=True)
86
106
  self.setGps = channel.unary_unary(
87
107
  '/android.emulation.control.EmulatorController/setGps',
88
108
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.GpsState.SerializeToString,
89
109
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
90
- )
110
+ _registered_method=True)
91
111
  self.getGps = channel.unary_unary(
92
112
  '/android.emulation.control.EmulatorController/getGps',
93
113
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
94
114
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.GpsState.FromString,
95
- )
115
+ _registered_method=True)
96
116
  self.sendFingerprint = channel.unary_unary(
97
117
  '/android.emulation.control.EmulatorController/sendFingerprint',
98
118
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.Fingerprint.SerializeToString,
99
119
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
100
- )
120
+ _registered_method=True)
101
121
  self.sendKey = channel.unary_unary(
102
122
  '/android.emulation.control.EmulatorController/sendKey',
103
123
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.KeyboardEvent.SerializeToString,
104
124
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
105
- )
125
+ _registered_method=True)
106
126
  self.sendTouch = channel.unary_unary(
107
127
  '/android.emulation.control.EmulatorController/sendTouch',
108
128
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.TouchEvent.SerializeToString,
109
129
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
110
- )
130
+ _registered_method=True)
111
131
  self.sendMouse = channel.unary_unary(
112
132
  '/android.emulation.control.EmulatorController/sendMouse',
113
133
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.MouseEvent.SerializeToString,
114
134
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
115
- )
135
+ _registered_method=True)
116
136
  self.sendPhone = channel.unary_unary(
117
137
  '/android.emulation.control.EmulatorController/sendPhone',
118
138
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.PhoneCall.SerializeToString,
119
139
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
120
- )
140
+ _registered_method=True)
121
141
  self.sendSms = channel.unary_unary(
122
142
  '/android.emulation.control.EmulatorController/sendSms',
123
143
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.SmsMessage.SerializeToString,
124
144
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
125
- )
145
+ _registered_method=True)
126
146
  self.getStatus = channel.unary_unary(
127
147
  '/android.emulation.control.EmulatorController/getStatus',
128
148
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
129
149
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.EmulatorStatus.FromString,
130
- )
150
+ _registered_method=True)
131
151
  self.getScreenshot = channel.unary_unary(
132
152
  '/android.emulation.control.EmulatorController/getScreenshot',
133
153
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
134
154
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
135
- )
155
+ _registered_method=True)
136
156
  self.streamScreenshot = channel.unary_stream(
137
157
  '/android.emulation.control.EmulatorController/streamScreenshot',
138
158
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
139
159
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
140
- )
160
+ _registered_method=True)
141
161
  self.streamAudio = channel.unary_stream(
142
162
  '/android.emulation.control.EmulatorController/streamAudio',
143
163
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.AudioFormat.SerializeToString,
144
164
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.FromString,
145
- )
165
+ _registered_method=True)
146
166
  self.injectAudio = channel.stream_unary(
147
167
  '/android.emulation.control.EmulatorController/injectAudio',
148
168
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.SerializeToString,
149
169
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
150
- )
170
+ _registered_method=True)
151
171
  self.getLogcat = channel.unary_unary(
152
172
  '/android.emulation.control.EmulatorController/getLogcat',
153
173
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
154
174
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
155
- )
175
+ _registered_method=True)
156
176
  self.streamLogcat = channel.unary_stream(
157
177
  '/android.emulation.control.EmulatorController/streamLogcat',
158
178
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
159
179
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
160
- )
180
+ _registered_method=True)
161
181
  self.setVmState = channel.unary_unary(
162
182
  '/android.emulation.control.EmulatorController/setVmState',
163
183
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.SerializeToString,
164
184
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
165
- )
185
+ _registered_method=True)
166
186
  self.getVmState = channel.unary_unary(
167
187
  '/android.emulation.control.EmulatorController/getVmState',
168
188
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
169
189
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.FromString,
170
- )
190
+ _registered_method=True)
171
191
  self.setDisplayConfigurations = channel.unary_unary(
172
192
  '/android.emulation.control.EmulatorController/setDisplayConfigurations',
173
193
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.SerializeToString,
174
194
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
175
- )
195
+ _registered_method=True)
176
196
  self.getDisplayConfigurations = channel.unary_unary(
177
197
  '/android.emulation.control.EmulatorController/getDisplayConfigurations',
178
198
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
179
199
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
180
- )
200
+ _registered_method=True)
181
201
  self.streamNotification = channel.unary_stream(
182
202
  '/android.emulation.control.EmulatorController/streamNotification',
183
203
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
184
204
  response_deserializer=android__env_dot_proto_dot_emulator__controller__pb2.Notification.FromString,
185
- )
205
+ _registered_method=True)
186
206
  self.rotateVirtualSceneCamera = channel.unary_unary(
187
207
  '/android.emulation.control.EmulatorController/rotateVirtualSceneCamera',
188
208
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.RotationRadian.SerializeToString,
189
209
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
190
- )
210
+ _registered_method=True)
191
211
  self.setVirtualSceneCameraVelocity = channel.unary_unary(
192
212
  '/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity',
193
213
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.Velocity.SerializeToString,
194
214
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
195
- )
215
+ _registered_method=True)
196
216
  self.setPosture = channel.unary_unary(
197
217
  '/android.emulation.control.EmulatorController/setPosture',
198
218
  request_serializer=android__env_dot_proto_dot_emulator__controller__pb2.Posture.SerializeToString,
199
219
  response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
200
- )
220
+ _registered_method=True)
201
221
 
202
222
 
203
223
  class EmulatorControllerServicer(object):
@@ -433,7 +453,8 @@ class EmulatorControllerServicer(object):
433
453
 
434
454
  - INVALID_ARGUMENT (code 3) The sampling rate was too high
435
455
  - INVALID_ARGUMENT (code 3) The audio packet was too large to handle.
436
- - FAILED_PRECONDITION (code 9) If there was a microphone registered already.
456
+ - FAILED_PRECONDITION (code 9) If there was a microphone registered
457
+ already.
437
458
  """
438
459
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
439
460
  context.set_details('Method not implemented!')
@@ -479,8 +500,8 @@ class EmulatorControllerServicer(object):
479
500
  After this call the given display configurations will be activated. You
480
501
  can only update secondary displays. Displays with id 0 will be ignored.
481
502
 
482
- This call can result in the removal or addition of secondary displays, the final
483
- display state can be observed by the returned configuration.
503
+ This call can result in the removal or addition of secondary displays, the
504
+ final display state can be observed by the returned configuration.
484
505
 
485
506
  The following gRPC error codes can be returned:
486
507
  - FAILED_PRECONDITION (code 9) if the AVD does not support a configurable
@@ -509,10 +530,11 @@ class EmulatorControllerServicer(object):
509
530
 
510
531
  - Virtual scene camera status change.
511
532
  - Display configuration changes from extended ui. This will only be fired
512
- if the user makes modifications the extended displays through the extended
513
- control tab.
533
+ if the user makes modifications the extended displays through the
534
+ extended control tab.
514
535
 
515
- Note that this method will send the initial virtual scene state immediately.
536
+ Note that this method will send the initial virtual scene state
537
+ immediately.
516
538
  """
517
539
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
518
540
  context.set_details('Method not implemented!')
@@ -716,6 +738,7 @@ def add_EmulatorControllerServicer_to_server(servicer, server):
716
738
  generic_handler = grpc.method_handlers_generic_handler(
717
739
  'android.emulation.control.EmulatorController', rpc_method_handlers)
718
740
  server.add_generic_rpc_handlers((generic_handler,))
741
+ server.add_registered_method_handlers('android.emulation.control.EmulatorController', rpc_method_handlers)
719
742
 
720
743
 
721
744
  # This class is part of an EXPERIMENTAL API.
@@ -746,11 +769,21 @@ class EmulatorController(object):
746
769
  wait_for_ready=None,
747
770
  timeout=None,
748
771
  metadata=None):
749
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamSensor',
772
+ return grpc.experimental.unary_stream(
773
+ request,
774
+ target,
775
+ '/android.emulation.control.EmulatorController/streamSensor',
750
776
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
751
777
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
752
- options, channel_credentials,
753
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
778
+ options,
779
+ channel_credentials,
780
+ insecure,
781
+ call_credentials,
782
+ compression,
783
+ wait_for_ready,
784
+ timeout,
785
+ metadata,
786
+ _registered_method=True)
754
787
 
755
788
  @staticmethod
756
789
  def getSensor(request,
@@ -763,11 +796,21 @@ class EmulatorController(object):
763
796
  wait_for_ready=None,
764
797
  timeout=None,
765
798
  metadata=None):
766
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getSensor',
799
+ return grpc.experimental.unary_unary(
800
+ request,
801
+ target,
802
+ '/android.emulation.control.EmulatorController/getSensor',
767
803
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
768
804
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
769
- options, channel_credentials,
770
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
805
+ options,
806
+ channel_credentials,
807
+ insecure,
808
+ call_credentials,
809
+ compression,
810
+ wait_for_ready,
811
+ timeout,
812
+ metadata,
813
+ _registered_method=True)
771
814
 
772
815
  @staticmethod
773
816
  def setSensor(request,
@@ -780,11 +823,21 @@ class EmulatorController(object):
780
823
  wait_for_ready=None,
781
824
  timeout=None,
782
825
  metadata=None):
783
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setSensor',
826
+ return grpc.experimental.unary_unary(
827
+ request,
828
+ target,
829
+ '/android.emulation.control.EmulatorController/setSensor',
784
830
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
785
831
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
786
- options, channel_credentials,
787
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
832
+ options,
833
+ channel_credentials,
834
+ insecure,
835
+ call_credentials,
836
+ compression,
837
+ wait_for_ready,
838
+ timeout,
839
+ metadata,
840
+ _registered_method=True)
788
841
 
789
842
  @staticmethod
790
843
  def setPhysicalModel(request,
@@ -797,11 +850,21 @@ class EmulatorController(object):
797
850
  wait_for_ready=None,
798
851
  timeout=None,
799
852
  metadata=None):
800
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setPhysicalModel',
853
+ return grpc.experimental.unary_unary(
854
+ request,
855
+ target,
856
+ '/android.emulation.control.EmulatorController/setPhysicalModel',
801
857
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
802
858
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
803
- options, channel_credentials,
804
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
859
+ options,
860
+ channel_credentials,
861
+ insecure,
862
+ call_credentials,
863
+ compression,
864
+ wait_for_ready,
865
+ timeout,
866
+ metadata,
867
+ _registered_method=True)
805
868
 
806
869
  @staticmethod
807
870
  def getPhysicalModel(request,
@@ -814,11 +877,21 @@ class EmulatorController(object):
814
877
  wait_for_ready=None,
815
878
  timeout=None,
816
879
  metadata=None):
817
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getPhysicalModel',
880
+ return grpc.experimental.unary_unary(
881
+ request,
882
+ target,
883
+ '/android.emulation.control.EmulatorController/getPhysicalModel',
818
884
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
819
885
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
820
- options, channel_credentials,
821
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
886
+ options,
887
+ channel_credentials,
888
+ insecure,
889
+ call_credentials,
890
+ compression,
891
+ wait_for_ready,
892
+ timeout,
893
+ metadata,
894
+ _registered_method=True)
822
895
 
823
896
  @staticmethod
824
897
  def streamPhysicalModel(request,
@@ -831,11 +904,21 @@ class EmulatorController(object):
831
904
  wait_for_ready=None,
832
905
  timeout=None,
833
906
  metadata=None):
834
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamPhysicalModel',
907
+ return grpc.experimental.unary_stream(
908
+ request,
909
+ target,
910
+ '/android.emulation.control.EmulatorController/streamPhysicalModel',
835
911
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
836
912
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
837
- options, channel_credentials,
838
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
913
+ options,
914
+ channel_credentials,
915
+ insecure,
916
+ call_credentials,
917
+ compression,
918
+ wait_for_ready,
919
+ timeout,
920
+ metadata,
921
+ _registered_method=True)
839
922
 
840
923
  @staticmethod
841
924
  def setClipboard(request,
@@ -848,11 +931,21 @@ class EmulatorController(object):
848
931
  wait_for_ready=None,
849
932
  timeout=None,
850
933
  metadata=None):
851
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setClipboard',
934
+ return grpc.experimental.unary_unary(
935
+ request,
936
+ target,
937
+ '/android.emulation.control.EmulatorController/setClipboard',
852
938
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.SerializeToString,
853
939
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
854
- options, channel_credentials,
855
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
940
+ options,
941
+ channel_credentials,
942
+ insecure,
943
+ call_credentials,
944
+ compression,
945
+ wait_for_ready,
946
+ timeout,
947
+ metadata,
948
+ _registered_method=True)
856
949
 
857
950
  @staticmethod
858
951
  def getClipboard(request,
@@ -865,11 +958,21 @@ class EmulatorController(object):
865
958
  wait_for_ready=None,
866
959
  timeout=None,
867
960
  metadata=None):
868
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getClipboard',
961
+ return grpc.experimental.unary_unary(
962
+ request,
963
+ target,
964
+ '/android.emulation.control.EmulatorController/getClipboard',
869
965
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
870
966
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
871
- options, channel_credentials,
872
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
967
+ options,
968
+ channel_credentials,
969
+ insecure,
970
+ call_credentials,
971
+ compression,
972
+ wait_for_ready,
973
+ timeout,
974
+ metadata,
975
+ _registered_method=True)
873
976
 
874
977
  @staticmethod
875
978
  def streamClipboard(request,
@@ -882,11 +985,21 @@ class EmulatorController(object):
882
985
  wait_for_ready=None,
883
986
  timeout=None,
884
987
  metadata=None):
885
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamClipboard',
988
+ return grpc.experimental.unary_stream(
989
+ request,
990
+ target,
991
+ '/android.emulation.control.EmulatorController/streamClipboard',
886
992
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
887
993
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
888
- options, channel_credentials,
889
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
994
+ options,
995
+ channel_credentials,
996
+ insecure,
997
+ call_credentials,
998
+ compression,
999
+ wait_for_ready,
1000
+ timeout,
1001
+ metadata,
1002
+ _registered_method=True)
890
1003
 
891
1004
  @staticmethod
892
1005
  def setBattery(request,
@@ -899,11 +1012,21 @@ class EmulatorController(object):
899
1012
  wait_for_ready=None,
900
1013
  timeout=None,
901
1014
  metadata=None):
902
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setBattery',
1015
+ return grpc.experimental.unary_unary(
1016
+ request,
1017
+ target,
1018
+ '/android.emulation.control.EmulatorController/setBattery',
903
1019
  android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.SerializeToString,
904
1020
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
905
- options, channel_credentials,
906
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1021
+ options,
1022
+ channel_credentials,
1023
+ insecure,
1024
+ call_credentials,
1025
+ compression,
1026
+ wait_for_ready,
1027
+ timeout,
1028
+ metadata,
1029
+ _registered_method=True)
907
1030
 
908
1031
  @staticmethod
909
1032
  def getBattery(request,
@@ -916,11 +1039,21 @@ class EmulatorController(object):
916
1039
  wait_for_ready=None,
917
1040
  timeout=None,
918
1041
  metadata=None):
919
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getBattery',
1042
+ return grpc.experimental.unary_unary(
1043
+ request,
1044
+ target,
1045
+ '/android.emulation.control.EmulatorController/getBattery',
920
1046
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
921
1047
  android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.FromString,
922
- options, channel_credentials,
923
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1048
+ options,
1049
+ channel_credentials,
1050
+ insecure,
1051
+ call_credentials,
1052
+ compression,
1053
+ wait_for_ready,
1054
+ timeout,
1055
+ metadata,
1056
+ _registered_method=True)
924
1057
 
925
1058
  @staticmethod
926
1059
  def setGps(request,
@@ -933,11 +1066,21 @@ class EmulatorController(object):
933
1066
  wait_for_ready=None,
934
1067
  timeout=None,
935
1068
  metadata=None):
936
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setGps',
1069
+ return grpc.experimental.unary_unary(
1070
+ request,
1071
+ target,
1072
+ '/android.emulation.control.EmulatorController/setGps',
937
1073
  android__env_dot_proto_dot_emulator__controller__pb2.GpsState.SerializeToString,
938
1074
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
939
- options, channel_credentials,
940
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1075
+ options,
1076
+ channel_credentials,
1077
+ insecure,
1078
+ call_credentials,
1079
+ compression,
1080
+ wait_for_ready,
1081
+ timeout,
1082
+ metadata,
1083
+ _registered_method=True)
941
1084
 
942
1085
  @staticmethod
943
1086
  def getGps(request,
@@ -950,11 +1093,21 @@ class EmulatorController(object):
950
1093
  wait_for_ready=None,
951
1094
  timeout=None,
952
1095
  metadata=None):
953
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getGps',
1096
+ return grpc.experimental.unary_unary(
1097
+ request,
1098
+ target,
1099
+ '/android.emulation.control.EmulatorController/getGps',
954
1100
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
955
1101
  android__env_dot_proto_dot_emulator__controller__pb2.GpsState.FromString,
956
- options, channel_credentials,
957
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1102
+ options,
1103
+ channel_credentials,
1104
+ insecure,
1105
+ call_credentials,
1106
+ compression,
1107
+ wait_for_ready,
1108
+ timeout,
1109
+ metadata,
1110
+ _registered_method=True)
958
1111
 
959
1112
  @staticmethod
960
1113
  def sendFingerprint(request,
@@ -967,11 +1120,21 @@ class EmulatorController(object):
967
1120
  wait_for_ready=None,
968
1121
  timeout=None,
969
1122
  metadata=None):
970
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendFingerprint',
1123
+ return grpc.experimental.unary_unary(
1124
+ request,
1125
+ target,
1126
+ '/android.emulation.control.EmulatorController/sendFingerprint',
971
1127
  android__env_dot_proto_dot_emulator__controller__pb2.Fingerprint.SerializeToString,
972
1128
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
973
- options, channel_credentials,
974
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1129
+ options,
1130
+ channel_credentials,
1131
+ insecure,
1132
+ call_credentials,
1133
+ compression,
1134
+ wait_for_ready,
1135
+ timeout,
1136
+ metadata,
1137
+ _registered_method=True)
975
1138
 
976
1139
  @staticmethod
977
1140
  def sendKey(request,
@@ -984,11 +1147,21 @@ class EmulatorController(object):
984
1147
  wait_for_ready=None,
985
1148
  timeout=None,
986
1149
  metadata=None):
987
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendKey',
1150
+ return grpc.experimental.unary_unary(
1151
+ request,
1152
+ target,
1153
+ '/android.emulation.control.EmulatorController/sendKey',
988
1154
  android__env_dot_proto_dot_emulator__controller__pb2.KeyboardEvent.SerializeToString,
989
1155
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
990
- options, channel_credentials,
991
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1156
+ options,
1157
+ channel_credentials,
1158
+ insecure,
1159
+ call_credentials,
1160
+ compression,
1161
+ wait_for_ready,
1162
+ timeout,
1163
+ metadata,
1164
+ _registered_method=True)
992
1165
 
993
1166
  @staticmethod
994
1167
  def sendTouch(request,
@@ -1001,11 +1174,21 @@ class EmulatorController(object):
1001
1174
  wait_for_ready=None,
1002
1175
  timeout=None,
1003
1176
  metadata=None):
1004
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendTouch',
1177
+ return grpc.experimental.unary_unary(
1178
+ request,
1179
+ target,
1180
+ '/android.emulation.control.EmulatorController/sendTouch',
1005
1181
  android__env_dot_proto_dot_emulator__controller__pb2.TouchEvent.SerializeToString,
1006
1182
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1007
- options, channel_credentials,
1008
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1183
+ options,
1184
+ channel_credentials,
1185
+ insecure,
1186
+ call_credentials,
1187
+ compression,
1188
+ wait_for_ready,
1189
+ timeout,
1190
+ metadata,
1191
+ _registered_method=True)
1009
1192
 
1010
1193
  @staticmethod
1011
1194
  def sendMouse(request,
@@ -1018,11 +1201,21 @@ class EmulatorController(object):
1018
1201
  wait_for_ready=None,
1019
1202
  timeout=None,
1020
1203
  metadata=None):
1021
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendMouse',
1204
+ return grpc.experimental.unary_unary(
1205
+ request,
1206
+ target,
1207
+ '/android.emulation.control.EmulatorController/sendMouse',
1022
1208
  android__env_dot_proto_dot_emulator__controller__pb2.MouseEvent.SerializeToString,
1023
1209
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1024
- options, channel_credentials,
1025
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1210
+ options,
1211
+ channel_credentials,
1212
+ insecure,
1213
+ call_credentials,
1214
+ compression,
1215
+ wait_for_ready,
1216
+ timeout,
1217
+ metadata,
1218
+ _registered_method=True)
1026
1219
 
1027
1220
  @staticmethod
1028
1221
  def sendPhone(request,
@@ -1035,11 +1228,21 @@ class EmulatorController(object):
1035
1228
  wait_for_ready=None,
1036
1229
  timeout=None,
1037
1230
  metadata=None):
1038
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendPhone',
1231
+ return grpc.experimental.unary_unary(
1232
+ request,
1233
+ target,
1234
+ '/android.emulation.control.EmulatorController/sendPhone',
1039
1235
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneCall.SerializeToString,
1040
1236
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
1041
- options, channel_credentials,
1042
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1237
+ options,
1238
+ channel_credentials,
1239
+ insecure,
1240
+ call_credentials,
1241
+ compression,
1242
+ wait_for_ready,
1243
+ timeout,
1244
+ metadata,
1245
+ _registered_method=True)
1043
1246
 
1044
1247
  @staticmethod
1045
1248
  def sendSms(request,
@@ -1052,11 +1255,21 @@ class EmulatorController(object):
1052
1255
  wait_for_ready=None,
1053
1256
  timeout=None,
1054
1257
  metadata=None):
1055
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/sendSms',
1258
+ return grpc.experimental.unary_unary(
1259
+ request,
1260
+ target,
1261
+ '/android.emulation.control.EmulatorController/sendSms',
1056
1262
  android__env_dot_proto_dot_emulator__controller__pb2.SmsMessage.SerializeToString,
1057
1263
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
1058
- options, channel_credentials,
1059
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1264
+ options,
1265
+ channel_credentials,
1266
+ insecure,
1267
+ call_credentials,
1268
+ compression,
1269
+ wait_for_ready,
1270
+ timeout,
1271
+ metadata,
1272
+ _registered_method=True)
1060
1273
 
1061
1274
  @staticmethod
1062
1275
  def getStatus(request,
@@ -1069,11 +1282,21 @@ class EmulatorController(object):
1069
1282
  wait_for_ready=None,
1070
1283
  timeout=None,
1071
1284
  metadata=None):
1072
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getStatus',
1285
+ return grpc.experimental.unary_unary(
1286
+ request,
1287
+ target,
1288
+ '/android.emulation.control.EmulatorController/getStatus',
1073
1289
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1074
1290
  android__env_dot_proto_dot_emulator__controller__pb2.EmulatorStatus.FromString,
1075
- options, channel_credentials,
1076
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1291
+ options,
1292
+ channel_credentials,
1293
+ insecure,
1294
+ call_credentials,
1295
+ compression,
1296
+ wait_for_ready,
1297
+ timeout,
1298
+ metadata,
1299
+ _registered_method=True)
1077
1300
 
1078
1301
  @staticmethod
1079
1302
  def getScreenshot(request,
@@ -1086,11 +1309,21 @@ class EmulatorController(object):
1086
1309
  wait_for_ready=None,
1087
1310
  timeout=None,
1088
1311
  metadata=None):
1089
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getScreenshot',
1312
+ return grpc.experimental.unary_unary(
1313
+ request,
1314
+ target,
1315
+ '/android.emulation.control.EmulatorController/getScreenshot',
1090
1316
  android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
1091
1317
  android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
1092
- options, channel_credentials,
1093
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1318
+ options,
1319
+ channel_credentials,
1320
+ insecure,
1321
+ call_credentials,
1322
+ compression,
1323
+ wait_for_ready,
1324
+ timeout,
1325
+ metadata,
1326
+ _registered_method=True)
1094
1327
 
1095
1328
  @staticmethod
1096
1329
  def streamScreenshot(request,
@@ -1103,11 +1336,21 @@ class EmulatorController(object):
1103
1336
  wait_for_ready=None,
1104
1337
  timeout=None,
1105
1338
  metadata=None):
1106
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamScreenshot',
1339
+ return grpc.experimental.unary_stream(
1340
+ request,
1341
+ target,
1342
+ '/android.emulation.control.EmulatorController/streamScreenshot',
1107
1343
  android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
1108
1344
  android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
1109
- options, channel_credentials,
1110
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1345
+ options,
1346
+ channel_credentials,
1347
+ insecure,
1348
+ call_credentials,
1349
+ compression,
1350
+ wait_for_ready,
1351
+ timeout,
1352
+ metadata,
1353
+ _registered_method=True)
1111
1354
 
1112
1355
  @staticmethod
1113
1356
  def streamAudio(request,
@@ -1120,11 +1363,21 @@ class EmulatorController(object):
1120
1363
  wait_for_ready=None,
1121
1364
  timeout=None,
1122
1365
  metadata=None):
1123
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamAudio',
1366
+ return grpc.experimental.unary_stream(
1367
+ request,
1368
+ target,
1369
+ '/android.emulation.control.EmulatorController/streamAudio',
1124
1370
  android__env_dot_proto_dot_emulator__controller__pb2.AudioFormat.SerializeToString,
1125
1371
  android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.FromString,
1126
- options, channel_credentials,
1127
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1372
+ options,
1373
+ channel_credentials,
1374
+ insecure,
1375
+ call_credentials,
1376
+ compression,
1377
+ wait_for_ready,
1378
+ timeout,
1379
+ metadata,
1380
+ _registered_method=True)
1128
1381
 
1129
1382
  @staticmethod
1130
1383
  def injectAudio(request_iterator,
@@ -1137,11 +1390,21 @@ class EmulatorController(object):
1137
1390
  wait_for_ready=None,
1138
1391
  timeout=None,
1139
1392
  metadata=None):
1140
- return grpc.experimental.stream_unary(request_iterator, target, '/android.emulation.control.EmulatorController/injectAudio',
1393
+ return grpc.experimental.stream_unary(
1394
+ request_iterator,
1395
+ target,
1396
+ '/android.emulation.control.EmulatorController/injectAudio',
1141
1397
  android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.SerializeToString,
1142
1398
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1143
- options, channel_credentials,
1144
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1399
+ options,
1400
+ channel_credentials,
1401
+ insecure,
1402
+ call_credentials,
1403
+ compression,
1404
+ wait_for_ready,
1405
+ timeout,
1406
+ metadata,
1407
+ _registered_method=True)
1145
1408
 
1146
1409
  @staticmethod
1147
1410
  def getLogcat(request,
@@ -1154,11 +1417,21 @@ class EmulatorController(object):
1154
1417
  wait_for_ready=None,
1155
1418
  timeout=None,
1156
1419
  metadata=None):
1157
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getLogcat',
1420
+ return grpc.experimental.unary_unary(
1421
+ request,
1422
+ target,
1423
+ '/android.emulation.control.EmulatorController/getLogcat',
1158
1424
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
1159
1425
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
1160
- options, channel_credentials,
1161
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1426
+ options,
1427
+ channel_credentials,
1428
+ insecure,
1429
+ call_credentials,
1430
+ compression,
1431
+ wait_for_ready,
1432
+ timeout,
1433
+ metadata,
1434
+ _registered_method=True)
1162
1435
 
1163
1436
  @staticmethod
1164
1437
  def streamLogcat(request,
@@ -1171,11 +1444,21 @@ class EmulatorController(object):
1171
1444
  wait_for_ready=None,
1172
1445
  timeout=None,
1173
1446
  metadata=None):
1174
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamLogcat',
1447
+ return grpc.experimental.unary_stream(
1448
+ request,
1449
+ target,
1450
+ '/android.emulation.control.EmulatorController/streamLogcat',
1175
1451
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
1176
1452
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
1177
- options, channel_credentials,
1178
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1453
+ options,
1454
+ channel_credentials,
1455
+ insecure,
1456
+ call_credentials,
1457
+ compression,
1458
+ wait_for_ready,
1459
+ timeout,
1460
+ metadata,
1461
+ _registered_method=True)
1179
1462
 
1180
1463
  @staticmethod
1181
1464
  def setVmState(request,
@@ -1188,11 +1471,21 @@ class EmulatorController(object):
1188
1471
  wait_for_ready=None,
1189
1472
  timeout=None,
1190
1473
  metadata=None):
1191
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setVmState',
1474
+ return grpc.experimental.unary_unary(
1475
+ request,
1476
+ target,
1477
+ '/android.emulation.control.EmulatorController/setVmState',
1192
1478
  android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.SerializeToString,
1193
1479
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1194
- options, channel_credentials,
1195
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1480
+ options,
1481
+ channel_credentials,
1482
+ insecure,
1483
+ call_credentials,
1484
+ compression,
1485
+ wait_for_ready,
1486
+ timeout,
1487
+ metadata,
1488
+ _registered_method=True)
1196
1489
 
1197
1490
  @staticmethod
1198
1491
  def getVmState(request,
@@ -1205,11 +1498,21 @@ class EmulatorController(object):
1205
1498
  wait_for_ready=None,
1206
1499
  timeout=None,
1207
1500
  metadata=None):
1208
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getVmState',
1501
+ return grpc.experimental.unary_unary(
1502
+ request,
1503
+ target,
1504
+ '/android.emulation.control.EmulatorController/getVmState',
1209
1505
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1210
1506
  android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.FromString,
1211
- options, channel_credentials,
1212
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1507
+ options,
1508
+ channel_credentials,
1509
+ insecure,
1510
+ call_credentials,
1511
+ compression,
1512
+ wait_for_ready,
1513
+ timeout,
1514
+ metadata,
1515
+ _registered_method=True)
1213
1516
 
1214
1517
  @staticmethod
1215
1518
  def setDisplayConfigurations(request,
@@ -1222,11 +1525,21 @@ class EmulatorController(object):
1222
1525
  wait_for_ready=None,
1223
1526
  timeout=None,
1224
1527
  metadata=None):
1225
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setDisplayConfigurations',
1528
+ return grpc.experimental.unary_unary(
1529
+ request,
1530
+ target,
1531
+ '/android.emulation.control.EmulatorController/setDisplayConfigurations',
1226
1532
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.SerializeToString,
1227
1533
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
1228
- options, channel_credentials,
1229
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1534
+ options,
1535
+ channel_credentials,
1536
+ insecure,
1537
+ call_credentials,
1538
+ compression,
1539
+ wait_for_ready,
1540
+ timeout,
1541
+ metadata,
1542
+ _registered_method=True)
1230
1543
 
1231
1544
  @staticmethod
1232
1545
  def getDisplayConfigurations(request,
@@ -1239,11 +1552,21 @@ class EmulatorController(object):
1239
1552
  wait_for_ready=None,
1240
1553
  timeout=None,
1241
1554
  metadata=None):
1242
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/getDisplayConfigurations',
1555
+ return grpc.experimental.unary_unary(
1556
+ request,
1557
+ target,
1558
+ '/android.emulation.control.EmulatorController/getDisplayConfigurations',
1243
1559
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1244
1560
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
1245
- options, channel_credentials,
1246
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1561
+ options,
1562
+ channel_credentials,
1563
+ insecure,
1564
+ call_credentials,
1565
+ compression,
1566
+ wait_for_ready,
1567
+ timeout,
1568
+ metadata,
1569
+ _registered_method=True)
1247
1570
 
1248
1571
  @staticmethod
1249
1572
  def streamNotification(request,
@@ -1256,11 +1579,21 @@ class EmulatorController(object):
1256
1579
  wait_for_ready=None,
1257
1580
  timeout=None,
1258
1581
  metadata=None):
1259
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.EmulatorController/streamNotification',
1582
+ return grpc.experimental.unary_stream(
1583
+ request,
1584
+ target,
1585
+ '/android.emulation.control.EmulatorController/streamNotification',
1260
1586
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1261
1587
  android__env_dot_proto_dot_emulator__controller__pb2.Notification.FromString,
1262
- options, channel_credentials,
1263
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1588
+ options,
1589
+ channel_credentials,
1590
+ insecure,
1591
+ call_credentials,
1592
+ compression,
1593
+ wait_for_ready,
1594
+ timeout,
1595
+ metadata,
1596
+ _registered_method=True)
1264
1597
 
1265
1598
  @staticmethod
1266
1599
  def rotateVirtualSceneCamera(request,
@@ -1273,11 +1606,21 @@ class EmulatorController(object):
1273
1606
  wait_for_ready=None,
1274
1607
  timeout=None,
1275
1608
  metadata=None):
1276
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/rotateVirtualSceneCamera',
1609
+ return grpc.experimental.unary_unary(
1610
+ request,
1611
+ target,
1612
+ '/android.emulation.control.EmulatorController/rotateVirtualSceneCamera',
1277
1613
  android__env_dot_proto_dot_emulator__controller__pb2.RotationRadian.SerializeToString,
1278
1614
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1279
- options, channel_credentials,
1280
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1615
+ options,
1616
+ channel_credentials,
1617
+ insecure,
1618
+ call_credentials,
1619
+ compression,
1620
+ wait_for_ready,
1621
+ timeout,
1622
+ metadata,
1623
+ _registered_method=True)
1281
1624
 
1282
1625
  @staticmethod
1283
1626
  def setVirtualSceneCameraVelocity(request,
@@ -1290,11 +1633,21 @@ class EmulatorController(object):
1290
1633
  wait_for_ready=None,
1291
1634
  timeout=None,
1292
1635
  metadata=None):
1293
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity',
1636
+ return grpc.experimental.unary_unary(
1637
+ request,
1638
+ target,
1639
+ '/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity',
1294
1640
  android__env_dot_proto_dot_emulator__controller__pb2.Velocity.SerializeToString,
1295
1641
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1296
- options, channel_credentials,
1297
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1642
+ options,
1643
+ channel_credentials,
1644
+ insecure,
1645
+ call_credentials,
1646
+ compression,
1647
+ wait_for_ready,
1648
+ timeout,
1649
+ metadata,
1650
+ _registered_method=True)
1298
1651
 
1299
1652
  @staticmethod
1300
1653
  def setPosture(request,
@@ -1307,8 +1660,18 @@ class EmulatorController(object):
1307
1660
  wait_for_ready=None,
1308
1661
  timeout=None,
1309
1662
  metadata=None):
1310
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.EmulatorController/setPosture',
1663
+ return grpc.experimental.unary_unary(
1664
+ request,
1665
+ target,
1666
+ '/android.emulation.control.EmulatorController/setPosture',
1311
1667
  android__env_dot_proto_dot_emulator__controller__pb2.Posture.SerializeToString,
1312
1668
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1313
- options, channel_credentials,
1314
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
1669
+ options,
1670
+ channel_credentials,
1671
+ insecure,
1672
+ call_credentials,
1673
+ compression,
1674
+ wait_for_ready,
1675
+ timeout,
1676
+ metadata,
1677
+ _registered_method=True)