package android.emulation.control

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

service EmulatorController

emulator_controller.proto:47

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:1045

Used as request type in: EmulatorController.streamAudio

Used as field type in: AudioPacket

enum AudioFormat.Channels

emulator_controller.proto:1051

Used in: AudioFormat

enum AudioFormat.DeliveryMode

emulator_controller.proto:1056

Used in: AudioFormat

enum AudioFormat.SampleFormat

emulator_controller.proto:1046

Used in: AudioFormat

message AudioPacket

emulator_controller.proto:1080

Used as request type in: EmulatorController.injectAudio

Used as response type in: EmulatorController.streamAudio

message BatteryState

emulator_controller.proto:823

Used as request type in: EmulatorController.setBattery

Used as response type in: EmulatorController.getBattery

enum BatteryState.BatteryCharger

emulator_controller.proto:832

Used in: BatteryState

enum BatteryState.BatteryHealth

emulator_controller.proto:839

Used in: BatteryState

enum BatteryState.BatteryStatus

emulator_controller.proto:824

Used in: BatteryState

message BrightnessValue

emulator_controller.proto:441

A single backlight brightness value.

Used as request type in: EmulatorController.getBrightness, EmulatorController.setBrightness

Used as response type in: EmulatorController.getBrightness

enum BrightnessValue.LightType

emulator_controller.proto:442

Used in: BrightnessValue

message ClipData

emulator_controller.proto:562

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:1118

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:1121

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:1207

Provides information about all the displays that can be attached to the emulator. The emulator will always have at least one display. The emulator usually has the following display configurations: 0: The default display. 1 - 3: User configurable displays. These can be added/removed. For example the standalone emulator allows you to modify these in the extended controls. 6 - 11: Fixed external displays. For example Android Auto uses fixed displays in this range.

Used as request type in: EmulatorController.setDisplayConfigurations

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

message DisplayMode

emulator_controller.proto:464

Used as request type in: EmulatorController.setDisplayMode

Used as response type in: EmulatorController.getDisplayMode

enum DisplayModeValue

emulator_controller.proto:457

in line with android/emulation/resizable_display_config.h

Used in: DisplayMode, ImageFormat

message Entry

emulator_controller.proto:1016

Used in: EntryList

message EntryList

emulator_controller.proto:1021

Used in: EmulatorStatus

message FoldedDisplay

emulator_controller.proto:880

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

Used in: ImageFormat

message GpsState

emulator_controller.proto:789

Used as request type in: EmulatorController.setGps

Used as response type in: EmulatorController.getGps

message Image

emulator_controller.proto:945

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

message ImageFormat

emulator_controller.proto:891

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

Used as field type in: Image

enum ImageFormat.ImgFormat

emulator_controller.proto:892

Used in: ImageFormat

message ImageTransport

emulator_controller.proto:858

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:859

Used in: ImageTransport

enum KeyboardEvent.KeyCodeType

emulator_controller.proto:700

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:708

Used in: KeyboardEvent

message LogMessage

emulator_controller.proto:468

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

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

enum LogMessage.LogType

emulator_controller.proto:490

Used in: LogMessage

message LogcatEntry

emulator_controller.proto:497

A parsed logcat entry.

Used in: LogMessage

enum LogcatEntry.LogLevel

emulator_controller.proto:499

The possible log levels.

Used in: LogcatEntry

enum Notification.EventType

emulator_controller.proto:1225

Used in: Notification

message ParameterValue

emulator_controller.proto:300

Used in: PhysicalModelValue, SensorValue

enum PhoneCall.Operation

emulator_controller.proto:991

Used in: PhoneCall

message PhoneResponse

emulator_controller.proto:1004

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

enum PhoneResponse.Response

emulator_controller.proto:1005

Used in: PhoneResponse

message PhysicalModelValue

emulator_controller.proto:304

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:316

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:305

Used in: PhysicalModelValue

enum Posture.PostureValue

emulator_controller.proto:1254

Used in: Posture

message Rotation

emulator_controller.proto:971

Used in: ImageFormat

enum Rotation.SkinRotation

emulator_controller.proto:972

Used in: Rotation

message SensorValue

emulator_controller.proto:376

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:386

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

Used in: SensorValue

enum SensorValue.State

emulator_controller.proto:377

Used in: SensorValue

message Touch

emulator_controller.proto:570

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:612

Used in: Touch

message VmConfiguration

emulator_controller.proto:527

Information about the hypervisor that is currently in use.

Used in: EmulatorStatus

enum VmConfiguration.VmHypervisorType

emulator_controller.proto:528

Used in: VmConfiguration

message VmRunState

emulator_controller.proto:263

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:264

Used in: VmRunState