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,4 +1,4 @@
1
- // Copyright 2023 DeepMind Technologies Limited.
1
+ // Copyright 2024 DeepMind Technologies Limited.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,11 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: android_env/proto/snapshot.proto
5
+ # Protobuf Python Version: 5.29.0
4
6
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'android_env/proto/snapshot.proto'
19
+ )
9
20
  # @@protoc_insertion_point(imports)
10
21
 
11
22
  _sym_db = _symbol_database.Default()
@@ -15,22 +26,22 @@ _sym_db = _symbol_database.Default()
15
26
 
16
27
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n android_env/proto/snapshot.proto\x12\x11\x65mulator_snapshot\"\xaf\x03\n\x05Image\x12+\n\x04type\x18\x01 \x01(\x0e\x32\x1d.emulator_snapshot.Image.Type\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0f\n\x07present\x18\x03 \x01(\x08\x12\x0c\n\x04size\x18\x04 \x01(\x03\x12\x19\n\x11modification_time\x18\x05 \x01(\x03\"\xb0\x02\n\x04Type\x12\x16\n\x12IMAGE_TYPE_UNKNOWN\x10\x00\x12\x15\n\x11IMAGE_TYPE_KERNEL\x10\x01\x12\x1c\n\x18IMAGE_TYPE_KERNEL_RANCHU\x10\x02\x12\x15\n\x11IMAGE_TYPE_SYSTEM\x10\x03\x12\x1a\n\x16IMAGE_TYPE_SYSTEM_COPY\x10\x04\x12\x13\n\x0fIMAGE_TYPE_DATA\x10\x05\x12\x18\n\x14IMAGE_TYPE_DATA_COPY\x10\x06\x12\x16\n\x12IMAGE_TYPE_RAMDISK\x10\x07\x12\x15\n\x11IMAGE_TYPE_SDCARD\x10\x08\x12\x14\n\x10IMAGE_TYPE_CACHE\x10\t\x12\x15\n\x11IMAGE_TYPE_VENDOR\x10\n\x12\x1d\n\x19IMAGE_TYPE_ENCRYPTION_KEY\x10\x0b\".\n\x04Host\x12\x12\n\ngpu_driver\x18\x04 \x01(\t\x12\x12\n\nhypervisor\x18\x05 \x01(\x05\"m\n\x06\x43onfig\x12\x18\n\x10\x65nabled_features\x18\x01 \x03(\x05\x12\x19\n\x11selected_renderer\x18\x02 \x01(\x05\x12\x16\n\x0e\x63pu_core_count\x18\x03 \x01(\x05\x12\x16\n\x0eram_size_bytes\x18\x04 \x01(\x03\"M\n\tSaveStats\x12\x13\n\x0bincremental\x18\x01 \x01(\r\x12\x10\n\x08\x64uration\x18\x02 \x01(\x04\x12\x19\n\x11ram_changed_bytes\x18\x03 \x01(\x04\"\x8d\x04\n\x08Snapshot\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12\x15\n\rcreation_time\x18\x02 \x01(\x03\x12(\n\x06images\x18\x03 \x03(\x0b\x32\x18.emulator_snapshot.Image\x12%\n\x04host\x18\x04 \x01(\x0b\x32\x17.emulator_snapshot.Host\x12)\n\x06\x63onfig\x18\x05 \x01(\x0b\x32\x19.emulator_snapshot.Config\x12\"\n\x1a\x66\x61iled_to_load_reason_code\x18\x07 \x01(\x03\x12$\n\x1cguest_data_partition_mounted\x18\x08 \x01(\x08\x12\x10\n\x08rotation\x18\t \x01(\x05\x12\x15\n\rinvalid_loads\x18\n \x01(\x05\x12\x18\n\x10successful_loads\x18\x0b \x01(\x05\x12\x14\n\x0clogical_name\x18\x0c \x01(\t\x12\x0e\n\x06parent\x18\r \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x0e \x01(\t\x12\x30\n\nsave_stats\x18\x0f \x03(\x0b\x32\x1c.emulator_snapshot.SaveStats\x12\x0e\n\x06\x66olded\x18\x10 \x01(\x08\x12\x19\n\x11launch_parameters\x18\x11 \x03(\t\x12\x19\n\x11\x65mulator_build_id\x18\x12 \x01(\t\x12\x1d\n\x15system_image_build_id\x18\x13 \x01(\tB\x1f\n\x1d\x63om.android.emulator.snapshot')
17
28
 
