android-env 1.2.2__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 (142) 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 +233 -185
  14. android_env/components/adb_call_parser_test.py +165 -163
  15. android_env/components/adb_controller.py +19 -28
  16. android_env/components/adb_controller_test.py +100 -9
  17. android_env/components/adb_log_stream.py +3 -3
  18. android_env/components/adb_log_stream_test.py +1 -1
  19. android_env/components/app_screen_checker.py +15 -13
  20. android_env/components/app_screen_checker_test.py +1 -1
  21. android_env/components/config_classes.py +203 -0
  22. android_env/components/coordinator.py +53 -338
  23. android_env/components/coordinator_test.py +26 -283
  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 +2 -5
  29. android_env/components/errors_test.py +1 -1
  30. android_env/components/log_stream.py +2 -2
  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 +2 -3
  34. android_env/components/{utils.py → pixel_fns.py} +19 -20
  35. android_env/components/{utils_test.py → pixel_fns_test.py} +20 -15
  36. android_env/components/setup_step_interpreter.py +45 -37
  37. android_env/components/setup_step_interpreter_test.py +1 -1
  38. android_env/components/simulators/__init__.py +1 -1
  39. android_env/components/simulators/base_simulator.py +79 -23
  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 +62 -81
  43. android_env/components/simulators/emulator/emulator_launcher_test.py +120 -43
  44. android_env/components/simulators/emulator/emulator_simulator.py +111 -98
  45. android_env/components/simulators/emulator/emulator_simulator_test.py +174 -138
  46. android_env/components/simulators/fake/__init__.py +1 -1
  47. android_env/components/simulators/fake/fake_simulator.py +9 -17
  48. android_env/components/simulators/fake/fake_simulator_test.py +23 -8
  49. android_env/components/specs.py +1 -1
  50. android_env/components/specs_test.py +1 -1
  51. android_env/components/task_manager.py +26 -31
  52. android_env/components/task_manager_test.py +1 -18
  53. android_env/env_interface.py +1 -17
  54. android_env/environment.py +27 -17
  55. android_env/environment_test.py +51 -25
  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 +13 -1
  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 +1 -1
  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 +497 -136
  100. android_env/proto/snapshot.proto +1 -1
  101. android_env/proto/snapshot_pb2.py +30 -19
  102. android_env/proto/snapshot_pb2.pyi +117 -0
  103. android_env/proto/snapshot_pb2_grpc.py +20 -0
  104. android_env/proto/snapshot_service.proto +1 -1
  105. android_env/proto/snapshot_service_pb2.py +36 -25
  106. android_env/proto/snapshot_service_pb2.pyi +86 -0
  107. android_env/proto/snapshot_service_pb2_grpc.py +119 -28
  108. android_env/proto/state.proto +1 -1
  109. android_env/proto/state_pb2.py +46 -35
  110. android_env/proto/state_pb2.pyi +85 -0
  111. android_env/proto/state_pb2_grpc.py +20 -0
  112. android_env/proto/task.proto +4 -1
  113. android_env/proto/task_pb2.py +41 -30
  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 +1 -5
  120. android_env/wrappers/base_wrapper_test.py +1 -7
  121. android_env/wrappers/discrete_action_wrapper.py +15 -14
  122. android_env/wrappers/discrete_action_wrapper_test.py +1 -1
  123. android_env/wrappers/flat_interface_wrapper.py +5 -5
  124. android_env/wrappers/flat_interface_wrapper_test.py +1 -1
  125. android_env/wrappers/float_pixels_wrapper.py +5 -4
  126. android_env/wrappers/float_pixels_wrapper_test.py +1 -1
  127. android_env/wrappers/gym_wrapper.py +1 -1
  128. android_env/wrappers/gym_wrapper_test.py +1 -1
  129. android_env/wrappers/image_rescale_wrapper.py +13 -10
  130. android_env/wrappers/image_rescale_wrapper_test.py +1 -1
  131. android_env/wrappers/last_action_wrapper.py +5 -4
  132. android_env/wrappers/last_action_wrapper_test.py +1 -1
  133. android_env/wrappers/rate_limit_wrapper.py +1 -1
  134. android_env/wrappers/rate_limit_wrapper_test.py +1 -1
  135. android_env/wrappers/tap_action_wrapper.py +12 -12
  136. android_env/wrappers/tap_action_wrapper_test.py +49 -14
  137. {android_env-1.2.2.dist-info → android_env-1.2.3.dist-info}/METADATA +14 -16
  138. android_env-1.2.3.dist-info/RECORD +141 -0
  139. {android_env-1.2.2.dist-info → android_env-1.2.3.dist-info}/WHEEL +1 -1
  140. android_env-1.2.2.dist-info/RECORD +0 -88
  141. {android_env-1.2.2.dist-info → android_env-1.2.3.dist-info/licenses}/LICENSE +0 -0
  142. {android_env-1.2.2.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):
