android-env 1.2.1__py3-none-any.whl → 1.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- android_env/__init__.py +1 -1
- android_env/components/__init__.py +1 -1
- android_env/components/a11y/__init__.py +15 -0
- android_env/components/a11y/a11y_events.py +118 -0
- android_env/components/a11y/a11y_events_test.py +173 -0
- android_env/components/a11y/a11y_forests.py +128 -0
- android_env/components/a11y/a11y_forests_test.py +237 -0
- android_env/components/a11y/a11y_servicer.py +199 -0
- android_env/components/a11y/a11y_servicer_test.py +224 -0
- android_env/components/action_fns.py +132 -0
- android_env/components/action_fns_test.py +227 -0
- android_env/components/action_type.py +26 -3
- android_env/components/adb_call_parser.py +239 -196
- android_env/components/adb_call_parser_test.py +179 -209
- android_env/components/adb_controller.py +90 -52
- android_env/components/adb_controller_test.py +187 -16
- android_env/components/adb_log_stream.py +17 -5
- android_env/components/adb_log_stream_test.py +17 -3
- android_env/components/app_screen_checker.py +17 -15
- android_env/components/app_screen_checker_test.py +7 -8
- android_env/components/config_classes.py +203 -0
- android_env/components/coordinator.py +102 -338
- android_env/components/coordinator_test.py +59 -199
- android_env/components/device_settings.py +174 -0
- android_env/components/device_settings_test.py +228 -0
- android_env/components/dumpsys_thread.py +3 -4
- android_env/components/dumpsys_thread_test.py +1 -1
- android_env/components/errors.py +52 -10
- android_env/components/errors_test.py +110 -0
- android_env/components/log_stream.py +7 -5
- android_env/components/log_stream_test.py +1 -1
- android_env/components/logcat_thread.py +9 -8
- android_env/components/logcat_thread_test.py +3 -4
- android_env/components/{utils.py → pixel_fns.py} +20 -20
- android_env/components/{utils_test.py → pixel_fns_test.py} +20 -15
- android_env/components/setup_step_interpreter.py +47 -39
- android_env/components/setup_step_interpreter_test.py +4 -4
- android_env/components/simulators/__init__.py +1 -1
- android_env/components/simulators/base_simulator.py +116 -44
- android_env/components/simulators/base_simulator_test.py +131 -9
- android_env/components/simulators/emulator/__init__.py +1 -1
- android_env/components/simulators/emulator/emulator_launcher.py +67 -77
- android_env/components/simulators/emulator/emulator_launcher_test.py +153 -49
- android_env/components/simulators/emulator/emulator_simulator.py +276 -95
- android_env/components/simulators/emulator/emulator_simulator_test.py +314 -89
- android_env/components/simulators/fake/__init__.py +1 -1
- android_env/components/simulators/fake/fake_simulator.py +17 -25
- android_env/components/simulators/fake/fake_simulator_test.py +29 -12
- android_env/components/specs.py +18 -28
- android_env/components/specs_test.py +1 -44
- android_env/components/task_manager.py +48 -48
- android_env/components/task_manager_test.py +71 -60
- android_env/env_interface.py +37 -23
- android_env/environment.py +83 -51
- android_env/environment_test.py +68 -29
- android_env/loader.py +57 -43
- android_env/loader_test.py +115 -35
- android_env/proto/__init__.py +1 -1
- android_env/proto/a11y/__init__.py +15 -0
- android_env/proto/a11y/a11y.proto +75 -0
- android_env/proto/a11y/a11y_pb2.py +54 -0
- android_env/proto/a11y/a11y_pb2.pyi +49 -0
- android_env/proto/a11y/a11y_pb2_grpc.py +202 -0
- android_env/proto/a11y/android_accessibility_action.proto +32 -0
- android_env/proto/a11y/android_accessibility_action_pb2.py +37 -0
- android_env/proto/a11y/android_accessibility_action_pb2.pyi +13 -0
- android_env/proto/a11y/android_accessibility_action_pb2_grpc.py +24 -0
- android_env/proto/a11y/android_accessibility_forest.proto +29 -0
- android_env/proto/a11y/android_accessibility_forest_pb2.py +38 -0
- android_env/proto/a11y/android_accessibility_forest_pb2.pyi +13 -0
- android_env/proto/a11y/android_accessibility_forest_pb2_grpc.py +24 -0
- android_env/proto/a11y/android_accessibility_node_info.proto +122 -0
- android_env/proto/a11y/android_accessibility_node_info_clickable_span.proto +49 -0
- android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2.py +39 -0
- android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2.pyi +28 -0
- android_env/proto/a11y/android_accessibility_node_info_clickable_span_pb2_grpc.py +24 -0
- android_env/proto/a11y/android_accessibility_node_info_pb2.py +42 -0
- android_env/proto/a11y/android_accessibility_node_info_pb2.pyi +75 -0
- android_env/proto/a11y/android_accessibility_node_info_pb2_grpc.py +24 -0
- android_env/proto/a11y/android_accessibility_tree.proto +29 -0
- android_env/proto/a11y/android_accessibility_tree_pb2.py +38 -0
- android_env/proto/a11y/android_accessibility_tree_pb2.pyi +13 -0
- android_env/proto/a11y/android_accessibility_tree_pb2_grpc.py +24 -0
- android_env/proto/a11y/android_accessibility_window_info.proto +84 -0
- android_env/proto/a11y/android_accessibility_window_info_pb2.py +41 -0
- android_env/proto/a11y/android_accessibility_window_info_pb2.pyi +48 -0
- android_env/proto/a11y/android_accessibility_window_info_pb2_grpc.py +24 -0
- android_env/proto/a11y/rect.proto +30 -0
- android_env/proto/a11y/rect_pb2.py +37 -0
- android_env/proto/a11y/rect_pb2.pyi +17 -0
- android_env/proto/a11y/rect_pb2_grpc.py +24 -0
- android_env/proto/adb.proto +17 -6
- android_env/proto/adb_pb2.py +120 -107
- android_env/proto/adb_pb2.pyi +396 -0
- android_env/proto/adb_pb2_grpc.py +20 -0
- android_env/proto/emulator_controller.proto +68 -63
- android_env/proto/emulator_controller_pb2.py +142 -131
- android_env/proto/emulator_controller_pb2.pyi +672 -0
- android_env/proto/emulator_controller_pb2_grpc.py +505 -142
- android_env/proto/snapshot.proto +169 -0
- android_env/proto/snapshot_pb2.py +47 -0
- android_env/proto/snapshot_pb2.pyi +117 -0
- android_env/proto/snapshot_pb2_grpc.py +24 -0
- android_env/proto/snapshot_service.proto +289 -0
- android_env/proto/snapshot_service_pb2.py +54 -0
- android_env/proto/snapshot_service_pb2.pyi +86 -0
- android_env/proto/snapshot_service_pb2_grpc.py +487 -0
- android_env/proto/state.proto +63 -0
- android_env/proto/state_pb2.py +63 -0
- android_env/proto/state_pb2.pyi +85 -0
- android_env/proto/state_pb2_grpc.py +24 -0
- android_env/proto/task.proto +5 -1
- android_env/proto/task_pb2.py +42 -31
- android_env/proto/task_pb2.pyi +160 -0
- android_env/proto/task_pb2_grpc.py +20 -0
- android_env/wrappers/__init__.py +1 -1
- android_env/wrappers/a11y_grpc_wrapper.py +500 -0
- android_env/wrappers/a11y_grpc_wrapper_test.py +849 -0
- android_env/wrappers/base_wrapper.py +34 -13
- android_env/wrappers/base_wrapper_test.py +22 -16
- android_env/wrappers/discrete_action_wrapper.py +18 -17
- android_env/wrappers/discrete_action_wrapper_test.py +4 -4
- android_env/wrappers/flat_interface_wrapper.py +5 -5
- android_env/wrappers/flat_interface_wrapper_test.py +7 -11
- android_env/wrappers/float_pixels_wrapper.py +9 -10
- android_env/wrappers/float_pixels_wrapper_test.py +3 -3
- android_env/wrappers/gym_wrapper.py +19 -13
- android_env/wrappers/gym_wrapper_test.py +3 -5
- android_env/wrappers/image_rescale_wrapper.py +18 -21
- android_env/wrappers/image_rescale_wrapper_test.py +25 -37
- android_env/wrappers/last_action_wrapper.py +16 -13
- android_env/wrappers/last_action_wrapper_test.py +44 -51
- android_env/wrappers/rate_limit_wrapper.py +6 -3
- android_env/wrappers/rate_limit_wrapper_test.py +22 -1
- android_env/wrappers/tap_action_wrapper.py +16 -17
- android_env/wrappers/tap_action_wrapper_test.py +51 -16
- {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/METADATA +14 -18
- android_env-1.2.3.dist-info/RECORD +141 -0
- {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/WHEEL +1 -1
- android_env/proto/raw_observation.proto +0 -39
- android_env/proto/raw_observation_pb2.py +0 -27
- android_env/proto/raw_observation_pb2_grpc.py +0 -4
- android_env-1.2.1.dist-info/RECORD +0 -81
- {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info/licenses}/LICENSE +0 -0
- {android_env-1.2.1.dist-info → android_env-1.2.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
+
import grpc
|
4
|
+
import warnings
|
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/a11y/rect_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
|
+
)
|
android_env/proto/adb.proto
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
// Copyright
|
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.
|
@@ -25,8 +25,15 @@ message AdbRequest {
|
|
25
25
|
string path = 1;
|
26
26
|
}
|
27
27
|
|
28
|
+
// A byte sequence of a single APK file.
|
29
|
+
message Blob {
|
30
|
+
// The serialized file as bytes.
|
31
|
+
bytes contents = 1;
|
32
|
+
}
|
33
|
+
|
28
34
|
oneof location {
|
29
35
|
Filesystem filesystem = 2;
|
36
|
+
Blob blob = 6;
|
30
37
|
}
|
31
38
|
}
|
32
39
|
|
@@ -42,10 +49,14 @@ message AdbRequest {
|
|
42
49
|
bool force_stop = 3;
|
43
50
|
}
|
44
51
|
|
45
|
-
message
|
46
|
-
|
47
|
-
string action =
|
48
|
-
|
52
|
+
message SendBroadcast {
|
53
|
+
// Action to send during the broadcast event.
|
54
|
+
string action = 1;
|
55
|
+
|
56
|
+
// Specify the component name with package name prefix to create an explicit
|
57
|
+
// intent, such as com.example.app/.ExampleActivity (see -n specification at
|
58
|
+
// https://developer.android.com/tools/adb#IntentSpec).
|
59
|
+
string component = 2;
|
49
60
|
}
|
50
61
|
|
51
62
|
message UninstallPackage {
|
@@ -282,7 +293,6 @@ message AdbRequest {
|
|
282
293
|
Tap tap = 6;
|
283
294
|
PressButton press_button = 7;
|
284
295
|
StartScreenPinning start_screen_pinning = 10;
|
285
|
-
StartIntent start_intent = 15;
|
286
296
|
UninstallPackage uninstall_package = 16;
|
287
297
|
GetCurrentActivity get_current_activity = 17;
|
288
298
|
GetOrientationRequest get_orientation = 24;
|
@@ -293,6 +303,7 @@ message AdbRequest {
|
|
293
303
|
GenericRequest generic = 22;
|
294
304
|
PackageManagerRequest package_manager = 23;
|
295
305
|
DumpsysRequest dumpsys = 26;
|
306
|
+
SendBroadcast send_broadcast = 25;
|
296
307
|
}
|
297
308
|
|
298
309
|
// Optional (soft) deadline in seconds for completing this command.
|
android_env/proto/adb_pb2.py
CHANGED
@@ -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/adb.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/adb.proto'
|
19
|
+
)
|
9
20
|
# @@protoc_insertion_point(imports)
|
10
21
|
|
11
22
|
_sym_db = _symbol_database.Default()
|
@@ -13,111 +24,113 @@ _sym_db = _symbol_database.Default()
|
|
13
24
|
|
14
25
|
|
15
26
|
|
16
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x61ndroid_env/proto/adb.proto\x12\x0b\x61ndroid_env\"\
|
17
|
-
|
18
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
19
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.adb_pb2', globals())
|
20
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x61ndroid_env/proto/adb.proto\x12\x0b\x61ndroid_env\"\x83\x1c\n\nAdbRequest\x12\x39\n\x0binstall_apk\x18\x01 \x01(\x0b\x32\".android_env.AdbRequest.InstallApkH\x00\x12?\n\x0estart_activity\x18\x02 \x01(\x0b\x32%.android_env.AdbRequest.StartActivityH\x00\x12\x37\n\nforce_stop\x18\x03 \x01(\x0b\x32!.android_env.AdbRequest.ForceStopH\x00\x12*\n\x03tap\x18\x06 \x01(\x0b\x32\x1b.android_env.AdbRequest.TapH\x00\x12;\n\x0cpress_button\x18\x07 \x01(\x0b\x32#.android_env.AdbRequest.PressButtonH\x00\x12J\n\x14start_screen_pinning\x18\n \x01(\x0b\x32*.android_env.AdbRequest.StartScreenPinningH\x00\x12\x45\n\x11uninstall_package\x18\x10 \x01(\x0b\x32(.android_env.AdbRequest.UninstallPackageH\x00\x12J\n\x14get_current_activity\x18\x11 \x01(\x0b\x32*.android_env.AdbRequest.GetCurrentActivityH\x00\x12H\n\x0fget_orientation\x18\x18 \x01(\x0b\x32-.android_env.AdbRequest.GetOrientationRequestH\x00\x12,\n\x04push\x18\x12 \x01(\x0b\x32\x1c.android_env.AdbRequest.PushH\x00\x12,\n\x04pull\x18\x13 \x01(\x0b\x32\x1c.android_env.AdbRequest.PullH\x00\x12\x37\n\ninput_text\x18\x14 \x01(\x0b\x32!.android_env.AdbRequest.InputTextH\x00\x12;\n\x08settings\x18\x15 \x01(\x0b\x32\'.android_env.AdbRequest.SettingsRequestH\x00\x12\x39\n\x07generic\x18\x16 \x01(\x0b\x32&.android_env.AdbRequest.GenericRequestH\x00\x12H\n\x0fpackage_manager\x18\x17 \x01(\x0b\x32-.android_env.AdbRequest.PackageManagerRequestH\x00\x12\x39\n\x07\x64umpsys\x18\x1a \x01(\x0b\x32&.android_env.AdbRequest.DumpsysRequestH\x00\x12?\n\x0esend_broadcast\x18\x19 \x01(\x0b\x32%.android_env.AdbRequest.SendBroadcastH\x00\x12\x13\n\x0btimeout_sec\x18\x64 \x01(\x02\x1a\xcc\x01\n\nInstallApk\x12\x43\n\nfilesystem\x18\x02 \x01(\x0b\x32-.android_env.AdbRequest.InstallApk.FilesystemH\x00\x12\x37\n\x04\x62lob\x18\x06 \x01(\x0b\x32\'.android_env.AdbRequest.InstallApk.BlobH\x00\x1a\x1a\n\nFilesystem\x12\x0c\n\x04path\x18\x01 \x01(\t\x1a\x18\n\x04\x42lob\x12\x10\n\x08\x63ontents\x18\x01 \x01(\x0c\x42\n\n\x08location\x1aN\n\rStartActivity\x12\x15\n\rfull_activity\x18\x01 \x01(\t\x12\x12\n\nextra_args\x18\x02 \x03(\t\x12\x12\n\nforce_stop\x18\x03 \x01(\x08\x1a\x32\n\rSendBroadcast\x12\x0e\n\x06\x61\x63tion\x18\x01 \x01(\t\x12\x11\n\tcomponent\x18\x02 \x01(\t\x1a(\n\x10UninstallPackage\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x1a!\n\tForceStop\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x1a\x1b\n\x03Tap\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x1ar\n\x0bPressButton\x12:\n\x06\x62utton\x18\x01 \x01(\x0e\x32*.android_env.AdbRequest.PressButton.Button\"\'\n\x06\x42utton\x12\x08\n\x04HOME\x10\x00\x12\x08\n\x04\x42\x41\x43K\x10\x01\x12\t\n\x05\x45NTER\x10\x02\x1a+\n\x12StartScreenPinning\x12\x15\n\rfull_activity\x18\x01 \x01(\t\x1a\x14\n\x12GetCurrentActivity\x1a\x17\n\x15GetOrientationRequest\x1a%\n\x04Push\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x0c\n\x04path\x18\x02 \x01(\t\x1a\x14\n\x04Pull\x12\x0c\n\x04path\x18\x01 \x01(\t\x1a\x19\n\tInputText\x12\x0c\n\x04text\x18\x01 \x01(\t\x1a\xea\x05\n\x0fSettingsRequest\x12\x45\n\nname_space\x18\x01 \x01(\x0e\x32\x31.android_env.AdbRequest.SettingsRequest.Namespace\x12:\n\x03get\x18\x02 \x01(\x0b\x32+.android_env.AdbRequest.SettingsRequest.GetH\x00\x12:\n\x03put\x18\x03 \x01(\x0b\x32+.android_env.AdbRequest.SettingsRequest.PutH\x00\x12\x44\n\ndelete_key\x18\x04 \x01(\x0b\x32..android_env.AdbRequest.SettingsRequest.DeleteH\x00\x12>\n\x05reset\x18\x05 \x01(\x0b\x32-.android_env.AdbRequest.SettingsRequest.ResetH\x00\x12<\n\x04list\x18\x06 \x01(\x0b\x32,.android_env.AdbRequest.SettingsRequest.ListH\x00\x1a\x12\n\x03Get\x12\x0b\n\x03key\x18\x01 \x01(\t\x1a!\n\x03Put\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x1a\x15\n\x06\x44\x65lete\x12\x0b\n\x03key\x18\x01 \x01(\t\x1a\xb7\x01\n\x05Reset\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x12@\n\x04mode\x18\x02 \x01(\x0e\x32\x32.android_env.AdbRequest.SettingsRequest.Reset.Mode\"V\n\x04Mode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x16\n\x12UNTRUSTED_DEFAULTS\x10\x01\x12\x13\n\x0fUNTRUSTED_CLEAR\x10\x02\x12\x14\n\x10TRUSTED_DEFAULTS\x10\x03\x1a\x06\n\x04List\"<\n\tNamespace\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06SYSTEM\x10\x01\x12\n\n\x06SECURE\x10\x02\x12\n\n\x06GLOBAL\x10\x03\x42\x06\n\x04verb\x1a\x1e\n\x0eGenericRequest\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\t\x1a\x9f\x05\n\x15PackageManagerRequest\x12\x42\n\x04list\x18\x01 \x01(\x0b\x32\x32.android_env.AdbRequest.PackageManagerRequest.ListH\x00\x12\x44\n\x05\x63lear\x18\x02 \x01(\x0b\x32\x33.android_env.AdbRequest.PackageManagerRequest.ClearH\x00\x12\x44\n\x05grant\x18\x03 \x01(\x0b\x32\x33.android_env.AdbRequest.PackageManagerRequest.GrantH\x00\x1a\xc9\x02\n\x04List\x12O\n\x08\x66\x65\x61tures\x18\x01 \x01(\x0b\x32;.android_env.AdbRequest.PackageManagerRequest.List.FeaturesH\x00\x12Q\n\tlibraries\x18\x02 \x01(\x0b\x32<.android_env.AdbRequest.PackageManagerRequest.List.LibrariesH\x00\x12O\n\x08packages\x18\x03 \x01(\x0b\x32;.android_env.AdbRequest.PackageManagerRequest.List.PackagesH\x00\x1a\n\n\x08\x46\x65\x61tures\x1a\x0b\n\tLibraries\x1a+\n\x08Packages\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x0f\n\x07options\x18\x02 \x03(\tB\x06\n\x04what\x1a.\n\x05\x43lear\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x1a\x32\n\x05Grant\x12\x14\n\x0cpackage_name\x18\x01 \x01(\t\x12\x13\n\x0bpermissions\x18\x02 \x03(\tB\x06\n\x04verb\x1a\xa6\x02\n\x0e\x44umpsysRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0c\n\x04\x61rgs\x18\x02 \x03(\t\x12\x11\n\tlist_only\x18\x03 \x01(\x08\x12\x13\n\x0btimeout_sec\x18\x04 \x01(\x05\x12\x12\n\ntimeout_ms\x18\x05 \x01(\x05\x12\x0b\n\x03pid\x18\x06 \x01(\x08\x12\r\n\x05proto\x18\x07 \x01(\x08\x12\x46\n\x08priority\x18\x08 \x01(\x0e\x32\x34.android_env.AdbRequest.DumpsysRequest.PriorityLevel\x12\x15\n\rskip_services\x18\t \x03(\t\">\n\rPriorityLevel\x12\t\n\x05UNSET\x10\x00\x12\n\n\x06NORMAL\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\x0c\n\x08\x43RITICAL\x10\x03\x42\t\n\x07\x63ommand\"\xb2\x0c\n\x0b\x41\x64\x62Response\x12/\n\x06status\x18\x01 \x01(\x0e\x32\x1f.android_env.AdbResponse.Status\x12\x15\n\rerror_message\x18\x02 \x01(\t\x12\x32\n\x05stats\x18\x03 \x03(\x0b\x32#.android_env.AdbResponse.StatsEntry\x12S\n\x14get_current_activity\x18\n \x01(\x0b\x32\x33.android_env.AdbResponse.GetCurrentActivityResponseH\x00\x12H\n\x0estart_activity\x18\x0b \x01(\x0b\x32..android_env.AdbResponse.StartActivityResponseH\x00\x12\x44\n\x0cpress_button\x18\x0c \x01(\x0b\x32,.android_env.AdbResponse.PressButtonResponseH\x00\x12\x35\n\x04push\x18\r \x01(\x0b\x32%.android_env.AdbResponse.PushResponseH\x00\x12\x35\n\x04pull\x18\x0e \x01(\x0b\x32%.android_env.AdbResponse.PullResponseH\x00\x12@\n\ninput_text\x18\x0f \x01(\x0b\x32*.android_env.AdbResponse.InputTextResponseH\x00\x12=\n\x08settings\x18\x10 \x01(\x0b\x32).android_env.AdbResponse.SettingsResponseH\x00\x12;\n\x07generic\x18\x11 \x01(\x0b\x32(.android_env.AdbResponse.GenericResponseH\x00\x12J\n\x0fpackage_manager\x18\x12 \x01(\x0b\x32/.android_env.AdbResponse.PackageManagerResponseH\x00\x12J\n\x0fget_orientation\x18\x13 \x01(\x0b\x32/.android_env.AdbResponse.GetOrientationResponseH\x00\x12;\n\x07\x64umpsys\x18\x15 \x01(\x0b\x32(.android_env.AdbResponse.DumpsysResponseH\x00\x1a,\n\nStatsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x1a\x33\n\x1aGetCurrentActivityResponse\x12\x15\n\rfull_activity\x18\x01 \x01(\t\x1a-\n\x16GetOrientationResponse\x12\x13\n\x0borientation\x18\x01 \x01(\x05\x1a>\n\x15StartActivityResponse\x12\x15\n\rfull_activity\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\x0c\x1a%\n\x13PressButtonResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\x1a\x0e\n\x0cPushResponse\x1a\x1f\n\x0cPullResponse\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x1a\x13\n\x11InputTextResponse\x1a\"\n\x10SettingsResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\x1a!\n\x0fGenericResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\x1a\x8d\x01\n\x16PackageManagerResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\x12\x44\n\x04list\x18\x02 \x01(\x0b\x32\x34.android_env.AdbResponse.PackageManagerResponse.ListH\x00\x1a\x15\n\x04List\x12\r\n\x05items\x18\x01 \x03(\tB\x06\n\x04verb\x1a!\n\x0f\x44umpsysResponse\x12\x0e\n\x06output\x18\x01 \x01(\x0c\"}\n\x06Status\x12\r\n\tUNDEFINED\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x13\n\x0fUNKNOWN_COMMAND\x10\x02\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\x03\x12\x12\n\x0eINTERNAL_ERROR\x10\x04\x12\r\n\tADB_ERROR\x10\x05\x12\x0b\n\x07TIMEOUT\x10\x06\x42\t\n\x07payloadb\x06proto3')
|
21
28
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
29
|
+
_globals = globals()
|
30
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
31
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'android_env.proto.adb_pb2', _globals)
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
33
|
+
DESCRIPTOR._loaded_options = None
|
34
|
+
_globals['_ADBRESPONSE_STATSENTRY']._loaded_options = None
|
35
|
+
_globals['_ADBRESPONSE_STATSENTRY']._serialized_options = b'8\001'
|
36
|
+
_globals['_ADBREQUEST']._serialized_start=45
|
37
|
+
_globals['_ADBREQUEST']._serialized_end=3632
|
38
|
+
_globals['_ADBREQUEST_INSTALLAPK']._serialized_start=1131
|
39
|
+
_globals['_ADBREQUEST_INSTALLAPK']._serialized_end=1335
|
40
|
+
_globals['_ADBREQUEST_INSTALLAPK_FILESYSTEM']._serialized_start=1271
|
41
|
+
_globals['_ADBREQUEST_INSTALLAPK_FILESYSTEM']._serialized_end=1297
|
42
|
+
_globals['_ADBREQUEST_INSTALLAPK_BLOB']._serialized_start=1299
|
43
|
+
_globals['_ADBREQUEST_INSTALLAPK_BLOB']._serialized_end=1323
|
44
|
+
_globals['_ADBREQUEST_STARTACTIVITY']._serialized_start=1337
|
45
|
+
_globals['_ADBREQUEST_STARTACTIVITY']._serialized_end=1415
|
46
|
+
_globals['_ADBREQUEST_SENDBROADCAST']._serialized_start=1417
|
47
|
+
_globals['_ADBREQUEST_SENDBROADCAST']._serialized_end=1467
|
48
|
+
_globals['_ADBREQUEST_UNINSTALLPACKAGE']._serialized_start=1469
|
49
|
+
_globals['_ADBREQUEST_UNINSTALLPACKAGE']._serialized_end=1509
|
50
|
+
_globals['_ADBREQUEST_FORCESTOP']._serialized_start=1511
|
51
|
+
_globals['_ADBREQUEST_FORCESTOP']._serialized_end=1544
|
52
|
+
_globals['_ADBREQUEST_TAP']._serialized_start=1546
|
53
|
+
_globals['_ADBREQUEST_TAP']._serialized_end=1573
|
54
|
+
_globals['_ADBREQUEST_PRESSBUTTON']._serialized_start=1575
|
55
|
+
_globals['_ADBREQUEST_PRESSBUTTON']._serialized_end=1689
|
56
|
+
_globals['_ADBREQUEST_PRESSBUTTON_BUTTON']._serialized_start=1650
|
57
|
+
_globals['_ADBREQUEST_PRESSBUTTON_BUTTON']._serialized_end=1689
|
58
|
+
_globals['_ADBREQUEST_STARTSCREENPINNING']._serialized_start=1691
|
59
|
+
_globals['_ADBREQUEST_STARTSCREENPINNING']._serialized_end=1734
|
60
|
+
_globals['_ADBREQUEST_GETCURRENTACTIVITY']._serialized_start=1736
|
61
|
+
_globals['_ADBREQUEST_GETCURRENTACTIVITY']._serialized_end=1756
|
62
|
+
_globals['_ADBREQUEST_GETORIENTATIONREQUEST']._serialized_start=1758
|
63
|
+
_globals['_ADBREQUEST_GETORIENTATIONREQUEST']._serialized_end=1781
|
64
|
+
_globals['_ADBREQUEST_PUSH']._serialized_start=1783
|
65
|
+
_globals['_ADBREQUEST_PUSH']._serialized_end=1820
|
66
|
+
_globals['_ADBREQUEST_PULL']._serialized_start=1822
|
67
|
+
_globals['_ADBREQUEST_PULL']._serialized_end=1842
|
68
|
+
_globals['_ADBREQUEST_INPUTTEXT']._serialized_start=1844
|
69
|
+
_globals['_ADBREQUEST_INPUTTEXT']._serialized_end=1869
|
70
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST']._serialized_start=1872
|
71
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST']._serialized_end=2618
|
72
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_GET']._serialized_start=2278
|
73
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_GET']._serialized_end=2296
|
74
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_PUT']._serialized_start=2298
|
75
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_PUT']._serialized_end=2331
|
76
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_DELETE']._serialized_start=2333
|
77
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_DELETE']._serialized_end=2354
|
78
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_RESET']._serialized_start=2357
|
79
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_RESET']._serialized_end=2540
|
80
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_RESET_MODE']._serialized_start=2454
|
81
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_RESET_MODE']._serialized_end=2540
|
82
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_LIST']._serialized_start=2542
|
83
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_LIST']._serialized_end=2548
|
84
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_NAMESPACE']._serialized_start=2550
|
85
|
+
_globals['_ADBREQUEST_SETTINGSREQUEST_NAMESPACE']._serialized_end=2610
|
86
|
+
_globals['_ADBREQUEST_GENERICREQUEST']._serialized_start=2620
|
87
|
+
_globals['_ADBREQUEST_GENERICREQUEST']._serialized_end=2650
|
88
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST']._serialized_start=2653
|
89
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST']._serialized_end=3324
|
90
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST']._serialized_start=2887
|
91
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST']._serialized_end=3216
|
92
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_FEATURES']._serialized_start=3140
|
93
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_FEATURES']._serialized_end=3150
|
94
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_LIBRARIES']._serialized_start=3152
|
95
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_LIBRARIES']._serialized_end=3163
|
96
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_PACKAGES']._serialized_start=3165
|
97
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_LIST_PACKAGES']._serialized_end=3208
|
98
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_CLEAR']._serialized_start=3218
|
99
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_CLEAR']._serialized_end=3264
|
100
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_GRANT']._serialized_start=3266
|
101
|
+
_globals['_ADBREQUEST_PACKAGEMANAGERREQUEST_GRANT']._serialized_end=3316
|
102
|
+
_globals['_ADBREQUEST_DUMPSYSREQUEST']._serialized_start=3327
|
103
|
+
_globals['_ADBREQUEST_DUMPSYSREQUEST']._serialized_end=3621
|
104
|
+
_globals['_ADBREQUEST_DUMPSYSREQUEST_PRIORITYLEVEL']._serialized_start=3559
|
105
|
+
_globals['_ADBREQUEST_DUMPSYSREQUEST_PRIORITYLEVEL']._serialized_end=3621
|
106
|
+
_globals['_ADBRESPONSE']._serialized_start=3635
|
107
|
+
_globals['_ADBRESPONSE']._serialized_end=5221
|
108
|
+
_globals['_ADBRESPONSE_STATSENTRY']._serialized_start=4516
|
109
|
+
_globals['_ADBRESPONSE_STATSENTRY']._serialized_end=4560
|
110
|
+
_globals['_ADBRESPONSE_GETCURRENTACTIVITYRESPONSE']._serialized_start=4562
|
111
|
+
_globals['_ADBRESPONSE_GETCURRENTACTIVITYRESPONSE']._serialized_end=4613
|
112
|
+
_globals['_ADBRESPONSE_GETORIENTATIONRESPONSE']._serialized_start=4615
|
113
|
+
_globals['_ADBRESPONSE_GETORIENTATIONRESPONSE']._serialized_end=4660
|
114
|
+
_globals['_ADBRESPONSE_STARTACTIVITYRESPONSE']._serialized_start=4662
|
115
|
+
_globals['_ADBRESPONSE_STARTACTIVITYRESPONSE']._serialized_end=4724
|
116
|
+
_globals['_ADBRESPONSE_PRESSBUTTONRESPONSE']._serialized_start=4726
|
117
|
+
_globals['_ADBRESPONSE_PRESSBUTTONRESPONSE']._serialized_end=4763
|
118
|
+
_globals['_ADBRESPONSE_PUSHRESPONSE']._serialized_start=4765
|
119
|
+
_globals['_ADBRESPONSE_PUSHRESPONSE']._serialized_end=4779
|
120
|
+
_globals['_ADBRESPONSE_PULLRESPONSE']._serialized_start=4781
|
121
|
+
_globals['_ADBRESPONSE_PULLRESPONSE']._serialized_end=4812
|
122
|
+
_globals['_ADBRESPONSE_INPUTTEXTRESPONSE']._serialized_start=4814
|
123
|
+
_globals['_ADBRESPONSE_INPUTTEXTRESPONSE']._serialized_end=4833
|
124
|
+
_globals['_ADBRESPONSE_SETTINGSRESPONSE']._serialized_start=4835
|
125
|
+
_globals['_ADBRESPONSE_SETTINGSRESPONSE']._serialized_end=4869
|
126
|
+
_globals['_ADBRESPONSE_GENERICRESPONSE']._serialized_start=4871
|
127
|
+
_globals['_ADBRESPONSE_GENERICRESPONSE']._serialized_end=4904
|
128
|
+
_globals['_ADBRESPONSE_PACKAGEMANAGERRESPONSE']._serialized_start=4907
|
129
|
+
_globals['_ADBRESPONSE_PACKAGEMANAGERRESPONSE']._serialized_end=5048
|
130
|
+
_globals['_ADBRESPONSE_PACKAGEMANAGERRESPONSE_LIST']._serialized_start=5019
|
131
|
+
_globals['_ADBRESPONSE_PACKAGEMANAGERRESPONSE_LIST']._serialized_end=5040
|
132
|
+
_globals['_ADBRESPONSE_DUMPSYSRESPONSE']._serialized_start=5050
|
133
|
+
_globals['_ADBRESPONSE_DUMPSYSRESPONSE']._serialized_end=5083
|
134
|
+
_globals['_ADBRESPONSE_STATUS']._serialized_start=5085
|
135
|
+
_globals['_ADBRESPONSE_STATUS']._serialized_end=5210
|
123
136
|
# @@protoc_insertion_point(module_scope)
|