18
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.snapshot_pb2', globals())
20
- if _descriptor._USE_C_DESCRIPTORS == False:
21
-
22
- DESCRIPTOR._options = None
23
- DESCRIPTOR._serialized_options = b'\n\035com.android.emulator.snapshot'
24
- _IMAGE._serialized_start=56
25
- _IMAGE._serialized_end=487
26
- _IMAGE_TYPE._serialized_start=183
27
- _IMAGE_TYPE._serialized_end=487
28
- _HOST._serialized_start=489
29
- _HOST._serialized_end=535
30
- _CONFIG._serialized_start=537
31
- _CONFIG._serialized_end=646
32
- _SAVESTATS._serialized_start=648
33
- _SAVESTATS._serialized_end=725
34
- _SNAPSHOT._serialized_start=728
35
- _SNAPSHOT._serialized_end=1253
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.snapshot_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ _globals['DESCRIPTOR']._loaded_options = None
34
+ _globals['DESCRIPTOR']._serialized_options = b'\n\035com.android.emulator.snapshot'
35
+ _globals['_IMAGE']._serialized_start=56
36
+ _globals['_IMAGE']._serialized_end=487
37
+ _globals['_IMAGE_TYPE']._serialized_start=183
38
+ _globals['_IMAGE_TYPE']._serialized_end=487
39
+ _globals['_HOST']._serialized_start=489
40
+ _globals['_HOST']._serialized_end=535
41
+ _globals['_CONFIG']._serialized_start=537
42
+ _globals['_CONFIG']._serialized_end=646
43
+ _globals['_SAVESTATS']._serialized_start=648
44
+ _globals['_SAVESTATS']._serialized_end=725
45
+ _globals['_SNAPSHOT']._serialized_start=728
46
+ _globals['_SNAPSHOT']._serialized_end=1253
36
47
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,117 @@
1
+ from google.protobuf.internal import containers as _containers
2
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
6
+
7
+ DESCRIPTOR: _descriptor.FileDescriptor
8
+
9
+ class Image(_message.Message):
10
+ __slots__ = ("type", "path", "present", "size", "modification_time")
11
+ class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
12
+ __slots__ = ()
13
+ IMAGE_TYPE_UNKNOWN: _ClassVar[Image.Type]
14
+ IMAGE_TYPE_KERNEL: _ClassVar[Image.Type]
15
+ IMAGE_TYPE_KERNEL_RANCHU: _ClassVar[Image.Type]
16
+ IMAGE_TYPE_SYSTEM: _ClassVar[Image.Type]
17
+ IMAGE_TYPE_SYSTEM_COPY: _ClassVar[Image.Type]
18
+ IMAGE_TYPE_DATA: _ClassVar[Image.Type]
19
+ IMAGE_TYPE_DATA_COPY: _ClassVar[Image.Type]
20
+ IMAGE_TYPE_RAMDISK: _ClassVar[Image.Type]
21
+ IMAGE_TYPE_SDCARD: _ClassVar[Image.Type]
22
+ IMAGE_TYPE_CACHE: _ClassVar[Image.Type]
23
+ IMAGE_TYPE_VENDOR: _ClassVar[Image.Type]
24
+ IMAGE_TYPE_ENCRYPTION_KEY: _ClassVar[Image.Type]
25
+ IMAGE_TYPE_UNKNOWN: Image.Type
26
+ IMAGE_TYPE_KERNEL: Image.Type
27
+ IMAGE_TYPE_KERNEL_RANCHU: Image.Type
28
+ IMAGE_TYPE_SYSTEM: Image.Type
29
+ IMAGE_TYPE_SYSTEM_COPY: Image.Type
30
+ IMAGE_TYPE_DATA: Image.Type
31
+ IMAGE_TYPE_DATA_COPY: Image.Type
32
+ IMAGE_TYPE_RAMDISK: Image.Type
33
+ IMAGE_TYPE_SDCARD: Image.Type
34
+ IMAGE_TYPE_CACHE: Image.Type
35
+ IMAGE_TYPE_VENDOR: Image.Type
36
+ IMAGE_TYPE_ENCRYPTION_KEY: Image.Type
37
+ TYPE_FIELD_NUMBER: _ClassVar[int]
38
+ PATH_FIELD_NUMBER: _ClassVar[int]
39
+ PRESENT_FIELD_NUMBER: _ClassVar[int]
40
+ SIZE_FIELD_NUMBER: _ClassVar[int]
41
+ MODIFICATION_TIME_FIELD_NUMBER: _ClassVar[int]
42
+ type: Image.Type
43
+ path: str
44
+ present: bool
45
+ size: int
46
+ modification_time: int
47
+ def __init__(self, type: _Optional[_Union[Image.Type, str]] = ..., path: _Optional[str] = ..., present: bool = ..., size: _Optional[int] = ..., modification_time: _Optional[int] = ...) -> None: ...
48
+
49
+ class Host(_message.Message):
50
+ __slots__ = ("gpu_driver", "hypervisor")
51
+ GPU_DRIVER_FIELD_NUMBER: _ClassVar[int]
52
+ HYPERVISOR_FIELD_NUMBER: _ClassVar[int]
53
+ gpu_driver: str
54
+ hypervisor: int
55
+ def __init__(self, gpu_driver: _Optional[str] = ..., hypervisor: _Optional[int] = ...) -> None: ...
56
+
57
+ class Config(_message.Message):
58
+ __slots__ = ("enabled_features", "selected_renderer", "cpu_core_count", "ram_size_bytes")
59
+ ENABLED_FEATURES_FIELD_NUMBER: _ClassVar[int]
60
+ SELECTED_RENDERER_FIELD_NUMBER: _ClassVar[int]
61
+ CPU_CORE_COUNT_FIELD_NUMBER: _ClassVar[int]
62
+ RAM_SIZE_BYTES_FIELD_NUMBER: _ClassVar[int]
63
+ enabled_features: _containers.RepeatedScalarFieldContainer[int]
64
+ selected_renderer: int
65
+ cpu_core_count: int
66
+ ram_size_bytes: int
67
+ def __init__(self, enabled_features: _Optional[_Iterable[int]] = ..., selected_renderer: _Optional[int] = ..., cpu_core_count: _Optional[int] = ..., ram_size_bytes: _Optional[int] = ...) -> None: ...
68
+
69
+ class SaveStats(_message.Message):
70
+ __slots__ = ("incremental", "duration", "ram_changed_bytes")
71
+ INCREMENTAL_FIELD_NUMBER: _ClassVar[int]
72
+ DURATION_FIELD_NUMBER: _ClassVar[int]
73
+ RAM_CHANGED_BYTES_FIELD_NUMBER: _ClassVar[int]
74
+ incremental: int
75
+ duration: int
76
+ ram_changed_bytes: int
77
+ def __init__(self, incremental: _Optional[int] = ..., duration: _Optional[int] = ..., ram_changed_bytes: _Optional[int] = ...) -> None: ...
78
+
79
+ class Snapshot(_message.Message):
80
+ __slots__ = ("version", "creation_time", "images", "host", "config", "failed_to_load_reason_code", "guest_data_partition_mounted", "rotation", "invalid_loads", "successful_loads", "logical_name", "parent", "description", "save_stats", "folded", "launch_parameters", "emulator_build_id", "system_image_build_id")
81
+ VERSION_FIELD_NUMBER: _ClassVar[int]
82
+ CREATION_TIME_FIELD_NUMBER: _ClassVar[int]
83
+ IMAGES_FIELD_NUMBER: _ClassVar[int]
84
+ HOST_FIELD_NUMBER: _ClassVar[int]
85
+ CONFIG_FIELD_NUMBER: _ClassVar[int]
86
+ FAILED_TO_LOAD_REASON_CODE_FIELD_NUMBER: _ClassVar[int]
87
+ GUEST_DATA_PARTITION_MOUNTED_FIELD_NUMBER: _ClassVar[int]
88
+ ROTATION_FIELD_NUMBER: _ClassVar[int]
89
+ INVALID_LOADS_FIELD_NUMBER: _ClassVar[int]
90
+ SUCCESSFUL_LOADS_FIELD_NUMBER: _ClassVar[int]
91
+ LOGICAL_NAME_FIELD_NUMBER: _ClassVar[int]
92
+ PARENT_FIELD_NUMBER: _ClassVar[int]
93
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
94
+ SAVE_STATS_FIELD_NUMBER: _ClassVar[int]
95
+ FOLDED_FIELD_NUMBER: _ClassVar[int]
96
+ LAUNCH_PARAMETERS_FIELD_NUMBER: _ClassVar[int]
97
+ EMULATOR_BUILD_ID_FIELD_NUMBER: _ClassVar[int]
98
+ SYSTEM_IMAGE_BUILD_ID_FIELD_NUMBER: _ClassVar[int]
99
+ version: int
100
+ creation_time: int
101
+ images: _containers.RepeatedCompositeFieldContainer[Image]
102
+ host: Host
103
+ config: Config
104
+ failed_to_load_reason_code: int
105
+ guest_data_partition_mounted: bool
106
+ rotation: int
107
+ invalid_loads: int
108
+ successful_loads: int
109
+ logical_name: str
110
+ parent: str
111
+ description: str
112
+ save_stats: _containers.RepeatedCompositeFieldContainer[SaveStats]
113
+ folded: bool
114
+ launch_parameters: _containers.RepeatedScalarFieldContainer[str]
115
+ emulator_build_id: str
116
+ system_image_build_id: str
117
+ def __init__(self, version: _Optional[int] = ..., creation_time: _Optional[int] = ..., images: _Optional[_Iterable[_Union[Image, _Mapping]]] = ..., host: _Optional[_Union[Host, _Mapping]] = ..., config: _Optional[_Union[Config, _Mapping]] = ..., failed_to_load_reason_code: _Optional[int] = ..., guest_data_partition_mounted: bool = ..., rotation: _Optional[int] = ..., invalid_loads: _Optional[int] = ..., successful_loads: _Optional[int] = ..., logical_name: _Optional[str] = ..., parent: _Optional[str] = ..., description: _Optional[str] = ..., save_stats: _Optional[_Iterable[_Union[SaveStats, _Mapping]]] = ..., folded: bool = ..., launch_parameters: _Optional[_Iterable[str]] = ..., emulator_build_id: _Optional[str] = ..., system_image_build_id: _Optional[str] = ...) -> None: ...
@@ -1,4 +1,24 @@
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
 
