android_emulator_control_proto

package
v0.0.0-...-8023e94 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 10 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",
	}
	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,
	}
)

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 (
	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 File_emulator_controller_proto protoreflect.FileDescriptor

Functions

func RegisterEmulatorControllerServer

func RegisterEmulatorControllerServer(s *grpc.Server, 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 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) (*empty.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) (*empty.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) (*empty.Empty, error)
	GetClipboard(ctx context.Context, in *empty.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 *empty.Empty, opts ...grpc.CallOption) (EmulatorController_StreamClipboardClient, error)
	// Set/get the battery to the given state.
	SetBattery(ctx context.Context, in *BatteryState, opts ...grpc.CallOption) (*empty.Empty, error)
	GetBattery(ctx context.Context, in *empty.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) (*empty.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 *empty.Empty, opts ...grpc.CallOption) (*GpsState, error)
	// Simulate a touch event on the finger print sensor.
	SendFingerprint(ctx context.Context, in *Fingerprint, opts ...grpc.CallOption) (*empty.Empty, error)
	// Send a keyboard event. Translating the event.
	SendKey(ctx context.Context, in *KeyboardEvent, opts ...grpc.CallOption) (*empty.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) (*empty.Empty, error)
	SendMouse(ctx context.Context, in *MouseEvent, opts ...grpc.CallOption) (*empty.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 *empty.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.
	StreamAudio(ctx context.Context, in *AudioFormat, opts ...grpc.CallOption) (EmulatorController_StreamAudioClient, 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) (*empty.Empty, error)
	// Gets the state of the virtual machine.
	GetVmState(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VmRunState, error)
}

EmulatorControllerClient is the client API for EmulatorController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#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) (*empty.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) (*empty.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) (*empty.Empty, error)
	GetClipboard(context.Context, *empty.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(*empty.Empty, EmulatorController_StreamClipboardServer) error
	// Set/get the battery to the given state.
	SetBattery(context.Context, *BatteryState) (*empty.Empty, error)
	GetBattery(context.Context, *empty.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) (*empty.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, *empty.Empty) (*GpsState, error)
	// Simulate a touch event on the finger print sensor.
	SendFingerprint(context.Context, *Fingerprint) (*empty.Empty, error)
	// Send a keyboard event. Translating the event.
	SendKey(context.Context, *KeyboardEvent) (*empty.Empty, error)
	// Send touch/mouse events. Note that mouse events can be simulated
	// by touch events.
	SendTouch(context.Context, *TouchEvent) (*empty.Empty, error)
	SendMouse(context.Context, *MouseEvent) (*empty.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, *empty.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.
	StreamAudio(*AudioFormat, EmulatorController_StreamAudioServer) 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) (*empty.Empty, error)
	// Gets the state of the virtual machine.
	GetVmState(context.Context, *empty.Empty) (*VmRunState, error)
}

EmulatorControllerServer is the server API for EmulatorController service.

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_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 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"`
	// 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) 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"`
	// 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) 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).
	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.
	Device int32 `protobuf:"varint,4,opt,name=device,proto3" json:"device,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) GetDevice

func (x *MouseEvent) GetDevice() 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 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_

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
)

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 {
	Rotation Rotation_SkinRotation `protobuf:"varint,1,opt,name=rotation,proto3,enum=android.emulation.control.Rotation_SkinRotation" json:"rotation,omitempty"` // Can be inferred from z-axis as well.
	// 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 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 should be a value from the set [0, 10]
	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"`
	// 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) 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 devices other than 0, due to
	// https://issuetracker.google.com/issues/150699691
	Device int32 `protobuf:"varint,2,opt,name=device,proto3" json:"device,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) GetDevice

func (x *TouchEvent) GetDevice() 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 UnimplementedEmulatorControllerServer

type UnimplementedEmulatorControllerServer struct {
}

UnimplementedEmulatorControllerServer can be embedded to have forward compatible implementations.

func (*UnimplementedEmulatorControllerServer) GetBattery

func (*UnimplementedEmulatorControllerServer) GetClipboard

func (*UnimplementedEmulatorControllerServer) GetGps

func (*UnimplementedEmulatorControllerServer) GetLogcat

func (*UnimplementedEmulatorControllerServer) GetPhysicalModel

func (*UnimplementedEmulatorControllerServer) GetScreenshot

func (*UnimplementedEmulatorControllerServer) GetSensor

func (*UnimplementedEmulatorControllerServer) GetStatus

func (*UnimplementedEmulatorControllerServer) GetVmState

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) SetGps

func (*UnimplementedEmulatorControllerServer) SetPhysicalModel

func (*UnimplementedEmulatorControllerServer) SetSensor

func (*UnimplementedEmulatorControllerServer) SetVmState

func (*UnimplementedEmulatorControllerServer) StreamAudio

func (*UnimplementedEmulatorControllerServer) StreamClipboard

func (*UnimplementedEmulatorControllerServer) StreamLogcat

func (*UnimplementedEmulatorControllerServer) StreamPhysicalModel

func (*UnimplementedEmulatorControllerServer) StreamScreenshot

func (*UnimplementedEmulatorControllerServer) StreamSensor

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