Documentation ¶
Index ¶
- Variables
- func RegisterEmulatorControllerServer(s grpc.ServiceRegistrar, srv EmulatorControllerServer)
- type AudioFormat
- func (*AudioFormat) Descriptor() ([]byte, []int)deprecated
- func (x *AudioFormat) GetChannels() AudioFormat_Channels
- func (x *AudioFormat) GetFormat() AudioFormat_SampleFormat
- func (x *AudioFormat) GetSamplingRate() uint64
- func (*AudioFormat) ProtoMessage()
- func (x *AudioFormat) ProtoReflect() protoreflect.Message
- func (x *AudioFormat) Reset()
- func (x *AudioFormat) String() string
- type AudioFormat_Channels
- func (AudioFormat_Channels) Descriptor() protoreflect.EnumDescriptor
- func (x AudioFormat_Channels) Enum() *AudioFormat_Channels
- func (AudioFormat_Channels) EnumDescriptor() ([]byte, []int)deprecated
- func (x AudioFormat_Channels) Number() protoreflect.EnumNumber
- func (x AudioFormat_Channels) String() string
- func (AudioFormat_Channels) Type() protoreflect.EnumType
- type AudioFormat_SampleFormat
- func (AudioFormat_SampleFormat) Descriptor() protoreflect.EnumDescriptor
- func (x AudioFormat_SampleFormat) Enum() *AudioFormat_SampleFormat
- func (AudioFormat_SampleFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x AudioFormat_SampleFormat) Number() protoreflect.EnumNumber
- func (x AudioFormat_SampleFormat) String() string
- func (AudioFormat_SampleFormat) Type() protoreflect.EnumType
- type AudioPacket
- func (*AudioPacket) Descriptor() ([]byte, []int)deprecated
- func (x *AudioPacket) GetAudio() []byte
- func (x *AudioPacket) GetFormat() *AudioFormat
- func (x *AudioPacket) GetTimestamp() uint64
- func (*AudioPacket) ProtoMessage()
- func (x *AudioPacket) ProtoReflect() protoreflect.Message
- func (x *AudioPacket) Reset()
- func (x *AudioPacket) String() string
- type BatteryState
- func (*BatteryState) Descriptor() ([]byte, []int)deprecated
- func (x *BatteryState) GetChargeLevel() int32
- func (x *BatteryState) GetCharger() BatteryState_BatteryCharger
- func (x *BatteryState) GetHasBattery() bool
- func (x *BatteryState) GetHealth() BatteryState_BatteryHealth
- func (x *BatteryState) GetIsPresent() bool
- func (x *BatteryState) GetStatus() BatteryState_BatteryStatus
- func (*BatteryState) ProtoMessage()
- func (x *BatteryState) ProtoReflect() protoreflect.Message
- func (x *BatteryState) Reset()
- func (x *BatteryState) String() string
- type BatteryState_BatteryCharger
- func (BatteryState_BatteryCharger) Descriptor() protoreflect.EnumDescriptor
- func (x BatteryState_BatteryCharger) Enum() *BatteryState_BatteryCharger
- func (BatteryState_BatteryCharger) EnumDescriptor() ([]byte, []int)deprecated
- func (x BatteryState_BatteryCharger) Number() protoreflect.EnumNumber
- func (x BatteryState_BatteryCharger) String() string
- func (BatteryState_BatteryCharger) Type() protoreflect.EnumType
- type BatteryState_BatteryHealth
- func (BatteryState_BatteryHealth) Descriptor() protoreflect.EnumDescriptor
- func (x BatteryState_BatteryHealth) Enum() *BatteryState_BatteryHealth
- func (BatteryState_BatteryHealth) EnumDescriptor() ([]byte, []int)deprecated
- func (x BatteryState_BatteryHealth) Number() protoreflect.EnumNumber
- func (x BatteryState_BatteryHealth) String() string
- func (BatteryState_BatteryHealth) Type() protoreflect.EnumType
- type BatteryState_BatteryStatus
- func (BatteryState_BatteryStatus) Descriptor() protoreflect.EnumDescriptor
- func (x BatteryState_BatteryStatus) Enum() *BatteryState_BatteryStatus
- func (BatteryState_BatteryStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x BatteryState_BatteryStatus) Number() protoreflect.EnumNumber
- func (x BatteryState_BatteryStatus) String() string
- func (BatteryState_BatteryStatus) Type() protoreflect.EnumType
- type ClipData
- type DisplayConfiguration
- func (*DisplayConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *DisplayConfiguration) GetDisplay() uint32
- func (x *DisplayConfiguration) GetDpi() uint32
- func (x *DisplayConfiguration) GetFlags() uint32
- func (x *DisplayConfiguration) GetHeight() uint32
- func (x *DisplayConfiguration) GetWidth() uint32
- func (*DisplayConfiguration) ProtoMessage()
- func (x *DisplayConfiguration) ProtoReflect() protoreflect.Message
- func (x *DisplayConfiguration) Reset()
- func (x *DisplayConfiguration) String() string
- type DisplayConfiguration_DisplayFlags
- func (DisplayConfiguration_DisplayFlags) Descriptor() protoreflect.EnumDescriptor
- func (x DisplayConfiguration_DisplayFlags) Enum() *DisplayConfiguration_DisplayFlags
- func (DisplayConfiguration_DisplayFlags) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisplayConfiguration_DisplayFlags) Number() protoreflect.EnumNumber
- func (x DisplayConfiguration_DisplayFlags) String() string
- func (DisplayConfiguration_DisplayFlags) Type() protoreflect.EnumType
- type DisplayConfigurations
- func (*DisplayConfigurations) Descriptor() ([]byte, []int)deprecated
- func (x *DisplayConfigurations) GetDisplays() []*DisplayConfiguration
- func (*DisplayConfigurations) ProtoMessage()
- func (x *DisplayConfigurations) ProtoReflect() protoreflect.Message
- func (x *DisplayConfigurations) Reset()
- func (x *DisplayConfigurations) String() string
- type EmulatorControllerClient
- type EmulatorControllerServer
- type EmulatorController_InjectAudioClient
- type EmulatorController_InjectAudioServer
- type EmulatorController_StreamAudioClient
- type EmulatorController_StreamAudioServer
- type EmulatorController_StreamClipboardClient
- type EmulatorController_StreamClipboardServer
- type EmulatorController_StreamLogcatClient
- type EmulatorController_StreamLogcatServer
- type EmulatorController_StreamNotificationClient
- type EmulatorController_StreamNotificationServer
- type EmulatorController_StreamPhysicalModelClient
- type EmulatorController_StreamPhysicalModelServer
- type EmulatorController_StreamScreenshotClient
- type EmulatorController_StreamScreenshotServer
- type EmulatorController_StreamSensorClient
- type EmulatorController_StreamSensorServer
- type EmulatorStatus
- func (*EmulatorStatus) Descriptor() ([]byte, []int)deprecated
- func (x *EmulatorStatus) GetBooted() bool
- func (x *EmulatorStatus) GetHardwareConfig() *EntryList
- func (x *EmulatorStatus) GetUptime() uint64
- func (x *EmulatorStatus) GetVersion() string
- func (x *EmulatorStatus) GetVmConfig() *VmConfiguration
- func (*EmulatorStatus) ProtoMessage()
- func (x *EmulatorStatus) ProtoReflect() protoreflect.Message
- func (x *EmulatorStatus) Reset()
- func (x *EmulatorStatus) String() string
- type Entry
- type EntryList
- type Fingerprint
- func (*Fingerprint) Descriptor() ([]byte, []int)deprecated
- func (x *Fingerprint) GetIsTouching() bool
- func (x *Fingerprint) GetTouchId() int32
- func (*Fingerprint) ProtoMessage()
- func (x *Fingerprint) ProtoReflect() protoreflect.Message
- func (x *Fingerprint) Reset()
- func (x *Fingerprint) String() string
- type FoldedDisplay
- func (*FoldedDisplay) Descriptor() ([]byte, []int)deprecated
- func (x *FoldedDisplay) GetHeight() uint32
- func (x *FoldedDisplay) GetWidth() uint32
- func (x *FoldedDisplay) GetXOffset() uint32
- func (x *FoldedDisplay) GetYOffset() uint32
- func (*FoldedDisplay) ProtoMessage()
- func (x *FoldedDisplay) ProtoReflect() protoreflect.Message
- func (x *FoldedDisplay) Reset()
- func (x *FoldedDisplay) String() string
- type GpsState
- func (*GpsState) Descriptor() ([]byte, []int)deprecated
- func (x *GpsState) GetAltitude() float64
- func (x *GpsState) GetBearing() float64
- func (x *GpsState) GetLatitude() float64
- func (x *GpsState) GetLongitude() float64
- func (x *GpsState) GetPassiveUpdate() bool
- func (x *GpsState) GetSatellites() int32
- func (x *GpsState) GetSpeed() float64
- func (*GpsState) ProtoMessage()
- func (x *GpsState) ProtoReflect() protoreflect.Message
- func (x *GpsState) Reset()
- func (x *GpsState) String() string
- type Image
- func (*Image) Descriptor() ([]byte, []int)deprecated
- func (x *Image) GetFormat() *ImageFormat
- func (x *Image) GetHeight() uint32deprecated
- func (x *Image) GetImage() []byte
- func (x *Image) GetSeq() uint32
- func (x *Image) GetTimestampUs() uint64
- func (x *Image) GetWidth() uint32deprecated
- func (*Image) ProtoMessage()
- func (x *Image) ProtoReflect() protoreflect.Message
- func (x *Image) Reset()
- func (x *Image) String() string
- type ImageFormat
- func (*ImageFormat) Descriptor() ([]byte, []int)deprecated
- func (x *ImageFormat) GetDisplay() uint32
- func (x *ImageFormat) GetFoldedDisplay() *FoldedDisplay
- func (x *ImageFormat) GetFormat() ImageFormat_ImgFormat
- func (x *ImageFormat) GetHeight() uint32
- func (x *ImageFormat) GetRotation() *Rotation
- func (x *ImageFormat) GetTransport() *ImageTransport
- func (x *ImageFormat) GetWidth() uint32
- func (*ImageFormat) ProtoMessage()
- func (x *ImageFormat) ProtoReflect() protoreflect.Message
- func (x *ImageFormat) Reset()
- func (x *ImageFormat) String() string
- type ImageFormat_ImgFormat
- func (ImageFormat_ImgFormat) Descriptor() protoreflect.EnumDescriptor
- func (x ImageFormat_ImgFormat) Enum() *ImageFormat_ImgFormat
- func (ImageFormat_ImgFormat) EnumDescriptor() ([]byte, []int)deprecated
- func (x ImageFormat_ImgFormat) Number() protoreflect.EnumNumber
- func (x ImageFormat_ImgFormat) String() string
- func (ImageFormat_ImgFormat) Type() protoreflect.EnumType
- type ImageTransport
- func (*ImageTransport) Descriptor() ([]byte, []int)deprecated
- func (x *ImageTransport) GetChannel() ImageTransport_TransportChannel
- func (x *ImageTransport) GetHandle() string
- func (*ImageTransport) ProtoMessage()
- func (x *ImageTransport) ProtoReflect() protoreflect.Message
- func (x *ImageTransport) Reset()
- func (x *ImageTransport) String() string
- type ImageTransport_TransportChannel
- func (ImageTransport_TransportChannel) Descriptor() protoreflect.EnumDescriptor
- func (x ImageTransport_TransportChannel) Enum() *ImageTransport_TransportChannel
- func (ImageTransport_TransportChannel) EnumDescriptor() ([]byte, []int)deprecated
- func (x ImageTransport_TransportChannel) Number() protoreflect.EnumNumber
- func (x ImageTransport_TransportChannel) String() string
- func (ImageTransport_TransportChannel) Type() protoreflect.EnumType
- type KeyboardEvent
- func (*KeyboardEvent) Descriptor() ([]byte, []int)deprecated
- func (x *KeyboardEvent) GetCodeType() KeyboardEvent_KeyCodeType
- func (x *KeyboardEvent) GetEventType() KeyboardEvent_KeyEventType
- func (x *KeyboardEvent) GetKey() string
- func (x *KeyboardEvent) GetKeyCode() int32
- func (x *KeyboardEvent) GetText() string
- func (*KeyboardEvent) ProtoMessage()
- func (x *KeyboardEvent) ProtoReflect() protoreflect.Message
- func (x *KeyboardEvent) Reset()
- func (x *KeyboardEvent) String() string
- type KeyboardEvent_KeyCodeType
- func (KeyboardEvent_KeyCodeType) Descriptor() protoreflect.EnumDescriptor
- func (x KeyboardEvent_KeyCodeType) Enum() *KeyboardEvent_KeyCodeType
- func (KeyboardEvent_KeyCodeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyboardEvent_KeyCodeType) Number() protoreflect.EnumNumber
- func (x KeyboardEvent_KeyCodeType) String() string
- func (KeyboardEvent_KeyCodeType) Type() protoreflect.EnumType
- type KeyboardEvent_KeyEventType
- func (KeyboardEvent_KeyEventType) Descriptor() protoreflect.EnumDescriptor
- func (x KeyboardEvent_KeyEventType) Enum() *KeyboardEvent_KeyEventType
- func (KeyboardEvent_KeyEventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x KeyboardEvent_KeyEventType) Number() protoreflect.EnumNumber
- func (x KeyboardEvent_KeyEventType) String() string
- func (KeyboardEvent_KeyEventType) Type() protoreflect.EnumType
- type LogMessage
- func (*LogMessage) Descriptor() ([]byte, []int)deprecated
- func (x *LogMessage) GetContents() string
- func (x *LogMessage) GetEntries() []*LogcatEntry
- func (x *LogMessage) GetNext() int64
- func (x *LogMessage) GetSort() LogMessage_LogType
- func (x *LogMessage) GetStart() int64
- func (*LogMessage) ProtoMessage()
- func (x *LogMessage) ProtoReflect() protoreflect.Message
- func (x *LogMessage) Reset()
- func (x *LogMessage) String() string
- type LogMessage_LogType
- func (LogMessage_LogType) Descriptor() protoreflect.EnumDescriptor
- func (x LogMessage_LogType) Enum() *LogMessage_LogType
- func (LogMessage_LogType) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogMessage_LogType) Number() protoreflect.EnumNumber
- func (x LogMessage_LogType) String() string
- func (LogMessage_LogType) Type() protoreflect.EnumType
- type LogcatEntry
- func (*LogcatEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogcatEntry) GetLevel() LogcatEntry_LogLevel
- func (x *LogcatEntry) GetMsg() string
- func (x *LogcatEntry) GetPid() uint32
- func (x *LogcatEntry) GetTag() string
- func (x *LogcatEntry) GetTid() uint32
- func (x *LogcatEntry) GetTimestamp() uint64
- func (*LogcatEntry) ProtoMessage()
- func (x *LogcatEntry) ProtoReflect() protoreflect.Message
- func (x *LogcatEntry) Reset()
- func (x *LogcatEntry) String() string
- type LogcatEntry_LogLevel
- func (LogcatEntry_LogLevel) Descriptor() protoreflect.EnumDescriptor
- func (x LogcatEntry_LogLevel) Enum() *LogcatEntry_LogLevel
- func (LogcatEntry_LogLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogcatEntry_LogLevel) Number() protoreflect.EnumNumber
- func (x LogcatEntry_LogLevel) String() string
- func (LogcatEntry_LogLevel) Type() protoreflect.EnumType
- type MouseEvent
- func (*MouseEvent) Descriptor() ([]byte, []int)deprecated
- func (x *MouseEvent) GetButtons() int32
- func (x *MouseEvent) GetDisplay() int32
- func (x *MouseEvent) GetX() int32
- func (x *MouseEvent) GetY() int32
- func (*MouseEvent) ProtoMessage()
- func (x *MouseEvent) ProtoReflect() protoreflect.Message
- func (x *MouseEvent) Reset()
- func (x *MouseEvent) String() string
- type Notification
- type Notification_EventType
- func (Notification_EventType) Descriptor() protoreflect.EnumDescriptor
- func (x Notification_EventType) Enum() *Notification_EventType
- func (Notification_EventType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Notification_EventType) Number() protoreflect.EnumNumber
- func (x Notification_EventType) String() string
- func (Notification_EventType) Type() protoreflect.EnumType
- type ParameterValue
- type PhoneCall
- func (*PhoneCall) Descriptor() ([]byte, []int)deprecated
- func (x *PhoneCall) GetNumber() string
- func (x *PhoneCall) GetOperation() PhoneCall_Operation
- func (*PhoneCall) ProtoMessage()
- func (x *PhoneCall) ProtoReflect() protoreflect.Message
- func (x *PhoneCall) Reset()
- func (x *PhoneCall) String() string
- type PhoneCall_Operation
- func (PhoneCall_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x PhoneCall_Operation) Enum() *PhoneCall_Operation
- func (PhoneCall_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x PhoneCall_Operation) Number() protoreflect.EnumNumber
- func (x PhoneCall_Operation) String() string
- func (PhoneCall_Operation) Type() protoreflect.EnumType
- type PhoneResponse
- type PhoneResponse_Response
- func (PhoneResponse_Response) Descriptor() protoreflect.EnumDescriptor
- func (x PhoneResponse_Response) Enum() *PhoneResponse_Response
- func (PhoneResponse_Response) EnumDescriptor() ([]byte, []int)deprecated
- func (x PhoneResponse_Response) Number() protoreflect.EnumNumber
- func (x PhoneResponse_Response) String() string
- func (PhoneResponse_Response) Type() protoreflect.EnumType
- type PhysicalModelValue
- func (*PhysicalModelValue) Descriptor() ([]byte, []int)deprecated
- func (x *PhysicalModelValue) GetStatus() PhysicalModelValue_State
- func (x *PhysicalModelValue) GetTarget() PhysicalModelValue_PhysicalType
- func (x *PhysicalModelValue) GetValue() *ParameterValue
- func (*PhysicalModelValue) ProtoMessage()
- func (x *PhysicalModelValue) ProtoReflect() protoreflect.Message
- func (x *PhysicalModelValue) Reset()
- func (x *PhysicalModelValue) String() string
- type PhysicalModelValue_PhysicalType
- func (PhysicalModelValue_PhysicalType) Descriptor() protoreflect.EnumDescriptor
- func (x PhysicalModelValue_PhysicalType) Enum() *PhysicalModelValue_PhysicalType
- func (PhysicalModelValue_PhysicalType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PhysicalModelValue_PhysicalType) Number() protoreflect.EnumNumber
- func (x PhysicalModelValue_PhysicalType) String() string
- func (PhysicalModelValue_PhysicalType) Type() protoreflect.EnumType
- type PhysicalModelValue_State
- func (PhysicalModelValue_State) Descriptor() protoreflect.EnumDescriptor
- func (x PhysicalModelValue_State) Enum() *PhysicalModelValue_State
- func (PhysicalModelValue_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x PhysicalModelValue_State) Number() protoreflect.EnumNumber
- func (x PhysicalModelValue_State) String() string
- func (PhysicalModelValue_State) Type() protoreflect.EnumType
- type Rotation
- func (*Rotation) Descriptor() ([]byte, []int)deprecated
- func (x *Rotation) GetRotation() Rotation_SkinRotation
- func (x *Rotation) GetXAxis() float64
- func (x *Rotation) GetYAxis() float64
- func (x *Rotation) GetZAxis() float64
- func (*Rotation) ProtoMessage()
- func (x *Rotation) ProtoReflect() protoreflect.Message
- func (x *Rotation) Reset()
- func (x *Rotation) String() string
- type RotationRadian
- func (*RotationRadian) Descriptor() ([]byte, []int)deprecated
- func (x *RotationRadian) GetX() float32
- func (x *RotationRadian) GetY() float32
- func (x *RotationRadian) GetZ() float32
- func (*RotationRadian) ProtoMessage()
- func (x *RotationRadian) ProtoReflect() protoreflect.Message
- func (x *RotationRadian) Reset()
- func (x *RotationRadian) String() string
- type Rotation_SkinRotation
- func (Rotation_SkinRotation) Descriptor() protoreflect.EnumDescriptor
- func (x Rotation_SkinRotation) Enum() *Rotation_SkinRotation
- func (Rotation_SkinRotation) EnumDescriptor() ([]byte, []int)deprecated
- func (x Rotation_SkinRotation) Number() protoreflect.EnumNumber
- func (x Rotation_SkinRotation) String() string
- func (Rotation_SkinRotation) Type() protoreflect.EnumType
- type SensorValue
- func (*SensorValue) Descriptor() ([]byte, []int)deprecated
- func (x *SensorValue) GetStatus() SensorValue_State
- func (x *SensorValue) GetTarget() SensorValue_SensorType
- func (x *SensorValue) GetValue() *ParameterValue
- func (*SensorValue) ProtoMessage()
- func (x *SensorValue) ProtoReflect() protoreflect.Message
- func (x *SensorValue) Reset()
- func (x *SensorValue) String() string
- type SensorValue_SensorType
- func (SensorValue_SensorType) Descriptor() protoreflect.EnumDescriptor
- func (x SensorValue_SensorType) Enum() *SensorValue_SensorType
- func (SensorValue_SensorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x SensorValue_SensorType) Number() protoreflect.EnumNumber
- func (x SensorValue_SensorType) String() string
- func (SensorValue_SensorType) Type() protoreflect.EnumType
- type SensorValue_State
- func (SensorValue_State) Descriptor() protoreflect.EnumDescriptor
- func (x SensorValue_State) Enum() *SensorValue_State
- func (SensorValue_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x SensorValue_State) Number() protoreflect.EnumNumber
- func (x SensorValue_State) String() string
- func (SensorValue_State) Type() protoreflect.EnumType
- type SmsMessage
- type Touch
- func (*Touch) Descriptor() ([]byte, []int)deprecated
- func (x *Touch) GetExpiration() Touch_EventExpiration
- func (x *Touch) GetIdentifier() int32
- func (x *Touch) GetPressure() int32
- func (x *Touch) GetTouchMajor() int32
- func (x *Touch) GetTouchMinor() int32
- func (x *Touch) GetX() int32
- func (x *Touch) GetY() int32
- func (*Touch) ProtoMessage()
- func (x *Touch) ProtoReflect() protoreflect.Message
- func (x *Touch) Reset()
- func (x *Touch) String() string
- type TouchEvent
- type Touch_EventExpiration
- func (Touch_EventExpiration) Descriptor() protoreflect.EnumDescriptor
- func (x Touch_EventExpiration) Enum() *Touch_EventExpiration
- func (Touch_EventExpiration) EnumDescriptor() ([]byte, []int)deprecated
- func (x Touch_EventExpiration) Number() protoreflect.EnumNumber
- func (x Touch_EventExpiration) String() string
- func (Touch_EventExpiration) Type() protoreflect.EnumType
- type UnimplementedEmulatorControllerServer
- func (UnimplementedEmulatorControllerServer) GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
- func (UnimplementedEmulatorControllerServer) GetClipboard(context.Context, *emptypb.Empty) (*ClipData, error)
- func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
- func (UnimplementedEmulatorControllerServer) GetGps(context.Context, *emptypb.Empty) (*GpsState, error)
- func (UnimplementedEmulatorControllerServer) GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
- func (UnimplementedEmulatorControllerServer) GetPhysicalModel(context.Context, *PhysicalModelValue) (*PhysicalModelValue, error)
- func (UnimplementedEmulatorControllerServer) GetScreenshot(context.Context, *ImageFormat) (*Image, error)
- func (UnimplementedEmulatorControllerServer) GetSensor(context.Context, *SensorValue) (*SensorValue, error)
- func (UnimplementedEmulatorControllerServer) GetStatus(context.Context, *emptypb.Empty) (*EmulatorStatus, error)
- func (UnimplementedEmulatorControllerServer) GetVmState(context.Context, *emptypb.Empty) (*VmRunState, error)
- func (UnimplementedEmulatorControllerServer) InjectAudio(EmulatorController_InjectAudioServer) error
- func (UnimplementedEmulatorControllerServer) RotateVirtualSceneCamera(context.Context, *RotationRadian) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SendFingerprint(context.Context, *Fingerprint) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SendKey(context.Context, *KeyboardEvent) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SendMouse(context.Context, *MouseEvent) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SendPhone(context.Context, *PhoneCall) (*PhoneResponse, error)
- func (UnimplementedEmulatorControllerServer) SendSms(context.Context, *SmsMessage) (*PhoneResponse, error)
- func (UnimplementedEmulatorControllerServer) SendTouch(context.Context, *TouchEvent) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetBattery(context.Context, *BatteryState) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetClipboard(context.Context, *ClipData) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
- func (UnimplementedEmulatorControllerServer) SetGps(context.Context, *GpsState) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetSensor(context.Context, *SensorValue) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetVirtualSceneCameraVelocity(context.Context, *Velocity) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetVmState(context.Context, *VmRunState) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) StreamAudio(*AudioFormat, EmulatorController_StreamAudioServer) error
- func (UnimplementedEmulatorControllerServer) StreamClipboard(*emptypb.Empty, EmulatorController_StreamClipboardServer) error
- func (UnimplementedEmulatorControllerServer) StreamLogcat(*LogMessage, EmulatorController_StreamLogcatServer) error
- func (UnimplementedEmulatorControllerServer) StreamNotification(*emptypb.Empty, EmulatorController_StreamNotificationServer) error
- func (UnimplementedEmulatorControllerServer) StreamPhysicalModel(*PhysicalModelValue, EmulatorController_StreamPhysicalModelServer) error
- func (UnimplementedEmulatorControllerServer) StreamScreenshot(*ImageFormat, EmulatorController_StreamScreenshotServer) error
- func (UnimplementedEmulatorControllerServer) StreamSensor(*SensorValue, EmulatorController_StreamSensorServer) error
- type UnsafeEmulatorControllerServer
- type Velocity
- func (*Velocity) Descriptor() ([]byte, []int)deprecated
- func (x *Velocity) GetX() float32
- func (x *Velocity) GetY() float32
- func (x *Velocity) GetZ() float32
- func (*Velocity) ProtoMessage()
- func (x *Velocity) ProtoReflect() protoreflect.Message
- func (x *Velocity) Reset()
- func (x *Velocity) String() string
- type VmConfiguration
- func (*VmConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *VmConfiguration) GetHypervisorType() VmConfiguration_VmHypervisorType
- func (x *VmConfiguration) GetNumberOfCpuCores() int32
- func (x *VmConfiguration) GetRamSizeBytes() int64
- func (*VmConfiguration) ProtoMessage()
- func (x *VmConfiguration) ProtoReflect() protoreflect.Message
- func (x *VmConfiguration) Reset()
- func (x *VmConfiguration) String() string
- type VmConfiguration_VmHypervisorType
- func (VmConfiguration_VmHypervisorType) Descriptor() protoreflect.EnumDescriptor
- func (x VmConfiguration_VmHypervisorType) Enum() *VmConfiguration_VmHypervisorType
- func (VmConfiguration_VmHypervisorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x VmConfiguration_VmHypervisorType) Number() protoreflect.EnumNumber
- func (x VmConfiguration_VmHypervisorType) String() string
- func (VmConfiguration_VmHypervisorType) Type() protoreflect.EnumType
- type VmRunState
- type VmRunState_RunState
- func (VmRunState_RunState) Descriptor() protoreflect.EnumDescriptor
- func (x VmRunState_RunState) Enum() *VmRunState_RunState
- func (VmRunState_RunState) EnumDescriptor() ([]byte, []int)deprecated
- func (x VmRunState_RunState) Number() protoreflect.EnumNumber
- func (x VmRunState_RunState) String() string
- func (VmRunState_RunState) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
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) Descriptor() protoreflect.EnumDescriptor
func (AudioFormat_Channels) Enum ¶
func (x AudioFormat_Channels) Enum() *AudioFormat_Channels
func (AudioFormat_Channels) EnumDescriptor
deprecated
func (AudioFormat_Channels) EnumDescriptor() ([]byte, []int)
Deprecated: Use AudioFormat_Channels.Descriptor instead.
func (AudioFormat_Channels) Number ¶
func (x AudioFormat_Channels) Number() protoreflect.EnumNumber
func (AudioFormat_Channels) String ¶
func (x AudioFormat_Channels) String() string
func (AudioFormat_Channels) Type ¶
func (AudioFormat_Channels) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (AudioFormat_SampleFormat) Enum ¶
func (x AudioFormat_SampleFormat) Enum() *AudioFormat_SampleFormat
func (AudioFormat_SampleFormat) EnumDescriptor
deprecated
func (AudioFormat_SampleFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use AudioFormat_SampleFormat.Descriptor instead.
func (AudioFormat_SampleFormat) Number ¶
func (x AudioFormat_SampleFormat) Number() protoreflect.EnumNumber
func (AudioFormat_SampleFormat) String ¶
func (x AudioFormat_SampleFormat) String() string
func (AudioFormat_SampleFormat) Type ¶
func (AudioFormat_SampleFormat) Type() protoreflect.EnumType
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 (x *BatteryState) GetHealth() BatteryState_BatteryHealth
func (*BatteryState) GetIsPresent ¶
func (x *BatteryState) GetIsPresent() bool
func (*BatteryState) GetStatus ¶
func (x *BatteryState) GetStatus() BatteryState_BatteryStatus
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) Descriptor() protoreflect.EnumDescriptor
func (BatteryState_BatteryCharger) Enum ¶
func (x BatteryState_BatteryCharger) Enum() *BatteryState_BatteryCharger
func (BatteryState_BatteryCharger) EnumDescriptor
deprecated
func (BatteryState_BatteryCharger) EnumDescriptor() ([]byte, []int)
Deprecated: Use BatteryState_BatteryCharger.Descriptor instead.
func (BatteryState_BatteryCharger) Number ¶
func (x BatteryState_BatteryCharger) Number() protoreflect.EnumNumber
func (BatteryState_BatteryCharger) String ¶
func (x BatteryState_BatteryCharger) String() string
func (BatteryState_BatteryCharger) Type ¶
func (BatteryState_BatteryCharger) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (BatteryState_BatteryHealth) Enum ¶
func (x BatteryState_BatteryHealth) Enum() *BatteryState_BatteryHealth
func (BatteryState_BatteryHealth) EnumDescriptor
deprecated
func (BatteryState_BatteryHealth) EnumDescriptor() ([]byte, []int)
Deprecated: Use BatteryState_BatteryHealth.Descriptor instead.
func (BatteryState_BatteryHealth) Number ¶
func (x BatteryState_BatteryHealth) Number() protoreflect.EnumNumber
func (BatteryState_BatteryHealth) String ¶
func (x BatteryState_BatteryHealth) String() string
func (BatteryState_BatteryHealth) Type ¶
func (BatteryState_BatteryHealth) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (BatteryState_BatteryStatus) Enum ¶
func (x BatteryState_BatteryStatus) Enum() *BatteryState_BatteryStatus
func (BatteryState_BatteryStatus) EnumDescriptor
deprecated
func (BatteryState_BatteryStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use BatteryState_BatteryStatus.Descriptor instead.
func (BatteryState_BatteryStatus) Number ¶
func (x BatteryState_BatteryStatus) Number() protoreflect.EnumNumber
func (BatteryState_BatteryStatus) String ¶
func (x BatteryState_BatteryStatus) String() string
func (BatteryState_BatteryStatus) Type ¶
func (BatteryState_BatteryStatus) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*ClipData) ProtoMessage()
func (*ClipData) ProtoReflect ¶
func (x *ClipData) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (DisplayConfiguration_DisplayFlags) Enum ¶
func (x DisplayConfiguration_DisplayFlags) Enum() *DisplayConfiguration_DisplayFlags
func (DisplayConfiguration_DisplayFlags) EnumDescriptor
deprecated
func (DisplayConfiguration_DisplayFlags) EnumDescriptor() ([]byte, []int)
Deprecated: Use DisplayConfiguration_DisplayFlags.Descriptor instead.
func (DisplayConfiguration_DisplayFlags) Number ¶
func (x DisplayConfiguration_DisplayFlags) Number() protoreflect.EnumNumber
func (DisplayConfiguration_DisplayFlags) String ¶
func (x DisplayConfiguration_DisplayFlags) String() string
func (DisplayConfiguration_DisplayFlags) Type ¶
func (DisplayConfiguration_DisplayFlags) Type() protoreflect.EnumType
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.
func NewEmulatorControllerClient ¶
func NewEmulatorControllerClient(cc grpc.ClientConnInterface) EmulatorControllerClient
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) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*EntryList) ProtoMessage()
func (*EntryList) ProtoReflect ¶
func (x *EntryList) ProtoReflect() protoreflect.Message
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) GetAltitude ¶
func (*GpsState) GetBearing ¶
func (*GpsState) GetLatitude ¶
func (*GpsState) GetLongitude ¶
func (*GpsState) GetPassiveUpdate ¶
func (*GpsState) GetSatellites ¶
func (*GpsState) ProtoMessage ¶
func (*GpsState) ProtoMessage()
func (*GpsState) ProtoReflect ¶
func (x *GpsState) ProtoReflect() protoreflect.Message
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) GetFormat ¶
func (x *Image) GetFormat() *ImageFormat
func (*Image) GetTimestampUs ¶
func (*Image) ProtoMessage ¶
func (*Image) ProtoMessage()
func (*Image) ProtoReflect ¶
func (x *Image) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (ImageFormat_ImgFormat) Enum ¶
func (x ImageFormat_ImgFormat) Enum() *ImageFormat_ImgFormat
func (ImageFormat_ImgFormat) EnumDescriptor
deprecated
func (ImageFormat_ImgFormat) EnumDescriptor() ([]byte, []int)
Deprecated: Use ImageFormat_ImgFormat.Descriptor instead.
func (ImageFormat_ImgFormat) Number ¶
func (x ImageFormat_ImgFormat) Number() protoreflect.EnumNumber
func (ImageFormat_ImgFormat) String ¶
func (x ImageFormat_ImgFormat) String() string
func (ImageFormat_ImgFormat) Type ¶
func (ImageFormat_ImgFormat) Type() protoreflect.EnumType
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 (x *ImageTransport) GetChannel() ImageTransport_TransportChannel
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) Descriptor() protoreflect.EnumDescriptor
func (ImageTransport_TransportChannel) Enum ¶
func (x ImageTransport_TransportChannel) Enum() *ImageTransport_TransportChannel
func (ImageTransport_TransportChannel) EnumDescriptor
deprecated
func (ImageTransport_TransportChannel) EnumDescriptor() ([]byte, []int)
Deprecated: Use ImageTransport_TransportChannel.Descriptor instead.
func (ImageTransport_TransportChannel) Number ¶
func (x ImageTransport_TransportChannel) Number() protoreflect.EnumNumber
func (ImageTransport_TransportChannel) String ¶
func (x ImageTransport_TransportChannel) String() string
func (ImageTransport_TransportChannel) Type ¶
func (ImageTransport_TransportChannel) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (KeyboardEvent_KeyCodeType) Enum ¶
func (x KeyboardEvent_KeyCodeType) Enum() *KeyboardEvent_KeyCodeType
func (KeyboardEvent_KeyCodeType) EnumDescriptor
deprecated
func (KeyboardEvent_KeyCodeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use KeyboardEvent_KeyCodeType.Descriptor instead.
func (KeyboardEvent_KeyCodeType) Number ¶
func (x KeyboardEvent_KeyCodeType) Number() protoreflect.EnumNumber
func (KeyboardEvent_KeyCodeType) String ¶
func (x KeyboardEvent_KeyCodeType) String() string
func (KeyboardEvent_KeyCodeType) Type ¶
func (KeyboardEvent_KeyCodeType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (KeyboardEvent_KeyEventType) Enum ¶
func (x KeyboardEvent_KeyEventType) Enum() *KeyboardEvent_KeyEventType
func (KeyboardEvent_KeyEventType) EnumDescriptor
deprecated
func (KeyboardEvent_KeyEventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use KeyboardEvent_KeyEventType.Descriptor instead.
func (KeyboardEvent_KeyEventType) Number ¶
func (x KeyboardEvent_KeyEventType) Number() protoreflect.EnumNumber
func (KeyboardEvent_KeyEventType) String ¶
func (x KeyboardEvent_KeyEventType) String() string
func (KeyboardEvent_KeyEventType) Type ¶
func (KeyboardEvent_KeyEventType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (LogMessage_LogType) Enum ¶
func (x LogMessage_LogType) Enum() *LogMessage_LogType
func (LogMessage_LogType) EnumDescriptor
deprecated
func (LogMessage_LogType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogMessage_LogType.Descriptor instead.
func (LogMessage_LogType) Number ¶
func (x LogMessage_LogType) Number() protoreflect.EnumNumber
func (LogMessage_LogType) String ¶
func (x LogMessage_LogType) String() string
func (LogMessage_LogType) Type ¶
func (LogMessage_LogType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (LogcatEntry_LogLevel) Enum ¶
func (x LogcatEntry_LogLevel) Enum() *LogcatEntry_LogLevel
func (LogcatEntry_LogLevel) EnumDescriptor
deprecated
func (LogcatEntry_LogLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogcatEntry_LogLevel.Descriptor instead.
func (LogcatEntry_LogLevel) Number ¶
func (x LogcatEntry_LogLevel) Number() protoreflect.EnumNumber
func (LogcatEntry_LogLevel) String ¶
func (x LogcatEntry_LogLevel) String() string
func (LogcatEntry_LogLevel) Type ¶
func (LogcatEntry_LogLevel) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (Notification_EventType) Enum ¶
func (x Notification_EventType) Enum() *Notification_EventType
func (Notification_EventType) EnumDescriptor
deprecated
func (Notification_EventType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Notification_EventType.Descriptor instead.
func (Notification_EventType) Number ¶
func (x Notification_EventType) Number() protoreflect.EnumNumber
func (Notification_EventType) String ¶
func (x Notification_EventType) String() string
func (Notification_EventType) Type ¶
func (Notification_EventType) Type() protoreflect.EnumType
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) GetOperation ¶
func (x *PhoneCall) GetOperation() PhoneCall_Operation
func (*PhoneCall) ProtoMessage ¶
func (*PhoneCall) ProtoMessage()
func (*PhoneCall) ProtoReflect ¶
func (x *PhoneCall) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (PhoneCall_Operation) Enum ¶
func (x PhoneCall_Operation) Enum() *PhoneCall_Operation
func (PhoneCall_Operation) EnumDescriptor
deprecated
func (PhoneCall_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhoneCall_Operation.Descriptor instead.
func (PhoneCall_Operation) Number ¶
func (x PhoneCall_Operation) Number() protoreflect.EnumNumber
func (PhoneCall_Operation) String ¶
func (x PhoneCall_Operation) String() string
func (PhoneCall_Operation) Type ¶
func (PhoneCall_Operation) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (PhoneResponse_Response) Enum ¶
func (x PhoneResponse_Response) Enum() *PhoneResponse_Response
func (PhoneResponse_Response) EnumDescriptor
deprecated
func (PhoneResponse_Response) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhoneResponse_Response.Descriptor instead.
func (PhoneResponse_Response) Number ¶
func (x PhoneResponse_Response) Number() protoreflect.EnumNumber
func (PhoneResponse_Response) String ¶
func (x PhoneResponse_Response) String() string
func (PhoneResponse_Response) Type ¶
func (PhoneResponse_Response) Type() protoreflect.EnumType
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 (x *PhysicalModelValue) GetStatus() PhysicalModelValue_State
func (*PhysicalModelValue) GetTarget ¶
func (x *PhysicalModelValue) GetTarget() PhysicalModelValue_PhysicalType
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) Descriptor() protoreflect.EnumDescriptor
func (PhysicalModelValue_PhysicalType) Enum ¶
func (x PhysicalModelValue_PhysicalType) Enum() *PhysicalModelValue_PhysicalType
func (PhysicalModelValue_PhysicalType) EnumDescriptor
deprecated
func (PhysicalModelValue_PhysicalType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhysicalModelValue_PhysicalType.Descriptor instead.
func (PhysicalModelValue_PhysicalType) Number ¶
func (x PhysicalModelValue_PhysicalType) Number() protoreflect.EnumNumber
func (PhysicalModelValue_PhysicalType) String ¶
func (x PhysicalModelValue_PhysicalType) String() string
func (PhysicalModelValue_PhysicalType) Type ¶
func (PhysicalModelValue_PhysicalType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (PhysicalModelValue_State) Enum ¶
func (x PhysicalModelValue_State) Enum() *PhysicalModelValue_State
func (PhysicalModelValue_State) EnumDescriptor
deprecated
func (PhysicalModelValue_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhysicalModelValue_State.Descriptor instead.
func (PhysicalModelValue_State) Number ¶
func (x PhysicalModelValue_State) Number() protoreflect.EnumNumber
func (PhysicalModelValue_State) String ¶
func (x PhysicalModelValue_State) String() string
func (PhysicalModelValue_State) Type ¶
func (PhysicalModelValue_State) Type() protoreflect.EnumType
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) GetRotation ¶
func (x *Rotation) GetRotation() Rotation_SkinRotation
func (*Rotation) ProtoMessage ¶
func (*Rotation) ProtoMessage()
func (*Rotation) ProtoReflect ¶
func (x *Rotation) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (Rotation_SkinRotation) Enum ¶
func (x Rotation_SkinRotation) Enum() *Rotation_SkinRotation
func (Rotation_SkinRotation) EnumDescriptor
deprecated
func (Rotation_SkinRotation) EnumDescriptor() ([]byte, []int)
Deprecated: Use Rotation_SkinRotation.Descriptor instead.
func (Rotation_SkinRotation) Number ¶
func (x Rotation_SkinRotation) Number() protoreflect.EnumNumber
func (Rotation_SkinRotation) String ¶
func (x Rotation_SkinRotation) String() string
func (Rotation_SkinRotation) Type ¶
func (Rotation_SkinRotation) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (SensorValue_SensorType) Enum ¶
func (x SensorValue_SensorType) Enum() *SensorValue_SensorType
func (SensorValue_SensorType) EnumDescriptor
deprecated
func (SensorValue_SensorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SensorValue_SensorType.Descriptor instead.
func (SensorValue_SensorType) Number ¶
func (x SensorValue_SensorType) Number() protoreflect.EnumNumber
func (SensorValue_SensorType) String ¶
func (x SensorValue_SensorType) String() string
func (SensorValue_SensorType) Type ¶
func (SensorValue_SensorType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (SensorValue_State) Enum ¶
func (x SensorValue_State) Enum() *SensorValue_State
func (SensorValue_State) EnumDescriptor
deprecated
func (SensorValue_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use SensorValue_State.Descriptor instead.
func (SensorValue_State) Number ¶
func (x SensorValue_State) Number() protoreflect.EnumNumber
func (SensorValue_State) String ¶
func (x SensorValue_State) String() string
func (SensorValue_State) Type ¶
func (SensorValue_State) Type() protoreflect.EnumType
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) GetExpiration ¶
func (x *Touch) GetExpiration() Touch_EventExpiration
func (*Touch) GetIdentifier ¶
func (*Touch) GetPressure ¶
func (*Touch) GetTouchMajor ¶
func (*Touch) GetTouchMinor ¶
func (*Touch) ProtoMessage ¶
func (*Touch) ProtoMessage()
func (*Touch) ProtoReflect ¶
func (x *Touch) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (Touch_EventExpiration) Enum ¶
func (x Touch_EventExpiration) Enum() *Touch_EventExpiration
func (Touch_EventExpiration) EnumDescriptor
deprecated
func (Touch_EventExpiration) EnumDescriptor() ([]byte, []int)
Deprecated: Use Touch_EventExpiration.Descriptor instead.
func (Touch_EventExpiration) Number ¶
func (x Touch_EventExpiration) Number() protoreflect.EnumNumber
func (Touch_EventExpiration) String ¶
func (x Touch_EventExpiration) String() string
func (Touch_EventExpiration) Type ¶
func (Touch_EventExpiration) Type() protoreflect.EnumType
type UnimplementedEmulatorControllerServer ¶
type UnimplementedEmulatorControllerServer struct { }
UnimplementedEmulatorControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedEmulatorControllerServer) GetBattery ¶
func (UnimplementedEmulatorControllerServer) GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
func (UnimplementedEmulatorControllerServer) GetClipboard ¶
func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations ¶
func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
func (UnimplementedEmulatorControllerServer) GetLogcat ¶
func (UnimplementedEmulatorControllerServer) GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
func (UnimplementedEmulatorControllerServer) GetPhysicalModel ¶
func (UnimplementedEmulatorControllerServer) GetPhysicalModel(context.Context, *PhysicalModelValue) (*PhysicalModelValue, error)
func (UnimplementedEmulatorControllerServer) GetScreenshot ¶
func (UnimplementedEmulatorControllerServer) GetScreenshot(context.Context, *ImageFormat) (*Image, error)
func (UnimplementedEmulatorControllerServer) GetSensor ¶
func (UnimplementedEmulatorControllerServer) GetSensor(context.Context, *SensorValue) (*SensorValue, error)
func (UnimplementedEmulatorControllerServer) GetStatus ¶
func (UnimplementedEmulatorControllerServer) GetStatus(context.Context, *emptypb.Empty) (*EmulatorStatus, error)
func (UnimplementedEmulatorControllerServer) GetVmState ¶
func (UnimplementedEmulatorControllerServer) GetVmState(context.Context, *emptypb.Empty) (*VmRunState, error)
func (UnimplementedEmulatorControllerServer) InjectAudio ¶
func (UnimplementedEmulatorControllerServer) InjectAudio(EmulatorController_InjectAudioServer) error
func (UnimplementedEmulatorControllerServer) RotateVirtualSceneCamera ¶
func (UnimplementedEmulatorControllerServer) RotateVirtualSceneCamera(context.Context, *RotationRadian) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SendFingerprint ¶
func (UnimplementedEmulatorControllerServer) SendFingerprint(context.Context, *Fingerprint) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SendKey ¶
func (UnimplementedEmulatorControllerServer) SendKey(context.Context, *KeyboardEvent) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SendMouse ¶
func (UnimplementedEmulatorControllerServer) SendMouse(context.Context, *MouseEvent) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SendPhone ¶
func (UnimplementedEmulatorControllerServer) SendPhone(context.Context, *PhoneCall) (*PhoneResponse, error)
func (UnimplementedEmulatorControllerServer) SendSms ¶
func (UnimplementedEmulatorControllerServer) SendSms(context.Context, *SmsMessage) (*PhoneResponse, error)
func (UnimplementedEmulatorControllerServer) SendTouch ¶
func (UnimplementedEmulatorControllerServer) SendTouch(context.Context, *TouchEvent) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetBattery ¶
func (UnimplementedEmulatorControllerServer) SetBattery(context.Context, *BatteryState) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetClipboard ¶
func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations ¶
func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
func (UnimplementedEmulatorControllerServer) SetPhysicalModel ¶
func (UnimplementedEmulatorControllerServer) SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetSensor ¶
func (UnimplementedEmulatorControllerServer) SetSensor(context.Context, *SensorValue) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetVirtualSceneCameraVelocity ¶
func (UnimplementedEmulatorControllerServer) SetVmState ¶
func (UnimplementedEmulatorControllerServer) SetVmState(context.Context, *VmRunState) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) StreamAudio ¶
func (UnimplementedEmulatorControllerServer) StreamAudio(*AudioFormat, EmulatorController_StreamAudioServer) error
func (UnimplementedEmulatorControllerServer) StreamClipboard ¶
func (UnimplementedEmulatorControllerServer) StreamClipboard(*emptypb.Empty, EmulatorController_StreamClipboardServer) error
func (UnimplementedEmulatorControllerServer) StreamLogcat ¶
func (UnimplementedEmulatorControllerServer) StreamLogcat(*LogMessage, EmulatorController_StreamLogcatServer) error
func (UnimplementedEmulatorControllerServer) StreamNotification ¶
func (UnimplementedEmulatorControllerServer) StreamNotification(*emptypb.Empty, EmulatorController_StreamNotificationServer) error
func (UnimplementedEmulatorControllerServer) StreamPhysicalModel ¶
func (UnimplementedEmulatorControllerServer) StreamPhysicalModel(*PhysicalModelValue, EmulatorController_StreamPhysicalModelServer) error
func (UnimplementedEmulatorControllerServer) StreamScreenshot ¶
func (UnimplementedEmulatorControllerServer) StreamScreenshot(*ImageFormat, EmulatorController_StreamScreenshotServer) error
func (UnimplementedEmulatorControllerServer) StreamSensor ¶
func (UnimplementedEmulatorControllerServer) StreamSensor(*SensorValue, EmulatorController_StreamSensorServer) error
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) ProtoMessage ¶
func (*Velocity) ProtoMessage()
func (*Velocity) ProtoReflect ¶
func (x *Velocity) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
func (VmConfiguration_VmHypervisorType) Enum ¶
func (x VmConfiguration_VmHypervisorType) Enum() *VmConfiguration_VmHypervisorType
func (VmConfiguration_VmHypervisorType) EnumDescriptor
deprecated
func (VmConfiguration_VmHypervisorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use VmConfiguration_VmHypervisorType.Descriptor instead.
func (VmConfiguration_VmHypervisorType) Number ¶
func (x VmConfiguration_VmHypervisorType) Number() protoreflect.EnumNumber
func (VmConfiguration_VmHypervisorType) String ¶
func (x VmConfiguration_VmHypervisorType) String() string
func (VmConfiguration_VmHypervisorType) Type ¶
func (VmConfiguration_VmHypervisorType) Type() protoreflect.EnumType
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) Descriptor() protoreflect.EnumDescriptor
func (VmRunState_RunState) Enum ¶
func (x VmRunState_RunState) Enum() *VmRunState_RunState
func (VmRunState_RunState) EnumDescriptor
deprecated
func (VmRunState_RunState) EnumDescriptor() ([]byte, []int)
Deprecated: Use VmRunState_RunState.Descriptor instead.
func (VmRunState_RunState) Number ¶
func (x VmRunState_RunState) Number() protoreflect.EnumNumber
func (VmRunState_RunState) String ¶
func (x VmRunState_RunState) String() string
func (VmRunState_RunState) Type ¶
func (VmRunState_RunState) Type() protoreflect.EnumType