@@ -718,6 +738,7 @@ def add_EmulatorControllerServicer_to_server(servicer, server):
718
738
  generic_handler = grpc.method_handlers_generic_handler(
719
739
  'android.emulation.control.EmulatorController', rpc_method_handlers)
720
740
  server.add_generic_rpc_handlers((generic_handler,))
741
+ server.add_registered_method_handlers('android.emulation.control.EmulatorController', rpc_method_handlers)
721
742
 
722
743
 
723
744
  # This class is part of an EXPERIMENTAL API.
@@ -748,11 +769,21 @@ class EmulatorController(object):
748
769
  wait_for_ready=None,
749
770
  timeout=None,
750
771
  metadata=None):
751
- 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',
752
776
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
753
777
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
754
- options, channel_credentials,
755
- 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)
756
787
 
757
788
  @staticmethod
758
789
  def getSensor(request,
@@ -765,11 +796,21 @@ class EmulatorController(object):
765
796
  wait_for_ready=None,
766
797
  timeout=None,
767
798
  metadata=None):
768
- 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',
769
803
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
770
804
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.FromString,
771
- options, channel_credentials,
772
- 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)
773
814
 
774
815
  @staticmethod
775
816
  def setSensor(request,
@@ -782,11 +823,21 @@ class EmulatorController(object):
782
823
  wait_for_ready=None,
783
824
  timeout=None,
784
825
  metadata=None):
785
- 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',
786
830
  android__env_dot_proto_dot_emulator__controller__pb2.SensorValue.SerializeToString,
787
831
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
788
- options, channel_credentials,
789
- 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)
790
841
 
791
842
  @staticmethod
792
843
  def setPhysicalModel(request,
@@ -799,11 +850,21 @@ class EmulatorController(object):
799
850
  wait_for_ready=None,
800
851
  timeout=None,
801
852
  metadata=None):
802
- 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',
803
857
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
804
858
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
805
- options, channel_credentials,
806
- 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)
807
868
 
808
869
  @staticmethod
809
870
  def getPhysicalModel(request,
@@ -816,11 +877,21 @@ class EmulatorController(object):
816
877
  wait_for_ready=None,
817
878
  timeout=None,
818
879
  metadata=None):
819
- 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',
820
884
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
821
885
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
822
- options, channel_credentials,
823
- 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)
824
895
 
825
896
  @staticmethod
826
897
  def streamPhysicalModel(request,
@@ -833,11 +904,21 @@ class EmulatorController(object):
833
904
  wait_for_ready=None,
834
905
  timeout=None,
835
906
  metadata=None):
836
- 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',
837
911
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.SerializeToString,
838
912
  android__env_dot_proto_dot_emulator__controller__pb2.PhysicalModelValue.FromString,
839
- options, channel_credentials,
840
- 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)
841
922
 
842
923
  @staticmethod
843
924
  def setClipboard(request,
@@ -850,11 +931,21 @@ class EmulatorController(object):
850
931
  wait_for_ready=None,
851
932
  timeout=None,
852
933
  metadata=None):
853
- 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',
854
938
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.SerializeToString,
855
939
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
856
- options, channel_credentials,
857
- 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)
858
949
 
859
950
  @staticmethod
860
951
  def getClipboard(request,
@@ -867,11 +958,21 @@ class EmulatorController(object):
867
958
  wait_for_ready=None,
868
959
  timeout=None,
869
960
  metadata=None):
