android_emulator_control_proto

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VmRunState_RunState_name = map[int32]string{
		0:  "UNKNOWN",
		1:  "RUNNING",
		2:  "RESTORE_VM",
		3:  "PAUSED",
		4:  "SAVE_VM",
		5:  "SHUTDOWN",
		7:  "TERMINATE",
		9:  "RESET",
		10: "INTERNAL_ERROR",
	}
	VmRunState_RunState_value = map[string]int32{
		"UNKNOWN":        0,
		"RUNNING":        1,
		"RESTORE_VM":     2,
		"PAUSED":         3,
		"SAVE_VM":        4,
		"SHUTDOWN":       5,
		"TERMINATE":      7,
		"RESET":          9,
		"INTERNAL_ERROR": 10,
	}
)

Enum value maps for VmRunState_RunState.

View Source
var (
	PhysicalModelValue_State_name = map[int32]string{
		0:  "OK",
		-3: "NO_SERVICE",
		-2: "DISABLED",
		-1: "UNKNOWN",
	}
	PhysicalModelValue_State_value = map[string]int32{
		"OK":         0,
		"NO_SERVICE": -3,
		"DISABLED":   -2,
		"UNKNOWN":    -1,
	}
)

Enum value maps for PhysicalModelValue_State.

View Source
var (
	PhysicalModelValue_PhysicalType_name = map[int32]string{
		0:  "POSITION",
		1:  "ROTATION",
		2:  "MAGNETIC_FIELD",
		3:  "TEMPERATURE",
		4:  "PROXIMITY",
		5:  "LIGHT",
		6:  "PRESSURE",
		7:  "HUMIDITY",
		8:  "VELOCITY",
		9:  "AMBIENT_MOTION",
		10: "HINGE_ANGLE0",
		11: "HINGE_ANGLE1",
		12: "HINGE_ANGLE2",
		13: "ROLLABLE0",
		14: "ROLLABLE1",
		15: "ROLLABLE2",
	}
	PhysicalModelValue_PhysicalType_value = map[string]int32{
		"POSITION":       0,
		"ROTATION":       1,
		"MAGNETIC_FIELD": 2,
		"TEMPERATURE":    3,
		"PROXIMITY":      4,
		"LIGHT":          5,
		"PRESSURE":       6,
		"HUMIDITY":       7,
		"VELOCITY":       8,
		"AMBIENT_MOTION": 9,
		"HINGE_ANGLE0":   10,
		"HINGE_ANGLE1":   11,
		"HINGE_ANGLE2":   12,
		"ROLLABLE0":      13,
		"ROLLABLE1":      14,
		"ROLLABLE2":      15,
	}
)

Enum value maps for PhysicalModelValue_PhysicalType.

View Source
var (
	SensorValue_State_name = map[int32]string{
		0:  "OK",
		-3: "NO_SERVICE",
		-2: "DISABLED",
		-1: "UNKNOWN",
	}
	SensorValue_State_value = map[string]int32{
		"OK":         0,
		"NO_SERVICE": -3,
		"DISABLED":   -2,
		"UNKNOWN":    -1,
	}
)

Enum value maps for SensorValue_State.

View Source
var (
	SensorValue_SensorType_name = map[int32]string{
		0:  "ACCELERATION",
		1:  "GYROSCOPE",
		2:  "MAGNETIC_FIELD",
		3:  "ORIENTATION",
		4:  "TEMPERATURE",
		5:  "PROXIMITY",
		6:  "LIGHT",
		7:  "PRESSURE",
		8:  "HUMIDITY",
		9:  "MAGNETIC_FIELD_UNCALIBRATED",
		10: "GYROSCOPE_UNCALIBRATED",
	}
	SensorValue_SensorType_value = map[string]int32{
		"ACCELERATION":                0,
		"GYROSCOPE":                   1,
		"MAGNETIC_FIELD":              2,
		"ORIENTATION":                 3,
		"TEMPERATURE":                 4,
		"PROXIMITY":                   5,
		"LIGHT":                       6,
		"PRESSURE":                    7,
		"HUMIDITY":                    8,
		"MAGNETIC_FIELD_UNCALIBRATED": 9,
		"GYROSCOPE_UNCALIBRATED":      10,
	}
)

Enum value maps for SensorValue_SensorType.

View Source
var (
	LogMessage_LogType_name = map[int32]string{
		0: "Text",
		1: "Parsed",
	}
	LogMessage_LogType_value = map[string]int32{
		"Text":   0,
		"Parsed": 1,
	}
)

Enum value maps for LogMessage_LogType.

View Source
var (
	LogcatEntry_LogLevel_name = map[int32]string{
		0: "UNKNOWN",
		1: "DEFAULT",
		2: "VERBOSE",
		3: "DEBUG",
		4: "INFO",
		5: "WARN",
		6: "ERR",
		7: "FATAL",
		8: "SILENT",
	}
	LogcatEntry_LogLevel_value = map[string]int32{
		"UNKNOWN": 0,
		"DEFAULT": 1,
		"VERBOSE": 2,
		"DEBUG":   3,
		"INFO":    4,
		"WARN":    5,
		"ERR":     6,
		"FATAL":   7,
		"SILENT":  8,
	}
)

Enum value maps for LogcatEntry_LogLevel.

View Source
var (
	VmConfiguration_VmHypervisorType_name = map[int32]string{
		0: "UNKNOWN",
		1: "NONE",
		2: "KVM",
		3: "HAXM",
		4: "HVF",
		5: "WHPX",
		6: "GVM",
	}
	VmConfiguration_VmHypervisorType_value = map[string]int32{
		"UNKNOWN": 0,
		"NONE":    1,
		"KVM":     2,
		"HAXM":    3,
		"HVF":     4,
		"WHPX":    5,
		"GVM":     6,
	}
)

Enum value maps for VmConfiguration_VmHypervisorType.

View Source
var (
	Touch_EventExpiration_name = map[int32]string{
		0: "EVENT_EXPIRATION_UNSPECIFIED",
		1: "NEVER_EXPIRE",
	}
	Touch_EventExpiration_value = map[string]int32{
		"EVENT_EXPIRATION_UNSPECIFIED": 0,
		"NEVER_EXPIRE":                 1,
	}
)

Enum value maps for Touch_EventExpiration.

View Source
var (
	KeyboardEvent_KeyCodeType_name = map[int32]string{
		0: "Usb",
		1: "Evdev",
		2: "XKB",
		3: "Win",
		4: "Mac",
	}
	KeyboardEvent_KeyCodeType_value = map[string]int32{
		"Usb":   0,
		"Evdev": 1,
		"XKB":   2,
		"Win":   3,
		"Mac":   4,
	}
)

Enum value maps for KeyboardEvent_KeyCodeType.

View Source
var (
	KeyboardEvent_KeyEventType_name = map[int32]string{
		0: "keydown",
		1: "keyup",
		2: "keypress",
	}
	KeyboardEvent_KeyEventType_value = map[string]int32{
		"keydown":  0,
		"keyup":    1,
		"keypress": 2,
	}
)

Enum value maps for KeyboardEvent_KeyEventType.

View Source
var (
	BatteryState_BatteryStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "CHARGING",
		2: "DISCHARGING",
		3: "NOT_CHARGING",
		4: "FULL",
	}
	BatteryState_BatteryStatus_value = map[string]int32{
		"UNKNOWN":      0,
		"CHARGING":     1,
		"DISCHARGING":  2,
		"NOT_CHARGING": 3,
		"FULL":         4,
	}
)

Enum value maps for BatteryState_BatteryStatus.

View Source
var (
	BatteryState_BatteryCharger_name = map[int32]string{
		0: "NONE",
		1: "AC",
		2: "USB",
		3: "WIRELESS",
	}
	BatteryState_BatteryCharger_value = map[string]int32{
		"NONE":     0,
		"AC":       1,
		"USB":      2,
		"WIRELESS": 3,
	}
)

Enum value maps for BatteryState_BatteryCharger.

View Source
var (
	BatteryState_BatteryHealth_name = map[int32]string{
		0: "GOOD",
		1: "FAILED",
		2: "DEAD",
		3: "OVERVOLTAGE",
		4: "OVERHEATED",
	}
	BatteryState_BatteryHealth_value = map[string]int32{
		"GOOD":        0,
		"FAILED":      1,
		"DEAD":        2,
		"OVERVOLTAGE": 3,
		"OVERHEATED":  4,
	}
)

Enum value maps for BatteryState_BatteryHealth.

View Source
var (
	ImageTransport_TransportChannel_name = map[int32]string{
		0: "TRANSPORT_CHANNEL_UNSPECIFIED",
		1: "MMAP",
	}
	ImageTransport_TransportChannel_value = map[string]int32{
		"TRANSPORT_CHANNEL_UNSPECIFIED": 0,
		"MMAP":                          1,
	}
)

Enum value maps for ImageTransport_TransportChannel.

View Source
var (
	ImageFormat_ImgFormat_name = map[int32]string{
		0: "PNG",
		1: "RGBA8888",
		2: "RGB888",
	}
	ImageFormat_ImgFormat_value = map[string]int32{
		"PNG":      0,
		"RGBA8888": 1,
		"RGB888":   2,
	}
)

Enum value maps for ImageFormat_ImgFormat.

View Source
var (
	Rotation_SkinRotation_name = map[int32]string{
		0: "PORTRAIT",
		1: "LANDSCAPE",
		2: "REVERSE_PORTRAIT",
		3: "REVERSE_LANDSCAPE",
	}
	Rotation_SkinRotation_value = map[string]int32{
		"PORTRAIT":          0,
		"LANDSCAPE":         1,
		"REVERSE_PORTRAIT":  2,
		"REVERSE_LANDSCAPE": 3,
	}
)

Enum value maps for Rotation_SkinRotation.

View Source
var (
	PhoneCall_Operation_name = map[int32]string{
		0: "InitCall",
		1: "AcceptCall",
		2: "RejectCallExplicit",
		3: "RejectCallBusy",
		4: "DisconnectCall",
		5: "PlaceCallOnHold",
		6: "TakeCallOffHold",
	}
	PhoneCall_Operation_value = map[string]int32{
		"InitCall":           0,
		"AcceptCall":         1,
		"RejectCallExplicit": 2,
		"RejectCallBusy":     3,
		"DisconnectCall":     4,
		"PlaceCallOnHold":    5,
		"TakeCallOffHold":    6,
	}
)

Enum value maps for PhoneCall_Operation.

View Source
var (
	PhoneResponse_Response_name = map[int32]string{
		0: "OK",
		1: "BadOperation",
		2: "BadNumber",
		3: "InvalidAction",
		4: "ActionFailed",
		5: "RadioOff",
	}
	PhoneResponse_Response_value = map[string]int32{
		"OK":            0,
		"BadOperation":  1,
		"BadNumber":     2,
		"InvalidAction": 3,
		"ActionFailed":  4,
		"RadioOff":      5,
	}
)

Enum value maps for PhoneResponse_Response.

View Source
var (
	AudioFormat_SampleFormat_name = map[int32]string{
		0: "AUD_FMT_U8",
		1: "AUD_FMT_S16",
	}
	AudioFormat_SampleFormat_value = map[string]int32{
		"AUD_FMT_U8":  0,
		"AUD_FMT_S16": 1,
	}
)

Enum value maps for AudioFormat_SampleFormat.

View Source
var (
	AudioFormat_Channels_name = map[int32]string{
		0: "Mono",
		1: "Stereo",
	}
	AudioFormat_Channels_value = map[string]int32{
		"Mono":   0,
		"Stereo": 1,
	}
)

Enum value maps for AudioFormat_Channels.

View Source
var (
	DisplayConfiguration_DisplayFlags_name = map[int32]string{
		0:  "DISPLAYFLAGS_UNSPECIFIED",
		1:  "VIRTUAL_DISPLAY_FLAG_PUBLIC",
		2:  "VIRTUAL_DISPLAY_FLAG_PRESENTATION",
		4:  "VIRTUAL_DISPLAY_FLAG_SECURE",
		8:  "VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY",
		16: "VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR",
	}
	DisplayConfiguration_DisplayFlags_value = map[string]int32{
		"DISPLAYFLAGS_UNSPECIFIED":              0,
		"VIRTUAL_DISPLAY_FLAG_PUBLIC":           1,
		"VIRTUAL_DISPLAY_FLAG_PRESENTATION":     2,
		"VIRTUAL_DISPLAY_FLAG_SECURE":           4,
		"VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY": 8,
		"VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR":      16,
	}
)

Enum value maps for DisplayConfiguration_DisplayFlags.

View Source
var (
	Notification_EventType_name = map[int32]string{
		0: "VIRTUAL_SCENE_CAMERA_INACTIVE",
		1: "VIRTUAL_SCENE_CAMERA_ACTIVE",
		2: "DISPLAY_CONFIGURATIONS_CHANGED_UI",
	}
	Notification_EventType_value = map[string]int32{
		"VIRTUAL_SCENE_CAMERA_INACTIVE":     0,
		"VIRTUAL_SCENE_CAMERA_ACTIVE":       1,
		"DISPLAY_CONFIGURATIONS_CHANGED_UI": 2,
	}
)

Enum value maps for Notification_EventType.

