package android.emulation.control

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

service EmulatorController

emulator_controller.proto:46

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.

service Rtc

rtc_service.proto:41

An RTC service lets you interact with the emulator through WebRTC Note that this is currently an experimental feature, and that the service definition might change without notice. Use at your own risk! The following endpoints are needed to establish the webrtc protocol Due to limitiations in Javascript we cannot make use of bidirectional endpoints See this [blog](https://grpc.io/blog/state-of-grpc-web) for details.

message AudioFormat

emulator_controller.proto:1047

Used as request type in: EmulatorController.streamAudio

Used as field type in: AudioPacket

enum AudioFormat.Channels

emulator_controller.proto:1053

Used in: AudioFormat

enum AudioFormat.DeliveryMode

emulator_controller.proto:1058

Used in: AudioFormat

enum AudioFormat.SampleFormat

emulator_controller.proto:1048

Used in: AudioFormat

message AudioPacket

emulator_controller.proto:1082

Used as request type in: EmulatorController.injectAudio

Used as response type in: EmulatorController.streamAudio

message BatteryState

emulator_controller.proto:825

Used as request type in: EmulatorController.setBattery

Used as response type in: EmulatorController.getBattery

enum BatteryState.BatteryCharger

emulator_controller.proto:834

Used in: BatteryState

enum BatteryState.BatteryHealth

emulator_controller.proto:841

Used in: BatteryState

enum BatteryState.BatteryStatus

emulator_controller.proto:826

Used in: BatteryState

message BrightnessValue

emulator_controller.proto:443

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

Used in: BrightnessValue

message CameraNotification

emulator_controller.proto:1252

Fired when the virtual scene camera is activated or deactivated and also in response to the streamNotification call.

Used in: Notification

message ClipData

emulator_controller.proto:564

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

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

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

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

Used as field type in: DisplayConfigurationsChangedNotification

message DisplayConfigurationsChangedNotification

emulator_controller.proto:1262

Fired when an update to a display event has been fired through the extended ui. This does not fire events when the display is changed through the console or the gRPC endpoint.

Used in: Notification

message DisplayMode

emulator_controller.proto:466

Used as request type in: EmulatorController.setDisplayMode

Used as response type in: EmulatorController.getDisplayMode

enum DisplayModeValue

emulator_controller.proto:459

in line with android/emulation/resizable_display_config.h

Used in: DisplayMode, ImageFormat

message Entry

emulator_controller.proto:1018

Used in: EntryList

message EntryList

emulator_controller.proto:1023

Used in: EmulatorStatus

message FoldedDisplay

emulator_controller.proto:882

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

Used in: ImageFormat

message GpsState

emulator_controller.proto:791

Used as request type in: EmulatorController.setGps

Used as response type in: EmulatorController.getGps

message Image

emulator_controller.proto:947

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

message ImageFormat

emulator_controller.proto:893

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

Used as field type in: Image

enum ImageFormat.ImgFormat

emulator_controller.proto:894

Used in: ImageFormat

message ImageTransport

emulator_controller.proto:860

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

Used in: ImageTransport

message JsepMsg

rtc_service.proto:81

Used as request type in: Rtc.sendJsepMessage

Used as response type in: Rtc.receiveJsepMessage, Rtc.receiveJsepMessages

enum KeyboardEvent.KeyCodeType

emulator_controller.proto:702

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

Used in: KeyboardEvent

message LogMessage

emulator_controller.proto:470

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

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

enum LogMessage.LogType

emulator_controller.proto:492

Used in: LogMessage

message LogcatEntry

emulator_controller.proto:499

A parsed logcat entry.

Used in: LogMessage

enum LogcatEntry.LogLevel

emulator_controller.proto:501

The possible log levels.

Used in: LogcatEntry

enum Notification.EventType

emulator_controller.proto:1227

Used in: Notification

message ParameterValue

emulator_controller.proto:302

Used in: PhysicalModelValue, SensorValue

enum PhoneCall.Operation

emulator_controller.proto:993

Used in: PhoneCall

message PhoneResponse

emulator_controller.proto:1006

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

enum PhoneResponse.Response

emulator_controller.proto:1007

Used in: PhoneResponse

message PhysicalModelValue

emulator_controller.proto:306

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

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

Used in: PhysicalModelValue

enum Posture.PostureValue

emulator_controller.proto:1281

Used in: Posture

message Rotation

emulator_controller.proto:973

Used in: ImageFormat

enum Rotation.SkinRotation

emulator_controller.proto:974

Used in: Rotation

message RtcId

rtc_service.proto:74

Used as request type in: Rtc.receiveJsepMessage, Rtc.receiveJsepMessages

Used as response type in: Rtc.requestRtcStream

Used as field type in: JsepMsg

message SensorValue

emulator_controller.proto:378

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

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

Used in: SensorValue

enum SensorValue.State

emulator_controller.proto:379

Used in: SensorValue

message Touch

emulator_controller.proto:572

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

Used in: Touch

message VmConfiguration

emulator_controller.proto:529

Information about the hypervisor that is currently in use.

Used in: EmulatorStatus

enum VmConfiguration.VmHypervisorType

emulator_controller.proto:530

Used in: VmConfiguration

message VmRunState

emulator_controller.proto:265

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

Used in: VmRunState