Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(computer-server): replace ADB screencap with gRPC EmulatorController (#1208)
ddupont625f97f35c35
diff --git a/libs/python/computer-server/computer_server/handlers/_grpc_emulator/__init__.py b/libs/python/computer-server/computer_server/handlers/_grpc_emulator/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2.py b/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2.pynew file mode 100644index 0000000000..194652032e--- /dev/null+++ b/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2.py@@ -0,0 +1,215 @@+# -*- coding: utf-8 -*-+# Generated by the protocol buffer compiler. DO NOT EDIT!+# NO CHECKED-IN PROTOBUF GENCODE+# source: emulator_controller.proto+# Protobuf Python Version: 6.31.1+"""Generated protocol buffer code."""+from google.protobuf import descriptor as _descriptor+from google.protobuf import descriptor_pool as _descriptor_pool+from google.protobuf import runtime_version as _runtime_version+from google.protobuf import symbol_database as _symbol_database+from google.protobuf.internal import builder as _builder++_runtime_version.ValidateProtobufRuntimeVersion(+ _runtime_version.Domain.PUBLIC, 6, 31, 1, "", "emulator_controller.proto"+)+# @@protoc_insertion_point(imports)++_sym_db = _symbol_database.Default()+++DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(+ b'\n\x19\x65mulator_controller.proto\x12\x19\x61ndroid.emulation.control\x1a\x1bgoogle/protobuf/empty.proto"\xf9\x01\n\nVmRunState\x12=\n\x05state\x18\x01 \x01(\x0e\x32..android.emulation.control.VmRunState.RunState"\xab\x01\n\x08RunState\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0e\n\nRESTORE_VM\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0b\n\x07SAVE_VM\x10\x04\x12\x0c\n\x08SHUTDOWN\x10\x05\x12\r\n\tTERMINATE\x10\x07\x12\t\n\x05RESET\x10\t\x12\x12\n\x0eINTERNAL_ERROR\x10\n\x12\x0b\n\x07RESTART\x10\x0b\x12\t\n\x05START\x10\x0c\x12\x08\n\x04STOP\x10\r""\n\x0eParameterValue\x12\x10\n\x04\x64\x61ta\x18\x01 \x03(\x02\x42\x02\x10\x01"\x80\x05\n\x12PhysicalModelValue\x12J\n\x06target\x18\x01 \x01(\x0e\x32:.android.emulation.control.PhysicalModelValue.PhysicalType\x12\x43\n\x06status\x18\x02 \x01(\x0e\x32\x33.android.emulation.control.PhysicalModelValue.State\x12\x38\n\x05value\x18\x03 \x01(\x0b\x32).android.emulation.control.ParameterValue"U\n\x05State\x12\x06\n\x02OK\x10\x00\x12\x17\n\nNO_SERVICE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x15\n\x08\x44ISABLED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x14\n\x07UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01"\xc7\x02\n\x0cPhysicalType\x12\x0c\n\x08POSITION\x10\x00\x12\x0c\n\x08ROTATION\x10\x01\x12\x12\n\x0eMAGNETIC_FIELD\x10\x02\x12\x0f\n\x0bTEMPERATURE\x10\x03\x12\r\n\tPROXIMITY\x10\x04\x12\t\n\x05LIGHT\x10\x05\x12\x0c\n\x08PRESSURE\x10\x06\x12\x0c\n\x08HUMIDITY\x10\x07\x12\x0c\n\x08VELOCITY\x10\x08\x12\x12\n\x0e\x41MBIENT_MOTION\x10\t\x12\x10\n\x0cHINGE_ANGLE0\x10\n\x12\x10\n\x0cHINGE_ANGLE1\x10\x0b\x12\x10\n\x0cHINGE_ANGLE2\x10\x0c\x12\r\n\tROLLABLE0\x10\r\x12\r\n\tROLLABLE1\x10\x0e\x12\r\n\tROLLABLE2\x10\x0f\x12\x0b\n\x07POSTURE\x10\x10\x12\x0e\n\nHEART_RATE\x10\x11\x12\x0e\n\nRGBC_LIGHT\x10\x12\x12\x0e\n\nWRIST_TILT\x10\x13"\xc4\x04\n\x0bSensorValue\x12\x41\n\x06target\x18\x01 \x01(\x0e\x32\x31.android.emulation.control.SensorValue.SensorType\x12<\n\x06status\x18\x02 \x01(\x0e\x32,.android.emulation.control.SensorValue.State\x12\x38\n\x05value\x18\x03 \x01(\x0b\x32).android.emulation.control.ParameterValue"U\n\x05State\x12\x06\n\x02OK\x10\x00\x12\x17\n\nNO_SERVICE\x10\xfd\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x15\n\x08\x44ISABLED\x10\xfe\xff\xff\xff\xff\xff\xff\xff\xff\x01\x12\x14\n\x07UNKNOWN\x10\xff\xff\xff\xff\xff\xff\xff\xff\xff\x01"\xa2\x02\n\nSensorType\x12\x10\n\x0c\x41\x43\x43\x45LERATION\x10\x00\x12\r\n\tGYROSCOPE\x10\x01\x12\x12\n\x0eMAGNETIC_FIELD\x10\x02\x12\x0f\n\x0bORIENTATION\x10\x03\x12\x0f\n\x0bTEMPERATURE\x10\x04\x12\r\n\tPROXIMITY\x10\x05\x12\t\n\x05LIGHT\x10\x06\x12\x0c\n\x08PRESSURE\x10\x07\x12\x0c\n\x08HUMIDITY\x10\x08\x12\x1f\n\x1bMAGNETIC_FIELD_UNCALIBRATED\x10\t\x12\x1a\n\x16GYROSCOPE_UNCALIBRATED\x10\n\x12\x0e\n\nHEART_RATE\x10\x0e\x12\x0e\n\nRGBC_LIGHT\x10\x0f\x12\x1d\n\x19\x41\x43\x43\x45LERATION_UNCALIBRATED\x10\x11\x12\x0b\n\x07HEADING\x10\x12"\x96\x01\n\x0f\x42rightnessValue\x12\x44\n\x06target\x18\x01 \x01(\x0e\x32\x34.android.emulation.control.BrightnessValue.LightType\x12\r\n\x05value\x18\x02 \x01(\r".\n\tLightType\x12\x07\n\x03LCD\x10\x00\x12\x0c\n\x08KEYBOARD\x10\x01\x12\n\n\x06\x42UTTON\x10\x02"I\n\x0b\x44isplayMode\x12:\n\x05value\x18\x01 \x01(\x0e\x32+.android.emulation.control.DisplayModeValue"\xae\x01\n\tXrOptions\x12\x45\n\x0b\x65nvironment\x18\x01 \x01(\x0e\x32\x30.android.emulation.control.XrOptions.Environment\x12\x1f\n\x17passthrough_coefficient\x18\x02 \x01(\x02"9\n\x0b\x45nvironment\x12\x13\n\x0fLIVING_ROOM_DAY\x10\x00\x12\x15\n\x11LIVING_ROOM_NIGHT\x10\x01"\xda\x01\n\nLogMessage\x12\x10\n\x08\x63ontents\x18\x01 \x01(\t\x12\x11\n\x05start\x18\x02 \x01(\x03\x42\x02\x18\x01\x12\x10\n\x04next\x18\x03 \x01(\x03\x42\x02\x18\x01\x12;\n\x04sort\x18\x04 \x01(\x0e\x32-.android.emulation.control.LogMessage.LogType\x12\x37\n\x07\x65ntries\x18\x05 \x03(\x0b\x32&.android.emulation.control.LogcatEntry"\x1f\n\x07LogType\x12\x08\n\x04Text\x10\x00\x12\n\n\x06Parsed\x10\x01"\x86\x02\n\x0bLogcatEntry\x12\x11\n\ttimestamp\x18\x01 \x01(\x04\x12\x0b\n\x03pid\x18\x02 \x01(\r\x12\x0b\n\x03tid\x18\x03 \x01(\r\x12>\n\x05level\x18\x04 \x01(\x0e\x32/.android.emulation.control.LogcatEntry.LogLevel\x12\x0b\n\x03tag\x18\x05 \x01(\t\x12\x0b\n\x03msg\x18\x06 \x01(\t"p\n\x08LogLevel\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0b\n\x07VERBOSE\x10\x02\x12\t\n\x05\x44\x45\x42UG\x10\x03\x12\x08\n\x04INFO\x10\x04\x12\x08\n\x04WARN\x10\x05\x12\x07\n\x03\x45RR\x10\x06\x12\t\n\x05\x46\x41TAL\x10\x07\x12\n\n\x06SILENT\x10\x08"\xf5\x01\n\x0fVmConfiguration\x12S\n\x0ehypervisorType\x18\x01 \x01(\x0e\x32;.android.emulation.control.VmConfiguration.VmHypervisorType\x12\x18\n\x10numberOfCpuCores\x18\x02 \x01(\x05\x12\x14\n\x0cramSizeBytes\x18\x03 \x01(\x03"]\n\x10VmHypervisorType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x07\n\x03KVM\x10\x02\x12\x0c\n\x04HAXM\x10\x03\x1a\x02\x08\x01\x12\x07\n\x03HVF\x10\x04\x12\x08\n\x04WHPX\x10\x05\x12\x08\n\x04\x41\x45HD\x10\x06"\x18\n\x08\x43lipData\x12\x0c\n\x04text\x18\x01 \x01(\t"\x8f\x02\n\x05Touch\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\x12\n\nidentifier\x18\x03 \x01(\x05\x12\x10\n\x08pressure\x18\x04 \x01(\x05\x12\x13\n\x0btouch_major\x18\x05 \x01(\x05\x12\x13\n\x0btouch_minor\x18\x06 \x01(\x05\x12\x44\n\nexpiration\x18\x07 \x01(\x0e\x32\x30.android.emulation.control.Touch.EventExpiration\x12\x13\n\x0borientation\x18\x08 \x01(\x05"E\n\x0f\x45ventExpiration\x12 \n\x1c\x45VENT_EXPIRATION_UNSPECIFIED\x10\x00\x12\x10\n\x0cNEVER_EXPIRE\x10\x01"i\n\x03Pen\x12\x32\n\x08location\x18\x01 \x01(\x0b\x32 .android.emulation.control.Touch\x12\x16\n\x0e\x62utton_pressed\x18\x02 \x01(\x08\x12\x16\n\x0erubber_pointer\x18\x03 \x01(\x08"P\n\nTouchEvent\x12\x31\n\x07touches\x18\x01 \x03(\x0b\x32 .android.emulation.control.Touch\x12\x0f\n\x07\x64isplay\x18\x02 \x01(\x05"T\n\rTouchpadEvent\x12\x31\n\x07touches\x18\x01 \x03(\x0b\x32 .android.emulation.control.Touch\x12\x10\n\x08touchpad\x18\x02 \x01(\x05"K\n\x08PenEvent\x12.\n\x06\x65vents\x18\x01 \x03(\x0b\x32\x1e.android.emulation.control.Pen\x12\x0f\n\x07\x64isplay\x18\x02 \x01(\x05"D\n\nMouseEvent\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\x0f\n\x07\x62uttons\x18\x03 \x01(\x05\x12\x0f\n\x07\x64isplay\x18\x04 \x01(\x05"5\n\nWheelEvent\x12\n\n\x02\x64x\x18\x01 \x01(\x05\x12\n\n\x02\x64y\x18\x02 \x01(\x05\x12\x0f\n\x07\x64isplay\x18\x03 \x01(\x05"\xc1\x02\n\rKeyboardEvent\x12\x46\n\x08\x63odeType\x18\x01 \x01(\x0e\x32\x34.android.emulation.control.KeyboardEvent.KeyCodeType\x12H\n\teventType\x18\x02 \x01(\x0e\x32\x35.android.emulation.control.KeyboardEvent.KeyEventType\x12\x0f\n\x07keyCode\x18\x03 \x01(\x05\x12\x0b\n\x03key\x18\x04 \x01(\t\x12\x0c\n\x04text\x18\x05 \x01(\t"<\n\x0bKeyCodeType\x12\x07\n\x03Usb\x10\x00\x12\t\n\x05\x45vdev\x10\x01\x12\x07\n\x03XKB\x10\x02\x12\x07\n\x03Win\x10\x03\x12\x07\n\x03Mac\x10\x04"4\n\x0cKeyEventType\x12\x0b\n\x07keydown\x10\x00\x12\t\n\x05keyup\x10\x01\x12\x0c\n\x08keypress\x10\x02"`\n\tXrCommand\x12;\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32+.android.emulation.control.XrCommand.Action"\x16\n\x06\x41\x63tion\x12\x0c\n\x08RECENTER\x10\x00"\xbc\x07\n\nInputEvent\x12=\n\tkey_event\x18\x01 \x01(\x0b\x32(.android.emulation.control.KeyboardEventH\x00\x12<\n\x0btouch_event\x18\x02 \x01(\x0b\x32%.android.emulation.control.TouchEventH\x00\x12<\n\x0bmouse_event\x18\x03 \x01(\x0b\x32%.android.emulation.control.MouseEventH\x00\x12@\n\randroid_event\x18\x04 \x01(\x0b\x32\'.android.emulation.control.AndroidEventH\x00\x12\x38\n\tpen_event\x18\x05 \x01(\x0b\x32#.android.emulation.control.PenEventH\x00\x12<\n\x0bwheel_event\x18\x06 \x01(\x0b\x32%.android.emulation.control.WheelEventH\x00\x12>\n\rxr_hand_event\x18\x07 \x01(\x0b\x32%.android.emulation.control.MouseEventH\x00\x12=\n\x0cxr_eye_event\x18\x08 \x01(\x0b\x32%.android.emulation.control.MouseEventH\x00\x12:\n\nxr_command\x18\t \x01(\x0b\x32$.android.emulation.control.XrCommandH\x00\x12K\n\x16xr_head_rotation_event\x18\n \x01(\x0b\x32).android.emulation.control.RotationRadianH\x00\x12H\n\x16xr_head_movement_event\x18\x0b \x01(\x0b\x32&.android.emulation.control.TranslationH\x00\x12T\n\x1exr_head_angular_velocity_event\x18\x0c \x01(\x0b\x32*.android.emulation.control.AngularVelocityH\x00\x12\x45\n\x16xr_head_velocity_event\x18\r \x01(\x0b\x32#.android.emulation.control.VelocityH\x00\x12\x42\n\x0etouchpad_event\x18\x0e \x01(\x0b\x32(.android.emulation.control.TouchpadEventH\x00\x42\x06\n\x04type"J\n\x0c\x41ndroidEvent\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x0c\n\x04\x63ode\x18\x02 \x01(\x05\x12\r\n\x05value\x18\x03 \x01(\x05\x12\x0f\n\x07\x64isplay\x18\x04 \x01(\x05"2\n\x0b\x46ingerprint\x12\x12\n\nisTouching\x18\x01 \x01(\x08\x12\x0f\n\x07touchId\x18\x02 \x01(\x05"\x8c\x01\n\x08GpsState\x12\x15\n\rpassiveUpdate\x18\x01 \x01(\x08\x12\x10\n\x08latitude\x18\x02 \x01(\x01\x12\x11\n\tlongitude\x18\x03 \x01(\x01\x12\r\n\x05speed\x18\x04 \x01(\x01\x12\x0f\n\x07\x62\x65\x61ring\x18\x05 \x01(\x01\x12\x10\n\x08\x61ltitude\x18\x06 \x01(\x01\x12\x12\n\nsatellites\x18\x07 \x01(\x05"\x87\x04\n\x0c\x42\x61tteryState\x12\x12\n\nhasBattery\x18\x01 \x01(\x08\x12\x11\n\tisPresent\x18\x02 \x01(\x08\x12G\n\x07\x63harger\x18\x03 \x01(\x0e\x32\x36.android.emulation.control.BatteryState.BatteryCharger\x12\x13\n\x0b\x63hargeLevel\x18\x04 \x01(\x05\x12\x45\n\x06health\x18\x05 \x01(\x0e\x32\x35.android.emulation.control.BatteryState.BatteryHealth\x12\x45\n\x06status\x18\x06 \x01(\x0e\x32\x35.android.emulation.control.BatteryState.BatteryStatus"W\n\rBatteryStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43HARGING\x10\x01\x12\x0f\n\x0b\x44ISCHARGING\x10\x02\x12\x10\n\x0cNOT_CHARGING\x10\x03\x12\x08\n\x04\x46ULL\x10\x04"9\n\x0e\x42\x61tteryCharger\x12\x08\n\x04NONE\x10\x00\x12\x06\n\x02\x41\x43\x10\x01\x12\x07\n\x03USB\x10\x02\x12\x0c\n\x08WIRELESS\x10\x03"P\n\rBatteryHealth\x12\x08\n\x04GOOD\x10\x00\x12\n\n\x06\x46\x41ILED\x10\x01\x12\x08\n\x04\x44\x45\x41\x44\x10\x02\x12\x0f\n\x0bOVERVOLTAGE\x10\x03\x12\x0e\n\nOVERHEATED\x10\x04"\xae\x01\n\x0eImageTransport\x12K\n\x07\x63hannel\x18\x01 \x01(\x0e\x32:.android.emulation.control.ImageTransport.TransportChannel\x12\x0e\n\x06handle\x18\x02 \x01(\t"?\n\x10TransportChannel\x12!\n\x1dTRANSPORT_CHANNEL_UNSPECIFIED\x10\x00\x12\x08\n\x04MMAP\x10\x01"P\n\rFoldedDisplay\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x0f\n\x07xOffset\x18\x03 \x01(\r\x12\x0f\n\x07yOffset\x18\x04 \x01(\r"\xa7\x03\n\x0bImageFormat\x12@\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x30.android.emulation.control.ImageFormat.ImgFormat\x12\x35\n\x08rotation\x18\x02 \x01(\x0b\x32#.android.emulation.control.Rotation\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x0f\n\x07\x64isplay\x18\x05 \x01(\r\x12<\n\ttransport\x18\x06 \x01(\x0b\x32).android.emulation.control.ImageTransport\x12?\n\rfoldedDisplay\x18\x07 \x01(\x0b\x32(.android.emulation.control.FoldedDisplay\x12@\n\x0b\x64isplayMode\x18\x08 \x01(\x0e\x32+.android.emulation.control.DisplayModeValue".\n\tImgFormat\x12\x07\n\x03PNG\x10\x00\x12\x0c\n\x08RGBA8888\x10\x01\x12\n\n\x06RGB888\x10\x02"\x97\x01\n\x05Image\x12\x36\n\x06\x66ormat\x18\x01 \x01(\x0b\x32&.android.emulation.control.ImageFormat\x12\x11\n\x05width\x18\x02 \x01(\rB\x02\x18\x01\x12\x12\n\x06height\x18\x03 \x01(\rB\x02\x18\x01\x12\r\n\x05image\x18\x04 \x01(\x0c\x12\x0b\n\x03seq\x18\x05 \x01(\r\x12\x13\n\x0btimestampUs\x18\x06 \x01(\x04"\xd5\x01\n\x08Rotation\x12\x42\n\x08rotation\x18\x01 \x01(\x0e\x32\x30.android.emulation.control.Rotation.SkinRotation\x12\r\n\x05xAxis\x18\x02 \x01(\x01\x12\r\n\x05yAxis\x18\x03 \x01(\x01\x12\r\n\x05zAxis\x18\x04 \x01(\x01"X\n\x0cSkinRotation\x12\x0c\n\x08PORTRAIT\x10\x00\x12\r\n\tLANDSCAPE\x10\x01\x12\x14\n\x10REVERSE_PORTRAIT\x10\x02\x12\x15\n\x11REVERSE_LANDSCAPE\x10\x03"\xf4\x01\n\tPhoneCall\x12\x41\n\toperation\x18\x01 \x01(\x0e\x32..android.emulation.control.PhoneCall.Operation\x12\x0e\n\x06number\x18\x02 \x01(\t"\x93\x01\n\tOperation\x12\x0c\n\x08InitCall\x10\x00\x12\x0e\n\nAcceptCall\x10\x01\x12\x16\n\x12RejectCallExplicit\x10\x02\x12\x12\n\x0eRejectCallBusy\x10\x03\x12\x12\n\x0e\x44isconnectCall\x10\x04\x12\x13\n\x0fPlaceCallOnHold\x10\x05\x12\x13\n\x0fTakeCallOffHold\x10\x06"\xbc\x01\n\rPhoneResponse\x12\x43\n\x08response\x18\x01 \x01(\x0e\x32\x31.android.emulation.control.PhoneResponse.Response"f\n\x08Response\x12\x06\n\x02OK\x10\x00\x12\x10\n\x0c\x42\x61\x64Operation\x10\x01\x12\r\n\tBadNumber\x10\x02\x12\x11\n\rInvalidAction\x10\x03\x12\x10\n\x0c\x41\x63tionFailed\x10\x04\x12\x0c\n\x08RadioOff\x10\x05"#\n\x05\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"<\n\tEntryList\x12/\n\x05\x65ntry\x18\x01 \x03(\x0b\x32 .android.emulation.control.Entry"\xd5\x02\n\x0e\x45mulatorStatus\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x0e\n\x06uptime\x18\x02 \x01(\x04\x12\x0e\n\x06\x62ooted\x18\x03 \x01(\x08\x12<\n\x08vmConfig\x18\x04 \x01(\x0b\x32*.android.emulation.control.VmConfiguration\x12<\n\x0ehardwareConfig\x18\x05 \x01(\x0b\x32$.android.emulation.control.EntryList\x12\x11\n\theartbeat\x18\x06 \x01(\x04\x12O\n\x0bguestConfig\x18\x07 \x03(\x0b\x32:.android.emulation.control.EmulatorStatus.GuestConfigEntry\x1a\x32\n\x10GuestConfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xfb\x02\n\x0b\x41udioFormat\x12\x14\n\x0csamplingRate\x18\x01 \x01(\x04\x12\x41\n\x08\x63hannels\x18\x02 \x01(\x0e\x32/.android.emulation.control.AudioFormat.Channels\x12\x43\n\x06\x66ormat\x18\x03 \x01(\x0e\x32\x33.android.emulation.control.AudioFormat.SampleFormat\x12\x41\n\x04mode\x18\x04 \x01(\x0e\x32\x33.android.emulation.control.AudioFormat.DeliveryMode"/\n\x0cSampleFormat\x12\x0e\n\nAUD_FMT_U8\x10\x00\x12\x0f\n\x0b\x41UD_FMT_S16\x10\x01" \n\x08\x43hannels\x12\x08\n\x04Mono\x10\x00\x12\n\n\x06Stereo\x10\x01"8\n\x0c\x44\x65liveryMode\x12\x14\n\x10MODE_UNSPECIFIED\x10\x00\x12\x12\n\x0eMODE_REAL_TIME\x10\x01"g\n\x0b\x41udioPacket\x12\x36\n\x06\x66ormat\x18\x01 \x01(\x0b\x32&.android.emulation.control.AudioFormat\x12\x11\n\ttimestamp\x18\x02 \x01(\x04\x12\r\n\x05\x61udio\x18\x03 \x01(\x0c".\n\nSmsMessage\x12\x12\n\nsrcAddress\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t"\xcb\x02\n\x14\x44isplayConfiguration\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x0b\n\x03\x64pi\x18\x03 \x01(\r\x12\r\n\x05\x66lags\x18\x04 \x01(\r\x12\x0f\n\x07\x64isplay\x18\x05 \x01(\r"\xe6\x01\n\x0c\x44isplayFlags\x12\x1c\n\x18\x44ISPLAYFLAGS_UNSPECIFIED\x10\x00\x12\x1f\n\x1bVIRTUAL_DISPLAY_FLAG_PUBLIC\x10\x01\x12%\n!VIRTUAL_DISPLAY_FLAG_PRESENTATION\x10\x02\x12\x1f\n\x1bVIRTUAL_DISPLAY_FLAG_SECURE\x10\x04\x12)\n%VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY\x10\x08\x12$\n VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR\x10\x10"\x89\x01\n\x15\x44isplayConfigurations\x12\x41\n\x08\x64isplays\x18\x01 \x03(\x0b\x32/.android.emulation.control.DisplayConfiguration\x12\x18\n\x10userConfigurable\x18\x02 \x01(\r\x12\x13\n\x0bmaxDisplays\x18\x03 \x01(\r"\x9b\x04\n\x0cNotification\x12K\n\x12\x63\x61meraNotification\x18\x02 \x01(\x0b\x32-.android.emulation.control.CameraNotificationH\x00\x12w\n(displayConfigurationsChangedNotification\x18\x03 \x01(\x0b\x32\x43.android.emulation.control.DisplayConfigurationsChangedNotificationH\x00\x12\x35\n\x07posture\x18\x04 \x01(\x0b\x32".android.emulation.control.PostureH\x00\x12\x46\n\x06\x62ooted\x18\x05 \x01(\x0b\x32\x34.android.emulation.control.BootCompletedNotificationH\x00\x12@\n\nbrightness\x18\x06 \x01(\x0b\x32*.android.emulation.control.BrightnessValueH\x00\x12\x41\n\rtextViewFocus\x18\x07 \x01(\x0b\x32(.android.emulation.control.TextViewFocusH\x00\x12\x39\n\txrOptions\x18\x08 \x01(\x0b\x32$.android.emulation.control.XrOptionsH\x00\x42\x06\n\x04type")\n\x19\x42ootCompletedNotification\x12\x0c\n\x04time\x18\x01 \x01(\x05"5\n\x12\x43\x61meraNotification\x12\x0e\n\x06\x61\x63tive\x18\x01 \x01(\x08\x12\x0f\n\x07\x64isplay\x18\x02 \x01(\x05":\n\rTextViewFocus\x12\x18\n\x10textViewHasFocus\x18\x01 \x01(\x08\x12\x0f\n\x07\x64isplay\x18\x02 \x01(\x05"{\n(DisplayConfigurationsChangedNotification\x12O\n\x15\x64isplayConfigurations\x18\x01 \x01(\x0b\x32\x30.android.emulation.control.DisplayConfigurations"1\n\x0eRotationRadian\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02"@\n\x0bTranslation\x12\x0f\n\x07\x64\x65lta_x\x18\x01 \x01(\x02\x12\x0f\n\x07\x64\x65lta_y\x18\x02 \x01(\x02\x12\x0f\n\x07\x64\x65lta_z\x18\x03 \x01(\x02"D\n\x0f\x41ngularVelocity\x12\x0f\n\x07omega_x\x18\x01 \x01(\x02\x12\x0f\n\x07omega_y\x18\x02 \x01(\x02\x12\x0f\n\x07omega_z\x18\x03 \x01(\x02"+\n\x08Velocity\x12\t\n\x01x\x18\x01 \x01(\x02\x12\t\n\x01y\x18\x02 \x01(\x02\x12\t\n\x01z\x18\x03 \x01(\x02"\xe8\x01\n\x07Posture\x12>\n\x05value\x18\x03 \x01(\x0e\x32/.android.emulation.control.Posture.PostureValue"\x9c\x01\n\x0cPostureValue\x12\x13\n\x0fPOSTURE_UNKNOWN\x10\x00\x12\x12\n\x0ePOSTURE_CLOSED\x10\x01\x12\x17\n\x13POSTURE_HALF_OPENED\x10\x02\x12\x12\n\x0ePOSTURE_OPENED\x10\x03\x12\x13\n\x0fPOSTURE_FLIPPED\x10\x04\x12\x10\n\x0cPOSTURE_TENT\x10\x05\x12\x0f\n\x0bPOSTURE_MAX\x10\x06"\x1d\n\x0bPhoneNumber\x12\x0e\n\x06number\x18\x01 \x01(\t*D\n\x10\x44isplayModeValue\x12\t\n\x05PHONE\x10\x00\x12\x0c\n\x08\x46OLDABLE\x10\x01\x12\n\n\x06TABLET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x32\xa6\x1e\n\x12\x45mulatorController\x12\x62\n\x0cstreamSensor\x12&.android.emulation.control.SensorValue\x1a&.android.emulation.control.SensorValue"\x00\x30\x01\x12]\n\tgetSensor\x12&.android.emulation.control.SensorValue\x1a&.android.emulation.control.SensorValue"\x00\x12M\n\tsetSensor\x12&.android.emulation.control.SensorValue\x1a\x16.google.protobuf.Empty"\x00\x12[\n\x10setPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a\x16.google.protobuf.Empty"\x00\x12r\n\x10getPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a-.android.emulation.control.PhysicalModelValue"\x00\x12w\n\x13streamPhysicalModel\x12-.android.emulation.control.PhysicalModelValue\x1a-.android.emulation.control.PhysicalModelValue"\x00\x30\x01\x12M\n\x0csetClipboard\x12#.android.emulation.control.ClipData\x1a\x16.google.protobuf.Empty"\x00\x12M\n\x0cgetClipboard\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.ClipData"\x00\x12R\n\x0fstreamClipboard\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.ClipData"\x00\x30\x01\x12O\n\nsetBattery\x12\'.android.emulation.control.BatteryState\x1a\x16.google.protobuf.Empty"\x00\x12O\n\ngetBattery\x12\x16.google.protobuf.Empty\x1a\'.android.emulation.control.BatteryState"\x00\x12G\n\x06setGps\x12#.android.emulation.control.GpsState\x1a\x16.google.protobuf.Empty"\x00\x12G\n\x06getGps\x12\x16.google.protobuf.Empty\x1a#.android.emulation.control.GpsState"\x00\x12S\n\x0fsendFingerprint\x12&.android.emulation.control.Fingerprint\x1a\x16.google.protobuf.Empty"\x00\x12M\n\x07sendKey\x12(.android.emulation.control.KeyboardEvent\x1a\x16.google.protobuf.Empty"\x00\x12L\n\tsendTouch\x12%.android.emulation.control.TouchEvent\x1a\x16.google.protobuf.Empty"\x00\x12L\n\tsendMouse\x12%.android.emulation.control.MouseEvent\x1a\x16.google.protobuf.Empty"\x00\x12P\n\x0binjectWheel\x12%.android.emulation.control.WheelEvent\x1a\x16.google.protobuf.Empty"\x00(\x01\x12U\n\x10streamInputEvent\x12%.android.emulation.control.InputEvent\x1a\x16.google.protobuf.Empty"\x00(\x01\x12]\n\tsendPhone\x12$.android.emulation.control.PhoneCall\x1a(.android.emulation.control.PhoneResponse"\x00\x12\\\n\x07sendSms\x12%.android.emulation.control.SmsMessage\x1a(.android.emulation.control.PhoneResponse"\x00\x12\x64\n\x0esetPhoneNumber\x12&.android.emulation.control.PhoneNumber\x1a(.android.emulation.control.PhoneResponse"\x00\x12P\n\tgetStatus\x12\x16.google.protobuf.Empty\x1a).android.emulation.control.EmulatorStatus"\x00\x12[\n\rgetScreenshot\x12&.android.emulation.control.ImageFormat\x1a .android.emulation.control.Image"\x00\x12`\n\x10streamScreenshot\x12&.android.emulation.control.ImageFormat\x1a .android.emulation.control.Image"\x00\x30\x01\x12\x61\n\x0bstreamAudio\x12&.android.emulation.control.AudioFormat\x1a&.android.emulation.control.AudioPacket"\x00\x30\x01\x12Q\n\x0binjectAudio\x12&.android.emulation.control.AudioPacket\x1a\x16.google.protobuf.Empty"\x00(\x01\x12^\n\tgetLogcat\x12%.android.emulation.control.LogMessage\x1a%.android.emulation.control.LogMessage"\x03\x88\x02\x01\x12`\n\x0cstreamLogcat\x12%.android.emulation.control.LogMessage\x1a%.android.emulation.control.LogMessage"\x00\x30\x01\x12M\n\nsetVmState\x12%.android.emulation.control.VmRunState\x1a\x16.google.protobuf.Empty"\x00\x12M\n\ngetVmState\x12\x16.google.protobuf.Empty\x1a%.android.emulation.control.VmRunState"\x00\x12\x80\x01\n\x18setDisplayConfigurations\x12\x30.android.emulation.control.DisplayConfigurations\x1a\x30.android.emulation.control.DisplayConfigurations"\x00\x12\x66\n\x18getDisplayConfigurations\x12\x16.google.protobuf.Empty\x1a\x30.android.emulation.control.DisplayConfigurations"\x00\x12Y\n\x12streamNotification\x12\x16.google.protobuf.Empty\x1a\'.android.emulation.control.Notification"\x00\x30\x01\x12_\n\x18rotateVirtualSceneCamera\x12).android.emulation.control.RotationRadian\x1a\x16.google.protobuf.Empty"\x00\x12^\n\x1dsetVirtualSceneCameraVelocity\x12#.android.emulation.control.Velocity\x1a\x16.google.protobuf.Empty"\x00\x12J\n\nsetPosture\x12".android.emulation.control.Posture\x1a\x16.google.protobuf.Empty"\x00\x12i\n\rgetBrightness\x12*.android.emulation.control.BrightnessValue\x1a*.android.emulation.control.BrightnessValue"\x00\x12U\n\rsetBrightness\x12*.android.emulation.control.BrightnessValue\x1a\x16.google.protobuf.Empty"\x00\x12R\n\x0egetDisplayMode\x12\x16.google.protobuf.Empty\x1a&.android.emulation.control.DisplayMode"\x00\x12R\n\x0esetDisplayMode\x12&.android.emulation.control.DisplayMode\x1a\x16.google.protobuf.Empty"\x00\x12N\n\x0csetXrOptions\x12$.android.emulation.control.XrOptions\x1a\x16.google.protobuf.Empty"\x00\x12N\n\x0cgetXrOptions\x12\x16.google.protobuf.Empty\x1a$.android.emulation.control.XrOptions"\x00\x42&\n\x1c\x63om.android.emulator.controlP\x01\xa2\x02\x03\x41\x45\x43\x62\x06proto3'+)++_globals = globals()+_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)+_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "emulator_controller_pb2", _globals)+if not _descriptor._USE_C_DESCRIPTORS:+ _globals["DESCRIPTOR"]._loaded_options = None+ _globals["DESCRIPTOR"]._serialized_options = (+ b"\n\034com.android.emulator.controlP\001\242\002\003AEC"+ )+ _globals["_PARAMETERVALUE"].fields_by_name["data"]._loaded_options = None+ _globals["_PARAMETERVALUE"].fields_by_name["data"]._serialized_options = b"\020\001"+ _globals["_LOGMESSAGE"].fields_by_name["start"]._loaded_options = None+ _globals["_LOGMESSAGE"].fields_by_name["start"]._serialized_options = b"\030\001"+ _globals["_LOGMESSAGE"].fields_by_name["next"]._loaded_options = None+ _globals["_LOGMESSAGE"].fields_by_name["next"]._serialized_options = b"\030\001"+ _globals["_VMCONFIGURATION_VMHYPERVISORTYPE"].values_by_name["HAXM"]._loaded_options = None+ _globals["_VMCONFIGURATION_VMHYPERVISORTYPE"].values_by_name[+ "HAXM"+ ]._serialized_options = b"\010\001"+ _globals["_IMAGE"].fields_by_name["width"]._loaded_options = None+ _globals["_IMAGE"].fields_by_name["width"]._serialized_options = b"\030\001"+ _globals["_IMAGE"].fields_by_name["height"]._loaded_options = None+ _globals["_IMAGE"].fields_by_name["height"]._serialized_options = b"\030\001"+ _globals["_EMULATORSTATUS_GUESTCONFIGENTRY"]._loaded_options = None+ _globals["_EMULATORSTATUS_GUESTCONFIGENTRY"]._serialized_options = b"8\001"+ _globals["_EMULATORCONTROLLER"].methods_by_name["getLogcat"]._loaded_options = None+ _globals["_EMULATORCONTROLLER"].methods_by_name[+ "getLogcat"+ ]._serialized_options = b"\210\002\001"+ _globals["_DISPLAYMODEVALUE"]._serialized_start = 9957+ _globals["_DISPLAYMODEVALUE"]._serialized_end = 10025+ _globals["_VMRUNSTATE"]._serialized_start = 86+ _globals["_VMRUNSTATE"]._serialized_end = 335+ _globals["_VMRUNSTATE_RUNSTATE"]._serialized_start = 164+ _globals["_VMRUNSTATE_RUNSTATE"]._serialized_end = 335+ _globals["_PARAMETERVALUE"]._serialized_start = 337+ _globals["_PARAMETERVALUE"]._serialized_end = 371+ _globals["_PHYSICALMODELVALUE"]._serialized_start = 374+ _globals["_PHYSICALMODELVALUE"]._serialized_end = 1014+ _globals["_PHYSICALMODELVALUE_STATE"]._serialized_start = 599+ _globals["_PHYSICALMODELVALUE_STATE"]._serialized_end = 684+ _globals["_PHYSICALMODELVALUE_PHYSICALTYPE"]._serialized_start = 687+ _globals["_PHYSICALMODELVALUE_PHYSICALTYPE"]._serialized_end = 1014+ _globals["_SENSORVALUE"]._serialized_start = 1017+ _globals["_SENSORVALUE"]._serialized_end = 1597+ _globals["_SENSORVALUE_STATE"]._serialized_start = 599+ _globals["_SENSORVALUE_STATE"]._serialized_end = 684+ _globals["_SENSORVALUE_SENSORTYPE"]._serialized_start = 1307+ _globals["_SENSORVALUE_SENSORTYPE"]._serialized_end = 1597+ _globals["_BRIGHTNESSVALUE"]._serialized_start = 1600+ _globals["_BRIGHTNESSVALUE"]._serialized_end = 1750+ _globals["_BRIGHTNESSVALUE_LIGHTTYPE"]._serialized_start = 1704+ _globals["_BRIGHTNESSVALUE_LIGHTTYPE"]._serialized_end = 1750+ _globals["_DISPLAYMODE"]._serialized_start = 1752+ _globals["_DISPLAYMODE"]._serialized_end = 1825+ _globals["_XROPTIONS"]._serialized_start = 1828+ _globals["_XROPTIONS"]._serialized_end = 2002+ _globals["_XROPTIONS_ENVIRONMENT"]._serialized_start = 1945+ _globals["_XROPTIONS_ENVIRONMENT"]._serialized_end = 2002+ _globals["_LOGMESSAGE"]._serialized_start = 2005+ _globals["_LOGMESSAGE"]._serialized_end = 2223+ _globals["_LOGMESSAGE_LOGTYPE"]._serialized_start = 2192+ _globals["_LOGMESSAGE_LOGTYPE"]._serialized_end = 2223+ _globals["_LOGCATENTRY"]._serialized_start = 2226+ _globals["_LOGCATENTRY"]._serialized_end = 2488+ _globals["_LOGCATENTRY_LOGLEVEL"]._serialized_start = 2376+ _globals["_LOGCATENTRY_LOGLEVEL"]._serialized_end = 2488+ _globals["_VMCONFIGURATION"]._serialized_start = 2491+ _globals["_VMCONFIGURATION"]._serialized_end = 2736+ _globals["_VMCONFIGURATION_VMHYPERVISORTYPE"]._serialized_start = 2643+ _globals["_VMCONFIGURATION_VMHYPERVISORTYPE"]._serialized_end = 2736+ _globals["_CLIPDATA"]._serialized_start = 2738+ _globals["_CLIPDATA"]._serialized_end = 2762+ _globals["_TOUCH"]._serialized_start = 2765+ _globals["_TOUCH"]._serialized_end = 3036+ _globals["_TOUCH_EVENTEXPIRATION"]._serialized_start = 2967+ _globals["_TOUCH_EVENTEXPIRATION"]._serialized_end = 3036+ _globals["_PEN"]._serialized_start = 3038+ _globals["_PEN"]._serialized_end = 3143+ _globals["_TOUCHEVENT"]._serialized_start = 3145+ _globals["_TOUCHEVENT"]._serialized_end = 3225+ _globals["_TOUCHPADEVENT"]._serialized_start = 3227+ _globals["_TOUCHPADEVENT"]._serialized_end = 3311+ _globals["_PENEVENT"]._serialized_start = 3313+ _globals["_PENEVENT"]._serialized_end = 3388+ _globals["_MOUSEEVENT"]._serialized_start = 3390+ _globals["_MOUSEEVENT"]._serialized_end = 3458+ _globals["_WHEELEVENT"]._serialized_start = 3460+ _globals["_WHEELEVENT"]._serialized_end = 3513+ _globals["_KEYBOARDEVENT"]._serialized_start = 3516+ _globals["_KEYBOARDEVENT"]._serialized_end = 3837+ _globals["_KEYBOARDEVENT_KEYCODETYPE"]._serialized_start = 3723+ _globals["_KEYBOARDEVENT_KEYCODETYPE"]._serialized_end = 3783+ _globals["_KEYBOARDEVENT_KEYEVENTTYPE"]._serialized_start = 3785+ _globals["_KEYBOARDEVENT_KEYEVENTTYPE"]._serialized_end = 3837+ _globals["_XRCOMMAND"]._serialized_start = 3839+ _globals["_XRCOMMAND"]._serialized_end = 3935+ _globals["_XRCOMMAND_ACTION"]._serialized_start = 3913+ _globals["_XRCOMMAND_ACTION"]._serialized_end = 3935+ _globals["_INPUTEVENT"]._serialized_start = 3938+ _globals["_INPUTEVENT"]._serialized_end = 4894+ _globals["_ANDROIDEVENT"]._serialized_start = 4896+ _globals["_ANDROIDEVENT"]._serialized_end = 4970+ _globals["_FINGERPRINT"]._serialized_start = 4972+ _globals["_FINGERPRINT"]._serialized_end = 5022+ _globals["_GPSSTATE"]._serialized_start = 5025+ _globals["_GPSSTATE"]._serialized_end = 5165+ _globals["_BATTERYSTATE"]._serialized_start = 5168+ _globals["_BATTERYSTATE"]._serialized_end = 5687+ _globals["_BATTERYSTATE_BATTERYSTATUS"]._serialized_start = 5459+ _globals["_BATTERYSTATE_BATTERYSTATUS"]._serialized_end = 5546+ _globals["_BATTERYSTATE_BATTERYCHARGER"]._serialized_start = 5548+ _globals["_BATTERYSTATE_BATTERYCHARGER"]._serialized_end = 5605+ _globals["_BATTERYSTATE_BATTERYHEALTH"]._serialized_start = 5607+ _globals["_BATTERYSTATE_BATTERYHEALTH"]._serialized_end = 5687+ _globals["_IMAGETRANSPORT"]._serialized_start = 5690+ _globals["_IMAGETRANSPORT"]._serialized_end = 5864+ _globals["_IMAGETRANSPORT_TRANSPORTCHANNEL"]._serialized_start = 5801+ _globals["_IMAGETRANSPORT_TRANSPORTCHANNEL"]._serialized_end = 5864+ _globals["_FOLDEDDISPLAY"]._serialized_start = 5866+ _globals["_FOLDEDDISPLAY"]._serialized_end = 5946+ _globals["_IMAGEFORMAT"]._serialized_start = 5949+ _globals["_IMAGEFORMAT"]._serialized_end = 6372+ _globals["_IMAGEFORMAT_IMGFORMAT"]._serialized_start = 6326+ _globals["_IMAGEFORMAT_IMGFORMAT"]._serialized_end = 6372+ _globals["_IMAGE"]._serialized_start = 6375+ _globals["_IMAGE"]._serialized_end = 6526+ _globals["_ROTATION"]._serialized_start = 6529+ _globals["_ROTATION"]._serialized_end = 6742+ _globals["_ROTATION_SKINROTATION"]._serialized_start = 6654+ _globals["_ROTATION_SKINROTATION"]._serialized_end = 6742+ _globals["_PHONECALL"]._serialized_start = 6745+ _globals["_PHONECALL"]._serialized_end = 6989+ _globals["_PHONECALL_OPERATION"]._serialized_start = 6842+ _globals["_PHONECALL_OPERATION"]._serialized_end = 6989+ _globals["_PHONERESPONSE"]._serialized_start = 6992+ _globals["_PHONERESPONSE"]._serialized_end = 7180+ _globals["_PHONERESPONSE_RESPONSE"]._serialized_start = 7078+ _globals["_PHONERESPONSE_RESPONSE"]._serialized_end = 7180+ _globals["_ENTRY"]._serialized_start = 7182+ _globals["_ENTRY"]._serialized_end = 7217+ _globals["_ENTRYLIST"]._serialized_start = 7219+ _globals["_ENTRYLIST"]._serialized_end = 7279+ _globals["_EMULATORSTATUS"]._serialized_start = 7282+ _globals["_EMULATORSTATUS"]._serialized_end = 7623+ _globals["_EMULATORSTATUS_GUESTCONFIGENTRY"]._serialized_start = 7573+ _globals["_EMULATORSTATUS_GUESTCONFIGENTRY"]._serialized_end = 7623+ _globals["_AUDIOFORMAT"]._serialized_start = 7626+ _globals["_AUDIOFORMAT"]._serialized_end = 8005+ _globals["_AUDIOFORMAT_SAMPLEFORMAT"]._serialized_start = 7866+ _globals["_AUDIOFORMAT_SAMPLEFORMAT"]._serialized_end = 7913+ _globals["_AUDIOFORMAT_CHANNELS"]._serialized_start = 7915+ _globals["_AUDIOFORMAT_CHANNELS"]._serialized_end = 7947+ _globals["_AUDIOFORMAT_DELIVERYMODE"]._serialized_start = 7949+ _globals["_AUDIOFORMAT_DELIVERYMODE"]._serialized_end = 8005+ _globals["_AUDIOPACKET"]._serialized_start = 8007+ _globals["_AUDIOPACKET"]._serialized_end = 8110+ _globals["_SMSMESSAGE"]._serialized_start = 8112+ _globals["_SMSMESSAGE"]._serialized_end = 8158+ _globals["_DISPLAYCONFIGURATION"]._serialized_start = 8161+ _globals["_DISPLAYCONFIGURATION"]._serialized_end = 8492+ _globals["_DISPLAYCONFIGURATION_DISPLAYFLAGS"]._serialized_start = 8262+ _globals["_DISPLAYCONFIGURATION_DISPLAYFLAGS"]._serialized_end = 8492+ _globals["_DISPLAYCONFIGURATIONS"]._serialized_start = 8495+ _globals["_DISPLAYCONFIGURATIONS"]._serialized_end = 8632+ _globals["_NOTIFICATION"]._serialized_start = 8635+ _globals["_NOTIFICATION"]._serialized_end = 9174+ _globals["_BOOTCOMPLETEDNOTIFICATION"]._serialized_start = 9176+ _globals["_BOOTCOMPLETEDNOTIFICATION"]._serialized_end = 9217+ _globals["_CAMERANOTIFICATION"]._serialized_start = 9219+ _globals["_CAMERANOTIFICATION"]._serialized_end = 9272+ _globals["_TEXTVIEWFOCUS"]._serialized_start = 9274+ _globals["_TEXTVIEWFOCUS"]._serialized_end = 9332+ _globals["_DISPLAYCONFIGURATIONSCHANGEDNOTIFICATION"]._serialized_start = 9334+ _globals["_DISPLAYCONFIGURATIONSCHANGEDNOTIFICATION"]._serialized_end = 9457+ _globals["_ROTATIONRADIAN"]._serialized_start = 9459+ _globals["_ROTATIONRADIAN"]._serialized_end = 9508+ _globals["_TRANSLATION"]._serialized_start = 9510+ _globals["_TRANSLATION"]._serialized_end = 9574+ _globals["_ANGULARVELOCITY"]._serialized_start = 9576+ _globals["_ANGULARVELOCITY"]._serialized_end = 9644+ _globals["_VELOCITY"]._serialized_start = 9646+ _globals["_VELOCITY"]._serialized_end = 9689+ _globals["_POSTURE"]._serialized_start = 9692+ _globals["_POSTURE"]._serialized_end = 9924+ _globals["_POSTURE_POSTUREVALUE"]._serialized_start = 9768+ _globals["_POSTURE_POSTUREVALUE"]._serialized_end = 9924+ _globals["_PHONENUMBER"]._serialized_start = 9926+ _globals["_PHONENUMBER"]._serialized_end = 9955+ _globals["_EMULATORCONTROLLER"]._serialized_start = 10028+ _globals["_EMULATORCONTROLLER"]._serialized_end = 13906+# @@protoc_insertion_point(module_scope)diff --git a/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2_grpc.py b/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2_grpc.pynew file mode 100644index 0000000000..a317714338--- /dev/null+++ b/libs/python/computer-server/computer_server/handlers/_grpc_emulator/emulator_controller_pb2_grpc.py@@ -0,0 +1,2568 @@+# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!+"""Client and server classes corresponding to protobuf-defined services."""++import grpc+from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2++from . import emulator_controller_pb2 as emulator__controller__pb2++GRPC_GENERATED_VERSION = "1.78.0"+GRPC_VERSION = grpc.__version__+_version_not_supported = False++try:+ from grpc._utilities import first_version_is_lower++ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)+except ImportError:+ _version_not_supported = True++if _version_not_supported:+ raise RuntimeError(+ f"The grpc package installed is at version {GRPC_VERSION},"+ + " but the generated code in emulator_controller_pb2_grpc.py depends on"+ + f" grpcio>={GRPC_GENERATED_VERSION}."+ + f" Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}"+ + f" or downgrade your generated code using grpcio-tools<={GRPC_VERSION}."+ )+++class EmulatorControllerStub(object):+ """An EmulatorController service lets you control the emulator.+ Note that this is currently an experimental feature, and that the+ service definition might change without notice. Use at your own risk!++ We use the following rough conventions:++ streamXXX --> streams values XXX (usually for emulator lifetime). Values+ are updated as soon as they become available.+ getXXX --> gets a single value XXX+ setXXX --> sets a single value XXX, does not returning state, these+ usually have an observable lasting side effect.+ sendXXX --> send a single event XXX, possibly returning state information.+ android usually responds to these events.+ """++ def __init__(self, channel):+ """Constructor.++ Args:+ channel: A grpc.Channel.+ """+ self.streamSensor = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamSensor",+ request_serializer=emulator__controller__pb2.SensorValue.SerializeToString,+ response_deserializer=emulator__controller__pb2.SensorValue.FromString,+ _registered_method=True,+ )+ self.getSensor = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getSensor",+ request_serializer=emulator__controller__pb2.SensorValue.SerializeToString,+ response_deserializer=emulator__controller__pb2.SensorValue.FromString,+ _registered_method=True,+ )+ self.setSensor = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setSensor",+ request_serializer=emulator__controller__pb2.SensorValue.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.setPhysicalModel = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setPhysicalModel",+ request_serializer=emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getPhysicalModel = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getPhysicalModel",+ request_serializer=emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ response_deserializer=emulator__controller__pb2.PhysicalModelValue.FromString,+ _registered_method=True,+ )+ self.streamPhysicalModel = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamPhysicalModel",+ request_serializer=emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ response_deserializer=emulator__controller__pb2.PhysicalModelValue.FromString,+ _registered_method=True,+ )+ self.setClipboard = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setClipboard",+ request_serializer=emulator__controller__pb2.ClipData.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getClipboard = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getClipboard",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.ClipData.FromString,+ _registered_method=True,+ )+ self.streamClipboard = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamClipboard",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.ClipData.FromString,+ _registered_method=True,+ )+ self.setBattery = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setBattery",+ request_serializer=emulator__controller__pb2.BatteryState.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getBattery = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getBattery",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.BatteryState.FromString,+ _registered_method=True,+ )+ self.setGps = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setGps",+ request_serializer=emulator__controller__pb2.GpsState.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getGps = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getGps",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.GpsState.FromString,+ _registered_method=True,+ )+ self.sendFingerprint = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendFingerprint",+ request_serializer=emulator__controller__pb2.Fingerprint.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.sendKey = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendKey",+ request_serializer=emulator__controller__pb2.KeyboardEvent.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.sendTouch = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendTouch",+ request_serializer=emulator__controller__pb2.TouchEvent.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.sendMouse = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendMouse",+ request_serializer=emulator__controller__pb2.MouseEvent.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.injectWheel = channel.stream_unary(+ "/android.emulation.control.EmulatorController/injectWheel",+ request_serializer=emulator__controller__pb2.WheelEvent.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.streamInputEvent = channel.stream_unary(+ "/android.emulation.control.EmulatorController/streamInputEvent",+ request_serializer=emulator__controller__pb2.InputEvent.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.sendPhone = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendPhone",+ request_serializer=emulator__controller__pb2.PhoneCall.SerializeToString,+ response_deserializer=emulator__controller__pb2.PhoneResponse.FromString,+ _registered_method=True,+ )+ self.sendSms = channel.unary_unary(+ "/android.emulation.control.EmulatorController/sendSms",+ request_serializer=emulator__controller__pb2.SmsMessage.SerializeToString,+ response_deserializer=emulator__controller__pb2.PhoneResponse.FromString,+ _registered_method=True,+ )+ self.setPhoneNumber = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setPhoneNumber",+ request_serializer=emulator__controller__pb2.PhoneNumber.SerializeToString,+ response_deserializer=emulator__controller__pb2.PhoneResponse.FromString,+ _registered_method=True,+ )+ self.getStatus = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getStatus",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.EmulatorStatus.FromString,+ _registered_method=True,+ )+ self.getScreenshot = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getScreenshot",+ request_serializer=emulator__controller__pb2.ImageFormat.SerializeToString,+ response_deserializer=emulator__controller__pb2.Image.FromString,+ _registered_method=True,+ )+ self.streamScreenshot = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamScreenshot",+ request_serializer=emulator__controller__pb2.ImageFormat.SerializeToString,+ response_deserializer=emulator__controller__pb2.Image.FromString,+ _registered_method=True,+ )+ self.streamAudio = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamAudio",+ request_serializer=emulator__controller__pb2.AudioFormat.SerializeToString,+ response_deserializer=emulator__controller__pb2.AudioPacket.FromString,+ _registered_method=True,+ )+ self.injectAudio = channel.stream_unary(+ "/android.emulation.control.EmulatorController/injectAudio",+ request_serializer=emulator__controller__pb2.AudioPacket.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getLogcat = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getLogcat",+ request_serializer=emulator__controller__pb2.LogMessage.SerializeToString,+ response_deserializer=emulator__controller__pb2.LogMessage.FromString,+ _registered_method=True,+ )+ self.streamLogcat = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamLogcat",+ request_serializer=emulator__controller__pb2.LogMessage.SerializeToString,+ response_deserializer=emulator__controller__pb2.LogMessage.FromString,+ _registered_method=True,+ )+ self.setVmState = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setVmState",+ request_serializer=emulator__controller__pb2.VmRunState.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getVmState = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getVmState",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.VmRunState.FromString,+ _registered_method=True,+ )+ self.setDisplayConfigurations = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setDisplayConfigurations",+ request_serializer=emulator__controller__pb2.DisplayConfigurations.SerializeToString,+ response_deserializer=emulator__controller__pb2.DisplayConfigurations.FromString,+ _registered_method=True,+ )+ self.getDisplayConfigurations = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getDisplayConfigurations",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.DisplayConfigurations.FromString,+ _registered_method=True,+ )+ self.streamNotification = channel.unary_stream(+ "/android.emulation.control.EmulatorController/streamNotification",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.Notification.FromString,+ _registered_method=True,+ )+ self.rotateVirtualSceneCamera = channel.unary_unary(+ "/android.emulation.control.EmulatorController/rotateVirtualSceneCamera",+ request_serializer=emulator__controller__pb2.RotationRadian.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.setVirtualSceneCameraVelocity = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity",+ request_serializer=emulator__controller__pb2.Velocity.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.setPosture = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setPosture",+ request_serializer=emulator__controller__pb2.Posture.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getBrightness = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getBrightness",+ request_serializer=emulator__controller__pb2.BrightnessValue.SerializeToString,+ response_deserializer=emulator__controller__pb2.BrightnessValue.FromString,+ _registered_method=True,+ )+ self.setBrightness = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setBrightness",+ request_serializer=emulator__controller__pb2.BrightnessValue.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getDisplayMode = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getDisplayMode",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.DisplayMode.FromString,+ _registered_method=True,+ )+ self.setDisplayMode = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setDisplayMode",+ request_serializer=emulator__controller__pb2.DisplayMode.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.setXrOptions = channel.unary_unary(+ "/android.emulation.control.EmulatorController/setXrOptions",+ request_serializer=emulator__controller__pb2.XrOptions.SerializeToString,+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ _registered_method=True,+ )+ self.getXrOptions = channel.unary_unary(+ "/android.emulation.control.EmulatorController/getXrOptions",+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ response_deserializer=emulator__controller__pb2.XrOptions.FromString,+ _registered_method=True,+ )+++class EmulatorControllerServicer(object):+ """An EmulatorController service lets you control the emulator.+ Note that this is currently an experimental feature, and that the+ service definition might change without notice. Use at your own risk!++ We use the following rough conventions:++ streamXXX --> streams values XXX (usually for emulator lifetime). Values+ are updated as soon as they become available.+ getXXX --> gets a single value XXX+ setXXX --> sets a single value XXX, does not returning state, these+ usually have an observable lasting side effect.+ sendXXX --> send a single event XXX, possibly returning state information.+ android usually responds to these events.+ """++ def streamSensor(self, request, context):+ """set/get/stream the sensor data+ This RPC is not implemented in EmulatorController and will return an unimplemented error.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getSensor(self, request, context):+ """Gets the current value of a specified sensor.++ The following gRPC error codes can be returned:+ - INTERNAL (code 13) if `getSensorSize` fails to retrieve sensor dimensions.++ The `status` field in the `SensorValue` reply indicates the operational state:+ - `OK` (0): Sensor data retrieved successfully.+ - `UNKNOWN` (2): Unknown sensor type (should not happen if using valid `SensorType`).+ - `DISABLED` (3): The sensor is disabled.+ - `NO_SERVICE` (4): The `qemud` service responsible for sensors is not available or initiated.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setSensor(self, request, context):+ """Sets the override value for a specified sensor. This operation is asynchronous+ and executed on the emulator's main looper. An immediate subsequent `getSensor`+ call might not reflect the newly set value.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ No specific gRPC error codes are returned by this method itself, but underlying+ operations might log warnings if the sensor agent is unavailable.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setPhysicalModel(self, request, context):+ """set/get/stream the physical model, this is likely the one you are+ looking for when you wish to modify the device state.++ This operation is asynchronous and executed on the emulator's main looper. An immediate subsequent `getPhysicalModel`+ call might not reflect the newly set value. The `interpolation` field from the request is used to determine the+ physical interpolation method, mapped using `abs((static_cast<int>(physicalValue.interpolation())) - 1)`.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getPhysicalModel(self, request, context):+ """Gets the current value of a specified physical model parameter.++ The `status` field in the `PhysicalModelValue` reply indicates the operational state:+ - `OK` (0): Physical model data retrieved successfully.+ - `UNKNOWN` (2): Unknown physical type (should not happen if using valid `PhysicalType`).+ - `NO_SERVICE` (3): The `qemud` service responsible for physical parameters is not available or initiated.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamPhysicalModel(self, request, context):+ """This RPC is not implemented in EmulatorController and will return an unimplemented error."""+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setClipboard(self, request, context):+ """Atomically sets the current primary clipboard data. This operation is asynchronous+ and executed on the emulator's main looper. It triggers a `ClipboardEvent`+ to all listeners (except the originating channel) indicating the new content.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getClipboard(self, request, context):+ """Retrieves the current primary clipboard data. This is a synchronous operation.++ This method returns `OK` (code 0) and the current `ClipData` upon success.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamClipboard(self, request, context):+ """Streams real-time updates of the clipboard content. Upon subscription,+ it immediately sends the current clipboard state. Subsequent updates are+ streamed as new content becomes available from the guest or is set via `setClipboard`+ from a different client. Events originating from the same client that initiated+ the stream are filtered out to prevent echoing.++ It is possible to miss very rapid clipboard updates. The stream will block+ awaiting new events after the initial state is sent.++ This method returns a server-side streaming reactor.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setBattery(self, request, context):+ """Sets the emulator's battery state to the provided values. This operation is+ executed asynchronously on the main looper.++ This method returns `OK` (code 0) upon successful asynchronous scheduling+ of the operation. No explicit gRPC error codes are returned by this method.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getBattery(self, request, context):+ """Retrieves the current battery state from the emulator. This is a+ synchronous operation that waits for completion.++ This method returns `OK` (code 0) and populates the `BatteryState` reply+ with the current information upon success. No explicit gRPC error codes+ are returned by this method.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setGps(self, request, context):+ """Sets the state of the GPS in the emulator. This operation is asynchronous+ and executed on the main looper. It updates the emulator's GPS location+ (latitude, longitude, altitude, speed, bearing, and satellites) and sets+ the timestamp.++ Note: Setting the GPS position will not be immediately reflected in the user+ interface. Android typically samples GPS at 1 Hz.+ This method returns `OK` (code 0) upon successful asynchronous scheduling+ of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getGps(self, request, context):+ """Gets the latest GPS state as reported by the emulator. This includes data+ delivered by previous `setGps` calls or from the location UI if active.+ This is a synchronous operation that waits for completion.++ Note: The returned GPS state is not necessarily the exact coordinate+ visible at the time due to Android's typical 1 Hz GPS sample frequency.++ This method returns `OK` (code 0) and populates the `GpsState` reply+ with the retrieved information upon success. No explicit gRPC error codes+ are returned by this method.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendFingerprint(self, request, context):+ """Simulates a touch event on the fingerprint sensor. This operation is+ executed asynchronously on the main looper.++ The `isTouching` field indicates whether the fingerprint sensor is being+ touched, and `touchId` specifies the identifier of the registered+ fingerprint. The `setTouch` agent function is used to apply these values.++ This method returns `OK` (code 0) upon successful asynchronous scheduling+ of the operation. No explicit gRPC error codes are returned by this method.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendKey(self, request, context):+ """Sends a keyboard event to the emulator. This operation is asynchronous+ and executed on the main looper.++ The `KeyboardEvent` message allows specifying input using `keyCode`, `key` (W3C standard string), or `text` (UTF-8 string).+ The `KeyEventSender` prioritizes `key`, then `keyCode`, then `text`.+ - If `key` is a non-printable W3C key string (e.g., "Backspace", "ArrowUp"), it's translated to an evdev keycode and sent.+ - If `key` is a printable Unicode character, it's converted to a sequence of evdev keydown/keyup events, handling modifiers.+ - If `keyCode` is provided, it's translated from its `codeType` (Usb, Evdev, XKB, Win, Mac) to an evdev keycode and sent as keydown/keyup pairs.+ - If `text` is provided, each UTF-8 character is converted to evdev keypress (keydown then keyup) events.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendTouch(self, request, context):+ """Sends touch events to the emulator. This operation is asynchronous and executed on the main looper.++ The `TouchEvent` contains a list of `Touch` objects, each with `x`, `y` coordinates, `identifier`, `pressure`, `touch_major`, `touch_minor`, `expiration`, and `orientation`.+ Coordinates are scaled to the emulator's display resolution. Each `Touch` `identifier` is mapped to an internal Linux multitouch slot.+ Expiration handling ensures that inactive touch events are properly "lifted" after 120 seconds.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation. Warnings are logged if no touch slots are available.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendMouse(self, request, context):+ """Sends mouse events to the emulator. This operation is asynchronous and executed on the main looper.++ The `MouseEvent` specifies `x`, `y` coordinates, `buttons` state (bitmask: 1 for left, 2 for right), and `display` ID.+ In certain virtual input configurations (VirtioInput enabled, but VirtioMouse and VirtioTablet disabled), `buttons` may be masked to only consider the primary button.+ The event is sent to the emulator's `user_event_agent`.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def injectWheel(self, request_iterator, context):+ """Injects a stream of wheel events into the emulator. This is a server-side streaming RPC.++ Each `WheelEvent` contains `dx`, `dy` (delta values, `dy` is pre-multiplied by 120 for scroll clicks), and `display` ID.+ If the emulator's input device has rotary capabilities (e.g., AVD_WEAR flavor), `dy` is scaled and sent as a rotary event.+ Otherwise, it's sent as a standard mouse wheel event.++ This method returns a server-side streaming reactor.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamInputEvent(self, request_iterator, context):+ """Streams a series of generic input events to the emulator. The events are processed in the order they arrive.+ This is a server-side streaming RPC that supports various input types encapsulated within `InputEvent`'s `oneof type` field.++ Supported input types:+ - `key_event` (KeyboardEvent): Processed by `KeyEventSender` as described in `sendKey`.+ - `touch_event` (TouchEvent): Processed by `TouchEventSender` as described in `sendTouch`.+ - `mouse_event` (MouseEvent): Processed by `MouseEventSender` as described in `sendMouse`.+ - `android_event` (AndroidEvent): Raw Linux input events (`type`, `code`, `value`) sent directly to the kernel.+ - `pen_event` (PenEvent): Processed by `PenEventSender` for pen input, including pressure, orientation, and button state.+ - `wheel_event` (WheelEvent): Processed by `WheelEventSender` as described in `injectWheel`.+ - `xr_command` (XrCommand): Executes XR-specific commands (e.g., `RECENTER` to recenter the viewport). Unknown actions are logged as warnings.+ - `xr_head_rotation_event` (RotationRadian): Sends head rotation data in radians. Logs an error if the agent call fails.+ - `xr_head_movement_event` (Translation): Sends head movement data in meters. Logs an error if the agent call fails.+ - `xr_head_angular_velocity_event` (AngularVelocity): Sends head angular velocity data in radians per second. Logs an error if the agent call fails.+ - `xr_head_velocity_event` (Velocity): Sends head velocity data in meters per second. Logs an error if the agent call fails.+ - `touchpad_event` (TouchpadEvent): Processed by `TouchpadEventSender` for touchpad input, similar to touch events but for a touchpad device.++ All underlying input sending operations for XR events are executed asynchronously on the main looper.++ Returns `INVALID_ARGUMENT` (code 3) if an unrecognized input event type is received, indicating a potential out-of-date emulator.+ The stream reactor automatically deletes itself upon completion.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendPhone(self, request, context):+ """Initiates or manipulates a phone call in the emulator. This is a synchronous+ operation executed on the main looper.++ The `PhoneCall` message specifies the `operation` (e.g., InitCall, AcceptCall)+ and the target phone `number`. The `telephonyCmd` agent function handles the+ actual call action.++ Returns a `PhoneResponse` indicating the outcome:+ - `OK` (0): The operation was successful.+ - `BadOperation` (1): The provided `operation` enum is out of range.+ - `BadNumber` (2): The provided `number` is malformed.+ - `InvalidAction` (3): The requested `operation` is invalid given the current call state (e.g., disconnecting when no call is active).+ - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.+ - `RadioOff` (5): The emulator's radio is turned off.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def sendSms(self, request, context):+ """Sends an SMS message to the emulator. This is a synchronous operation.++ The `SmsMessage` contains the `srcAddress` (source phone number) and the `text` of the message.+ The `srcAddress` is validated for GSM formatting. The message `text` is converted into SMS PDUs+ (Protocol Data Units) and delivered via the modem agent.++ Returns a `PhoneResponse` indicating the outcome:+ - `OK` (0): The SMS message was successfully delivered.+ - `BadNumber` (2): The `srcAddress` is malformed.+ - `ActionFailed` (4): An internal error occurred, e.g., if the modem agent is unavailable or PDU creation fails.++ Other error cases from PDU creation (e.g., invalid characters in text) also result in `ActionFailed`.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setPhoneNumber(self, request, context):+ """Sets the emulator's phone number. This is a synchronous operation.++ The `PhoneNumber` message contains the new `number` to be set. The modem agent's+ `amodem_update_phone_number` function is used for this update.++ Returns a `PhoneResponse` indicating the outcome:+ - `OK` (0): The phone number was successfully updated.+ - `BadNumber` (2): The provided `number` is invalid for the modem.+ - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getStatus(self, request, context):+ """Retrieves the current status of the emulator. This includes comprehensive+ information about the virtual machine's configuration and the guest operating system's state.++ The `EmulatorStatus` reply contains:+ - `version`: The emulator version string.+ - `uptime`: The time the emulator has been active in milliseconds.+ - `booted`: A boolean indicating if the device has completed booting.+ - `vmConfig`: Detailed `VmConfiguration` (hypervisor type, CPU cores, RAM size).+ - `hardwareConfig`: Key-value pairs describing the emulator's hardware configuration.+ - `heartbeat`: A monotonically increasing number indicating guest activity (incremented approximately once per second).+ - `guestConfig`: A map of key-value pairs with guest-specific configurations, including:+ - "multidisplay": "available" or "unavailable" based on display pipe readiness.+ - "androidVersion": The Android version of the guest OS.+ - "hypervisorVersion": The hypervisor version used by the guest.++ This method returns `OK` (code 0) upon successful retrieval of the emulator status.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getScreenshot(self, request, context):+ """Retrieves a single screenshot in the desired format.++ The image will be scaled to the `desiredWidth` and `desiredHeight` specified in `ImageFormat`, while maintaining+ the aspect ratio. If `width` or `height` are 0, the device's current display dimensions are used.+ The returned image will never exceed the device's actual display resolution, but can be smaller.++ The `display` field in `ImageFormat` specifies the target display; 0 (or omitted) indicates the main display.+ For folded Pixel Fold devices, the display ID might be internally remapped, and `foldedDisplay` information will be populated.+ The resulting image is properly oriented based on the device's coarse-grained orientation, derived from sensor state.++ The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery, but if the shared memory region+ is too small, a `FAILED_PRECONDITION` error will be returned.++ This method returns:+ - `OK` (code 0) and an `Image` object upon success.+ - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.+ - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation (an expensive operation).+ - `FAILED_PRECONDITION` (code 9) if the guest has not posted a new frame yet (for non-PNG formats when fast path is used).++ This method will return an image with width 0 and height 0 if the display is not visible.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamScreenshot(self, request, context):+ """Streams a series of screenshots in the desired format. This is a server-side streaming RPC.++ A new frame is delivered whenever the device produces a new frame or when sensor changes occur.+ Initial state: The first frame delivered might be an empty image (width 0, height 0) if the display is inactive.+ Subsequent frames are delivered when new content is available or a sensor event triggers an update.+ If the display becomes inactive, an empty image will be delivered again. Images resume when the display becomes active.++ `ImageFormat` parameters (format, width, height, display) behave as described in `getScreenshot`.+ The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery. If `MMAP` is used and the+ provided shared memory handle is valid and mapped, pixel data will be written directly to it.+ The `image` field in the `Image` reply will be empty if `MMAP` transport is used.++ Performance considerations:+ - Streaming can produce a significant amount of data.+ - `PNG` format is CPU-intensive due to encoding overhead.+ - Using `MMAP` transport can significantly reduce gRPC overhead for pixel data.++ This method returns:+ - A server-side streaming reactor.+ - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.+ - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamAudio(self, request, context):+ """Streams a series of audio packets in the desired format. This is a server-side streaming RPC.+ A new frame is delivered approximately every 20-30ms when the emulated device produces audio.+ If `samplingRate` is 0, it defaults to 44100 Hz.+ The stream may block indefinitely if the emulator ceases to produce audio.+ Packets are allocated with a buffer size calculated based on the audio format and a 30ms frame time.++ This method returns `OK` (code 0) upon successful streaming initiation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def injectAudio(self, request_iterator, context):+ """Injects a series of audio packets into the Android microphone. This is a client-side streaming RPC.+ Audio packets are processed at a rate determined by the emulator's request for frames.+ An internal buffer can hold approximately 300ms of audio.++ Notes:+ - Only the `AudioFormat` from the first received packet is honored. Subsequent `AudioFormat` changes are ignored.+ - `MODE_REAL_TIME` is experimental: incoming data may overwrite existing data if the client does not control timing properly.+ - The circular buffer attempts to deliver all queued samples upon stream closure by writing silence for up to 300ms.++ Returns the following gRPC error codes:+ - `FAILED_PRECONDITION` (code 9): If another microphone is already active, or if unable to register the microphone.+ - `INVALID_ARGUMENT` (code 3): If the desired `samplingRate` exceeds 48kHz, or if an `AudioPacket` is too large for the internal buffer.++ This method returns `OK` (code 0) upon successful completion of the stream.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getLogcat(self, request, context):+ """Deprecated, please use the streamLogcat method instead."""+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamLogcat(self, request, context):+ """Streams the logcat output from the emulator in real-time. This is a server-side streaming RPC.+ The stream sources its data from the `logcat` command executed via `AdbShellStream` in the Android guest.+ Log lines are processed individually as they arrive.++ The `LogMessage.sort` field determines the output format:+ - If `LogMessage.sort` is `Parsed`, each incoming log line is parsed into a structured `LogcatEntry` object,+ and these entries are returned in the `LogMessage.entries` field. Structured parsing is typically+ available for Android API Level 23 (Marshmallow) and later.+ - If `LogMessage.sort` is `Text` (or unspecified), the raw log line is returned in the `LogMessage.contents` field.++ The stream continues as long as the underlying `logcat` process is running and the client is connected.+ The stream will naturally terminate if the `logcat` process stops or the connection is lost.+ No explicit gRPC error codes are returned by this method during active streaming.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setVmState(self, request, context):+ """Transitions the virtual machine to the desired state. This operation is asynchronous+ and executed on the QEMU looper to handle necessary IO locks. Note that some states+ (e.g., `UNKNOWN`, `RESTORE_VM`, `SAVE_VM`, `INTERNAL_ERROR`) are purely observable+ and cannot be set directly.++ The `VmRunState.state` field triggers specific VM operations:+ - `RESET`: Calls `vmReset()` to reset the VM.+ - `SHUTDOWN`: Calls `skin_winsys_quit_request()` for a graceful shutdown, similar to closing the emulator GUI.+ - `TERMINATE`: Forcefully kills the emulator process. This can lead to system corruption and should be used with extreme caution.+ - `PAUSED`: Calls `vmPause()` to pause the VM, halting CPU cycles.+ - `RUNNING`: Calls `vmResume()` to resume the VM.+ - `RESTART`: Calls `ui->requestRestart()` to perform a full emulator restart.+ - `START`: Calls `vmStart()` to resume a stopped emulator.+ - `STOP`: Calls `vmStop()` to stop (pause) a running emulator.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getVmState(self, request, context):+ """Retrieves the current run state of the virtual machine. This is a synchronous operation.++ Internal QEMU run states are mapped to `VmRunState.RunState` as follows:+ - `QEMU_RUN_STATE_PAUSED` and `QEMU_RUN_STATE_SUSPENDED` map to `PAUSED`.+ - `QEMU_RUN_STATE_RESTORE_VM` maps to `RESTORE_VM`.+ - `QEMU_RUN_STATE_RUNNING` maps to `RUNNING`.+ - `QEMU_RUN_STATE_SAVE_VM` maps to `SAVE_VM`.+ - `QEMU_RUN_STATE_SHUTDOWN` maps to `SHUTDOWN`.+ - `QEMU_RUN_STATE_GUEST_PANICKED`, `QEMU_RUN_STATE_INTERNAL_ERROR`, and `QEMU_RUN_STATE_IO_ERROR` map to `INTERNAL_ERROR`.+ - Any other states default to `UNKNOWN`.++ This method returns `OK` (code 0) and populates the `VmRunState` reply with the current VM state.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setDisplayConfigurations(self, request, context):+ """Atomically changes the current multi-display configuration. This operation applies+ the provided `DisplayConfigurations`, with special handling for secondary displays.+ Display ID 0 (the primary display) cannot be modified via this RPC.++ Preconditions:+ - The `android::featurecontrol::MultiDisplay` feature must be enabled.++ Input Validation:+ - `INVALID_ARGUMENT` (code 3): If duplicate `display` IDs are found in the request.+ - `INVALID_ARGUMENT` (code 3): If any `DisplayConfiguration` (width, height, dpi, flags)+ is outside valid ranges as determined by `multiDisplayParamValidate`.+ - `INVALID_ARGUMENT` (code 3): If any `display` ID is outside the configurable range+ `[1, userConfigurable]`.++ Atomic Update and Rollback:+ The system attempts to apply each display configuration. If any update fails+ (e.g., after multiple retries for transient pipe errors), a rollback mechanism+ is initiated: successfully updated displays are reverted to their previous state,+ and newly added displays are deleted. In such cases, an `INTERNAL` error is returned.++ Deletion of Unrequested Displays:+ Any displays that were active before this call but are not present in the new+ `request.displays` (and are not display ID 0) will be deleted.++ Notifications:+ Upon successful completion, `notifyDisplayChanges()` is called to inform+ third-party subscribers.++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful application of all configurations, returning the final active `DisplayConfigurations`.+ - `FAILED_PRECONDITION` (code 9): If the multi-display feature is not available.+ - `INTERNAL` (code 13): If an internal emulator failure occurs during display modification or rollback.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getDisplayConfigurations(self, request, context):+ """Returns all currently valid logical displays configured in the emulator. This is a synchronous operation.++ Preconditions:+ - The `android::featurecontrol::MultiDisplay` feature must be enabled.++ The `DisplayConfigurations` reply contains:+ - `displays`: A repeated field of `DisplayConfiguration` objects, each detailing+ the width, height, DPI, flags, and ID of an active display.+ For Pixel Fold devices, only the main display configuration might be relevant.+ - `userConfigurable`: The maximum number of user-configurable displays (IDs from 1 up to this value).+ - `maxDisplays`: The total maximum number of displays the emulator supports.++ This method returns:+ - `OK` (code 0) and the current `DisplayConfigurations` upon success.+ - `FAILED_PRECONDITION` (code 9): If the AVD does not support the multi-display feature.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def streamNotification(self, request, context):+ """Notifies the client of various emulator state changes in real-time. This is a server-side streaming RPC.+ Upon subscription, the current states of virtual scene camera, foldable posture, boot completion,+ and XR options are immediately sent. The stream then continuously delivers new notifications+ when relevant events occur. `UniqueEventStreamWriter` ensures that only distinct state changes are streamed.++ Notifications include:+ - `CameraNotification`: Reports virtual scene camera activation/deactivation and associated display.+ - `DisplayConfigurationsChangedNotification`: Triggered when display configurations are modified via the extended UI. Does not fire for changes made through console or gRPC.+ - `Posture`: Reports changes in the device's foldable posture.+ - `BootCompletedNotification`: Indicates when the emulator has finished booting.+ - `BrightnessValue`: Reports changes in backlight brightness (LCD, keyboard, or button).+ - `TextViewFocus`: Sent when a text view gains or loses focus, or immediately on subscription.+ - `XrOptions`: Reports changes in XR-related settings (environment, passthrough coefficient), or immediately on subscription.++ This method returns a server-side streaming reactor.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def rotateVirtualSceneCamera(self, request, context):+ """Rotates the virtual scene camera relative to its current orientation. This operation is asynchronous+ and executed on the main looper.++ The `RotationRadian` message specifies angles in radians around the x, y, and z axes. The z component of rotation is currently unused.+ The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.+ This operation only succeeds if the virtual scene camera is actively connected.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setVirtualSceneCameraVelocity(self, request, context):+ """Sets the absolute velocity of the virtual scene camera. This operation is asynchronous+ and executed on the main looper.++ The `Velocity` message specifies components in meters per second along the x, y, and z axes.+ The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.+ The transition to these target velocity values may be smoothed over time by the implementation.+ This operation only succeeds if the virtual scene camera is actively connected.++ This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setPosture(self, request, context):+ """Sets the foldable posture of the device. This operation is asynchronous+ and executed on the main looper.++ The `Posture` message contains a `PostureValue` enum, defining the desired+ physical configuration of the foldable device.++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful asynchronous scheduling of the operation.+ - `FAILED_PRECONDITION` (code 9): If the emulator is unable to set the specified posture.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getBrightness(self, request, context):+ """Retrieves the current backlight brightness for a specified light type. This is a synchronous operation.++ The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is queried.+ Internal mapping converts these to string names like "lcd_backlight".++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful retrieval, populating the `BrightnessValue` reply with the `target` and current `value`.+ - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `getBrightness` function is unavailable.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setBrightness(self, request, context):+ """Sets the backlight brightness for a specified light type. This operation is asynchronous+ and executed on the main looper.++ The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is set.+ The `BrightnessValue.value` specifies the desired intensity, ranging from 0 to 255.+ Internal mapping converts `LightType` to string names like "lcd_backlight".++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful asynchronous scheduling of the operation.+ - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `setBrightness` function is unavailable.+ - `INVALID_ARGUMENT` (code 3): If the `brightness` value exceeds the valid range (0-255).+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getDisplayMode(self, request, context):+ """Returns the current mode of the primary display of a resizable AVD. This is a synchronous operation.++ Preconditions:+ - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).++ The `DisplayMode.value` field will be populated with the current `DisplayModeValue`,+ derived from the `getResizableActiveConfigId()`.++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful retrieval of the display mode.+ - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setDisplayMode(self, request, context):+ """Sets the size of the primary display of a resizable AVD to the specified `DisplayModeValue`. This operation is asynchronous+ and executed on the main looper.++ Preconditions:+ - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).+ - The emulator's `changeResizableDisplay` agent function must be available.++ The `DisplayMode.value` field specifies the desired display configuration (e.g., `PHONE`, `FOLDABLE`, `TABLET`, `DESKTOP`).++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful asynchronous scheduling of the operation.+ - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.+ - `INTERNAL` (code 13): If the internal window agent function `changeResizableDisplay` is not available.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def setXrOptions(self, request, context):+ """Changes the XR-related settings of the emulator. This operation is asynchronous+ and executed on the main looper.++ The `XrOptions` message specifies the `environment` (e.g., `LIVING_ROOM_DAY`, `LIVING_ROOM_NIGHT`)+ and `passthrough_coefficient` (a float between 0.0 and 1.0 for real/artificial environment visibility).+ Values for `passthrough_coefficient` outside [0.0, 1.0] are ignored.++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful asynchronous scheduling of the operation.+ - `FAILED_PRECONDITION` (code 9): If the `setXrOptions` agent function fails (e.g., if XR is not supported).+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")++ def getXrOptions(self, request, context):+ """Retrieves the current state of XR-related settings from the emulator. This is a synchronous operation.++ Preconditions:+ - XR mode must be supported in the current AVD (`isXrGuestOs()` must be true).+ (Note: Current implementation of `isXrGuestOs()` always returns true).++ The `XrOptions` reply contains the current `environment` and `passthrough_coefficient`.++ Returns the following gRPC error codes:+ - `OK` (code 0): Upon successful retrieval of the XR options.+ - `FAILED_PRECONDITION` (code 9): If XR mode is not supported in the current AVD or if the `getXrOptions` agent function fails.+ """+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)+ context.set_details("Method not implemented!")+ raise NotImplementedError("Method not implemented!")+++def add_EmulatorControllerServicer_to_server(servicer, server):+ rpc_method_handlers = {+ "streamSensor": grpc.unary_stream_rpc_method_handler(+ servicer.streamSensor,+ request_deserializer=emulator__controller__pb2.SensorValue.FromString,+ response_serializer=emulator__controller__pb2.SensorValue.SerializeToString,+ ),+ "getSensor": grpc.unary_unary_rpc_method_handler(+ servicer.getSensor,+ request_deserializer=emulator__controller__pb2.SensorValue.FromString,+ response_serializer=emulator__controller__pb2.SensorValue.SerializeToString,+ ),+ "setSensor": grpc.unary_unary_rpc_method_handler(+ servicer.setSensor,+ request_deserializer=emulator__controller__pb2.SensorValue.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "setPhysicalModel": grpc.unary_unary_rpc_method_handler(+ servicer.setPhysicalModel,+ request_deserializer=emulator__controller__pb2.PhysicalModelValue.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getPhysicalModel": grpc.unary_unary_rpc_method_handler(+ servicer.getPhysicalModel,+ request_deserializer=emulator__controller__pb2.PhysicalModelValue.FromString,+ response_serializer=emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ ),+ "streamPhysicalModel": grpc.unary_stream_rpc_method_handler(+ servicer.streamPhysicalModel,+ request_deserializer=emulator__controller__pb2.PhysicalModelValue.FromString,+ response_serializer=emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ ),+ "setClipboard": grpc.unary_unary_rpc_method_handler(+ servicer.setClipboard,+ request_deserializer=emulator__controller__pb2.ClipData.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getClipboard": grpc.unary_unary_rpc_method_handler(+ servicer.getClipboard,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.ClipData.SerializeToString,+ ),+ "streamClipboard": grpc.unary_stream_rpc_method_handler(+ servicer.streamClipboard,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.ClipData.SerializeToString,+ ),+ "setBattery": grpc.unary_unary_rpc_method_handler(+ servicer.setBattery,+ request_deserializer=emulator__controller__pb2.BatteryState.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getBattery": grpc.unary_unary_rpc_method_handler(+ servicer.getBattery,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.BatteryState.SerializeToString,+ ),+ "setGps": grpc.unary_unary_rpc_method_handler(+ servicer.setGps,+ request_deserializer=emulator__controller__pb2.GpsState.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getGps": grpc.unary_unary_rpc_method_handler(+ servicer.getGps,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.GpsState.SerializeToString,+ ),+ "sendFingerprint": grpc.unary_unary_rpc_method_handler(+ servicer.sendFingerprint,+ request_deserializer=emulator__controller__pb2.Fingerprint.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "sendKey": grpc.unary_unary_rpc_method_handler(+ servicer.sendKey,+ request_deserializer=emulator__controller__pb2.KeyboardEvent.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "sendTouch": grpc.unary_unary_rpc_method_handler(+ servicer.sendTouch,+ request_deserializer=emulator__controller__pb2.TouchEvent.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "sendMouse": grpc.unary_unary_rpc_method_handler(+ servicer.sendMouse,+ request_deserializer=emulator__controller__pb2.MouseEvent.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "injectWheel": grpc.stream_unary_rpc_method_handler(+ servicer.injectWheel,+ request_deserializer=emulator__controller__pb2.WheelEvent.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "streamInputEvent": grpc.stream_unary_rpc_method_handler(+ servicer.streamInputEvent,+ request_deserializer=emulator__controller__pb2.InputEvent.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "sendPhone": grpc.unary_unary_rpc_method_handler(+ servicer.sendPhone,+ request_deserializer=emulator__controller__pb2.PhoneCall.FromString,+ response_serializer=emulator__controller__pb2.PhoneResponse.SerializeToString,+ ),+ "sendSms": grpc.unary_unary_rpc_method_handler(+ servicer.sendSms,+ request_deserializer=emulator__controller__pb2.SmsMessage.FromString,+ response_serializer=emulator__controller__pb2.PhoneResponse.SerializeToString,+ ),+ "setPhoneNumber": grpc.unary_unary_rpc_method_handler(+ servicer.setPhoneNumber,+ request_deserializer=emulator__controller__pb2.PhoneNumber.FromString,+ response_serializer=emulator__controller__pb2.PhoneResponse.SerializeToString,+ ),+ "getStatus": grpc.unary_unary_rpc_method_handler(+ servicer.getStatus,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.EmulatorStatus.SerializeToString,+ ),+ "getScreenshot": grpc.unary_unary_rpc_method_handler(+ servicer.getScreenshot,+ request_deserializer=emulator__controller__pb2.ImageFormat.FromString,+ response_serializer=emulator__controller__pb2.Image.SerializeToString,+ ),+ "streamScreenshot": grpc.unary_stream_rpc_method_handler(+ servicer.streamScreenshot,+ request_deserializer=emulator__controller__pb2.ImageFormat.FromString,+ response_serializer=emulator__controller__pb2.Image.SerializeToString,+ ),+ "streamAudio": grpc.unary_stream_rpc_method_handler(+ servicer.streamAudio,+ request_deserializer=emulator__controller__pb2.AudioFormat.FromString,+ response_serializer=emulator__controller__pb2.AudioPacket.SerializeToString,+ ),+ "injectAudio": grpc.stream_unary_rpc_method_handler(+ servicer.injectAudio,+ request_deserializer=emulator__controller__pb2.AudioPacket.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getLogcat": grpc.unary_unary_rpc_method_handler(+ servicer.getLogcat,+ request_deserializer=emulator__controller__pb2.LogMessage.FromString,+ response_serializer=emulator__controller__pb2.LogMessage.SerializeToString,+ ),+ "streamLogcat": grpc.unary_stream_rpc_method_handler(+ servicer.streamLogcat,+ request_deserializer=emulator__controller__pb2.LogMessage.FromString,+ response_serializer=emulator__controller__pb2.LogMessage.SerializeToString,+ ),+ "setVmState": grpc.unary_unary_rpc_method_handler(+ servicer.setVmState,+ request_deserializer=emulator__controller__pb2.VmRunState.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getVmState": grpc.unary_unary_rpc_method_handler(+ servicer.getVmState,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.VmRunState.SerializeToString,+ ),+ "setDisplayConfigurations": grpc.unary_unary_rpc_method_handler(+ servicer.setDisplayConfigurations,+ request_deserializer=emulator__controller__pb2.DisplayConfigurations.FromString,+ response_serializer=emulator__controller__pb2.DisplayConfigurations.SerializeToString,+ ),+ "getDisplayConfigurations": grpc.unary_unary_rpc_method_handler(+ servicer.getDisplayConfigurations,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.DisplayConfigurations.SerializeToString,+ ),+ "streamNotification": grpc.unary_stream_rpc_method_handler(+ servicer.streamNotification,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.Notification.SerializeToString,+ ),+ "rotateVirtualSceneCamera": grpc.unary_unary_rpc_method_handler(+ servicer.rotateVirtualSceneCamera,+ request_deserializer=emulator__controller__pb2.RotationRadian.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "setVirtualSceneCameraVelocity": grpc.unary_unary_rpc_method_handler(+ servicer.setVirtualSceneCameraVelocity,+ request_deserializer=emulator__controller__pb2.Velocity.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "setPosture": grpc.unary_unary_rpc_method_handler(+ servicer.setPosture,+ request_deserializer=emulator__controller__pb2.Posture.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getBrightness": grpc.unary_unary_rpc_method_handler(+ servicer.getBrightness,+ request_deserializer=emulator__controller__pb2.BrightnessValue.FromString,+ response_serializer=emulator__controller__pb2.BrightnessValue.SerializeToString,+ ),+ "setBrightness": grpc.unary_unary_rpc_method_handler(+ servicer.setBrightness,+ request_deserializer=emulator__controller__pb2.BrightnessValue.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getDisplayMode": grpc.unary_unary_rpc_method_handler(+ servicer.getDisplayMode,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.DisplayMode.SerializeToString,+ ),+ "setDisplayMode": grpc.unary_unary_rpc_method_handler(+ servicer.setDisplayMode,+ request_deserializer=emulator__controller__pb2.DisplayMode.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "setXrOptions": grpc.unary_unary_rpc_method_handler(+ servicer.setXrOptions,+ request_deserializer=emulator__controller__pb2.XrOptions.FromString,+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ ),+ "getXrOptions": grpc.unary_unary_rpc_method_handler(+ servicer.getXrOptions,+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ response_serializer=emulator__controller__pb2.XrOptions.SerializeToString,+ ),+ }+ generic_handler = grpc.method_handlers_generic_handler(+ "android.emulation.control.EmulatorController", rpc_method_handlers+ )+ server.add_generic_rpc_handlers((generic_handler,))+ server.add_registered_method_handlers(+ "android.emulation.control.EmulatorController", rpc_method_handlers+ )+++# This class is part of an EXPERIMENTAL API.+class EmulatorController(object):+ """An EmulatorController service lets you control the emulator.+ Note that this is currently an experimental feature, and that the+ service definition might change without notice. Use at your own risk!++ We use the following rough conventions:++ streamXXX --> streams values XXX (usually for emulator lifetime). Values+ are updated as soon as they become available.+ getXXX --> gets a single value XXX+ setXXX --> sets a single value XXX, does not returning state, these+ usually have an observable lasting side effect.+ sendXXX --> send a single event XXX, possibly returning state information.+ android usually responds to these events.+ """++ @staticmethod+ def streamSensor(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamSensor",+ emulator__controller__pb2.SensorValue.SerializeToString,+ emulator__controller__pb2.SensorValue.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getSensor(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getSensor",+ emulator__controller__pb2.SensorValue.SerializeToString,+ emulator__controller__pb2.SensorValue.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setSensor(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setSensor",+ emulator__controller__pb2.SensorValue.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setPhysicalModel(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setPhysicalModel",+ emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getPhysicalModel(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getPhysicalModel",+ emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ emulator__controller__pb2.PhysicalModelValue.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamPhysicalModel(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamPhysicalModel",+ emulator__controller__pb2.PhysicalModelValue.SerializeToString,+ emulator__controller__pb2.PhysicalModelValue.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setClipboard(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setClipboard",+ emulator__controller__pb2.ClipData.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getClipboard(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getClipboard",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.ClipData.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamClipboard(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamClipboard",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.ClipData.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setBattery(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setBattery",+ emulator__controller__pb2.BatteryState.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getBattery(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getBattery",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.BatteryState.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setGps(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setGps",+ emulator__controller__pb2.GpsState.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getGps(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getGps",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.GpsState.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendFingerprint(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendFingerprint",+ emulator__controller__pb2.Fingerprint.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendKey(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendKey",+ emulator__controller__pb2.KeyboardEvent.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendTouch(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendTouch",+ emulator__controller__pb2.TouchEvent.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendMouse(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendMouse",+ emulator__controller__pb2.MouseEvent.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def injectWheel(+ request_iterator,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.stream_unary(+ request_iterator,+ target,+ "/android.emulation.control.EmulatorController/injectWheel",+ emulator__controller__pb2.WheelEvent.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamInputEvent(+ request_iterator,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.stream_unary(+ request_iterator,+ target,+ "/android.emulation.control.EmulatorController/streamInputEvent",+ emulator__controller__pb2.InputEvent.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendPhone(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendPhone",+ emulator__controller__pb2.PhoneCall.SerializeToString,+ emulator__controller__pb2.PhoneResponse.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def sendSms(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/sendSms",+ emulator__controller__pb2.SmsMessage.SerializeToString,+ emulator__controller__pb2.PhoneResponse.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setPhoneNumber(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setPhoneNumber",+ emulator__controller__pb2.PhoneNumber.SerializeToString,+ emulator__controller__pb2.PhoneResponse.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getStatus(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getStatus",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.EmulatorStatus.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getScreenshot(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getScreenshot",+ emulator__controller__pb2.ImageFormat.SerializeToString,+ emulator__controller__pb2.Image.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamScreenshot(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamScreenshot",+ emulator__controller__pb2.ImageFormat.SerializeToString,+ emulator__controller__pb2.Image.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamAudio(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamAudio",+ emulator__controller__pb2.AudioFormat.SerializeToString,+ emulator__controller__pb2.AudioPacket.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def injectAudio(+ request_iterator,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.stream_unary(+ request_iterator,+ target,+ "/android.emulation.control.EmulatorController/injectAudio",+ emulator__controller__pb2.AudioPacket.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getLogcat(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getLogcat",+ emulator__controller__pb2.LogMessage.SerializeToString,+ emulator__controller__pb2.LogMessage.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamLogcat(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamLogcat",+ emulator__controller__pb2.LogMessage.SerializeToString,+ emulator__controller__pb2.LogMessage.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setVmState(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setVmState",+ emulator__controller__pb2.VmRunState.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getVmState(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getVmState",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.VmRunState.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setDisplayConfigurations(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setDisplayConfigurations",+ emulator__controller__pb2.DisplayConfigurations.SerializeToString,+ emulator__controller__pb2.DisplayConfigurations.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getDisplayConfigurations(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getDisplayConfigurations",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.DisplayConfigurations.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def streamNotification(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_stream(+ request,+ target,+ "/android.emulation.control.EmulatorController/streamNotification",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.Notification.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def rotateVirtualSceneCamera(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/rotateVirtualSceneCamera",+ emulator__controller__pb2.RotationRadian.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setVirtualSceneCameraVelocity(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity",+ emulator__controller__pb2.Velocity.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setPosture(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setPosture",+ emulator__controller__pb2.Posture.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getBrightness(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getBrightness",+ emulator__controller__pb2.BrightnessValue.SerializeToString,+ emulator__controller__pb2.BrightnessValue.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setBrightness(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setBrightness",+ emulator__controller__pb2.BrightnessValue.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getDisplayMode(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getDisplayMode",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.DisplayMode.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setDisplayMode(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setDisplayMode",+ emulator__controller__pb2.DisplayMode.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def setXrOptions(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/setXrOptions",+ emulator__controller__pb2.XrOptions.SerializeToString,+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )++ @staticmethod+ def getXrOptions(+ request,+ target,+ options=(),+ channel_credentials=None,+ call_credentials=None,+ insecure=False,+ compression=None,+ wait_for_ready=None,+ timeout=None,+ metadata=None,+ ):+ return grpc.experimental.unary_unary(+ request,+ target,+ "/android.emulation.control.EmulatorController/getXrOptions",+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,+ emulator__controller__pb2.XrOptions.FromString,+ options,+ channel_credentials,+ insecure,+ call_credentials,+ compression,+ wait_for_ready,+ timeout,+ metadata,+ _registered_method=True,+ )diff --git a/libs/python/computer-server/computer_server/handlers/android.py b/libs/python/computer-server/computer_server/handlers/android.pyindex b74d3ee1e2..33e1d3b68d 100644--- a/libs/python/computer-server/computer_server/handlers/android.py+++ b/libs/python/computer-server/computer_server/handlers/android.py@@ -1,8 +1,12 @@import asyncioimport base64import logging+import osfrom typing import Any, Dict, List, Optional, Tuple+import grpc+from google.protobuf import empty_pb2 # noqa: F401 — must be loaded before emulator pb2+from ..utils.helpers import CommandExecutorfrom .base import (BaseAccessibilityHandler,@@ -34,6 +38,27 @@ ANDROID_KEY_MAP = {logger = logging.getLogger(__name__)adb_exec = CommandExecutor("adb", "-s", "emulator-5554")+# gRPC EmulatorController — port from env var or default 8554+_GRPC_PORT = int(os.environ.get("ANDROID_GRPC_PORT", "8554"))+_grpc_channel: Optional[grpc.aio.Channel] = None+_grpc_stub = None+++async def _get_grpc_stub():+ global _grpc_channel, _grpc_stub+ if _grpc_stub is None:+ from ._grpc_emulator import emulator_controller_pb2_grpc as _pb2_grpc++ _grpc_channel = grpc.aio.insecure_channel(+ f"localhost:{_GRPC_PORT}",+ options=[+ ("grpc.max_receive_message_length", 32 * 1024 * 1024),+ ("grpc.max_send_message_length", 32 * 1024 * 1024),+ ],+ )+ _grpc_stub = _pb2_grpc.EmulatorControllerStub(_grpc_channel)+ return _grpc_stub+class AndroidAccessibilityHandler(BaseAccessibilityHandler):"""Android accessibility handler using UI Automator."""@@ -441,7 +466,10 @@ class AndroidAutomationHandler(BaseAutomationHandler):# Screen Actionsasync def screenshot(self, format: str = "png", quality: int = 95) -> Dict[str, Any]:- """Take a screenshot and return base64 encoded image.+ """Take a screenshot via the emulator's gRPC EmulatorController service.++ Uses the emulator's built-in gRPC service (port ANDROID_GRPC_PORT, default 8554)+ instead of ADB screencap, reducing latency from ~500ms to ~20ms.Args:format: "png" (lossless, default) or "jpeg" / "jpg" (lossy, ~5-10x smaller).@@ -452,20 +480,26 @@ class AndroidAutomationHandler(BaseAutomationHandler):except ValueError as e:return {"success": False, "error": str(e)}try:- success, output = await adb_exec.run("shell", "screencap", "-p")- if not (success and output):- error_msg = output.decode("utf-8") if isinstance(output, bytes) else str(output)- return {"success": False, "error": f"Screenshot failed: {error_msg}"}+ from io import BytesIO- if fmt == "jpeg":- from io import BytesIO+ from PIL import Image as PILImage++ from ._grpc_emulator import emulator_controller_pb2 as _pb2- from PIL import Image as PILImage+ stub = await _get_grpc_stub()- img = PILImage.open(BytesIO(output)).convert("RGB")+ if fmt == "jpeg":+ img_fmt = _pb2.ImageFormat(format=_pb2.ImageFormat.RGB888)+ response = await stub.getScreenshot(img_fmt)+ w, h = response.format.width, response.format.height+ img = PILImage.frombytes("RGB", (w, h), bytes(response.image))buf = BytesIO()img.save(buf, format="JPEG", quality=quality, optimize=True)output = buf.getvalue()+ else:+ img_fmt = _pb2.ImageFormat(format=_pb2.ImageFormat.PNG)+ response = await stub.getScreenshot(img_fmt)+ output = bytes(response.image)image_b64 = base64.b64encode(output).decode("utf-8")return {"success": True, "image_data": image_b64, "format": fmt}diff --git a/libs/python/computer-server/pyproject.toml b/libs/python/computer-server/pyproject.tomlindex a837200e27..9c58b139df 100644--- a/libs/python/computer-server/pyproject.toml+++ b/libs/python/computer-server/pyproject.toml@@ -35,6 +35,8 @@ dependencies = ["pywin32>=310; sys_platform == 'win32'","python-certifi-win32; sys_platform == 'win32'","cua-core>=0.1.18",+ "grpcio==1.78.0",+ "protobuf==6.31.1",][project.optional-dependencies]