870
- 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',
871
965
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
872
966
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
873
- options, channel_credentials,
874
- 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)
875
976
 
876
977
  @staticmethod
877
978
  def streamClipboard(request,
@@ -884,11 +985,21 @@ class EmulatorController(object):
884
985
  wait_for_ready=None,
885
986
  timeout=None,
886
987
  metadata=None):
887
- 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',
888
992
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
889
993
  android__env_dot_proto_dot_emulator__controller__pb2.ClipData.FromString,
890
- options, channel_credentials,
891
- 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)
892
1003
 
893
1004
  @staticmethod
894
1005
  def setBattery(request,
@@ -901,11 +1012,21 @@ class EmulatorController(object):
901
1012
  wait_for_ready=None,
902
1013
  timeout=None,
903
1014
  metadata=None):
904
- 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',
905
1019
  android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.SerializeToString,
906
1020
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
907
- options, channel_credentials,
908
- 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)
909
1030
 
910
1031
  @staticmethod
911
1032
  def getBattery(request,
@@ -918,11 +1039,21 @@ class EmulatorController(object):
918
1039
  wait_for_ready=None,
919
1040
  timeout=None,
920
1041
  metadata=None):
921
- 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',
922
1046
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
923
1047
  android__env_dot_proto_dot_emulator__controller__pb2.BatteryState.FromString,
924
- options, channel_credentials,
925
- 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)
926
1057
 
927
1058
  @staticmethod
928
1059
  def setGps(request,
@@ -935,11 +1066,21 @@ class EmulatorController(object):
935
1066
  wait_for_ready=None,
936
1067
  timeout=None,
937
1068
  metadata=None):
938
- 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',
939
1073
  android__env_dot_proto_dot_emulator__controller__pb2.GpsState.SerializeToString,
940
1074
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
941
- options, channel_credentials,
942
- 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)
943
1084
 
944
1085
  @staticmethod
945
1086
  def getGps(request,
@@ -952,11 +1093,21 @@ class EmulatorController(object):
952
1093
  wait_for_ready=None,
953
1094
  timeout=None,
954
1095
  metadata=None):
955
- 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',
956
1100
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
957
1101
  android__env_dot_proto_dot_emulator__controller__pb2.GpsState.FromString,
958
- options, channel_credentials,
959
- 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)
960
1111
 
961
1112
  @staticmethod
962
1113
  def sendFingerprint(request,
@@ -969,11 +1120,21 @@ class EmulatorController(object):
969
1120
  wait_for_ready=None,
970
1121
  timeout=None,
971
1122
  metadata=None):
972
- 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',
973
1127
  android__env_dot_proto_dot_emulator__controller__pb2.Fingerprint.SerializeToString,
974
1128
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
975
- options, channel_credentials,
976
- 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)
977
1138
 
978
1139
  @staticmethod
979
1140
  def sendKey(request,
@@ -986,11 +1147,21 @@ class EmulatorController(object):
986
1147
  wait_for_ready=None,
987
1148
  timeout=None,
988
1149
  metadata=None):
989
- 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',
990
1154
  android__env_dot_proto_dot_emulator__controller__pb2.KeyboardEvent.SerializeToString,
991
1155
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
992
- options, channel_credentials,
993
- 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)
994
1165
 
995
1166
  @staticmethod
996
1167
  def sendTouch(request,
@@ -1003,11 +1174,21 @@ class EmulatorController(object):
1003
1174
  wait_for_ready=None,
1004
1175
  timeout=None,
1005
1176
  metadata=None):
1006
- 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',
1007
1181
  android__env_dot_proto_dot_emulator__controller__pb2.TouchEvent.SerializeToString,
1008
1182
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1009
- options, channel_credentials,
1010
- 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)
1011
1192
 
1012
1193
  @staticmethod
1013
1194
  def sendMouse(request,
@@ -1020,11 +1201,21 @@ class EmulatorController(object):
1020
1201
  wait_for_ready=None,
1021
1202
  timeout=None,
1022
1203
  metadata=None):
1023
- 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',
1024
1208
  android__env_dot_proto_dot_emulator__controller__pb2.MouseEvent.SerializeToString,
1025
1209
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1026
- options, channel_credentials,
1027
- 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)
1028
1219
 