View Source
var EmulatorController_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "android.emulation.control.EmulatorController",
	HandlerType: (*EmulatorControllerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getSensor",
			Handler:    _EmulatorController_GetSensor_Handler,
		},
		{
			MethodName: "setSensor",
			Handler:    _EmulatorController_SetSensor_Handler,
		},
		{
			MethodName: "setPhysicalModel",
			Handler:    _EmulatorController_SetPhysicalModel_Handler,
		},
		{
			MethodName: "getPhysicalModel",
			Handler:    _EmulatorController_GetPhysicalModel_Handler,
		},
		{
			MethodName: "setClipboard",
			Handler:    _EmulatorController_SetClipboard_Handler,
		},
		{
			MethodName: "getClipboard",
			Handler:    _EmulatorController_GetClipboard_Handler,
		},
		{
			MethodName: "setBattery",
			Handler:    _EmulatorController_SetBattery_Handler,
		},
		{
			MethodName: "getBattery",
			Handler:    _EmulatorController_GetBattery_Handler,
		},
		{
			MethodName: "setGps",
			Handler:    _EmulatorController_SetGps_Handler,
		},
		{
			MethodName: "getGps",
			Handler:    _EmulatorController_GetGps_Handler,
		},
		{
			MethodName: "sendFingerprint",
			Handler:    _EmulatorController_SendFingerprint_Handler,
		},
		{
			MethodName: "sendKey",
			Handler:    _EmulatorController_SendKey_Handler,
		},
		{
			MethodName: "sendTouch",
			Handler:    _EmulatorController_SendTouch_Handler,
		},
		{
			MethodName: "sendMouse",
			Handler:    _EmulatorController_SendMouse_Handler,
		},
		{
			MethodName: "sendPhone",
			Handler:    _EmulatorController_SendPhone_Handler,
		},
		{
			MethodName: "sendSms",
			Handler:    _EmulatorController_SendSms_Handler,
		},
		{
			MethodName: "getStatus",
			Handler:    _EmulatorController_GetStatus_Handler,
		},
		{
			MethodName: "getScreenshot",
			Handler:    _EmulatorController_GetScreenshot_Handler,
		},
		{
			MethodName: "getLogcat",
			Handler:    _EmulatorController_GetLogcat_Handler,
		},
		{
			MethodName: "setVmState",
			Handler:    _EmulatorController_SetVmState_Handler,
		},
		{
			MethodName: "getVmState",
			Handler:    _EmulatorController_GetVmState_Handler,
		},
		{
			MethodName: "setDisplayConfigurations",
			Handler:    _EmulatorController_SetDisplayConfigurations_Handler,
		},
		{
			MethodName: "getDisplayConfigurations",
			Handler:    _EmulatorController_GetDisplayConfigurations_Handler,
		},
		{
			MethodName: "rotateVirtualSceneCamera",
			Handler:    _EmulatorController_RotateVirtualSceneCamera_Handler,
		},
		{
			MethodName: "setVirtualSceneCameraVelocity",
			Handler:    _EmulatorController_SetVirtualSceneCameraVelocity_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "streamSensor",
			Handler:       _EmulatorController_StreamSensor_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "streamPhysicalModel",
			Handler:       _EmulatorController_StreamPhysicalModel_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "streamClipboard",
			Handler:       _EmulatorController_StreamClipboard_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "streamScreenshot",
			Handler:       _EmulatorController_StreamScreenshot_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "streamAudio",
			Handler:       _EmulatorController_StreamAudio_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "injectAudio",
			Handler:       _EmulatorController_InjectAudio_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "streamLogcat",
			Handler:       _EmulatorController_StreamLogcat_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "streamNotification",
			Handler:       _EmulatorController_StreamNotification_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "emulator_controller.proto",
}

EmulatorController_ServiceDesc is the grpc.ServiceDesc for EmulatorController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_emulator_controller_proto protoreflect.FileDescriptor

Functions

func RegisterEmulatorControllerServer

func RegisterEmulatorControllerServer(s grpc.ServiceRegistrar, srv EmulatorControllerServer)

Types

type AudioFormat

type AudioFormat struct {

	// Sampling rate to use, defaulting to 44100 if this is not set.
	// Note, that android devices typically will not use a sampling
	// rate higher than 48kHz. See https://developer.android.com/ndk/guides/audio.
	SamplingRate uint64                   `protobuf:"varint,1,opt,name=samplingRate,proto3" json:"samplingRate,omitempty"`
	Channels     AudioFormat_Channels     `protobuf:"varint,2,opt,name=channels,proto3,enum=android.emulation.control.AudioFormat_Channels" json:"channels,omitempty"`
	Format       AudioFormat_SampleFormat `protobuf:"varint,3,opt,name=format,proto3,enum=android.emulation.control.AudioFormat_SampleFormat" json:"format,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioFormat) Descriptor deprecated

func (*AudioFormat) Descriptor() ([]byte, []int)

Deprecated: Use AudioFormat.ProtoReflect.Descriptor instead.

func (*AudioFormat) GetChannels

func (x *AudioFormat) GetChannels() AudioFormat_Channels

func (*AudioFormat) GetFormat

func (x *AudioFormat) GetFormat() AudioFormat_SampleFormat

func (*AudioFormat) GetSamplingRate

func (x *AudioFormat) GetSamplingRate() uint64

func (*AudioFormat) ProtoMessage

func (*AudioFormat) ProtoMessage()

func (*AudioFormat) ProtoReflect

func (x *AudioFormat) ProtoReflect() protoreflect.Message

func (*AudioFormat) Reset

func (x *AudioFormat) Reset()

func (*AudioFormat) String

func (x *AudioFormat) String() string

type AudioFormat_Channels

type AudioFormat_Channels int32
const (
	AudioFormat_Mono   AudioFormat_Channels = 0
	AudioFormat_Stereo AudioFormat_Channels = 1
)

func (AudioFormat_Channels) Descriptor

func (AudioFormat_Channels) Enum

func (AudioFormat_Channels) EnumDescriptor deprecated

func (AudioFormat_Channels) EnumDescriptor() ([]byte, []int)

Deprecated: Use AudioFormat_Channels.Descriptor instead.

func (AudioFormat_Channels) Number

func (AudioFormat_Channels) String

func (x AudioFormat_Channels) String() string

func (AudioFormat_Channels) Type

type AudioFormat_SampleFormat

type AudioFormat_SampleFormat int32
const (
	AudioFormat_AUD_FMT_U8  AudioFormat_SampleFormat = 0 // Unsigned 8 bit
	AudioFormat_AUD_FMT_S16 AudioFormat_SampleFormat = 1 // Signed 16 bit (little endian)
)

func (AudioFormat_SampleFormat) Descriptor

func (AudioFormat_SampleFormat) Enum

func (AudioFormat_SampleFormat) EnumDescriptor deprecated

func (AudioFormat_SampleFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use AudioFormat_SampleFormat.Descriptor instead.

func (AudioFormat_SampleFormat) Number

func (AudioFormat_SampleFormat) String

func (x AudioFormat_SampleFormat) String() string

func (AudioFormat_SampleFormat) Type

type AudioPacket

type AudioPacket struct {
	Format *AudioFormat `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
	// Unix epoch in us when this frame was captured.
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Contains a sample in the given audio format.
	Audio []byte `protobuf:"bytes,3,opt,name=audio,proto3" json:"audio,omitempty"`
	// contains filtered or unexported fields
}

func (*AudioPacket) Descriptor deprecated

func (*AudioPacket) Descriptor() ([]byte, []int)

Deprecated: Use AudioPacket.ProtoReflect.Descriptor instead.

func (*AudioPacket) GetAudio

func (x *AudioPacket) GetAudio() []byte

func (*AudioPacket) GetFormat

func (x *AudioPacket) GetFormat() *AudioFormat

func (*AudioPacket) GetTimestamp

func (x *AudioPacket) GetTimestamp() uint64

func (*AudioPacket) ProtoMessage

func (*AudioPacket) ProtoMessage()

func (*AudioPacket) ProtoReflect

func (x *AudioPacket) ProtoReflect() protoreflect.Message

func (*AudioPacket) Reset

func (x *AudioPacket) Reset()

func (*AudioPacket) String

func (x *AudioPacket) String() string

type BatteryState