6
+
7
+ GRPC_GENERATED_VERSION = '1.71.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in android_env/proto/snapshot_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -1,4 +1,4 @@
1
- // Copyright 2023 DeepMind Technologies Limited.
1
+ // Copyright 2024 DeepMind Technologies Limited.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,11 +1,22 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
3
4
  # source: android_env/proto/snapshot_service.proto
5
+ # Protobuf Python Version: 5.29.0
4
6
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import builder as _builder
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
8
10
  from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'android_env/proto/snapshot_service.proto'
19
+ )
9
20
  # @@protoc_insertion_point(imports)
10
21
 
11
22
  _sym_db = _symbol_database.Default()
@@ -16,28 +27,28 @@ from android_env.proto import snapshot_pb2 as android__env_dot_proto_dot_snapsho
16
27
 
17
28
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(android_env/proto/snapshot_service.proto\x12\x19\x61ndroid.emulation.control\x1a android_env/proto/snapshot.proto\"\xd3\x01\n\x0fSnapshotPackage\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\x0f\n\x07success\x18\x03 \x01(\x08\x12\x0b\n\x03\x65rr\x18\x04 \x01(\x0c\x12\x41\n\x06\x66ormat\x18\x05 \x01(\x0e\x32\x31.android.emulation.control.SnapshotPackage.Format\x12\x0c\n\x04path\x18\x06 \x01(\t\"+\n\x06\x46ormat\x12\t\n\x05TARGZ\x10\x00\x12\x07\n\x03TAR\x10\x01\x12\r\n\tDIRECTORY\x10\x02\"\x87\x01\n\x0eSnapshotFilter\x12J\n\x0cstatusFilter\x18\x01 \x01(\x0e\x32\x34.android.emulation.control.SnapshotFilter.LoadStatus\")\n\nLoadStatus\x12\x12\n\x0e\x43ompatibleOnly\x10\x00\x12\x07\n\x03\x41ll\x10\x01\"\xe5\x01\n\x0fSnapshotDetails\x12\x13\n\x0bsnapshot_id\x18\x01 \x01(\t\x12,\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32\x1b.emulator_snapshot.Snapshot\x12\x45\n\x06status\x18\x03 \x01(\x0e\x32\x35.android.emulation.control.SnapshotDetails.LoadStatus\x12\x0c\n\x04size\x18\x04 \x01(\x04\":\n\nLoadStatus\x12\x0e\n\nCompatible\x10\x00\x12\x10\n\x0cIncompatible\x10\x01\x12\n\n\x06Loaded\x10\x02\"M\n\x0cSnapshotList\x12=\n\tsnapshots\x18\x01 \x03(\x0b\x32*.android.emulation.control.SnapshotDetails\"\x80\x01\n\x0cIceboxTarget\x12\x0b\n\x03pid\x18\x01 \x01(\x03\x12\x14\n\x0cpackage_name\x18\x02 \x01(\t\x12\x13\n\x0bsnapshot_id\x18\x03 \x01(\t\x12\x0e\n\x06\x66\x61iled\x18\x04 \x01(\x08\x12\x0b\n\x03\x65rr\x18\x05 \x01(\t\x12\x1b\n\x13max_snapshot_number\x18\x06 \x01(\x05\x32\xf4\x05\n\x0fSnapshotService\x12\x65\n\rListSnapshots\x12).android.emulation.control.SnapshotFilter\x1a\'.android.emulation.control.SnapshotList\"\x00\x12j\n\x0cPullSnapshot\x12*.android.emulation.control.SnapshotPackage\x1a*.android.emulation.control.SnapshotPackage\"\x00\x30\x01\x12j\n\x0cPushSnapshot\x12*.android.emulation.control.SnapshotPackage\x1a*.android.emulation.control.SnapshotPackage\"\x00(\x01\x12h\n\x0cLoadSnapshot\x12*.android.emulation.control.SnapshotPackage\x1a*.android.emulation.control.SnapshotPackage\"\x00\x12h\n\x0cSaveSnapshot\x12*.android.emulation.control.SnapshotPackage\x1a*.android.emulation.control.SnapshotPackage\"\x00\x12j\n\x0e\x44\x65leteSnapshot\x12*.android.emulation.control.SnapshotPackage\x1a*.android.emulation.control.SnapshotPackage\"\x00\x12\x62\n\x0cTrackProcess\x12\'.android.emulation.control.IceboxTarget\x1a\'.android.emulation.control.IceboxTarget\"\x00\x42&\n\x1c\x63om.android.emulator.controlP\x01\xa2\x02\x03\x41\x45\x43\x62\x06proto3')
18
29
 
19
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.snapshot_service_pb2', globals())
21
- if _descriptor._USE_C_DESCRIPTORS == False:
22
-
23
- DESCRIPTOR._options = None
24
- DESCRIPTOR._serialized_options = b'\n\034com.android.emulator.controlP\001\242\002\003AEC'
25
- _SNAPSHOTPACKAGE._serialized_start=106
26
- _SNAPSHOTPACKAGE._serialized_end=317
27
- _SNAPSHOTPACKAGE_FORMAT._serialized_start=274
28
- _SNAPSHOTPACKAGE_FORMAT._serialized_end=317
29
- _SNAPSHOTFILTER._serialized_start=320
30
- _SNAPSHOTFILTER._serialized_end=455
31
- _SNAPSHOTFILTER_LOADSTATUS._serialized_start=414
32
- _SNAPSHOTFILTER_LOADSTATUS._serialized_end=455
33
- _SNAPSHOTDETAILS._serialized_start=458
34
- _SNAPSHOTDETAILS._serialized_end=687
35
- _SNAPSHOTDETAILS_LOADSTATUS._serialized_start=629
36
- _SNAPSHOTDETAILS_LOADSTATUS._serialized_end=687
37
- _SNAPSHOTLIST._serialized_start=689
38
- _SNAPSHOTLIST._serialized_end=766
39
- _ICEBOXTARGET._serialized_start=769
40
- _ICEBOXTARGET._serialized_end=897
41
- _SNAPSHOTSERVICE._serialized_start=900
42
- _SNAPSHOTSERVICE._serialized_end=1656
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.snapshot_service_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.android.emulator.controlP\001\242\002\003AEC'
36
+ _globals['_SNAPSHOTPACKAGE']._serialized_start=106
37
+ _globals['_SNAPSHOTPACKAGE']._serialized_end=317
38
+ _globals['_SNAPSHOTPACKAGE_FORMAT']._serialized_start=274
39
+ _globals['_SNAPSHOTPACKAGE_FORMAT']._serialized_end=317
40
+ _globals['_SNAPSHOTFILTER']._serialized_start=320
41
+ _globals['_SNAPSHOTFILTER']._serialized_end=455
42
+ _globals['_SNAPSHOTFILTER_LOADSTATUS']._serialized_start=414
43
+ _globals['_SNAPSHOTFILTER_LOADSTATUS']._serialized_end=455
44
+ _globals['_SNAPSHOTDETAILS']._serialized_start=458
45
+ _globals['_SNAPSHOTDETAILS']._serialized_end=687
46
+ _globals['_SNAPSHOTDETAILS_LOADSTATUS']._serialized_start=629
47
+ _globals['_SNAPSHOTDETAILS_LOADSTATUS']._serialized_end=687
48
+ _globals['_SNAPSHOTLIST']._serialized_start=689
49
+ _globals['_SNAPSHOTLIST']._serialized_end=766
50
+ _globals['_ICEBOXTARGET']._serialized_start=769
51
+ _globals['_ICEBOXTARGET']._serialized_end=897
52
+ _globals['_SNAPSHOTSERVICE']._serialized_start=900
53
+ _globals['_SNAPSHOTSERVICE']._serialized_end=1656
43
54
  # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,86 @@
1
+ from android_env.proto import snapshot_pb2 as _snapshot_pb2
2
+ from google.protobuf.internal import containers as _containers
3
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
4
+ from google.protobuf import descriptor as _descriptor
5
+ from google.protobuf import message as _message
6
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class SnapshotPackage(_message.Message):
11
+ __slots__ = ("snapshot_id", "payload", "success", "err", "format", "path")
12
+ class Format(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
13
+ __slots__ = ()
14
+ TARGZ: _ClassVar[SnapshotPackage.Format]
15
+ TAR: _ClassVar[SnapshotPackage.Format]
16
+ DIRECTORY: _ClassVar[SnapshotPackage.Format]
17
+ TARGZ: SnapshotPackage.Format
18
+ TAR: SnapshotPackage.Format
19
+ DIRECTORY: SnapshotPackage.Format
20
+ SNAPSHOT_ID_FIELD_NUMBER: _ClassVar[int]
21
+ PAYLOAD_FIELD_NUMBER: _ClassVar[int]
22
+ SUCCESS_FIELD_NUMBER: _ClassVar[int]
23
+ ERR_FIELD_NUMBER: _ClassVar[int]
24
+ FORMAT_FIELD_NUMBER: _ClassVar[int]
25
+ PATH_FIELD_NUMBER: _ClassVar[int]
26
+ snapshot_id: str
27
+ payload: bytes
28
+ success: bool
29
+ err: bytes
30
+ format: SnapshotPackage.Format
31
+ path: str
32
+ def __init__(self, snapshot_id: _Optional[str] = ..., payload: _Optional[bytes] = ..., success: bool = ..., err: _Optional[bytes] = ..., format: _Optional[_Union[SnapshotPackage.Format, str]] = ..., path: _Optional[str] = ...) -> None: ...
33
+
34
+ class SnapshotFilter(_message.Message):
35
+ __slots__ = ("statusFilter",)
36
+ class LoadStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
37
+ __slots__ = ()
38
+ CompatibleOnly: _ClassVar[SnapshotFilter.LoadStatus]
39
+ All: _ClassVar[SnapshotFilter.LoadStatus]
40
+ CompatibleOnly: SnapshotFilter.LoadStatus
41
+ All: SnapshotFilter.LoadStatus
42
+ STATUSFILTER_FIELD_NUMBER: _ClassVar[int]
43
+ statusFilter: SnapshotFilter.LoadStatus
44
+ def __init__(self, statusFilter: _Optional[_Union[SnapshotFilter.LoadStatus, str]] = ...) -> None: ...
45
+
46
+ class SnapshotDetails(_message.Message):
47
+ __slots__ = ("snapshot_id", "details", "status", "size")
48
+ class LoadStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
49
+ __slots__ = ()
50
+ Compatible: _ClassVar[SnapshotDetails.LoadStatus]
51
+ Incompatible: _ClassVar[SnapshotDetails.LoadStatus]
52
+ Loaded: _ClassVar[SnapshotDetails.LoadStatus]
53
+ Compatible: SnapshotDetails.LoadStatus
54
+ Incompatible: SnapshotDetails.LoadStatus
55
+ Loaded: SnapshotDetails.LoadStatus
56
+ SNAPSHOT_ID_FIELD_NUMBER: _ClassVar[int]
57
+ DETAILS_FIELD_NUMBER: _ClassVar[int]
58
+ STATUS_FIELD_NUMBER: _ClassVar[int]
59
+ SIZE_FIELD_NUMBER: _ClassVar[int]
60
+ snapshot_id: str
61
+ details: _snapshot_pb2.Snapshot
62
+ status: SnapshotDetails.LoadStatus
63
+ size: int
64
+ def __init__(self, snapshot_id: _Optional[str] = ..., details: _Optional[_Union[_snapshot_pb2.Snapshot, _Mapping]] = ..., status: _Optional[_Union[SnapshotDetails.LoadStatus, str]] = ..., size: _Optional[int] = ...) -> None: ...
65
+
66
+ class SnapshotList(_message.Message):
67
+ __slots__ = ("snapshots",)
68
+ SNAPSHOTS_FIELD_NUMBER: _ClassVar[int]
69
+ snapshots: _containers.RepeatedCompositeFieldContainer[SnapshotDetails]
70
+ def __init__(self, snapshots: _Optional[_Iterable[_Union[SnapshotDetails, _Mapping]]] = ...) -> None: ...
71
+
72
+ class IceboxTarget(_message.Message):
73
+ __slots__ = ("pid", "package_name", "snapshot_id", "failed", "err", "max_snapshot_number")
74
+ PID_FIELD_NUMBER: _ClassVar[int]
75
+ PACKAGE_NAME_FIELD_NUMBER: _ClassVar[int]
76
+ SNAPSHOT_ID_FIELD_NUMBER: _ClassVar[int]
77
+ FAILED_FIELD_NUMBER: _ClassVar[int]
78
+ ERR_FIELD_NUMBER: _ClassVar[int]
79
+ MAX_SNAPSHOT_NUMBER_FIELD_NUMBER: _ClassVar[int]
80
+ pid: int
81
+ package_name: str
82
+ snapshot_id: str
83
+ failed: bool
84
+ err: str
85
+ max_snapshot_number: int
86
+ def __init__(self, pid: _Optional[int] = ..., package_name: _Optional[str] = ..., snapshot_id: _Optional[str] = ..., failed: bool = ..., err: _Optional[str] = ..., max_snapshot_number: _Optional[int] = ...) -> None: ...
@@ -1,9 +1,29 @@
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 snapshot_service_pb2 as android__env_dot_proto_dot_snapshot__service__pb2
6
7
 
8
+ GRPC_GENERATED_VERSION = '1.71.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in android_env/proto/snapshot_service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
7
27
 
8
28
  class SnapshotServiceStub(object):
9
29
  """The SnapshotService enables you to list, insert, store, and retrieve
@@ -39,37 +59,37 @@ class SnapshotServiceStub(object):
39
59
  '/android.emulation.control.SnapshotService/ListSnapshots',
40
60
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotFilter.SerializeToString,
41
61
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotList.FromString,
42
- )
62
+ _registered_method=True)
43
63
  self.PullSnapshot = channel.unary_stream(
44
64
  '/android.emulation.control.SnapshotService/PullSnapshot',
45
65
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
46
66
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
47
- )
67
+ _registered_method=True)
48
68
  self.PushSnapshot = channel.stream_unary(
49
69
  '/android.emulation.control.SnapshotService/PushSnapshot',
50
70
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
51
71
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
52
- )
72
+ _registered_method=True)
53
73
  self.LoadSnapshot = channel.unary_unary(
54
74
  '/android.emulation.control.SnapshotService/LoadSnapshot',
55
75
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
56
76
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
57
- )
77
+ _registered_method=True)
58
78
  self.SaveSnapshot = channel.unary_unary(
59
79
  '/android.emulation.control.SnapshotService/SaveSnapshot',
60
80
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
61
81
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
62
- )
82
+ _registered_method=True)
63
83
  self.DeleteSnapshot = channel.unary_unary(
64
84
  '/android.emulation.control.SnapshotService/DeleteSnapshot',
65
85
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
66
86
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
67
- )
87
+ _registered_method=True)
68
88
  self.TrackProcess = channel.unary_unary(
69
89
  '/android.emulation.control.SnapshotService/TrackProcess',
70
90
  request_serializer=android__env_dot_proto_dot_snapshot__service__pb2.IceboxTarget.SerializeToString,
71
91
  response_deserializer=android__env_dot_proto_dot_snapshot__service__pb2.IceboxTarget.FromString,
72
- )
92
+ _registered_method=True)
73
93
 
74
94
 
75
95
  class SnapshotServiceServicer(object):
@@ -249,6 +269,7 @@ def add_SnapshotServiceServicer_to_server(servicer, server):
249
269
  generic_handler = grpc.method_handlers_generic_handler(
250
270
  'android.emulation.control.SnapshotService', rpc_method_handlers)
251
271
  server.add_generic_rpc_handlers((generic_handler,))
272
+ server.add_registered_method_handlers('android.emulation.control.SnapshotService', rpc_method_handlers)
252
273
 
253
274
 
254
275
  # This class is part of an EXPERIMENTAL API.
@@ -287,11 +308,21 @@ class SnapshotService(object):
287
308
  wait_for_ready=None,
288
309
  timeout=None,
289
310
  metadata=None):
290
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.SnapshotService/ListSnapshots',
311
+ return grpc.experimental.unary_unary(
312
+ request,
313
+ target,
314
+ '/android.emulation.control.SnapshotService/ListSnapshots',
291
315
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotFilter.SerializeToString,
292
316
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotList.FromString,
293
- options, channel_credentials,
294
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
317
+ options,
318
+ channel_credentials,
319
+ insecure,
320
+ call_credentials,
321
+ compression,
322
+ wait_for_ready,
323
+ timeout,
324
+ metadata,
325
+ _registered_method=True)
295
326
 
296
327
  @staticmethod
297
328
  def PullSnapshot(request,
@@ -304,11 +335,21 @@ class SnapshotService(object):
304
335
  wait_for_ready=None,
305
336
  timeout=None,
306
337
  metadata=None):
307
- return grpc.experimental.unary_stream(request, target, '/android.emulation.control.SnapshotService/PullSnapshot',
338
+ return grpc.experimental.unary_stream(
339
+ request,
340
+ target,
341
+ '/android.emulation.control.SnapshotService/PullSnapshot',
308
342
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
309
343
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
310
- options, channel_credentials,
311
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
344
+ options,
345
+ channel_credentials,
346
+ insecure,
347
+ call_credentials,
348
+ compression,
349
+ wait_for_ready,
350
+ timeout,
351
+ metadata,
352
+ _registered_method=True)
312
353
 
313
354
  @staticmethod
314
355
  def PushSnapshot(request_iterator,
@@ -321,11 +362,21 @@ class SnapshotService(object):
321
362
  wait_for_ready=None,
322
363
  timeout=None,
323
364
  metadata=None):
324
- return grpc.experimental.stream_unary(request_iterator, target, '/android.emulation.control.SnapshotService/PushSnapshot',
365
+ return grpc.experimental.stream_unary(
366
+ request_iterator,
367
+ target,
368
+ '/android.emulation.control.SnapshotService/PushSnapshot',
325
369
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
326
370
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
327
- options, channel_credentials,
328
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
371
+ options,
372
+ channel_credentials,
373
+ insecure,
374
+ call_credentials,
375
+ compression,
376
+ wait_for_ready,
377
+ timeout,
378
+ metadata,
379
+ _registered_method=True)
329
380
 
330
381
  @staticmethod
331
382
  def LoadSnapshot(request,
@@ -338,11 +389,21 @@ class SnapshotService(object):
338
389
  wait_for_ready=None,
339
390
  timeout=None,
340
391
  metadata=None):
341
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.SnapshotService/LoadSnapshot',
392
+ return grpc.experimental.unary_unary(
393
+ request,
394
+ target,
395
+ '/android.emulation.control.SnapshotService/LoadSnapshot',
342
396
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
343
397
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
344
- options, channel_credentials,
345
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
398
+ options,
399
+ channel_credentials,
400
+ insecure,
401
+ call_credentials,
402
+ compression,
403
+ wait_for_ready,
404
+ timeout,
405
+ metadata,
406
+ _registered_method=True)
346
407
 
347
408
  @staticmethod
348
409
  def SaveSnapshot(request,
@@ -355,11 +416,21 @@ class SnapshotService(object):
355
416
  wait_for_ready=None,
356
417
  timeout=None,
357
418
  metadata=None):
358
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.SnapshotService/SaveSnapshot',
419
+ return grpc.experimental.unary_unary(
420
+ request,
421
+ target,
422
+ '/android.emulation.control.SnapshotService/SaveSnapshot',
359
423
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
360
424
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
361
- options, channel_credentials,
362
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
425
+ options,
426
+ channel_credentials,
427
+ insecure,
428
+ call_credentials,
429
+ compression,
430
+ wait_for_ready,
431
+ timeout,
432
+ metadata,
433
+ _registered_method=True)
363
434
 
364
435
  @staticmethod
365
436
  def DeleteSnapshot(request,
@@ -372,11 +443,21 @@ class SnapshotService(object):
372
443
  wait_for_ready=None,
373
444
  timeout=None,
374
445
  metadata=None):
375
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.SnapshotService/DeleteSnapshot',
446
+ return grpc.experimental.unary_unary(
447
+ request,
448
+ target,
449
+ '/android.emulation.control.SnapshotService/DeleteSnapshot',
376
450
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.SerializeToString,
377
451
  android__env_dot_proto_dot_snapshot__service__pb2.SnapshotPackage.FromString,
378
- options, channel_credentials,
379
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
452
+ options,
453
+ channel_credentials,
454
+ insecure,
455
+ call_credentials,
456
+ compression,
457
+ wait_for_ready,
458
+ timeout,
459
+ metadata,
460
+ _registered_method=True)
380
461
 
381
462
  @staticmethod
382
463
  def TrackProcess(request,
@@ -389,8 +470,18 @@ class SnapshotService(object):
389
470
  wait_for_ready=None,
390
471
  timeout=None,
391
472
  metadata=None):
392
- return grpc.experimental.unary_unary(request, target, '/android.emulation.control.SnapshotService/TrackProcess',
473
+ return grpc.experimental.unary_unary(
474
+ request,
475
+ target,
476
+ '/android.emulation.control.SnapshotService/TrackProcess',
393
477
  android__env_dot_proto_dot_snapshot__service__pb2.IceboxTarget.SerializeToString,
394
478
  android__env_dot_proto_dot_snapshot__service__pb2.IceboxTarget.FromString,
395
- options, channel_credentials,
396
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
479
+ options,
480
+ channel_credentials,
481
+ insecure,
482
+ call_credentials,
483
+ compression,
484
+ wait_for_ready,
485
+ timeout,
486
+ metadata,
487
+ _registered_method=True)
@@ -1,4 +1,4 @@
1
- // Copyright 2023 DeepMind Technologies Limited.
1
+ // Copyright 2024 DeepMind Technologies Limited.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.