1029
1220
  @staticmethod
1030
1221
  def sendPhone(request,
@@ -1037,11 +1228,21 @@ class EmulatorController(object):
1037
1228
  wait_for_ready=None,
1038
1229
  timeout=None,
1039
1230
  metadata=None):
1040
- 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',
1041
1235
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneCall.SerializeToString,
1042
1236
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
1043
- options, channel_credentials,
1044
- 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)
1045
1246
 
1046
1247
  @staticmethod
1047
1248
  def sendSms(request,
@@ -1054,11 +1255,21 @@ class EmulatorController(object):
1054
1255
  wait_for_ready=None,
1055
1256
  timeout=None,
1056
1257
  metadata=None):
1057
- 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',
1058
1262
  android__env_dot_proto_dot_emulator__controller__pb2.SmsMessage.SerializeToString,
1059
1263
  android__env_dot_proto_dot_emulator__controller__pb2.PhoneResponse.FromString,
1060
- options, channel_credentials,
1061
- 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)
1062
1273
 
1063
1274
  @staticmethod
1064
1275
  def getStatus(request,
@@ -1071,11 +1282,21 @@ class EmulatorController(object):
1071
1282
  wait_for_ready=None,
1072
1283
  timeout=None,
1073
1284
  metadata=None):
1074
- 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',
1075
1289
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1076
1290
  android__env_dot_proto_dot_emulator__controller__pb2.EmulatorStatus.FromString,
1077
- options, channel_credentials,
1078
- 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)
1079
1300
 
1080
1301
  @staticmethod
1081
1302
  def getScreenshot(request,
@@ -1088,11 +1309,21 @@ class EmulatorController(object):
1088
1309
  wait_for_ready=None,
1089
1310
  timeout=None,
1090
1311
  metadata=None):
1091
- 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',
1092
1316
  android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
1093
1317
  android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
1094
- options, channel_credentials,
1095
- 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)
1096
1327
 
1097
1328
  @staticmethod
1098
1329
  def streamScreenshot(request,
@@ -1105,11 +1336,21 @@ class EmulatorController(object):
1105
1336
  wait_for_ready=None,
1106
1337
  timeout=None,
1107
1338
  metadata=None):
1108
- 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',
1109
1343
  android__env_dot_proto_dot_emulator__controller__pb2.ImageFormat.SerializeToString,
1110
1344
  android__env_dot_proto_dot_emulator__controller__pb2.Image.FromString,
1111
- options, channel_credentials,
1112
- 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)
1113
1354
 
1114
1355
  @staticmethod
1115
1356
  def streamAudio(request,
@@ -1122,11 +1363,21 @@ class EmulatorController(object):
1122
1363
  wait_for_ready=None,
1123
1364
  timeout=None,
1124
1365
  metadata=None):
1125
- 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',
1126
1370
  android__env_dot_proto_dot_emulator__controller__pb2.AudioFormat.SerializeToString,
1127
1371
  android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.FromString,
1128
- options, channel_credentials,
1129
- 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)
1130
1381
 
1131
1382
  @staticmethod
1132
1383
  def injectAudio(request_iterator,
@@ -1139,11 +1390,21 @@ class EmulatorController(object):
1139
1390
  wait_for_ready=None,
1140
1391
  timeout=None,
1141
1392
  metadata=None):
1142
- 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',
1143
1397
  android__env_dot_proto_dot_emulator__controller__pb2.AudioPacket.SerializeToString,
1144
1398
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1145
- options, channel_credentials,
1146
- 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)
1147
1408
 
1148
1409
  @staticmethod
1149
1410
  def getLogcat(request,
@@ -1156,11 +1417,21 @@ class EmulatorController(object):
1156
1417
  wait_for_ready=None,
1157
1418
  timeout=None,
1158
1419
  metadata=None):
1159
- 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',
1160
1424
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
1161
1425
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
1162
- options, channel_credentials,
1163
- 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)
1164
1435
 
1165
1436
  @staticmethod
1166
1437
  def streamLogcat(request,
@@ -1173,11 +1444,21 @@ class EmulatorController(object):
1173
1444
  wait_for_ready=None,
1174
1445
  timeout=None,
1175
1446
  metadata=None):
