package android.emulation.control

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

service EmulatorController

emulator_controller.proto:63

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.

message AudioFormat

emulator_controller.proto:948

Used as request type in: EmulatorController.streamAudio

Used as field type in: AudioPacket

enum AudioFormat.Channels

emulator_controller.proto:954

Used in: AudioFormat

enum AudioFormat.SampleFormat

emulator_controller.proto:949

Used in: AudioFormat

message AudioPacket

emulator_controller.proto:967

Used as request type in: EmulatorController.injectAudio

Used as response type in: EmulatorController.streamAudio

message BatteryState

emulator_controller.proto:732

Used as request type in: EmulatorController.setBattery

Used as response type in: EmulatorController.getBattery

enum BatteryState.BatteryCharger

emulator_controller.proto:741

Used in: BatteryState

enum BatteryState.BatteryHealth

emulator_controller.proto:748

Used in: BatteryState

enum BatteryState.BatteryStatus

emulator_controller.proto:733

Used in: BatteryState

message ClipData

emulator_controller.proto:488

Representation of a clipped data object on the clipboard.

Used as request type in: EmulatorController.setClipboard

Used as response type in: EmulatorController.getClipboard, EmulatorController.streamClipboard

message DisplayConfiguration

emulator_controller.proto:1005

A DisplayConfiguration describes a primary or secondary display available to the emulator. The screen aspect ratio cannot be longer (or wider) than 21:9 (or 9:21). Screen sizes larger than 4k will be rejected. Common configurations (w x h) are: - 480p (480x720) 142 dpi - 720p (720x1280) 213 dpi - 1080p (1080x1920) 320 dpi - 4K (2160x3840) 320 dpi - 4K (2160x3840) 640 dpi (upscaled) The behavior of the virtual display depends on the flags that are provided to this method. By default, virtual displays are created to be private, non-presentation and unsecure.

Used in: DisplayConfigurations

enum DisplayConfiguration.DisplayFlags

emulator_controller.proto:1009

These are the set of known android flags and their respective values. you can combine the int values to (de)construct the flags field below.

message DisplayConfigurations

emulator_controller.proto:1083

Used as request type in: EmulatorController.setDisplayConfigurations

Used as response type in: EmulatorController.getDisplayConfigurations, EmulatorController.setDisplayConfigurations

message Entry

emulator_controller.proto:921

Used in: EntryList

message EntryList

emulator_controller.proto:926

Used in: EmulatorStatus

message FoldedDisplay

emulator_controller.proto:789

The aspect ratio (width/height) will be different from the one where the device is unfolded.

Used in: ImageFormat

message GpsState

emulator_controller.proto:699

Used as request type in: EmulatorController.setGps

Used as response type in: EmulatorController.getGps

message Image

emulator_controller.proto:850

Used as response type in: EmulatorController.getScreenshot, EmulatorController.streamScreenshot

message ImageFormat

emulator_controller.proto:799

Used as request type in: EmulatorController.getScreenshot, EmulatorController.streamScreenshot

Used as field type in: Image

enum ImageFormat.ImgFormat

emulator_controller.proto:800

Used in: ImageFormat

message ImageTransport

emulator_controller.proto:767

An ImageTransport allows for specifying a side channel for delivering image frames versus using the standard bytes array that is returned with the gRPC request.

Used in: ImageFormat

enum ImageTransport.TransportChannel

emulator_controller.proto:768

Used in: ImageTransport

enum KeyboardEvent.KeyCodeType

emulator_controller.proto:610

Code types that the emulator can receive. Note that the emulator will do its best to translate the code to an evdev value that will be send to the emulator. This translation is based on the chromium translation tables. See (this)[https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/android/android-grpc/android/emulation/control/keyboard/keycode_converter_data.inc] for details on the translation.

Used in: KeyboardEvent

enum KeyboardEvent.KeyEventType

emulator_controller.proto:618

Used in: KeyboardEvent

message LogMessage

emulator_controller.proto:394

Used as request type in: EmulatorController.getLogcat, EmulatorController.streamLogcat

Used as response type in: EmulatorController.getLogcat, EmulatorController.streamLogcat

enum LogMessage.LogType

emulator_controller.proto:416

Used in: LogMessage

message LogcatEntry

emulator_controller.proto:423

A parsed logcat entry.

Used in: LogMessage

enum LogcatEntry.LogLevel

emulator_controller.proto:425

The possible log levels.

Used in: LogcatEntry

enum Notification.EventType

emulator_controller.proto:1088

Used in: Notification

message ParameterValue

emulator_controller.proto:284

Used in: PhysicalModelValue, SensorValue

enum PhoneCall.Operation

emulator_controller.proto:896

Used in: PhoneCall

message PhoneResponse

emulator_controller.proto:909

Used as response type in: EmulatorController.sendPhone, EmulatorController.sendSms

enum PhoneResponse.Response

emulator_controller.proto:910

Used in: PhoneResponse

message PhysicalModelValue

emulator_controller.proto:286

Used as request type in: EmulatorController.getPhysicalModel, EmulatorController.setPhysicalModel, EmulatorController.streamPhysicalModel

Used as response type in: EmulatorController.getPhysicalModel, EmulatorController.streamPhysicalModel

enum PhysicalModelValue.PhysicalType

emulator_controller.proto:297

Details on the sensors documentation can be found here: https://developer.android.com/reference/android/hardware/Sensor.html#TYPE_ The types must follow the order defined in "external/qemu/android/hw-sensors.h"

Used in: PhysicalModelValue

enum PhysicalModelValue.State

emulator_controller.proto:287

Used in: PhysicalModelValue

enum Posture.PostureValue

emulator_controller.proto:1117

Used in: Posture

message Rotation

emulator_controller.proto:876

Used in: ImageFormat

enum Rotation.SkinRotation

emulator_controller.proto:877

Used in: Rotation

message SensorValue

emulator_controller.proto:343

A single sensor value.

Used as request type in: EmulatorController.getSensor, EmulatorController.setSensor, EmulatorController.streamSensor

Used as response type in: EmulatorController.getSensor, EmulatorController.streamSensor

enum SensorValue.SensorType

emulator_controller.proto:353

These are the various sensors that can be available in an emulated devices.

Used in: SensorValue

enum SensorValue.State

emulator_controller.proto:344

Used in: SensorValue

message Touch

emulator_controller.proto:496

The Touch interface represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.

Used in: TouchEvent

enum Touch.EventExpiration

emulator_controller.proto:538

Used in: Touch

message VmConfiguration

emulator_controller.proto:453

Information about the hypervisor that is currently in use.

Used in: EmulatorStatus

enum VmConfiguration.VmHypervisorType

emulator_controller.proto:454

Used in: VmConfiguration

message VmRunState

emulator_controller.proto:251

A Run State that describes the state of the Virtual Machine.

Used as request type in: EmulatorController.setVmState

Used as response type in: EmulatorController.getVmState

enum VmRunState.RunState

emulator_controller.proto:252

Used in: VmRunState