type BatteryState struct {
	HasBattery  bool                        `protobuf:"varint,1,opt,name=hasBattery,proto3" json:"hasBattery,omitempty"`
	IsPresent   bool                        `protobuf:"varint,2,opt,name=isPresent,proto3" json:"isPresent,omitempty"`
	Charger     BatteryState_BatteryCharger `` /* 127-byte string literal not displayed */
	ChargeLevel int32                       `protobuf:"varint,4,opt,name=chargeLevel,proto3" json:"chargeLevel,omitempty"`
	Health      BatteryState_BatteryHealth  `protobuf:"varint,5,opt,name=health,proto3,enum=android.emulation.control.BatteryState_BatteryHealth" json:"health,omitempty"`
	Status      BatteryState_BatteryStatus  `protobuf:"varint,6,opt,name=status,proto3,enum=android.emulation.control.BatteryState_BatteryStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*BatteryState) Descriptor deprecated

func (*BatteryState) Descriptor() ([]byte, []int)

Deprecated: Use BatteryState.ProtoReflect.Descriptor instead.

func (*BatteryState) GetChargeLevel

func (x *BatteryState) GetChargeLevel() int32

func (*BatteryState) GetCharger

func (x *BatteryState) GetCharger() BatteryState_BatteryCharger

func (*BatteryState) GetHasBattery

func (x *BatteryState) GetHasBattery() bool

func (*BatteryState) GetHealth

func (*BatteryState) GetIsPresent

func (x *BatteryState) GetIsPresent() bool

func (*BatteryState) GetStatus

func (*BatteryState) ProtoMessage

func (*BatteryState) ProtoMessage()

func (*BatteryState) ProtoReflect

func (x *BatteryState) ProtoReflect() protoreflect.Message

func (*BatteryState) Reset

func (x *BatteryState) Reset()

func (*BatteryState) String

func (x *BatteryState) String() string

type BatteryState_BatteryCharger

type BatteryState_BatteryCharger int32
const (
	BatteryState_NONE     BatteryState_BatteryCharger = 0
	BatteryState_AC       BatteryState_BatteryCharger = 1
	BatteryState_USB      BatteryState_BatteryCharger = 2
	BatteryState_WIRELESS BatteryState_BatteryCharger = 3
)

func (BatteryState_BatteryCharger) Descriptor

func (BatteryState_BatteryCharger) Enum

func (BatteryState_BatteryCharger) EnumDescriptor deprecated

func (BatteryState_BatteryCharger) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatteryState_BatteryCharger.Descriptor instead.

func (BatteryState_BatteryCharger) Number

func (BatteryState_BatteryCharger) String

func (BatteryState_BatteryCharger) Type

type BatteryState_BatteryHealth

type BatteryState_BatteryHealth int32
const (
	BatteryState_GOOD        BatteryState_BatteryHealth = 0
	BatteryState_FAILED      BatteryState_BatteryHealth = 1
	BatteryState_DEAD        BatteryState_BatteryHealth = 2
	BatteryState_OVERVOLTAGE BatteryState_BatteryHealth = 3
	BatteryState_OVERHEATED  BatteryState_BatteryHealth = 4
)

func (BatteryState_BatteryHealth) Descriptor

func (BatteryState_BatteryHealth) Enum

func (BatteryState_BatteryHealth) EnumDescriptor deprecated

func (BatteryState_BatteryHealth) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatteryState_BatteryHealth.Descriptor instead.

func (BatteryState_BatteryHealth) Number

func (BatteryState_BatteryHealth) String

func (BatteryState_BatteryHealth) Type

type BatteryState_BatteryStatus

type BatteryState_BatteryStatus int32
const (
	BatteryState_UNKNOWN      BatteryState_BatteryStatus = 0
	BatteryState_CHARGING     BatteryState_BatteryStatus = 1
	BatteryState_DISCHARGING  BatteryState_BatteryStatus = 2
	BatteryState_NOT_CHARGING BatteryState_BatteryStatus = 3
	BatteryState_FULL         BatteryState_BatteryStatus = 4
)

func (BatteryState_BatteryStatus) Descriptor

func (BatteryState_BatteryStatus) Enum

func (BatteryState_BatteryStatus) EnumDescriptor deprecated

func (BatteryState_BatteryStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatteryState_BatteryStatus.Descriptor instead.

func (BatteryState_BatteryStatus) Number

func (BatteryState_BatteryStatus) String

func (BatteryState_BatteryStatus) Type

type ClipData

type ClipData struct {

	// UTF-8 Encoded text.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Representation of a clipped data object on the clipboard.

func (*ClipData) Descriptor deprecated

func (*ClipData) Descriptor() ([]byte, []int)

Deprecated: Use ClipData.ProtoReflect.Descriptor instead.

func (*ClipData) GetText

func (x *ClipData) GetText() string

func (*ClipData) ProtoMessage

func (*ClipData) ProtoMessage()

func (*ClipData) ProtoReflect

func (x *ClipData) ProtoReflect() protoreflect.Message

func (*ClipData) Reset

func (x *ClipData) Reset()

func (*ClipData) String

func (x *ClipData) String() string

type DisplayConfiguration

type DisplayConfiguration struct {

	// The width of the display, restricted to:
	// 320 * (dpi / 160) <= width
	Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	// The heigh of the display, restricted to:
	// * 320 * (dpi / 160) <= height
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// The pixel density (dpi).
	// See https://developer.android.com/training/multiscreen/screendensities
	// for details. This value should be in the range [120, ..., 640]
	Dpi uint32 `protobuf:"varint,3,opt,name=dpi,proto3" json:"dpi,omitempty"`
	// A combination of virtual display flags. These flags can be constructed
	// by combining the DisplayFlags enum described above.
	//
	// The behavior of the virtual display depends on the flags. By default
	// virtual displays are created to be private, non-presentation and
	// unsecure.
	Flags uint32 `protobuf:"varint,4,opt,name=flags,proto3" json:"flags,omitempty"`
	// The id of the display.
	// The primary (default) display has the display ID of 0.
	// A secondary display has a display ID not 0.
	//
	// The id can be used to get or stream a screenshot.
	Display uint32 `protobuf:"varint,5,opt,name=display,proto3" json:"display,omitempty"`
	// contains filtered or unexported fields
}

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.

func (*DisplayConfiguration) Descriptor deprecated

func (*DisplayConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use DisplayConfiguration.ProtoReflect.Descriptor instead.

func (*DisplayConfiguration) GetDisplay

func (x *DisplayConfiguration) GetDisplay() uint32

func (*DisplayConfiguration) GetDpi

func (x *DisplayConfiguration) GetDpi() uint32

func (*DisplayConfiguration) GetFlags

func (x *DisplayConfiguration) GetFlags() uint32

func (*DisplayConfiguration) GetHeight

func (x *DisplayConfiguration) GetHeight() uint32

func (*DisplayConfiguration) GetWidth

func (x *DisplayConfiguration) GetWidth() uint32

func (*DisplayConfiguration) ProtoMessage

func (*DisplayConfiguration) ProtoMessage()

func (*DisplayConfiguration) ProtoReflect

func (x *DisplayConfiguration) ProtoReflect() protoreflect.Message

func (*DisplayConfiguration) Reset

func (x *DisplayConfiguration) Reset()

func (*DisplayConfiguration) String

func (x *DisplayConfiguration) String() string

type DisplayConfiguration_DisplayFlags

type DisplayConfiguration_DisplayFlags int32

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.

const (
	DisplayConfiguration_DISPLAYFLAGS_UNSPECIFIED DisplayConfiguration_DisplayFlags = 0
	// When this flag is set, the virtual display is public.
	// A public virtual display behaves just like most any other display
	// that is connected to the system such as an external or wireless
	// display. Applications can open windows on the display and the system
	// may mirror the contents of other displays onto it. see:
	// https://developer.android.com/reference/android/hardware/display/DisplayManager#VIRTUAL_DISPLAY_FLAG_PUBLIC
	DisplayConfiguration_VIRTUAL_DISPLAY_FLAG_PUBLIC DisplayConfiguration_DisplayFlags = 1
	// When this flag is set, the virtual display is registered as a
	// presentation display in the presentation display category.
	// Applications may automatically project their content to presentation
	// displays to provide richer second screen experiences.
	// https://developer.android.com/reference/android/hardware/display/DisplayManager#VIRTUAL_DISPLAY_FLAG_PRESENTATION
	DisplayConfiguration_VIRTUAL_DISPLAY_FLAG_PRESENTATION DisplayConfiguration_DisplayFlags = 2
	// When this flag is set, the virtual display is considered secure as
	// defined by the Display#FLAG_SECURE display flag. The caller promises
	// to take reasonable measures, such as over-the-air encryption, to
	// prevent the contents of the display from being intercepted or
	// recorded on a persistent medium.
	// see:
	// https://developer.android.com/reference/android/hardware/display/DisplayManager#VIRTUAL_DISPLAY_FLAG_SECURE
	DisplayConfiguration_VIRTUAL_DISPLAY_FLAG_SECURE DisplayConfiguration_DisplayFlags = 4
	// This flag is used in conjunction with VIRTUAL_DISPLAY_FLAG_PUBLIC.
	// Ordinarily public virtual displays will automatically mirror the
	// content of the default display if they have no windows of their own.
	// When this flag is specified, the virtual display will only ever show
	// its own content and will be blanked instead if it has no windows. See
	// https://developer.android.com/reference/android/hardware/display/DisplayManager#VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY
	DisplayConfiguration_VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY DisplayConfiguration_DisplayFlags = 8
	// Allows content to be mirrored on private displays when no content is
	// being shown.
	// This flag is mutually exclusive with
	// VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY. If both flags are specified
	// then the own-content only behavior will be applied.
	// see:
	// https://developer.android.com/reference/android/hardware/display/DisplayManager#VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR)
	DisplayConfiguration_VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR DisplayConfiguration_DisplayFlags = 16
)

func (DisplayConfiguration_DisplayFlags) Descriptor

func (DisplayConfiguration_DisplayFlags) Enum

func (DisplayConfiguration_DisplayFlags) EnumDescriptor deprecated

func (DisplayConfiguration_DisplayFlags) EnumDescriptor() ([]byte, []int)

Deprecated: Use DisplayConfiguration_DisplayFlags.Descriptor instead.

func (DisplayConfiguration_DisplayFlags) Number

func (DisplayConfiguration_DisplayFlags) String

func (DisplayConfiguration_DisplayFlags) Type

type DisplayConfigurations

type DisplayConfigurations struct {
	Displays []*DisplayConfiguration `protobuf:"bytes,1,rep,name=displays,proto3" json:"displays,omitempty"`
	// contains filtered or unexported fields
}

func (*DisplayConfigurations) Descriptor deprecated

func (*DisplayConfigurations) Descriptor() ([]byte, []int)

Deprecated: Use DisplayConfigurations.ProtoReflect.Descriptor instead.

func (*DisplayConfigurations) GetDisplays

func (x *DisplayConfigurations) GetDisplays() []*DisplayConfiguration

func (*DisplayConfigurations) ProtoMessage

func (*DisplayConfigurations) ProtoMessage()

func (*DisplayConfigurations) ProtoReflect

func (x *DisplayConfigurations) ProtoReflect() protoreflect.Message

func (*DisplayConfigurations) Reset

func (x *DisplayConfigurations) Reset()

func (*DisplayConfigurations) String

func (x *DisplayConfigurations) String() string

type EmulatorControllerClient

type EmulatorControllerClient interface {
	// set/get/stream the sensor data
	StreamSensor(ctx context.Context, in *SensorValue, opts ...grpc.CallOption) (EmulatorController_StreamSensorClient, error)
	GetSensor(ctx context.Context, in *SensorValue, opts ...grpc.CallOption) (*SensorValue, error)
	SetSensor(ctx context.Context, in *SensorValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// set/get/stream the physical model, this is likely the one you are
	// looking for when you wish to modify the device state.
	SetPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (*PhysicalModelValue, error)
	StreamPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (EmulatorController_StreamPhysicalModelClient, error)
	// Atomically set/get the current primary clipboard data.
	SetClipboard(ctx context.Context, in *ClipData, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetClipboard(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClipData, error)
	// Streams the current data on the clipboard. This will immediately produce
	// a result with the current state of the clipboard after which the stream
	// will block and wait until a new clip event is available from the guest.
	// Calling the setClipboard method above will not result in generating a clip
	// event. It is possible to lose clipboard events if the clipboard updates
	// very rapidly.
	StreamClipboard(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (EmulatorController_StreamClipboardClient, error)
	// Set/get the battery to the given state.
	SetBattery(ctx context.Context, in *BatteryState, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetBattery(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BatteryState, error)
	// Set the state of the gps, gps support will only work
	// properly if:
	//
	// - no location ui is active. That is the emulator
	//   is launched in headless mode (-no-window) or the location
	//   ui is disabled (-no-location-ui).
	// - the passiveUpdate is set to false. Setting this to false
	//   will disable/break the LocationUI.
	//
	// Keep in mind that android usually only samples the gps at 1 hz.
	SetGps(ctx context.Context, in *GpsState, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Gets the latest gps state as delivered by the setGps call, or location ui
	// if active.
	//
	// Note: this is not necessarily the actual gps coordinate visible at the
	// time, due to gps sample frequency (usually 1hz).
	GetGps(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GpsState, error)
	// Simulate a touch event on the finger print sensor.
	SendFingerprint(ctx context.Context, in *Fingerprint, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Send a keyboard event. Translating the event.
	SendKey(ctx context.Context, in *KeyboardEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Send touch/mouse events. Note that mouse events can be simulated
	// by touch events.
	SendTouch(ctx context.Context, in *TouchEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SendMouse(ctx context.Context, in *MouseEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Make a phone call.
	SendPhone(ctx context.Context, in *PhoneCall, opts ...grpc.CallOption) (*PhoneResponse, error)
	// Sends an sms message to the emulator.
	SendSms(ctx context.Context, in *SmsMessage, opts ...grpc.CallOption) (*PhoneResponse, error)
	// Retrieve the status of the emulator. This will contain general
	// hardware information, and whether the device has booted or not.
	GetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EmulatorStatus, error)
	// Gets an individual screenshot in the desired format.
	//
	// The image will be scaled to the desired ImageFormat, while maintaining
	// the aspect ratio. The returned image will never exceed the provided width
	// and height. Not setting the width or height (i.e. they are 0) will result
	// in using the device width and height.
	//
	// The resulting image will be properly oriented and can be displayed
	// directly without post processing. For example, if the device has a
	// 1080x1920 screen and is in landscape mode and called with no width or
	// height parameter, it will return an 1920x1080 image.
	//
	// This method will return an empty image if the display is not visible.
	GetScreenshot(ctx context.Context, in *ImageFormat, opts ...grpc.CallOption) (*Image, error)
	// Streams a series of screenshots in the desired format.
	// A new frame will be delivered whenever the device produces a new frame.
	// (Beware that this can produce a significant amount of data, and that
	// certain translations are (png transform) can be costly).
	//
	// If the requested display is not visible it will send a single empty image
	// and wait start producing images once the display becomes active, again
	// producing a single empty image when the display becomes inactive.
	StreamScreenshot(ctx context.Context, in *ImageFormat, opts ...grpc.CallOption) (EmulatorController_StreamScreenshotClient, error)
	// Streams a series of audio packets in the desired format.
	// A new frame will be delivered whenever the emulated device
	// produces a new audio frame. You can expect packets to be
	// delivered in intervals of 20-30ms.
	//
	// Be aware that this can block when the emulator does not
	// produce any audio whatsoever!
	StreamAudio(ctx context.Context, in *AudioFormat, opts ...grpc.CallOption) (EmulatorController_StreamAudioClient, error)
	// Injects a series of audio packets to the android microphone.
	// A new frame will be delivered whenever the emulated device
	// requests a new audio frame. Audio is usually delivered at a rate
	// that the emulator is requesting frames. Audio will be stored in a
	// temporary buffer that can hold 500ms of audio.
	//
	// Note: Currently the emulator will downsample to 16khz.
	//
	// -  INVALID_ARGUMENT (code 3) The sampling rate was too high
	// -  INVALID_ARGUMENT (code 3) The audio packet was too large to handle.
	// -  FAILED_PRECONDITION (code 9) If there was a microphone registered already.
	InjectAudio(ctx context.Context, opts ...grpc.CallOption) (EmulatorController_InjectAudioClient, error)
	// Returns the last 128Kb of logcat output from the emulator
	// Note that parsed logcat messages are only available after L (Api >23).
	// it is possible that the logcat buffer gets overwritten, or falls behind.
	GetLogcat(ctx context.Context, in *LogMessage, opts ...grpc.CallOption) (*LogMessage, error)
	// Streams the logcat output from the emulator. The first call
	// can retrieve up to 128Kb. This call will not return.
	// Note that parsed logcat messages are only available after L (Api >23)
	// it is possible that the logcat buffer gets overwritten, or falls behind.
	StreamLogcat(ctx context.Context, in *LogMessage, opts ...grpc.CallOption) (EmulatorController_StreamLogcatClient, error)
	// Transition the virtual machine to the desired state. Note that
	// some states are only observable. For example you cannot transition
	// to the error state.
	SetVmState(ctx context.Context, in *VmRunState, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Gets the state of the virtual machine.
	GetVmState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VmRunState, error)
	// Atomically changes the current multi-display configuration.
	// After this call the given display configurations will be activated. You
	// can only update secondary displays. Displays with id 0 will be ignored.
	//
	// This call can result in the removal or addition of secondary displays, the final
	// display state can be observed by the returned configuration.
	//
	// The following gRPC error codes can be returned:
	// -  FAILED_PRECONDITION (code 9) if the AVD does not support a configurable
	//    secondary display.
	// -  INVALID_ARGUMENT (code 3) if:
	//     - The same display id is defined multiple times.
	//     - The display configurations are outside valid ranges
	//       (see DisplayConfiguration)
	// -  INTERNAL (code 13) if there was an internal emulator failure.
	SetDisplayConfigurations(ctx context.Context, in *DisplayConfigurations, opts ...grpc.CallOption) (*DisplayConfigurations, error)
	// Returns all currently valid logical displays.
	// The gRPC error code FAILED_PRECONDITION (code 9) is returned if the AVD
	// does not support a configurable secondary display.
	GetDisplayConfigurations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DisplayConfigurations, error)
	// Notifies client of the following changes:
	//
	// - Virtual scene camera status change.
	// - Display configuration changes from extended ui. This will only be fired
	//   if the user makes modifications the extended displays through the extended
	//   control tab.
	//
	// Note that this method will send the initial virtual scene state immediately.
	StreamNotification(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (EmulatorController_StreamNotificationClient, error)
	// RotationRadian is relative to the camera's current orientation.
	RotateVirtualSceneCamera(ctx context.Context, in *RotationRadian, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Velocity is absolute
	SetVirtualSceneCameraVelocity(ctx context.Context, in *Velocity, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

EmulatorControllerClient is the client API for EmulatorController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EmulatorControllerServer

type EmulatorControllerServer interface {
	// set/get/stream the sensor data
	StreamSensor(*SensorValue, EmulatorController_StreamSensorServer) error
	GetSensor(context.Context, *SensorValue) (*SensorValue, error)
	SetSensor(context.Context, *SensorValue) (*emptypb.Empty, error)
	// set/get/stream the physical model, this is likely the one you are
	// looking for when you wish to modify the device state.
	SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
	GetPhysicalModel(context.Context, *PhysicalModelValue) (*PhysicalModelValue, error)
	StreamPhysicalModel(*PhysicalModelValue, EmulatorController_StreamPhysicalModelServer) error
	// Atomically set/get the current primary clipboard data.
	SetClipboard(context.Context, *ClipData) (*emptypb.Empty, error)
	GetClipboard(context.Context, *emptypb.Empty) (*ClipData, error)
	// Streams the current data on the clipboard. This will immediately produce
	// a result with the current state of the clipboard after which the stream
	// will block and wait until a new clip event is available from the guest.
	// Calling the setClipboard method above will not result in generating a clip
	// event. It is possible to lose clipboard events if the clipboard updates
	// very rapidly.
	StreamClipboard(*emptypb.Empty, EmulatorController_StreamClipboardServer) error
	// Set/get the battery to the given state.
	SetBattery(context.Context, *BatteryState) (*emptypb.Empty, error)
	GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
	// Set the state of the gps, gps support will only work
	// properly if:
	//
	// - no location ui is active. That is the emulator
	//   is launched in headless mode (-no-window) or the location
	//   ui is disabled (-no-location-ui).
	// - the passiveUpdate is set to false. Setting this to false
	//   will disable/break the LocationUI.
	//
	// Keep in mind that android usually only samples the gps at 1 hz.
	SetGps(context.Context, *GpsState) (*emptypb.Empty, error)
	// Gets the latest gps state as delivered by the setGps call, or location ui
	// if active.
	//
	// Note: this is not necessarily the actual gps coordinate visible at the
	// time, due to gps sample frequency (usually 1hz).
	GetGps(context.Context, *emptypb.Empty) (*GpsState, error)
	// Simulate a touch event on the finger print sensor.
	SendFingerprint(context.Context, *Fingerprint) (*emptypb.Empty, error)
	// Send a keyboard event. Translating the event.
	SendKey(context.Context, *KeyboardEvent) (*emptypb.Empty, error)
	// Send touch/mouse events. Note that mouse events can be simulated
	// by touch events.
	SendTouch(context.Context, *TouchEvent) (*emptypb.Empty, error)
	SendMouse(context.Context, *MouseEvent) (*emptypb.Empty, error)
	// Make a phone call.
	SendPhone(context.Context, *PhoneCall) (*PhoneResponse, error)
	// Sends an sms message to the emulator.
	SendSms(context.Context, *SmsMessage) (*PhoneResponse, error)
	// Retrieve the status of the emulator. This will contain general
	// hardware information, and whether the device has booted or not.
	GetStatus(context.Context, *emptypb.Empty) (*EmulatorStatus, error)
	// Gets an individual screenshot in the desired format.
	//
	// The image will be scaled to the desired ImageFormat, while maintaining
	// the aspect ratio. The returned image will never exceed the provided width
	// and height. Not setting the width or height (i.e. they are 0) will result
	// in using the device width and height.
	//
	// The resulting image will be properly oriented and can be displayed
	// directly without post processing. For example, if the device has a
	// 1080x1920 screen and is in landscape mode and called with no width or
	// height parameter, it will return an 1920x1080 image.
	//
	// This method will return an empty image if the display is not visible.
	GetScreenshot(context.Context, *ImageFormat) (*Image, error)
	// Streams a series of screenshots in the desired format.
	// A new frame will be delivered whenever the device produces a new frame.
	// (Beware that this can produce a significant amount of data, and that
	// certain translations are (png transform) can be costly).
	//
	// If the requested display is not visible it will send a single empty image
	// and wait start producing images once the display becomes active, again
	// producing a single empty image when the display becomes inactive.
	StreamScreenshot(*ImageFormat, EmulatorController_StreamScreenshotServer) error
	// Streams a series of audio packets in the desired format.
	// A new frame will be delivered whenever the emulated device
	// produces a new audio frame. You can expect packets to be
	// delivered in intervals of 20-30ms.
	//
	// Be aware that this can block when the emulator does not
	// produce any audio whatsoever!
	StreamAudio(*AudioFormat, EmulatorController_StreamAudioServer) error
	// Injects a series of audio packets to the android microphone.
	// A new frame will be delivered whenever the emulated device
	// requests a new audio frame. Audio is usually delivered at a rate
	// that the emulator is requesting frames. Audio will be stored in a
	// temporary buffer that can hold 500ms of audio.
	//
	// Note: Currently the emulator will downsample to 16khz.
	//
	// -  INVALID_ARGUMENT (code 3) The sampling rate was too high
	// -  INVALID_ARGUMENT (code 3) The audio packet was too large to handle.
	// -  FAILED_PRECONDITION (code 9) If there was a microphone registered already.
	InjectAudio(EmulatorController_InjectAudioServer) error
	// Returns the last 128Kb of logcat output from the emulator
	// Note that parsed logcat messages are only available after L (Api >23).
	// it is possible that the logcat buffer gets overwritten, or falls behind.
	GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
	// Streams the logcat output from the emulator. The first call
	// can retrieve up to 128Kb. This call will not return.
	// Note that parsed logcat messages are only available after L (Api >23)
	// it is possible that the logcat buffer gets overwritten, or falls behind.
	StreamLogcat(*LogMessage, EmulatorController_StreamLogcatServer) error
	// Transition the virtual machine to the desired state. Note that
	// some states are only observable. For example you cannot transition
	// to the error state.
	SetVmState(context.Context, *VmRunState) (*emptypb.Empty, error)
	// Gets the state of the virtual machine.
	GetVmState(context.Context, *emptypb.Empty) (*VmRunState, error)
	// Atomically changes the current multi-display configuration.
	// After this call the given display configurations will be activated. You
	// can only update secondary displays. Displays with id 0 will be ignored.
	//
	// This call can result in the removal or addition of secondary displays, the final
	// display state can be observed by the returned configuration.
	//
	// The following gRPC error codes can be returned:
	// -  FAILED_PRECONDITION (code 9) if the AVD does not support a configurable
	//    secondary display.
	// -  INVALID_ARGUMENT (code 3) if:
	//     - The same display id is defined multiple times.
	//     - The display configurations are outside valid ranges
	//       (see DisplayConfiguration)
	// -  INTERNAL (code 13) if there was an internal emulator failure.
	SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
	// Returns all currently valid logical displays.
	// The gRPC error code FAILED_PRECONDITION (code 9) is returned if the AVD
	// does not support a configurable secondary display.
	GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
	// Notifies client of the following changes:
	//
	// - Virtual scene camera status change.
	// - Display configuration changes from extended ui. This will only be fired
	//   if the user makes modifications the extended displays through the extended
	//   control tab.
	//
	// Note that this method will send the initial virtual scene state immediately.
	StreamNotification(*emptypb.Empty, EmulatorController_StreamNotificationServer) error
	// RotationRadian is relative to the camera's current orientation.
	RotateVirtualSceneCamera(context.Context, *RotationRadian) (*emptypb.Empty, error)
	// Velocity is absolute
	SetVirtualSceneCameraVelocity(context.Context, *Velocity) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

EmulatorControllerServer is the server API for EmulatorController service. All implementations must embed UnimplementedEmulatorControllerServer for forward compatibility

type EmulatorController_InjectAudioClient

type EmulatorController_InjectAudioClient interface {
	Send(*AudioPacket) error
	CloseAndRecv() (*emptypb.Empty, error)
	grpc.ClientStream
}

type EmulatorController_InjectAudioServer

type EmulatorController_InjectAudioServer interface {
	SendAndClose(*emptypb.Empty) error
	Recv() (*AudioPacket, error)
	grpc.ServerStream
}

type EmulatorController_StreamAudioClient

type EmulatorController_StreamAudioClient interface {
	Recv() (*AudioPacket, error)
	grpc.ClientStream
}

type EmulatorController_StreamAudioServer

type EmulatorController_StreamAudioServer interface {
	Send(*AudioPacket) error
	grpc.ServerStream
}

type EmulatorController_StreamClipboardClient

type EmulatorController_StreamClipboardClient interface {
	Recv() (*ClipData, error)
	grpc.ClientStream
}

type EmulatorController_StreamClipboardServer

type EmulatorController_StreamClipboardServer interface {
	Send(*ClipData) error
	grpc.ServerStream
}

type EmulatorController_StreamLogcatClient

type EmulatorController_StreamLogcatClient interface {
	Recv() (*LogMessage, error)
	grpc.ClientStream
}

type EmulatorController_StreamLogcatServer

type EmulatorController_StreamLogcatServer interface {
	Send(*LogMessage) error
	grpc.ServerStream
}

type EmulatorController_StreamNotificationClient

type EmulatorController_StreamNotificationClient interface {
	Recv() (*Notification, error)
	grpc.ClientStream
}

type EmulatorController_StreamNotificationServer

type EmulatorController_StreamNotificationServer interface {
	Send(*Notification) error
	grpc.ServerStream
}

type EmulatorController_StreamPhysicalModelClient

type EmulatorController_StreamPhysicalModelClient interface {
	Recv() (*PhysicalModelValue, error)
	grpc.ClientStream
}

type EmulatorController_StreamPhysicalModelServer

type EmulatorController_StreamPhysicalModelServer interface {
	Send(*PhysicalModelValue) error
	grpc.ServerStream
}

type EmulatorController_StreamScreenshotClient

type EmulatorController_StreamScreenshotClient interface {
	Recv() (*Image, error)
	grpc.ClientStream
}

type EmulatorController_StreamScreenshotServer

type EmulatorController_StreamScreenshotServer interface {
	Send(*Image) error
	grpc.ServerStream
}

type EmulatorController_StreamSensorClient

type EmulatorController_StreamSensorClient interface {
	Recv() (*SensorValue, error)
	grpc.ClientStream
}

type EmulatorController_StreamSensorServer

type EmulatorController_StreamSensorServer interface {
	Send(*SensorValue) error
	grpc.ServerStream
}

type EmulatorStatus

type EmulatorStatus struct {

	// The emulator version string.
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// The time the emulator has been active in .ms
	Uptime uint64 `protobuf:"varint,2,opt,name=uptime,proto3" json:"uptime,omitempty"`
	// True if the device has completed booting.
	// For P and later this information will accurate,
	// for older images we rely on adb.
	Booted bool `protobuf:"varint,3,opt,name=booted,proto3" json:"booted,omitempty"`
	// The current vm configuration
	VmConfig *VmConfiguration `protobuf:"bytes,4,opt,name=vmConfig,proto3" json:"vmConfig,omitempty"`
	// The hardware configuration of the running emulator as
	// key valure pairs.
	HardwareConfig *EntryList `protobuf:"bytes,5,opt,name=hardwareConfig,proto3" json:"hardwareConfig,omitempty"`
	// contains filtered or unexported fields
}

func (*EmulatorStatus) Descriptor deprecated

func (*EmulatorStatus) Descriptor() ([]byte, []int)

Deprecated: Use EmulatorStatus.ProtoReflect.Descriptor instead.

func (*EmulatorStatus) GetBooted

func (x *EmulatorStatus) GetBooted() bool

func (*EmulatorStatus) GetHardwareConfig

func (x *EmulatorStatus) GetHardwareConfig() *EntryList

func (*EmulatorStatus) GetUptime

func (x *EmulatorStatus) GetUptime() uint64

func (*EmulatorStatus) GetVersion

func (x *EmulatorStatus) GetVersion() string

func (*EmulatorStatus) GetVmConfig

func (x *EmulatorStatus) GetVmConfig() *VmConfiguration

func (*EmulatorStatus) ProtoMessage

func (*EmulatorStatus) ProtoMessage()

func (*EmulatorStatus) ProtoReflect

func (x *EmulatorStatus) ProtoReflect() protoreflect.Message

func (*EmulatorStatus) Reset

func (x *EmulatorStatus) Reset()

func (*EmulatorStatus) String

func (x *EmulatorStatus) String() string

type Entry

type Entry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetKey

func (x *Entry) GetKey() string

func (*Entry) GetValue

func (x *Entry) GetValue() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type EntryList

type EntryList struct {
	Entry []*Entry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

func (*EntryList) Descriptor deprecated

func (*EntryList) Descriptor() ([]byte, []int)

Deprecated: Use EntryList.ProtoReflect.Descriptor instead.

func (*EntryList) GetEntry

func (x *EntryList) GetEntry() []*Entry

func (*EntryList) ProtoMessage

func (*EntryList) ProtoMessage()

func (*EntryList) ProtoReflect

func (x *EntryList) ProtoReflect() protoreflect.Message

func (*EntryList) Reset

func (x *EntryList) Reset()

func (*EntryList) String

func (x *EntryList) String() string

type Fingerprint

type Fingerprint struct {

	// True when the fingprint is touched.
	IsTouching bool `protobuf:"varint,1,opt,name=isTouching,proto3" json:"isTouching,omitempty"`
	// The identifier of the registered fingerprint.
	TouchId int32 `protobuf:"varint,2,opt,name=touchId,proto3" json:"touchId,omitempty"`
	// contains filtered or unexported fields
}

func (*Fingerprint) Descriptor deprecated

func (*Fingerprint) Descriptor() ([]byte, []int)

Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.

func (*Fingerprint) GetIsTouching

func (x *Fingerprint) GetIsTouching() bool

func (*Fingerprint) GetTouchId

func (x *Fingerprint) GetTouchId() int32

func (*Fingerprint) ProtoMessage

func (*Fingerprint) ProtoMessage()

func (*Fingerprint) ProtoReflect

func (x *Fingerprint) ProtoReflect() protoreflect.Message

func (*Fingerprint) Reset

func (x *Fingerprint) Reset()

func (*Fingerprint) String

func (x *Fingerprint) String() string

type FoldedDisplay

type FoldedDisplay struct {
	Width  uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
	Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
	// It is possible for the screen to be folded in different ways depending
	// on which surface is shown to the user. So xOffset and yOffset indicate
	// the top left corner of the folded screen within the original unfolded screen.
	XOffset uint32 `protobuf:"varint,3,opt,name=xOffset,proto3" json:"xOffset,omitempty"`
	YOffset uint32 `protobuf:"varint,4,opt,name=yOffset,proto3" json:"yOffset,omitempty"`
	// contains filtered or unexported fields
}

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

func (*FoldedDisplay) Descriptor deprecated

func (*FoldedDisplay) Descriptor() ([]byte, []int)

Deprecated: Use FoldedDisplay.ProtoReflect.Descriptor instead.

func (*FoldedDisplay) GetHeight

func (x *FoldedDisplay) GetHeight() uint32

func (*FoldedDisplay) GetWidth

func (x *FoldedDisplay) GetWidth() uint32

func (*FoldedDisplay) GetXOffset

func (x *FoldedDisplay) GetXOffset() uint32

func (*FoldedDisplay) GetYOffset

func (x *FoldedDisplay) GetYOffset() uint32

func (*FoldedDisplay) ProtoMessage

func (*FoldedDisplay) ProtoMessage()

func (*FoldedDisplay) ProtoReflect

func (x *FoldedDisplay) ProtoReflect() protoreflect.Message

func (*FoldedDisplay) Reset

func (x *FoldedDisplay) Reset()

func (*FoldedDisplay) String

func (x *FoldedDisplay) String() string

type GpsState

type GpsState struct {

	// Setting this to false will disable auto updating  from the LocationUI,
	// otherwise the location UI will override the location at a frequency of 1hz.
	//
	// - This is unused if the emulator is launched with -no-window, or when he
	//   location ui is disabled.
	// - This will BREAK the location ui experience if it is set to false. For
	//    example routing will no longer function.
	PassiveUpdate bool `protobuf:"varint,1,opt,name=passiveUpdate,proto3" json:"passiveUpdate,omitempty"`
	// The latitude, in degrees.
	Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	// The longitude, in degrees.
	Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	// The speed if it is available, in meters/second over ground
	Speed float64 `protobuf:"fixed64,4,opt,name=speed,proto3" json:"speed,omitempty"`
	// gets the horizontal direction of travel of this device, and is not
	// related to the device orientation. It is guaranteed to be in the
	// range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
	// 180=South, etc..
	Bearing float64 `protobuf:"fixed64,5,opt,name=bearing,proto3" json:"bearing,omitempty"`
	// The altitude if available, in meters above the WGS 84 reference
	// ellipsoid.
	Altitude float64 `protobuf:"fixed64,6,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// The number of satellites used to derive the fix
	Satellites int32 `protobuf:"varint,7,opt,name=satellites,proto3" json:"satellites,omitempty"`
	// contains filtered or unexported fields
}