1176
- 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',
1177
1451
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.SerializeToString,
1178
1452
  android__env_dot_proto_dot_emulator__controller__pb2.LogMessage.FromString,
1179
- options, channel_credentials,
1180
- 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)
1181
1462
 
1182
1463
  @staticmethod
1183
1464
  def setVmState(request,
@@ -1190,11 +1471,21 @@ class EmulatorController(object):
1190
1471
  wait_for_ready=None,
1191
1472
  timeout=None,
1192
1473
  metadata=None):
1193
- 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',
1194
1478
  android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.SerializeToString,
1195
1479
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1196
- options, channel_credentials,
1197
- 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)
1198
1489
 
1199
1490
  @staticmethod
1200
1491
  def getVmState(request,
@@ -1207,11 +1498,21 @@ class EmulatorController(object):
1207
1498
  wait_for_ready=None,
1208
1499
  timeout=None,
1209
1500
  metadata=None):
1210
- 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',
1211
1505
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1212
1506
  android__env_dot_proto_dot_emulator__controller__pb2.VmRunState.FromString,
1213
- options, channel_credentials,
1214
- 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)
1215
1516
 
1216
1517
  @staticmethod
1217
1518
  def setDisplayConfigurations(request,
@@ -1224,11 +1525,21 @@ class EmulatorController(object):
1224
1525
  wait_for_ready=None,
1225
1526
  timeout=None,
1226
1527
  metadata=None):
1227
- 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',
1228
1532
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.SerializeToString,
1229
1533
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
1230
- options, channel_credentials,
1231
- 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)
1232
1543
 
1233
1544
  @staticmethod
1234
1545
  def getDisplayConfigurations(request,
@@ -1241,11 +1552,21 @@ class EmulatorController(object):
1241
1552
  wait_for_ready=None,
1242
1553
  timeout=None,
1243
1554
  metadata=None):
1244
- 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',
1245
1559
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1246
1560
  android__env_dot_proto_dot_emulator__controller__pb2.DisplayConfigurations.FromString,
1247
- options, channel_credentials,
1248
- 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)
1249
1570
 
1250
1571
  @staticmethod
1251
1572
  def streamNotification(request,
@@ -1258,11 +1579,21 @@ class EmulatorController(object):
1258
1579
  wait_for_ready=None,
1259
1580
  timeout=None,
1260
1581
  metadata=None):
1261
- 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',
1262
1586
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
1263
1587
  android__env_dot_proto_dot_emulator__controller__pb2.Notification.FromString,
1264
- options, channel_credentials,
1265
- 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)
1266
1597
 
1267
1598
  @staticmethod
1268
1599
  def rotateVirtualSceneCamera(request,
@@ -1275,11 +1606,21 @@ class EmulatorController(object):
1275
1606
  wait_for_ready=None,
1276
1607
  timeout=None,
1277
1608
  metadata=None):
1278
- 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',
1279
1613
  android__env_dot_proto_dot_emulator__controller__pb2.RotationRadian.SerializeToString,
1280
1614
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1281
- options, channel_credentials,
1282
- 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)
1283
1624
 
1284
1625
  @staticmethod
1285
1626
  def setVirtualSceneCameraVelocity(request,
@@ -1292,11 +1633,21 @@ class EmulatorController(object):
1292
1633
  wait_for_ready=None,
1293
1634
  timeout=None,
1294
1635
  metadata=None):
1295
- 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',
1296
1640
  android__env_dot_proto_dot_emulator__controller__pb2.Velocity.SerializeToString,
1297
1641
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1298
- options, channel_credentials,
1299
- 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)
1300
1651
 
1301
1652
  @staticmethod
1302
1653
  def setPosture(request,
@@ -1309,8 +1660,18 @@ class EmulatorController(object):
1309
1660
  wait_for_ready=None,
1310
1661
  timeout=None,
1311
1662
  metadata=None):
1312
- 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',
1313
1667
  android__env_dot_proto_dot_emulator__controller__pb2.Posture.SerializeToString,
1314
1668
  google_dot_protobuf_dot_empty__pb2.Empty.FromString,
1315
- options, channel_credentials,
1316
- 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)