package android.emulation.control

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

service EmulatorController

emulator_controller.proto:64

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 SnapshotService

snapshot_service.proto:69

The SnapshotService enables you to list, insert, store, and retrieve snapshots. Currently there are two types of snapshots: - Local (default): These are snapshots that are created locally. They are stored internally inside qcow2 files and are very efficient. These are the snapshots usually created by interacting with the UI. - Remote: These are snapshots that have been exported at a certain point. an exported snapshot is normalized (completely self contained) and can be imported into an emulator with a similar hardware configuration. Currently the emulator has limited support for importing snapshots: - Once an imported snapshot has been loaded into an emulator it is no longer possible to create new snapshots. - The hardware configuration of the emulator your are pushing a snapshot to must match (or be very similar) to the one you pulled the snapshot from. For example do not expect to be able to restore a snapshot on created on an Intel cpu on an AMD cpu.

message AudioFormat

emulator_controller.proto:954

Used as request type in: EmulatorController.streamAudio

Used as field type in: AudioPacket

enum AudioFormat.Channels

emulator_controller.proto:960

Used in: AudioFormat

enum AudioFormat.SampleFormat

emulator_controller.proto:955

Used in: AudioFormat

message AudioPacket

emulator_controller.proto:973

Used as request type in: EmulatorController.injectAudio

Used as response type in: EmulatorController.streamAudio

message BatteryState

emulator_controller.proto:735

Used as request type in: EmulatorController.setBattery

Used as response type in: EmulatorController.getBattery

enum BatteryState.BatteryCharger

emulator_controller.proto:744

Used in: BatteryState

enum BatteryState.BatteryHealth

emulator_controller.proto:751

Used in: BatteryState

enum BatteryState.BatteryStatus

emulator_controller.proto:736

Used in: BatteryState

message ClipData

emulator_controller.proto:491

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

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

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

Used as request type in: EmulatorController.setDisplayConfigurations

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

message Entry

emulator_controller.proto:925

Used in: EntryList

message EntryList

emulator_controller.proto:930

Used in: EmulatorStatus

message FoldedDisplay

emulator_controller.proto:792

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

Used in: ImageFormat

message GpsState

emulator_controller.proto:702

Used as request type in: EmulatorController.setGps

Used as response type in: EmulatorController.getGps

message Image

emulator_controller.proto:854

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

message ImageFormat

emulator_controller.proto:803

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

Used as field type in: Image

enum ImageFormat.ImgFormat

emulator_controller.proto:804

Used in: ImageFormat

message ImageTransport

emulator_controller.proto:770

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

Used in: ImageTransport

enum KeyboardEvent.KeyCodeType

emulator_controller.proto:613

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

Used in: KeyboardEvent

message LogMessage

emulator_controller.proto:397

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

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

enum LogMessage.LogType

emulator_controller.proto:419

Used in: LogMessage

message LogcatEntry

emulator_controller.proto:426

A parsed logcat entry.

Used in: LogMessage

enum LogcatEntry.LogLevel

emulator_controller.proto:428

The possible log levels.

Used in: LogcatEntry

enum Notification.EventType

emulator_controller.proto:1093

Used in: Notification

message ParameterValue

emulator_controller.proto:284

Used in: PhysicalModelValue, SensorValue

enum PhoneCall.Operation

emulator_controller.proto:900

Used in: PhoneCall

message PhoneResponse

emulator_controller.proto:913

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

enum PhoneResponse.Response

emulator_controller.proto:914

Used in: PhoneResponse

message PhysicalModelValue

emulator_controller.proto:288

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

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

Used in: PhysicalModelValue

enum Posture.PostureValue

emulator_controller.proto:1122

Used in: Posture

message Rotation

emulator_controller.proto:880

Used in: ImageFormat

enum Rotation.SkinRotation

emulator_controller.proto:881

Used in: Rotation

message SensorValue

emulator_controller.proto:346

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

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

Used in: SensorValue

enum SensorValue.State

emulator_controller.proto:347

Used in: SensorValue

message SnapshotDetails

snapshot_service.proto:206

Provides detailed information regarding the snapshot.

Used in: SnapshotList

enum SnapshotDetails.LoadStatus

snapshot_service.proto:207

Used in: SnapshotDetails

enum SnapshotFilter.LoadStatus

snapshot_service.proto:193

Used in: SnapshotFilter

message SnapshotPackage

snapshot_service.proto:156

Sets options for SnapshotService. Used for both request and response messages.

Used as request type in: SnapshotService.DeleteSnapshot, SnapshotService.LoadSnapshot, SnapshotService.PullSnapshot, SnapshotService.PushSnapshot, SnapshotService.SaveSnapshot

Used as response type in: SnapshotService.DeleteSnapshot, SnapshotService.LoadSnapshot, SnapshotService.PullSnapshot, SnapshotService.PushSnapshot, SnapshotService.SaveSnapshot

enum SnapshotPackage.Format

snapshot_service.proto:157

Used in: SnapshotPackage

message Touch

emulator_controller.proto:499

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

Used in: Touch

message VmConfiguration

emulator_controller.proto:456

Information about the hypervisor that is currently in use.

Used in: EmulatorStatus

enum VmConfiguration.VmHypervisorType

emulator_controller.proto:457

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