func (*GpsState) Descriptor deprecated

func (*GpsState) Descriptor() ([]byte, []int)

Deprecated: Use GpsState.ProtoReflect.Descriptor instead.

func (*GpsState) GetAltitude

func (x *GpsState) GetAltitude() float64

func (*GpsState) GetBearing

func (x *GpsState) GetBearing() float64

func (*GpsState) GetLatitude

func (x *GpsState) GetLatitude() float64

func (*GpsState) GetLongitude

func (x *GpsState) GetLongitude() float64

func (*GpsState) GetPassiveUpdate

func (x *GpsState) GetPassiveUpdate() bool

func (*GpsState) GetSatellites

func (x *GpsState) GetSatellites() int32

func (*GpsState) GetSpeed

func (x *GpsState) GetSpeed() float64

func (*GpsState) ProtoMessage

func (*GpsState) ProtoMessage()

func (*GpsState) ProtoReflect

func (x *GpsState) ProtoReflect() protoreflect.Message

func (*GpsState) Reset

func (x *GpsState) Reset()

func (*GpsState) String

func (x *GpsState) String() string

type Image

type Image struct {
	Format *ImageFormat `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"`
	// Deprecated: Do not use.
	Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // width is contained in format.
	// Deprecated: Do not use.
	Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // height is contained in format.
	// The organization of the pixels in the image buffer is from left to
	// right and bottom up. This will be empty if an alternative image transport
	// is requested in the image format. In that case the side channel should
	// be used to obtain the image data.
	Image []byte `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// [Output Only] Monotonically increasing sequence number in a stream of
	// screenshots. The first screenshot will have a sequence of 0. A single
	// screenshot will always have a sequence number of 0. The sequence is not
	// necessarily contiguous, and can be used to detect how many frames were
	// dropped. An example sequence could be: [0, 3, 5, 7, 9, 11].
	Seq uint32 `protobuf:"varint,5,opt,name=seq,proto3" json:"seq,omitempty"`
	// [Output Only] Unix timestamp in microseconds when the emulator estimates
	// the frame was generated. The timestamp is before the actual frame is
	// copied and transformed. This can be used to calculate variance between
	// frame production time, and frame depiction time.
	TimestampUs uint64 `protobuf:"varint,6,opt,name=timestampUs,proto3" json:"timestampUs,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetFormat

func (x *Image) GetFormat() *ImageFormat

func (*Image) GetHeight deprecated

func (x *Image) GetHeight() uint32

Deprecated: Do not use.

func (*Image) GetImage

func (x *Image) GetImage() []byte

func (*Image) GetSeq

func (x *Image) GetSeq() uint32

func (*Image) GetTimestampUs

func (x *Image) GetTimestampUs() uint64

func (*Image) GetWidth deprecated

func (x *Image) GetWidth() uint32

Deprecated: Do not use.

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type ImageFormat

type ImageFormat struct {

	// The (desired) format of the resulting bytes.
	Format ImageFormat_ImgFormat `protobuf:"varint,1,opt,name=format,proto3,enum=android.emulation.control.ImageFormat_ImgFormat" json:"format,omitempty"`
	// [Output Only] The rotation of the image. The image will be rotated
	// based upon the coarse grained orientation of the device.
	Rotation *Rotation `protobuf:"bytes,2,opt,name=rotation,proto3" json:"rotation,omitempty"`
	// The (desired) width of the image. When passed as input
	// the image will be scaled to match the given
	// width, while maintaining the aspect ratio of the device.
	// The returned image will never exceed the given width, but can be less.
	// Omitting this value (or passing in 0) will result in no scaling,
	// and the width of the actual device will be used.
	Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"`
	// The (desired) height of the image.  When passed as input
	// the image will be scaled to match the given
	// height, while maintaining the aspect ratio of the device.
	// The returned image will never exceed the given height, but can be less.
	// Omitting this value (or passing in 0) will result in no scaling,
	// and the height of the actual device will be used.
	Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	// The (desired) display id of the device. Setting this to 0 (or omitting)
	// indicates the main display.
	Display uint32 `protobuf:"varint,5,opt,name=display,proto3" json:"display,omitempty"`
	// Set this if you wish to use a different transport channel to deliver image
	// frames.
	Transport *ImageTransport `protobuf:"bytes,6,opt,name=transport,proto3" json:"transport,omitempty"`
	// [Output Only] Display configuration when screen is folded. The value is the
	// original configuration before scaling.
	FoldedDisplay *FoldedDisplay `protobuf:"bytes,7,opt,name=foldedDisplay,proto3" json:"foldedDisplay,omitempty"`
	// contains filtered or unexported fields
}

func (*ImageFormat) Descriptor deprecated

func (*ImageFormat) Descriptor() ([]byte, []int)

Deprecated: Use ImageFormat.ProtoReflect.Descriptor instead.

func (*ImageFormat) GetDisplay

func (x *ImageFormat) GetDisplay() uint32

func (*ImageFormat) GetFoldedDisplay

func (x *ImageFormat) GetFoldedDisplay() *FoldedDisplay

func (*ImageFormat) GetFormat

func (x *ImageFormat) GetFormat() ImageFormat_ImgFormat

func (*ImageFormat) GetHeight

func (x *ImageFormat) GetHeight() uint32

func (*ImageFormat) GetRotation

func (x *ImageFormat) GetRotation() *Rotation

func (*ImageFormat) GetTransport

func (x *ImageFormat) GetTransport() *ImageTransport

func (*ImageFormat) GetWidth

func (x *ImageFormat) GetWidth() uint32

func (*ImageFormat) ProtoMessage

func (*ImageFormat) ProtoMessage()

func (*ImageFormat) ProtoReflect

func (x *ImageFormat) ProtoReflect() protoreflect.Message

func (*ImageFormat) Reset

func (x *ImageFormat) Reset()

func (*ImageFormat) String

func (x *ImageFormat) String() string

type ImageFormat_ImgFormat

type ImageFormat_ImgFormat int32
const (
	// Portable Network Graphics format
	// (https://en.wikipedia.org/wiki/Portable_Network_Graphics)
	ImageFormat_PNG ImageFormat_ImgFormat = 0
	// Three-channel RGB color model supplemented with a fourth alpha
	// channel. https://en.wikipedia.org/wiki/RGBA_color_model
	// Each pixel consists of 4 bytes.
	ImageFormat_RGBA8888 ImageFormat_ImgFormat = 1
	// Three-channel RGB color model, each pixel consists of 3 bytes
	ImageFormat_RGB888 ImageFormat_ImgFormat = 2
)

func (ImageFormat_ImgFormat) Descriptor

func (ImageFormat_ImgFormat) Enum

func (ImageFormat_ImgFormat) EnumDescriptor deprecated

func (ImageFormat_ImgFormat) EnumDescriptor() ([]byte, []int)

Deprecated: Use ImageFormat_ImgFormat.Descriptor instead.

func (ImageFormat_ImgFormat) Number

func (ImageFormat_ImgFormat) String

func (x ImageFormat_ImgFormat) String() string

func (ImageFormat_ImgFormat) Type

type ImageTransport

type ImageTransport struct {

	// The desired transport channel used for delivering image frames. Only
	// relevant when streaming screenshots.
	Channel ImageTransport_TransportChannel `` /* 131-byte string literal not displayed */
	// Handle used for writing image frames if transport is mmap. The client sets
	// and owns this handle. It can be either a shm region, or a mmap. A mmap
	// should be a url that starts with `file:///`
	// Note: the mmap can result in tearing.
	Handle string `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
	// contains filtered or unexported fields
}

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.

func (*ImageTransport) Descriptor deprecated

func (*ImageTransport) Descriptor() ([]byte, []int)

Deprecated: Use ImageTransport.ProtoReflect.Descriptor instead.

func (*ImageTransport) GetChannel

func (*ImageTransport) GetHandle

func (x *ImageTransport) GetHandle() string

func (*ImageTransport) ProtoMessage

func (*ImageTransport) ProtoMessage()

func (*ImageTransport) ProtoReflect

func (x *ImageTransport) ProtoReflect() protoreflect.Message

func (*ImageTransport) Reset

func (x *ImageTransport) Reset()

func (*ImageTransport) String

func (x *ImageTransport) String() string

type ImageTransport_TransportChannel

type ImageTransport_TransportChannel int32
const (
	// Return full frames over the gRPC transport
	ImageTransport_TRANSPORT_CHANNEL_UNSPECIFIED ImageTransport_TransportChannel = 0
	// Write images to the a file/shared memory handle.
	ImageTransport_MMAP ImageTransport_TransportChannel = 1
)

func (ImageTransport_TransportChannel) Descriptor

func (ImageTransport_TransportChannel) Enum

func (ImageTransport_TransportChannel) EnumDescriptor deprecated

func (ImageTransport_TransportChannel) EnumDescriptor() ([]byte, []int)

Deprecated: Use ImageTransport_TransportChannel.Descriptor instead.

func (ImageTransport_TransportChannel) Number

func (ImageTransport_TransportChannel) String

func (ImageTransport_TransportChannel) Type

type KeyboardEvent

type KeyboardEvent struct {

	// Type of keycode contained in the keyCode field.
	CodeType KeyboardEvent_KeyCodeType `` /* 127-byte string literal not displayed */
	// The type of keyboard event that should be sent to the emulator
	EventType KeyboardEvent_KeyEventType `` /* 130-byte string literal not displayed */
	// This property represents a physical key on the keyboard (as opposed
	// to the character generated by pressing the key). In other words, this
	// property is a value which isn't altered by keyboard layout or the
	// state of the modifier keys. This value will be interpreted by the
	// emulator depending on the KeyCodeType. The incoming key code will be
	// translated to an evdev code type and send to the emulator.
	// The values in key and text will be ignored.
	KeyCode int32 `protobuf:"varint,3,opt,name=keyCode,proto3" json:"keyCode,omitempty"`
	// The value of the key pressed by the user, taking into consideration
	// the state of modifier keys such as Shift as well as the keyboard
	// locale and layout. This follows the w3c standard used in browsers.
	// You can find an accurate description of valid values
	// [here](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values)
	//
	// Note that some keys can result in multiple evdev events that are
	// delivered to the emulator. for example the Key "A" will result in a
	// sequence:
	// ["Shift", "a"] -> [0x2a, 0x1e] whereas "a" results in ["a"] -> [0x1e].
	//
	// Not all documented keys are understood by android, and only printable
	// ASCII [32-127) characters are properly translated.
	//
	// Keep in mind that there are a set of key values that result in android
	// specific behavior
	// [see](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values#Phone_keys):
	//
	// - "AppSwitch": Behaves as the "Overview" button in android.
	// - "GoBack": The Back button.
	// - "GoHome": The Home button, which takes the user to the phone's main
	//             screen (usually an application launcher).
	// - "Power":  The Power button.
	Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	// Series of utf8 encoded characters to send to the emulator. An attempt
	// will be made to translate every character will an EvDev event type and
	// send to the emulator as a keypress event. The values in keyCode,
	// eventType, codeType and key will be ignored.
	//
	// Note that most printable ASCII characters (range [32-127) can be send
	// individually with the "key" param. Do not expect arbitrary UTF symbols to
	// arrive in the emulator (most will be ignored).
	//
	// Note that it is possible to overrun the keyboard buffer by slamming this
	// endpoint with large quantities of text (>1kb). The clipboard api is better
	// suited for transferring large quantities of text.
	Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard. This follows the pattern as set by (javascript)[https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent]

Note: that only keyCode, key, or text can be set and that the semantics will slightly vary.

func (*KeyboardEvent) Descriptor deprecated

func (*KeyboardEvent) Descriptor() ([]byte, []int)

Deprecated: Use KeyboardEvent.ProtoReflect.Descriptor instead.

func (*KeyboardEvent) GetCodeType

func (x *KeyboardEvent) GetCodeType() KeyboardEvent_KeyCodeType

func (*KeyboardEvent) GetEventType

func (x *KeyboardEvent) GetEventType() KeyboardEvent_KeyEventType

func (*KeyboardEvent) GetKey

func (x *KeyboardEvent) GetKey() string

func (*KeyboardEvent) GetKeyCode

func (x *KeyboardEvent) GetKeyCode() int32

func (*KeyboardEvent) GetText

func (x *KeyboardEvent) GetText() string

func (*KeyboardEvent) ProtoMessage

func (*KeyboardEvent) ProtoMessage()

func (*KeyboardEvent) ProtoReflect

func (x *KeyboardEvent) ProtoReflect() protoreflect.Message

func (*KeyboardEvent) Reset

func (x *KeyboardEvent) Reset()

func (*KeyboardEvent) String

func (x *KeyboardEvent) String() string

type KeyboardEvent_KeyCodeType

type KeyboardEvent_KeyCodeType int32

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.

const (
	KeyboardEvent_Usb   KeyboardEvent_KeyCodeType = 0
	KeyboardEvent_Evdev KeyboardEvent_KeyCodeType = 1
	KeyboardEvent_XKB   KeyboardEvent_KeyCodeType = 2
	KeyboardEvent_Win   KeyboardEvent_KeyCodeType = 3
	KeyboardEvent_Mac   KeyboardEvent_KeyCodeType = 4
)

func (KeyboardEvent_KeyCodeType) Descriptor

func (KeyboardEvent_KeyCodeType) Enum

func (KeyboardEvent_KeyCodeType) EnumDescriptor deprecated

func (KeyboardEvent_KeyCodeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyboardEvent_KeyCodeType.Descriptor instead.

func (KeyboardEvent_KeyCodeType) Number

func (KeyboardEvent_KeyCodeType) String

func (x KeyboardEvent_KeyCodeType) String() string

func (KeyboardEvent_KeyCodeType) Type

type KeyboardEvent_KeyEventType

type KeyboardEvent_KeyEventType int32
const (
	// Indicates that this keyevent should be send to the emulator
	// as a key down event. Meaning that the key event will be
	// translated to an EvDev event type and bit 11 (0x400) will be
	// set before it is sent to the emulator.
	KeyboardEvent_keydown KeyboardEvent_KeyEventType = 0
	// Indicates that the keyevent should be send to the emulator
	// as a key up event. Meaning that the key event will be
	// translated to an EvDev event type and
	// sent to the emulator.
	KeyboardEvent_keyup KeyboardEvent_KeyEventType = 1
	// Indicates that the keyevent will be send to the emulator
	// as e key down event and immediately followed by a keyup event.
	KeyboardEvent_keypress KeyboardEvent_KeyEventType = 2
)

func (KeyboardEvent_KeyEventType) Descriptor

func (KeyboardEvent_KeyEventType) Enum

func (KeyboardEvent_KeyEventType) EnumDescriptor deprecated

func (KeyboardEvent_KeyEventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use KeyboardEvent_KeyEventType.Descriptor instead.

func (KeyboardEvent_KeyEventType) Number

func (KeyboardEvent_KeyEventType) String

func (KeyboardEvent_KeyEventType) Type

type LogMessage

type LogMessage struct {

	// [Output Only] The contents of the log output.
	Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
	// The starting byte position of the output that was returned. This
	// should match the start parameter sent with the request. If the serial
	// console output exceeds the size of the buffer, older output will be
	// overwritten by newer content and the start values will be mismatched.
	Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
	//[Output Only] The position of the next byte of content from the serial
	// console output. Use this value in the next request as the start
	// parameter.
	Next int64 `protobuf:"varint,3,opt,name=next,proto3" json:"next,omitempty"`
	// Set the sort of response you are interested it in.
	// It the type is "Parsed" the entries field will contain the parsed
	// results. otherwise the contents field will be set.
	Sort LogMessage_LogType `protobuf:"varint,4,opt,name=sort,proto3,enum=android.emulation.control.LogMessage_LogType" json:"sort,omitempty"`
	// [Output Only] The parsed logcat entries so far. Only set if sort is
	// set to Parsed
	Entries []*LogcatEntry `protobuf:"bytes,5,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*LogMessage) Descriptor deprecated

func (*LogMessage) Descriptor() ([]byte, []int)

Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.

func (*LogMessage) GetContents

func (x *LogMessage) GetContents() string

func (*LogMessage) GetEntries

func (x *LogMessage) GetEntries() []*LogcatEntry

func (*LogMessage) GetNext

func (x *LogMessage) GetNext() int64

func (*LogMessage) GetSort

func (x *LogMessage) GetSort() LogMessage_LogType

func (*LogMessage) GetStart

func (x *LogMessage) GetStart() int64

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) ProtoReflect

func (x *LogMessage) ProtoReflect() protoreflect.Message

func (*LogMessage) Reset

func (x *LogMessage) Reset()

func (*LogMessage) String

func (x *LogMessage) String() string

type LogMessage_LogType

type LogMessage_LogType int32
const (
	LogMessage_Text   LogMessage_LogType = 0
	LogMessage_Parsed LogMessage_LogType = 1
)

func (LogMessage_LogType) Descriptor

func (LogMessage_LogType) Enum

func (LogMessage_LogType) EnumDescriptor deprecated

func (LogMessage_LogType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogMessage_LogType.Descriptor instead.

func (LogMessage_LogType) Number

func (LogMessage_LogType) String

func (x LogMessage_LogType) String() string

func (LogMessage_LogType) Type

type LogcatEntry

type LogcatEntry struct {

	// A Unix timestamps in  milliseconds (The number of milliseconds that
	// have elapsed since January 1, 1970 (midnight UTC/GMT), not counting
	// leap seconds)
	Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Process id.
	Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"`
	// Thread id.
	Tid   uint32               `protobuf:"varint,3,opt,name=tid,proto3" json:"tid,omitempty"`
	Level LogcatEntry_LogLevel `protobuf:"varint,4,opt,name=level,proto3,enum=android.emulation.control.LogcatEntry_LogLevel" json:"level,omitempty"`
	Tag   string               `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
	Msg   string               `protobuf:"bytes,6,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

A parsed logcat entry.

func (*LogcatEntry) Descriptor deprecated

func (*LogcatEntry) Descriptor() ([]byte, []int)

Deprecated: Use LogcatEntry.ProtoReflect.Descriptor instead.

func (*LogcatEntry) GetLevel

func (x *LogcatEntry) GetLevel() LogcatEntry_LogLevel

func (*LogcatEntry) GetMsg

func (x *LogcatEntry) GetMsg() string

func (*LogcatEntry) GetPid

func (x *LogcatEntry) GetPid() uint32

func (*LogcatEntry) GetTag

func (x *LogcatEntry) GetTag() string

func (*LogcatEntry) GetTid

func (x *LogcatEntry) GetTid() uint32

func (*LogcatEntry) GetTimestamp

func (x *LogcatEntry) GetTimestamp() uint64

func (*LogcatEntry) ProtoMessage

func (*LogcatEntry) ProtoMessage()

func (*LogcatEntry) ProtoReflect

func (x *LogcatEntry) ProtoReflect() protoreflect.Message

func (*LogcatEntry) Reset

func (x *LogcatEntry) Reset()

func (*LogcatEntry) String

func (x *LogcatEntry) String() string

type LogcatEntry_LogLevel

type LogcatEntry_LogLevel int32

The possible log levels.

const (
	LogcatEntry_UNKNOWN LogcatEntry_LogLevel = 0
	LogcatEntry_DEFAULT LogcatEntry_LogLevel = 1
	LogcatEntry_VERBOSE LogcatEntry_LogLevel = 2
	LogcatEntry_DEBUG   LogcatEntry_LogLevel = 3
	LogcatEntry_INFO    LogcatEntry_LogLevel = 4
	LogcatEntry_WARN    LogcatEntry_LogLevel = 5
	LogcatEntry_ERR     LogcatEntry_LogLevel = 6
	LogcatEntry_FATAL   LogcatEntry_LogLevel = 7
	LogcatEntry_SILENT  LogcatEntry_LogLevel = 8
)

func (LogcatEntry_LogLevel) Descriptor

func (LogcatEntry_LogLevel) Enum

func (LogcatEntry_LogLevel) EnumDescriptor deprecated

func (LogcatEntry_LogLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use LogcatEntry_LogLevel.Descriptor instead.

func (LogcatEntry_LogLevel) Number

func (LogcatEntry_LogLevel) String

func (x LogcatEntry_LogLevel) String() string

func (LogcatEntry_LogLevel) Type

type MouseEvent

type MouseEvent struct {

	// The horizontal coordinate. This is the physical location on the
	// screen For example 0 indicates the leftmost coordinate.
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// The vertical coordinate. This is the physical location on the screen
	// For example 0 indicates the top left coordinate.
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// Indicates which buttons are pressed.
	// 0: No button was pressed
	// 1: Primary button (left)
	// 2: Secondary button (right)
	Buttons int32 `protobuf:"varint,3,opt,name=buttons,proto3" json:"buttons,omitempty"`
	// The display device where the mouse event occurred.
	// Omitting or using the value 0 indicates the main display.
	Display int32 `protobuf:"varint,4,opt,name=display,proto3" json:"display,omitempty"`
	// contains filtered or unexported fields
}

The MouseEvent interface represents events that occur due to the user interacting with a pointing device (such as a mouse).

func (*MouseEvent) Descriptor deprecated

func (*MouseEvent) Descriptor() ([]byte, []int)

Deprecated: Use MouseEvent.ProtoReflect.Descriptor instead.

func (*MouseEvent) GetButtons

func (x *MouseEvent) GetButtons() int32

func (*MouseEvent) GetDisplay

func (x *MouseEvent) GetDisplay() int32

func (*MouseEvent) GetX

func (x *MouseEvent) GetX() int32

func (*MouseEvent) GetY

func (x *MouseEvent) GetY() int32

func (*MouseEvent) ProtoMessage

func (*MouseEvent) ProtoMessage()

func (*MouseEvent) ProtoReflect

func (x *MouseEvent) ProtoReflect() protoreflect.Message

func (*MouseEvent) Reset

func (x *MouseEvent) Reset()

func (*MouseEvent) String

func (x *MouseEvent) String() string

type Notification

type Notification struct {
	Event Notification_EventType `protobuf:"varint,1,opt,name=event,proto3,enum=android.emulation.control.Notification_EventType" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*Notification) Descriptor deprecated

func (*Notification) Descriptor() ([]byte, []int)

Deprecated: Use Notification.ProtoReflect.Descriptor instead.

func (*Notification) GetEvent

func (x *Notification) GetEvent() Notification_EventType

func (*Notification) ProtoMessage

func (*Notification) ProtoMessage()

func (*Notification) ProtoReflect

func (x *Notification) ProtoReflect() protoreflect.Message

func (*Notification) Reset

func (x *Notification) Reset()

func (*Notification) String

func (x *Notification) String() string

type Notification_EventType

type Notification_EventType int32
const (
	Notification_VIRTUAL_SCENE_CAMERA_INACTIVE Notification_EventType = 0
	Notification_VIRTUAL_SCENE_CAMERA_ACTIVE   Notification_EventType = 1
	// 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 gRPC endpoint.
	Notification_DISPLAY_CONFIGURATIONS_CHANGED_UI Notification_EventType = 2 // Keep adding more for other event types
)

func (Notification_EventType) Descriptor

func (Notification_EventType) Enum

func (Notification_EventType) EnumDescriptor deprecated

func (Notification_EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Notification_EventType.Descriptor instead.

func (Notification_EventType) Number

func (Notification_EventType) String

func (x Notification_EventType) String() string

func (Notification_EventType) Type

type ParameterValue

type ParameterValue struct {
	Data []float32 `protobuf:"fixed32,1,rep,packed,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ParameterValue) Descriptor deprecated

func (*ParameterValue) Descriptor() ([]byte, []int)

Deprecated: Use ParameterValue.ProtoReflect.Descriptor instead.

func (*ParameterValue) GetData

func (x *ParameterValue) GetData() []float32

func (*ParameterValue) ProtoMessage

func (*ParameterValue) ProtoMessage()

func (*ParameterValue) ProtoReflect

func (x *ParameterValue) ProtoReflect() protoreflect.Message

func (*ParameterValue) Reset

func (x *ParameterValue) Reset()

func (*ParameterValue) String

func (x *ParameterValue) String() string

type PhoneCall

type PhoneCall struct {
	Operation PhoneCall_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=android.emulation.control.PhoneCall_Operation" json:"operation,omitempty"`
	Number    string              `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneCall) Descriptor deprecated

func (*PhoneCall) Descriptor() ([]byte, []int)

Deprecated: Use PhoneCall.ProtoReflect.Descriptor instead.

func (*PhoneCall) GetNumber

func (x *PhoneCall) GetNumber() string

func (*PhoneCall) GetOperation

func (x *PhoneCall) GetOperation() PhoneCall_Operation

func (*PhoneCall) ProtoMessage

func (*PhoneCall) ProtoMessage()

func (*PhoneCall) ProtoReflect

func (x *PhoneCall) ProtoReflect() protoreflect.Message

func (*PhoneCall) Reset

func (x *PhoneCall) Reset()

func (*PhoneCall) String

func (x *PhoneCall) String() string

type PhoneCall_Operation

type PhoneCall_Operation int32
const (
	PhoneCall_InitCall           PhoneCall_Operation = 0
	PhoneCall_AcceptCall         PhoneCall_Operation = 1
	PhoneCall_RejectCallExplicit PhoneCall_Operation = 2
	PhoneCall_RejectCallBusy     PhoneCall_Operation = 3
	PhoneCall_DisconnectCall     PhoneCall_Operation = 4
	PhoneCall_PlaceCallOnHold    PhoneCall_Operation = 5
	PhoneCall_TakeCallOffHold    PhoneCall_Operation = 6
)

func (PhoneCall_Operation) Descriptor

func (PhoneCall_Operation) Enum

func (PhoneCall_Operation) EnumDescriptor deprecated

func (PhoneCall_Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhoneCall_Operation.Descriptor instead.

func (PhoneCall_Operation) Number

func (PhoneCall_Operation) String

func (x PhoneCall_Operation) String() string

func (PhoneCall_Operation) Type

type PhoneResponse

type PhoneResponse struct {
	Response PhoneResponse_Response `protobuf:"varint,1,opt,name=response,proto3,enum=android.emulation.control.PhoneResponse_Response" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*PhoneResponse) Descriptor deprecated

func (*PhoneResponse) Descriptor() ([]byte, []int)

Deprecated: Use PhoneResponse.ProtoReflect.Descriptor instead.

func (*PhoneResponse) GetResponse

func (x *PhoneResponse) GetResponse() PhoneResponse_Response

func (*PhoneResponse) ProtoMessage

func (*PhoneResponse) ProtoMessage()

func (*PhoneResponse) ProtoReflect

func (x *PhoneResponse) ProtoReflect() protoreflect.Message

func (*PhoneResponse) Reset

func (x *PhoneResponse) Reset()

func (*PhoneResponse) String

func (x *PhoneResponse) String() string

type PhoneResponse_Response

type PhoneResponse_Response int32
const (
	PhoneResponse_OK            PhoneResponse_Response = 0
	PhoneResponse_BadOperation  PhoneResponse_Response = 1 // Enum out of range
	PhoneResponse_BadNumber     PhoneResponse_Response = 2 // Mal-formed telephone number
	PhoneResponse_InvalidAction PhoneResponse_Response = 3 // E.g., disconnect when no call is in progress
	PhoneResponse_ActionFailed  PhoneResponse_Response = 4 // Internal error
	PhoneResponse_RadioOff      PhoneResponse_Response = 5 // Radio power off
)

func (PhoneResponse_Response) Descriptor

func (PhoneResponse_Response) Enum

func (PhoneResponse_Response) EnumDescriptor deprecated

func (PhoneResponse_Response) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhoneResponse_Response.Descriptor instead.

func (PhoneResponse_Response) Number

func (PhoneResponse_Response) String

func (x PhoneResponse_Response) String() string

func (PhoneResponse_Response) Type

type PhysicalModelValue

type PhysicalModelValue struct {
	Target PhysicalModelValue_PhysicalType `` /* 129-byte string literal not displayed */
	// [Output Only]
	Status PhysicalModelValue_State `protobuf:"varint,2,opt,name=status,proto3,enum=android.emulation.control.PhysicalModelValue_State" json:"status,omitempty"`
	// Value interpretation depends on sensor, will contain at most 3 values.
	Value *ParameterValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PhysicalModelValue) Descriptor deprecated

func (*PhysicalModelValue) Descriptor() ([]byte, []int)

Deprecated: Use PhysicalModelValue.ProtoReflect.Descriptor instead.

func (*PhysicalModelValue) GetStatus

func (*PhysicalModelValue) GetTarget

func (*PhysicalModelValue) GetValue

func (x *PhysicalModelValue) GetValue() *ParameterValue

func (*PhysicalModelValue) ProtoMessage

func (*PhysicalModelValue) ProtoMessage()

func (*PhysicalModelValue) ProtoReflect

func (x *PhysicalModelValue) ProtoReflect() protoreflect.Message

func (*PhysicalModelValue) Reset

func (x *PhysicalModelValue) Reset()

func (*PhysicalModelValue) String

func (x *PhysicalModelValue) String() string

type PhysicalModelValue_PhysicalType

type PhysicalModelValue_PhysicalType int32

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"

const (
	PhysicalModelValue_POSITION PhysicalModelValue_PhysicalType = 0
	// All values are angles in degrees.
	// values = [x,y,z]
	PhysicalModelValue_ROTATION       PhysicalModelValue_PhysicalType = 1
	PhysicalModelValue_MAGNETIC_FIELD PhysicalModelValue_PhysicalType = 2
	// Temperature in °C
	PhysicalModelValue_TEMPERATURE PhysicalModelValue_PhysicalType = 3
	// Proximity sensor distance measured in centimeters
	PhysicalModelValue_PROXIMITY PhysicalModelValue_PhysicalType = 4
	// Ambient light level in SI lux units
	PhysicalModelValue_LIGHT PhysicalModelValue_PhysicalType = 5
	// Atmospheric pressure in hPa (millibar)
	PhysicalModelValue_PRESSURE PhysicalModelValue_PhysicalType = 6
	// Relative ambient air humidity in percent
	PhysicalModelValue_HUMIDITY       PhysicalModelValue_PhysicalType = 7
	PhysicalModelValue_VELOCITY       PhysicalModelValue_PhysicalType = 8
	PhysicalModelValue_AMBIENT_MOTION PhysicalModelValue_PhysicalType = 9
	// Describing a hinge angle sensor in degrees.
	PhysicalModelValue_HINGE_ANGLE0 PhysicalModelValue_PhysicalType = 10
	PhysicalModelValue_HINGE_ANGLE1 PhysicalModelValue_PhysicalType = 11
	PhysicalModelValue_HINGE_ANGLE2 PhysicalModelValue_PhysicalType = 12
	PhysicalModelValue_ROLLABLE0    PhysicalModelValue_PhysicalType = 13
	PhysicalModelValue_ROLLABLE1    PhysicalModelValue_PhysicalType = 14
	PhysicalModelValue_ROLLABLE2    PhysicalModelValue_PhysicalType = 15
)

func (PhysicalModelValue_PhysicalType) Descriptor

func (PhysicalModelValue_PhysicalType) Enum

func (PhysicalModelValue_PhysicalType) EnumDescriptor deprecated

func (PhysicalModelValue_PhysicalType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhysicalModelValue_PhysicalType.Descriptor instead.

func (PhysicalModelValue_PhysicalType) Number

func (PhysicalModelValue_PhysicalType) String

func (PhysicalModelValue_PhysicalType) Type

type PhysicalModelValue_State

type PhysicalModelValue_State int32
const (
	PhysicalModelValue_OK         PhysicalModelValue_State = 0
	PhysicalModelValue_NO_SERVICE PhysicalModelValue_State = -3 // qemud service is not available/initiated.
	PhysicalModelValue_DISABLED   PhysicalModelValue_State = -2 // Sensor is disabled.
	PhysicalModelValue_UNKNOWN    PhysicalModelValue_State = -1 // Unknown sensor (should not happen)
)

func (PhysicalModelValue_State) Descriptor

func (PhysicalModelValue_State) Enum

func (PhysicalModelValue_State) EnumDescriptor deprecated

func (PhysicalModelValue_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use PhysicalModelValue_State.Descriptor instead.

func (PhysicalModelValue_State) Number

func (PhysicalModelValue_State) String

func (x PhysicalModelValue_State) String() string

func (PhysicalModelValue_State) Type

type Rotation

type Rotation struct {

	// The rotation of the device, derived from the sensor state
	// of the emulator. The derivation reflects how android observes
	// the rotation state.
	Rotation Rotation_SkinRotation `protobuf:"varint,1,opt,name=rotation,proto3,enum=android.emulation.control.Rotation_SkinRotation" json:"rotation,omitempty"`
	// Specifies the angle of rotation, in degrees [-180, 180]
	XAxis float64 `protobuf:"fixed64,2,opt,name=xAxis,proto3" json:"xAxis,omitempty"`
	YAxis float64 `protobuf:"fixed64,3,opt,name=yAxis,proto3" json:"yAxis,omitempty"`
	ZAxis float64 `protobuf:"fixed64,4,opt,name=zAxis,proto3" json:"zAxis,omitempty"`
	// contains filtered or unexported fields
}

func (*Rotation) Descriptor deprecated

func (*Rotation) Descriptor() ([]byte, []int)

Deprecated: Use Rotation.ProtoReflect.Descriptor instead.

func (*Rotation) GetRotation

func (x *Rotation) GetRotation() Rotation_SkinRotation

func (*Rotation) GetXAxis

func (x *Rotation) GetXAxis() float64

func (*Rotation) GetYAxis

func (x *Rotation) GetYAxis() float64

func (*Rotation) GetZAxis

func (x *Rotation) GetZAxis() float64

func (*Rotation) ProtoMessage

func (*Rotation) ProtoMessage()

func (*Rotation) ProtoReflect

func (x *Rotation) ProtoReflect() protoreflect.Message

func (*Rotation) Reset

func (x *Rotation) Reset()

func (*Rotation) String

func (x *Rotation) String() string

type RotationRadian

type RotationRadian struct {
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` // x axis is horizontal and orthogonal to the view direction.
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` // y axis points up and is perpendicular to the floor.
	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` // z axis is the view direction and is set to 0.0 in
	// contains filtered or unexported fields
}

func (*RotationRadian) Descriptor deprecated

func (*RotationRadian) Descriptor() ([]byte, []int)

Deprecated: Use RotationRadian.ProtoReflect.Descriptor instead.

func (*RotationRadian) GetX

func (x *RotationRadian) GetX() float32

func (*RotationRadian) GetY

func (x *RotationRadian) GetY() float32

func (*RotationRadian) GetZ

func (x *RotationRadian) GetZ() float32

func (*RotationRadian) ProtoMessage

func (*RotationRadian) ProtoMessage()

func (*RotationRadian) ProtoReflect

func (x *RotationRadian) ProtoReflect() protoreflect.Message

func (*RotationRadian) Reset

func (x *RotationRadian) Reset()

func (*RotationRadian) String

func (x *RotationRadian) String() string

type Rotation_SkinRotation

type Rotation_SkinRotation int32
const (
	Rotation_PORTRAIT          Rotation_SkinRotation = 0 // 0 degrees
	Rotation_LANDSCAPE         Rotation_SkinRotation = 1 // 90 degrees
	Rotation_REVERSE_PORTRAIT  Rotation_SkinRotation = 2 // -180 degrees
	Rotation_REVERSE_LANDSCAPE Rotation_SkinRotation = 3 // -90 degrees
)

func (Rotation_SkinRotation) Descriptor

func (Rotation_SkinRotation) Enum

func (Rotation_SkinRotation) EnumDescriptor deprecated

func (Rotation_SkinRotation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Rotation_SkinRotation.Descriptor instead.

func (Rotation_SkinRotation) Number

func (Rotation_SkinRotation) String

func (x Rotation_SkinRotation) String() string

func (Rotation_SkinRotation) Type

type SensorValue

type SensorValue struct {

	// Type of sensor
	Target SensorValue_SensorType `protobuf:"varint,1,opt,name=target,proto3,enum=android.emulation.control.SensorValue_SensorType" json:"target,omitempty"`
	// [Output Only]
	Status SensorValue_State `protobuf:"varint,2,opt,name=status,proto3,enum=android.emulation.control.SensorValue_State" json:"status,omitempty"`
	// Value interpretation depends on sensor enum, will contain at most 3
	// values.
	Value *ParameterValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A single sensor value.

func (*SensorValue) Descriptor deprecated

func (*SensorValue) Descriptor() ([]byte, []int)

Deprecated: Use SensorValue.ProtoReflect.Descriptor instead.

func (*SensorValue) GetStatus

func (x *SensorValue) GetStatus() SensorValue_State

func (*SensorValue) GetTarget

func (x *SensorValue) GetTarget() SensorValue_SensorType

func (*SensorValue) GetValue

func (x *SensorValue) GetValue() *ParameterValue

func (*SensorValue) ProtoMessage

func (*SensorValue) ProtoMessage()

func (*SensorValue) ProtoReflect

func (x *SensorValue) ProtoReflect() protoreflect.Message

func (*SensorValue) Reset

func (x *SensorValue) Reset()

func (*SensorValue) String

func (x *SensorValue) String() string

type SensorValue_SensorType

type SensorValue_SensorType int32

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

const (
	// Measures the acceleration force in m/s2 that is applied to a device
	// on all three physical axes (x, y, and z), including the force of
	// gravity.
	SensorValue_ACCELERATION SensorValue_SensorType = 0
	// Measures a device's rate of rotation in rad/s around each of the
	// three physical axes (x, y, and z).
	SensorValue_GYROSCOPE SensorValue_SensorType = 1
	// Measures the ambient geomagnetic field for all three physical axes
	// (x, y, z) in μT.
	SensorValue_MAGNETIC_FIELD SensorValue_SensorType = 2
	// Measures degrees of rotation that a device makes around all three
	// physical axes (x, y, z)
	SensorValue_ORIENTATION SensorValue_SensorType = 3
	// Measures the temperature of the device in degrees Celsius (°C).
	SensorValue_TEMPERATURE SensorValue_SensorType = 4
	// Measures the proximity of an object in cm relative to the view screen
	// of a device. This sensor is typically used to determine whether a
	// handset is being held up to a person's ear.
	SensorValue_PROXIMITY SensorValue_SensorType = 5
	// Measures the ambient light level (illumination) in lx.
	SensorValue_LIGHT SensorValue_SensorType = 6
	// Measures the ambient air pressure in hPa or mbar.
	SensorValue_PRESSURE SensorValue_SensorType = 7
	// Measures the relative ambient humidity in percent (%).
	SensorValue_HUMIDITY                    SensorValue_SensorType = 8
	SensorValue_MAGNETIC_FIELD_UNCALIBRATED SensorValue_SensorType = 9
	SensorValue_GYROSCOPE_UNCALIBRATED      SensorValue_SensorType = 10
)

func (SensorValue_SensorType) Descriptor

func (SensorValue_SensorType) Enum

func (SensorValue_SensorType) EnumDescriptor deprecated

func (SensorValue_SensorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use SensorValue_SensorType.Descriptor instead.

func (SensorValue_SensorType) Number

func (SensorValue_SensorType) String

func (x SensorValue_SensorType) String() string

func (SensorValue_SensorType) Type

type SensorValue_State

type SensorValue_State int32
const (
	SensorValue_OK         SensorValue_State = 0
	SensorValue_NO_SERVICE SensorValue_State = -3 // qemud service is not available/initiated.
	SensorValue_DISABLED   SensorValue_State = -2 // Sensor is disabled.
	SensorValue_UNKNOWN    SensorValue_State = -1 // Unknown sensor (should not happen)
)

func (SensorValue_State) Descriptor

func (SensorValue_State) Enum

func (SensorValue_State) EnumDescriptor deprecated

func (SensorValue_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use SensorValue_State.Descriptor instead.

func (SensorValue_State) Number

func (SensorValue_State) String

func (x SensorValue_State) String() string

func (SensorValue_State) Type

type SmsMessage

type SmsMessage struct {

	// The source address where this message came from.
	//
	// The address should be a valid GSM-formatted address as specified by
	// 3GPP 23.040 Sec 9.1.2.5.
	//
	// For example: +3106225412 or (650) 555-1221
	SrcAddress string `protobuf:"bytes,1,opt,name=srcAddress,proto3" json:"srcAddress,omitempty"`
	// A utf8 encoded text message that should be delivered.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*SmsMessage) Descriptor deprecated

func (*SmsMessage) Descriptor() ([]byte, []int)

Deprecated: Use SmsMessage.ProtoReflect.Descriptor instead.

func (*SmsMessage) GetSrcAddress

func (x *SmsMessage) GetSrcAddress() string

func (*SmsMessage) GetText

func (x *SmsMessage) GetText() string

func (*SmsMessage) ProtoMessage

func (*SmsMessage) ProtoMessage()

func (*SmsMessage) ProtoReflect

func (x *SmsMessage) ProtoReflect() protoreflect.Message

func (*SmsMessage) Reset

func (x *SmsMessage) Reset()

func (*SmsMessage) String

func (x *SmsMessage) String() string

type Touch

type Touch struct {

	// The horizontal coordinate. This is the physical location on the
	// screen For example 0 indicates the leftmost coordinate.
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	// The vertical coordinate. This is the physical location on the screen
	// For example 0 indicates the top left coordinate.
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// The identifier is an arbitrary non-negative integer that is used to
	// identify and track each tool independently when multiple tools are
	// active. For example, when multiple fingers are touching the device,
	// each finger should be assigned a distinct tracking id that is used as
	// long as the finger remains in contact. Tracking ids may be reused
	// when their associated tools move out of range.
	//
	// The emulator currently supports up to 10 concurrent touch events. The
	// identifier can be any uninque value and will be mapped to the next
	// available internal identifier.
	Identifier int32 `protobuf:"varint,3,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// Reports the physical pressure applied to the tip of the tool or the
	// signal strength of the touch contact.
	//
	// The values reported must be non-zero when the tool is touching the
	// device and zero otherwise to indicate that the touch event is
	// completed.
	//
	// Make sure to deliver a pressure of 0 for the given identifier when
	// the touch event is completed, otherwise the touch identifier will not
	// be unregistered!
	Pressure int32 `protobuf:"varint,4,opt,name=pressure,proto3" json:"pressure,omitempty"`
	// Optionally reports the cross-sectional area of the touch contact, or
	// the length of the longer dimension of the touch contact.
	TouchMajor int32 `protobuf:"varint,5,opt,name=touch_major,json=touchMajor,proto3" json:"touch_major,omitempty"`
	// Optionally reports the length of the shorter dimension of the touch
	// contact. This axis will be ignored if touch_major is reporting an
	// area measurement greater than 0.
	TouchMinor int32                 `protobuf:"varint,6,opt,name=touch_minor,json=touchMinor,proto3" json:"touch_minor,omitempty"`
	Expiration Touch_EventExpiration `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

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.

func (*Touch) Descriptor deprecated

func (*Touch) Descriptor() ([]byte, []int)

Deprecated: Use Touch.ProtoReflect.Descriptor instead.

func (*Touch) GetExpiration

func (x *Touch) GetExpiration() Touch_EventExpiration

func (*Touch) GetIdentifier

func (x *Touch) GetIdentifier() int32

func (*Touch) GetPressure

func (x *Touch) GetPressure() int32

func (*Touch) GetTouchMajor

func (x *Touch) GetTouchMajor() int32

func (*Touch) GetTouchMinor

func (x *Touch) GetTouchMinor() int32

func (*Touch) GetX

func (x *Touch) GetX() int32

func (*Touch) GetY

func (x *Touch) GetY() int32

func (*Touch) ProtoMessage

func (*Touch) ProtoMessage()

func (*Touch) ProtoReflect

func (x *Touch) ProtoReflect() protoreflect.Message

func (*Touch) Reset

func (x *Touch) Reset()

func (*Touch) String

func (x *Touch) String() string

type TouchEvent

type TouchEvent struct {

	// The list of Touch objects, note that these do not need to be unique
	Touches []*Touch `protobuf:"bytes,1,rep,name=touches,proto3" json:"touches,omitempty"`
	// The display device where the touch event occurred.
	// Omitting or using the value 0 indicates the main display.
	//
	// Touch events cannot be send to displays other than 0, due to
	// https://issuetracker.google.com/issues/150699691
	Display int32 `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"`
	// contains filtered or unexported fields
}

A TouchEvent contains a list of Touch objects that are in contact with the touch surface.

Touch events are delivered in sequence as specified in the touchList.

TouchEvents are delivered to the emulated devices using ["Protocol B"](https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt)

func (*TouchEvent) Descriptor deprecated

func (*TouchEvent) Descriptor() ([]byte, []int)

Deprecated: Use TouchEvent.ProtoReflect.Descriptor instead.

func (*TouchEvent) GetDisplay

func (x *TouchEvent) GetDisplay() int32

func (*TouchEvent) GetTouches

func (x *TouchEvent) GetTouches() []*Touch

func (*TouchEvent) ProtoMessage

func (*TouchEvent) ProtoMessage()

func (*TouchEvent) ProtoReflect

func (x *TouchEvent) ProtoReflect() protoreflect.Message

func (*TouchEvent) Reset

func (x *TouchEvent) Reset()

func (*TouchEvent) String

func (x *TouchEvent) String() string

type Touch_EventExpiration

type Touch_EventExpiration int32
const (
	// The system will use the default time of 120s to track
	// the touch event with the given identifier. If no update happens
	// within this timeframe the identifier is considered expired
	// and can be made available for re-use. This means that a touch event
	// with pressure 0 for this identifier will be send to the emulator.
	Touch_EVENT_EXPIRATION_UNSPECIFIED Touch_EventExpiration = 0
	// Never expire the given slot. You must *ALWAYS* close the identifier
	// by sending a touch event with 0 pressure.
	Touch_NEVER_EXPIRE Touch_EventExpiration = 1
)

func (Touch_EventExpiration) Descriptor

func (Touch_EventExpiration) Enum

func (Touch_EventExpiration) EnumDescriptor deprecated

func (Touch_EventExpiration) EnumDescriptor() ([]byte, []int)

Deprecated: Use Touch_EventExpiration.Descriptor instead.

func (Touch_EventExpiration) Number

func (Touch_EventExpiration) String

func (x Touch_EventExpiration) String() string

func (Touch_EventExpiration) Type

type UnimplementedEmulatorControllerServer

type UnimplementedEmulatorControllerServer struct {
}

UnimplementedEmulatorControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedEmulatorControllerServer) GetBattery

func (UnimplementedEmulatorControllerServer) GetClipboard

func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations

func (UnimplementedEmulatorControllerServer) GetGps

func (UnimplementedEmulatorControllerServer) GetLogcat

func (UnimplementedEmulatorControllerServer) GetPhysicalModel

func (UnimplementedEmulatorControllerServer) GetScreenshot

func (UnimplementedEmulatorControllerServer) GetSensor

func (UnimplementedEmulatorControllerServer) GetStatus

func (UnimplementedEmulatorControllerServer) GetVmState

func (UnimplementedEmulatorControllerServer) InjectAudio

func (UnimplementedEmulatorControllerServer) RotateVirtualSceneCamera

func (UnimplementedEmulatorControllerServer) SendFingerprint

func (UnimplementedEmulatorControllerServer) SendKey

func (UnimplementedEmulatorControllerServer) SendMouse

func (UnimplementedEmulatorControllerServer) SendPhone

func (UnimplementedEmulatorControllerServer) SendSms

func (UnimplementedEmulatorControllerServer) SendTouch

func (UnimplementedEmulatorControllerServer) SetBattery

func (UnimplementedEmulatorControllerServer) SetClipboard

func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations

func (UnimplementedEmulatorControllerServer) SetGps

func (UnimplementedEmulatorControllerServer) SetPhysicalModel

func (UnimplementedEmulatorControllerServer) SetSensor

func (UnimplementedEmulatorControllerServer) SetVirtualSceneCameraVelocity

func (UnimplementedEmulatorControllerServer) SetVirtualSceneCameraVelocity(context.Context, *Velocity) (*emptypb.Empty, error)

func (UnimplementedEmulatorControllerServer) SetVmState

func (UnimplementedEmulatorControllerServer) StreamAudio

func (UnimplementedEmulatorControllerServer) StreamClipboard

func (UnimplementedEmulatorControllerServer) StreamLogcat

func (UnimplementedEmulatorControllerServer) StreamNotification

func (UnimplementedEmulatorControllerServer) StreamScreenshot

func (UnimplementedEmulatorControllerServer) StreamSensor

type UnsafeEmulatorControllerServer

type UnsafeEmulatorControllerServer interface {
	// contains filtered or unexported methods
}

UnsafeEmulatorControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmulatorControllerServer will result in compilation errors.

type Velocity

type Velocity struct {
	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` // x axis is horizontal and orthogonal to the view direction.
	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` // y axis points up and is perpendicular to the floor.
	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` // z axis is the view direction
	// contains filtered or unexported fields
}

func (*Velocity) Descriptor deprecated

func (*Velocity) Descriptor() ([]byte, []int)

Deprecated: Use Velocity.ProtoReflect.Descriptor instead.

func (*Velocity) GetX

func (x *Velocity) GetX() float32

func (*Velocity) GetY

func (x *Velocity) GetY() float32

func (*Velocity) GetZ

func (x *Velocity) GetZ() float32

func (*Velocity) ProtoMessage

func (*Velocity) ProtoMessage()

func (*Velocity) ProtoReflect

func (x *Velocity) ProtoReflect() protoreflect.Message

func (*Velocity) Reset

func (x *Velocity) Reset()

func (*Velocity) String

func (x *Velocity) String() string

type VmConfiguration

type VmConfiguration struct {
	HypervisorType   VmConfiguration_VmHypervisorType `` /* 146-byte string literal not displayed */
	NumberOfCpuCores int32                            `protobuf:"varint,2,opt,name=numberOfCpuCores,proto3" json:"numberOfCpuCores,omitempty"`
	RamSizeBytes     int64                            `protobuf:"varint,3,opt,name=ramSizeBytes,proto3" json:"ramSizeBytes,omitempty"`
	// contains filtered or unexported fields
}

Information about the hypervisor that is currently in use.

func (*VmConfiguration) Descriptor deprecated

func (*VmConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use VmConfiguration.ProtoReflect.Descriptor instead.

func (*VmConfiguration) GetHypervisorType

func (x *VmConfiguration) GetHypervisorType() VmConfiguration_VmHypervisorType

func (*VmConfiguration) GetNumberOfCpuCores

func (x *VmConfiguration) GetNumberOfCpuCores() int32

func (*VmConfiguration) GetRamSizeBytes

func (x *VmConfiguration) GetRamSizeBytes() int64

func (*VmConfiguration) ProtoMessage

func (*VmConfiguration) ProtoMessage()

func (*VmConfiguration) ProtoReflect

func (x *VmConfiguration) ProtoReflect() protoreflect.Message

func (*VmConfiguration) Reset

func (x *VmConfiguration) Reset()

func (*VmConfiguration) String

func (x *VmConfiguration) String() string

type VmConfiguration_VmHypervisorType

type VmConfiguration_VmHypervisorType int32
const (
	// An unknown hypervisor
	VmConfiguration_UNKNOWN VmConfiguration_VmHypervisorType = 0
	// No hypervisor is in use. This usually means that the guest is
	// running on a different CPU than the host, or you are using a
	// platform where no hypervisor is available.
	VmConfiguration_NONE VmConfiguration_VmHypervisorType = 1
	// The Kernel based Virtual Machine
	// (https://www.linux-kvm.org/page/Main_Page)
	VmConfiguration_KVM VmConfiguration_VmHypervisorType = 2
	// Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
	// https://github.com/intel/haxm
	VmConfiguration_HAXM VmConfiguration_VmHypervisorType = 3
	// Hypervisor Framework.
	// https://developer.apple.com/documentation/hypervisor
	VmConfiguration_HVF VmConfiguration_VmHypervisorType = 4
	// Window Hypervisor Platform
	// https://docs.microsoft.com/en-us/virtualization/api/
	VmConfiguration_WHPX VmConfiguration_VmHypervisorType = 5
	VmConfiguration_GVM  VmConfiguration_VmHypervisorType = 6
)

func (VmConfiguration_VmHypervisorType) Descriptor

func (VmConfiguration_VmHypervisorType) Enum

func (VmConfiguration_VmHypervisorType) EnumDescriptor deprecated

func (VmConfiguration_VmHypervisorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VmConfiguration_VmHypervisorType.Descriptor instead.

func (VmConfiguration_VmHypervisorType) Number

func (VmConfiguration_VmHypervisorType) String

func (VmConfiguration_VmHypervisorType) Type

type VmRunState

type VmRunState struct {
	State VmRunState_RunState `protobuf:"varint,1,opt,name=state,proto3,enum=android.emulation.control.VmRunState_RunState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

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

func (*VmRunState) Descriptor deprecated

func (*VmRunState) Descriptor() ([]byte, []int)

Deprecated: Use VmRunState.ProtoReflect.Descriptor instead.

func (*VmRunState) GetState

func (x *VmRunState) GetState() VmRunState_RunState

func (*VmRunState) ProtoMessage

func (*VmRunState) ProtoMessage()

func (*VmRunState) ProtoReflect

func (x *VmRunState) ProtoReflect() protoreflect.Message

func (*VmRunState) Reset

func (x *VmRunState) Reset()

func (*VmRunState) String

func (x *VmRunState) String() string

type VmRunState_RunState

type VmRunState_RunState int32
const (
	// The emulator is in an unknown state. You cannot transition to this state.
	VmRunState_UNKNOWN VmRunState_RunState = 0
	// Guest is actively running. You can transition to this state from the
	// paused state.
	VmRunState_RUNNING VmRunState_RunState = 1
	// Guest is paused to load a snapshot. You cannot transition to this state.
	VmRunState_RESTORE_VM VmRunState_RunState = 2
	// Guest has been paused. Transitioning to this state will pause the
	// emulator the guest will not be consuming any cpu cycles.
	VmRunState_PAUSED VmRunState_RunState = 3
	// Guest is paused to take or export a snapshot. You cannot
	// transition to this state.
	VmRunState_SAVE_VM VmRunState_RunState = 4
	// System shutdown, note that it is similar to power off. It tries to set
	// the system status and notify guest. The system is likely going to
	// disappear soon and do proper cleanup of resources, possibly taking
	// a snapshot. This is the same behavior as closing the emulator by clicking
	// the X (close) in the user interface.
	VmRunState_SHUTDOWN VmRunState_RunState = 5
	// Immediately terminate the emulator. No resource cleanup will take place.
	// There is a good change to corrupt the system.
	VmRunState_TERMINATE VmRunState_RunState = 7
	// Will cause the emulator to reset. This is not a state you can observe.
	VmRunState_RESET VmRunState_RunState = 9
	// Guest experienced some error state, you cannot transition to this state.
	VmRunState_INTERNAL_ERROR VmRunState_RunState = 10
)

func (VmRunState_RunState) Descriptor

func (VmRunState_RunState) Enum

func (VmRunState_RunState) EnumDescriptor deprecated

func (VmRunState_RunState) EnumDescriptor() ([]byte, []int)

Deprecated: Use VmRunState_RunState.Descriptor instead.

func (VmRunState_RunState) Number

func (VmRunState_RunState) String

func (x VmRunState_RunState) String() string

func (VmRunState_RunState) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL