Documentation
¶
Overview ¶
Package emupb is the Go code of the Android emulator's gRPC service, generated from emulator_controller.proto. The .proto is vendored unchanged from the Android Emulator 37.2.12.0 SDK package (<sdk>/emulator/lib/emulator_controller.proto); the generated files are committed, so building stagent needs no protoc.
Pinned generator: protoc 35.1 (libprotoc of grpcio-tools 1.84.0, run through uv), protoc-gen-go v1.36.12, protoc-gen-go-grpc v1.6.2. To update, copy the newer .proto over the vendored one and run `go generate` here (needs sh, uv and Go).
Index ¶
- Constants
- Variables
- func RegisterEmulatorControllerServer(s grpc.ServiceRegistrar, srv EmulatorControllerServer)
- type AndroidEvent
- func (*AndroidEvent) Descriptor() ([]byte, []int)deprecated
- func (x *AndroidEvent) GetCode() int32
- func (x *AndroidEvent) GetDisplay() int32
- func (x *AndroidEvent) GetType() int32
- func (x *AndroidEvent) GetValue() int32
- func (*AndroidEvent) ProtoMessage()
- func (x *AndroidEvent) ProtoReflect() protoreflect.Message
- func (x *AndroidEvent) Reset()
- func (x *AndroidEvent) String() string
- type AngularVelocity
- func (*AngularVelocity) Descriptor() ([]byte, []int)deprecated
- func (x *AngularVelocity) GetOmegaX() float32
- func (x *AngularVelocity) GetOmegaY() float32
- func (x *AngularVelocity) GetOmegaZ() float32
- func (*AngularVelocity) ProtoMessage()
- func (x *AngularVelocity) ProtoReflect() protoreflect.Message
- func (x *AngularVelocity) Reset()
- func (x *AngularVelocity) String() string
- type AudioFormat
- func (*AudioFormat) Descriptor() ([]byte, []int)deprecated
- func (x *AudioFormat) GetChannels() AudioFormat_Channels
- func (x *AudioFormat) GetFormat() AudioFormat_SampleFormat
- func (x *AudioFormat) GetMode() AudioFormat_DeliveryMode
- 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_DeliveryMode
- func (AudioFormat_DeliveryMode) Descriptor() protoreflect.EnumDescriptor
- func (x AudioFormat_DeliveryMode) Enum() *AudioFormat_DeliveryMode
- func (AudioFormat_DeliveryMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AudioFormat_DeliveryMode) Number() protoreflect.EnumNumber
- func (x AudioFormat_DeliveryMode) String() string
- func (AudioFormat_DeliveryMode) 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 BootCompletedNotification
- func (*BootCompletedNotification) Descriptor() ([]byte, []int)deprecated
- func (x *BootCompletedNotification) GetTime() int32
- func (*BootCompletedNotification) ProtoMessage()
- func (x *BootCompletedNotification) ProtoReflect() protoreflect.Message
- func (x *BootCompletedNotification) Reset()
- func (x *BootCompletedNotification) String() string
- type BrightnessValue
- func (*BrightnessValue) Descriptor() ([]byte, []int)deprecated
- func (x *BrightnessValue) GetTarget() BrightnessValue_LightType
- func (x *BrightnessValue) GetValue() uint32
- func (*BrightnessValue) ProtoMessage()
- func (x *BrightnessValue) ProtoReflect() protoreflect.Message
- func (x *BrightnessValue) Reset()
- func (x *BrightnessValue) String() string
- type BrightnessValue_LightType
- func (BrightnessValue_LightType) Descriptor() protoreflect.EnumDescriptor
- func (x BrightnessValue_LightType) Enum() *BrightnessValue_LightType
- func (BrightnessValue_LightType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BrightnessValue_LightType) Number() protoreflect.EnumNumber
- func (x BrightnessValue_LightType) String() string
- func (BrightnessValue_LightType) Type() protoreflect.EnumType
- type Camera
- type CameraList
- type CameraNotification
- func (*CameraNotification) Descriptor() ([]byte, []int)deprecated
- func (x *CameraNotification) GetActive() bool
- func (x *CameraNotification) GetDisplay() int32
- func (*CameraNotification) ProtoMessage()
- func (x *CameraNotification) ProtoReflect() protoreflect.Message
- func (x *CameraNotification) Reset()
- func (x *CameraNotification) String() string
- 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 (x *DisplayConfigurations) GetMaxDisplays() uint32
- func (x *DisplayConfigurations) GetUserConfigurable() uint32
- func (*DisplayConfigurations) ProtoMessage()
- func (x *DisplayConfigurations) ProtoReflect() protoreflect.Message
- func (x *DisplayConfigurations) Reset()
- func (x *DisplayConfigurations) String() string
- type DisplayConfigurationsChangedNotification
- func (*DisplayConfigurationsChangedNotification) Descriptor() ([]byte, []int)deprecated
- func (x *DisplayConfigurationsChangedNotification) GetDisplayConfigurations() *DisplayConfigurations
- func (*DisplayConfigurationsChangedNotification) ProtoMessage()
- func (x *DisplayConfigurationsChangedNotification) ProtoReflect() protoreflect.Message
- func (x *DisplayConfigurationsChangedNotification) Reset()
- func (x *DisplayConfigurationsChangedNotification) String() string
- type DisplayMode
- type DisplayModeValue
- func (DisplayModeValue) Descriptor() protoreflect.EnumDescriptor
- func (x DisplayModeValue) Enum() *DisplayModeValue
- func (DisplayModeValue) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisplayModeValue) Number() protoreflect.EnumNumber
- func (x DisplayModeValue) String() string
- func (DisplayModeValue) Type() protoreflect.EnumType
- type DisplayPowerModeNotification
- func (*DisplayPowerModeNotification) Descriptor() ([]byte, []int)deprecated
- func (x *DisplayPowerModeNotification) GetDisplay() uint32
- func (x *DisplayPowerModeNotification) GetPowerMode() DisplayPowerModeNotification_PowerMode
- func (*DisplayPowerModeNotification) ProtoMessage()
- func (x *DisplayPowerModeNotification) ProtoReflect() protoreflect.Message
- func (x *DisplayPowerModeNotification) Reset()
- func (x *DisplayPowerModeNotification) String() string
- type DisplayPowerModeNotification_PowerMode
- func (DisplayPowerModeNotification_PowerMode) Descriptor() protoreflect.EnumDescriptor
- func (x DisplayPowerModeNotification_PowerMode) Enum() *DisplayPowerModeNotification_PowerMode
- func (DisplayPowerModeNotification_PowerMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x DisplayPowerModeNotification_PowerMode) Number() protoreflect.EnumNumber
- func (x DisplayPowerModeNotification_PowerMode) String() string
- func (DisplayPowerModeNotification_PowerMode) Type() protoreflect.EnumType
- type EmulatorControllerClient
- type EmulatorControllerServer
- type EmulatorController_InjectAudioClient
- type EmulatorController_InjectAudioServer
- type EmulatorController_InjectWheelClient
- type EmulatorController_InjectWheelServer
- type EmulatorController_StreamAudioClient
- type EmulatorController_StreamAudioServer
- type EmulatorController_StreamClipboardClient
- type EmulatorController_StreamClipboardServer
- type EmulatorController_StreamInputEventClient
- type EmulatorController_StreamInputEventServer
- 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) GetGuestConfig() map[string]string
- func (x *EmulatorStatus) GetHardwareConfig() *EntryListdeprecated
- func (x *EmulatorStatus) GetHeartbeat() uint64
- func (x *EmulatorStatus) GetPlatformConfig() map[string]string
- 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 Environment
- 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) GetDisplayMode() DisplayModeValue
- 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 InputEvent
- func (*InputEvent) Descriptor() ([]byte, []int)deprecated
- func (x *InputEvent) GetAndroidEvent() *AndroidEvent
- func (x *InputEvent) GetKeyEvent() *KeyboardEvent
- func (x *InputEvent) GetMouseEvent() *MouseEvent
- func (x *InputEvent) GetPenEvent() *PenEvent
- func (x *InputEvent) GetTouchEvent() *TouchEvent
- func (x *InputEvent) GetTouchpadEvent() *TouchpadEvent
- func (x *InputEvent) GetType() isInputEvent_Type
- func (x *InputEvent) GetWheelEvent() *WheelEvent
- func (x *InputEvent) GetXrCommand() *XrCommand
- func (x *InputEvent) GetXrEyeEvent() *MouseEvent
- func (x *InputEvent) GetXrHandEvent() *MouseEvent
- func (x *InputEvent) GetXrHeadAngularVelocityEvent() *AngularVelocity
- func (x *InputEvent) GetXrHeadMovementEvent() *Translation
- func (x *InputEvent) GetXrHeadRotationEvent() *RotationRadian
- func (x *InputEvent) GetXrHeadVelocityEvent() *Velocity
- func (*InputEvent) ProtoMessage()
- func (x *InputEvent) ProtoReflect() protoreflect.Message
- func (x *InputEvent) Reset()
- func (x *InputEvent) String() string
- type InputEvent_AndroidEvent
- type InputEvent_KeyEvent
- type InputEvent_MouseEvent
- type InputEvent_PenEvent
- type InputEvent_TouchEvent
- type InputEvent_TouchpadEvent
- type InputEvent_WheelEvent
- type InputEvent_XrCommand
- type InputEvent_XrEyeEvent
- type InputEvent_XrHandEvent
- type InputEvent_XrHeadAngularVelocityEvent
- type InputEvent_XrHeadMovementEvent
- type InputEvent_XrHeadRotationEvent
- type InputEvent_XrHeadVelocityEvent
- 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 LedIndicator
- func (*LedIndicator) Descriptor() ([]byte, []int)deprecated
- func (x *LedIndicator) GetColor() uint32
- func (x *LedIndicator) GetFacing() LedIndicator_Facing
- func (x *LedIndicator) GetId() uint32
- func (x *LedIndicator) GetState() LedIndicator_State
- func (*LedIndicator) ProtoMessage()
- func (x *LedIndicator) ProtoReflect() protoreflect.Message
- func (x *LedIndicator) Reset()
- func (x *LedIndicator) String() string
- type LedIndicator_Facing
- func (LedIndicator_Facing) Descriptor() protoreflect.EnumDescriptor
- func (x LedIndicator_Facing) Enum() *LedIndicator_Facing
- func (LedIndicator_Facing) EnumDescriptor() ([]byte, []int)deprecated
- func (x LedIndicator_Facing) Number() protoreflect.EnumNumber
- func (x LedIndicator_Facing) String() string
- func (LedIndicator_Facing) Type() protoreflect.EnumType
- type LedIndicator_State
- func (LedIndicator_State) Descriptor() protoreflect.EnumDescriptor
- func (x LedIndicator_State) Enum() *LedIndicator_State
- func (LedIndicator_State) EnumDescriptor() ([]byte, []int)deprecated
- func (x LedIndicator_State) Number() protoreflect.EnumNumber
- func (x LedIndicator_State) String() string
- func (LedIndicator_State) 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() int64deprecated
- func (x *LogMessage) GetSort() LogMessage_LogType
- func (x *LogMessage) GetStart() int64deprecated
- 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 MicrophoneState
- 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
- func (*Notification) Descriptor() ([]byte, []int)deprecated
- func (x *Notification) GetBooted() *BootCompletedNotification
- func (x *Notification) GetBrightness() *BrightnessValue
- func (x *Notification) GetCameraNotification() *CameraNotification
- func (x *Notification) GetDisplayConfigurationsChangedNotification() *DisplayConfigurationsChangedNotification
- func (x *Notification) GetDisplayPowerMode() *DisplayPowerModeNotification
- func (x *Notification) GetLedIndicator() *LedIndicator
- func (x *Notification) GetMicrophoneState() *MicrophoneState
- func (x *Notification) GetPosture() *Posture
- func (x *Notification) GetTextViewFocus() *TextViewFocus
- func (x *Notification) GetType() isNotification_Type
- func (x *Notification) GetXrOptions() *XrOptions
- func (*Notification) ProtoMessage()
- func (x *Notification) ProtoReflect() protoreflect.Message
- func (x *Notification) Reset()
- func (x *Notification) String() string
- type Notification_Booted
- type Notification_Brightness
- type Notification_CameraNotification
- type Notification_DisplayConfigurationsChangedNotification
- type Notification_DisplayPowerMode
- type Notification_LedIndicator
- type Notification_MicrophoneState
- type Notification_Posture
- type Notification_TextViewFocus
- type Notification_XrOptions
- type ParameterValue
- type Pen
- type PenEvent
- 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 PhoneNumber
- 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) GetInterpolation() PhysicalModelValue_Interpolation
- 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_Interpolation
- func (PhysicalModelValue_Interpolation) Descriptor() protoreflect.EnumDescriptor
- func (x PhysicalModelValue_Interpolation) Enum() *PhysicalModelValue_Interpolation
- func (PhysicalModelValue_Interpolation) EnumDescriptor() ([]byte, []int)deprecated
- func (x PhysicalModelValue_Interpolation) Number() protoreflect.EnumNumber
- func (x PhysicalModelValue_Interpolation) String() string
- func (PhysicalModelValue_Interpolation) Type() protoreflect.EnumType
- 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 Posture
- type Posture_PostureValue
- func (Posture_PostureValue) Descriptor() protoreflect.EnumDescriptor
- func (x Posture_PostureValue) Enum() *Posture_PostureValue
- func (Posture_PostureValue) EnumDescriptor() ([]byte, []int)deprecated
- func (x Posture_PostureValue) Number() protoreflect.EnumNumber
- func (x Posture_PostureValue) String() string
- func (Posture_PostureValue) 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 TextViewFocus
- func (*TextViewFocus) Descriptor() ([]byte, []int)deprecated
- func (x *TextViewFocus) GetDisplay() int32
- func (x *TextViewFocus) GetTextViewHasFocus() bool
- func (*TextViewFocus) ProtoMessage()
- func (x *TextViewFocus) ProtoReflect() protoreflect.Message
- func (x *TextViewFocus) Reset()
- func (x *TextViewFocus) String() string
- type Touch
- func (*Touch) Descriptor() ([]byte, []int)deprecated
- func (x *Touch) GetExpiration() Touch_EventExpiration
- func (x *Touch) GetIdentifier() int32
- func (x *Touch) GetOrientation() 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 TouchpadEvent
- func (*TouchpadEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TouchpadEvent) GetTouches() []*Touch
- func (x *TouchpadEvent) GetTouchpad() int32
- func (*TouchpadEvent) ProtoMessage()
- func (x *TouchpadEvent) ProtoReflect() protoreflect.Message
- func (x *TouchpadEvent) Reset()
- func (x *TouchpadEvent) String() string
- type Translation
- func (*Translation) Descriptor() ([]byte, []int)deprecated
- func (x *Translation) GetDeltaX() float32
- func (x *Translation) GetDeltaY() float32
- func (x *Translation) GetDeltaZ() float32
- func (*Translation) ProtoMessage()
- func (x *Translation) ProtoReflect() protoreflect.Message
- func (x *Translation) Reset()
- func (x *Translation) String() string
- type UnimplementedEmulatorControllerServer
- func (UnimplementedEmulatorControllerServer) GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
- func (UnimplementedEmulatorControllerServer) GetBrightness(context.Context, *BrightnessValue) (*BrightnessValue, error)
- func (UnimplementedEmulatorControllerServer) GetClipboard(context.Context, *emptypb.Empty) (*ClipData, error)
- func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
- func (UnimplementedEmulatorControllerServer) GetDisplayMode(context.Context, *emptypb.Empty) (*DisplayMode, error)
- func (UnimplementedEmulatorControllerServer) GetEnvironment(context.Context, *emptypb.Empty) (*Environment, error)
- func (UnimplementedEmulatorControllerServer) GetGps(context.Context, *emptypb.Empty) (*GpsState, error)
- func (UnimplementedEmulatorControllerServer) GetHostCameras(context.Context, *emptypb.Empty) (*CameraList, error)
- func (UnimplementedEmulatorControllerServer) GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
- func (UnimplementedEmulatorControllerServer) GetMicrophoneState(context.Context, *emptypb.Empty) (*MicrophoneState, 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) GetXrOptions(context.Context, *emptypb.Empty) (*XrOptions, error)
- func (UnimplementedEmulatorControllerServer) InjectAudio(grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]) error
- func (UnimplementedEmulatorControllerServer) InjectWheel(grpc.ClientStreamingServer[WheelEvent, emptypb.Empty]) 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) SetBrightness(context.Context, *BrightnessValue) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetClipboard(context.Context, *ClipData) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
- func (UnimplementedEmulatorControllerServer) SetDisplayMode(context.Context, *DisplayMode) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetEnvironment(context.Context, *Environment) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetGps(context.Context, *GpsState) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetMicrophoneState(context.Context, *MicrophoneState) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetPhoneNumber(context.Context, *PhoneNumber) (*PhoneResponse, error)
- func (UnimplementedEmulatorControllerServer) SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) SetPosture(context.Context, *Posture) (*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) SetXrOptions(context.Context, *XrOptions) (*emptypb.Empty, error)
- func (UnimplementedEmulatorControllerServer) StreamAudio(*AudioFormat, grpc.ServerStreamingServer[AudioPacket]) error
- func (UnimplementedEmulatorControllerServer) StreamClipboard(*emptypb.Empty, grpc.ServerStreamingServer[ClipData]) error
- func (UnimplementedEmulatorControllerServer) StreamInputEvent(grpc.ClientStreamingServer[InputEvent, emptypb.Empty]) error
- func (UnimplementedEmulatorControllerServer) StreamLogcat(*LogMessage, grpc.ServerStreamingServer[LogMessage]) error
- func (UnimplementedEmulatorControllerServer) StreamNotification(*emptypb.Empty, grpc.ServerStreamingServer[Notification]) error
- func (UnimplementedEmulatorControllerServer) StreamPhysicalModel(*PhysicalModelValue, grpc.ServerStreamingServer[PhysicalModelValue]) error
- func (UnimplementedEmulatorControllerServer) StreamScreenshot(*ImageFormat, grpc.ServerStreamingServer[Image]) error
- func (UnimplementedEmulatorControllerServer) StreamSensor(*SensorValue, grpc.ServerStreamingServer[SensorValue]) 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
- type WheelEvent
- func (*WheelEvent) Descriptor() ([]byte, []int)deprecated
- func (x *WheelEvent) GetDisplay() int32
- func (x *WheelEvent) GetDx() int32
- func (x *WheelEvent) GetDy() int32
- func (*WheelEvent) ProtoMessage()
- func (x *WheelEvent) ProtoReflect() protoreflect.Message
- func (x *WheelEvent) Reset()
- func (x *WheelEvent) String() string
- type XrCommand
- type XrCommand_Action
- func (XrCommand_Action) Descriptor() protoreflect.EnumDescriptor
- func (x XrCommand_Action) Enum() *XrCommand_Action
- func (XrCommand_Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x XrCommand_Action) Number() protoreflect.EnumNumber
- func (x XrCommand_Action) String() string
- func (XrCommand_Action) Type() protoreflect.EnumType
- type XrOptions
- func (*XrOptions) Descriptor() ([]byte, []int)deprecated
- func (x *XrOptions) GetDimmingValue() float32
- func (x *XrOptions) GetEnvironment() XrOptions_Environment
- func (x *XrOptions) GetPassthroughCoefficient() float32
- func (*XrOptions) ProtoMessage()
- func (x *XrOptions) ProtoReflect() protoreflect.Message
- func (x *XrOptions) Reset()
- func (x *XrOptions) String() string
- type XrOptions_Environment
- func (XrOptions_Environment) Descriptor() protoreflect.EnumDescriptor
- func (x XrOptions_Environment) Enum() *XrOptions_Environment
- func (XrOptions_Environment) EnumDescriptor() ([]byte, []int)deprecated
- func (x XrOptions_Environment) Number() protoreflect.EnumNumber
- func (x XrOptions_Environment) String() string
- func (XrOptions_Environment) Type() protoreflect.EnumType
Constants ¶
const ( EmulatorController_StreamSensor_FullMethodName = "/android.emulation.control.EmulatorController/streamSensor" EmulatorController_GetSensor_FullMethodName = "/android.emulation.control.EmulatorController/getSensor" EmulatorController_SetSensor_FullMethodName = "/android.emulation.control.EmulatorController/setSensor" EmulatorController_SetPhysicalModel_FullMethodName = "/android.emulation.control.EmulatorController/setPhysicalModel" EmulatorController_GetPhysicalModel_FullMethodName = "/android.emulation.control.EmulatorController/getPhysicalModel" EmulatorController_StreamPhysicalModel_FullMethodName = "/android.emulation.control.EmulatorController/streamPhysicalModel" EmulatorController_SetClipboard_FullMethodName = "/android.emulation.control.EmulatorController/setClipboard" EmulatorController_GetClipboard_FullMethodName = "/android.emulation.control.EmulatorController/getClipboard" EmulatorController_StreamClipboard_FullMethodName = "/android.emulation.control.EmulatorController/streamClipboard" EmulatorController_SetBattery_FullMethodName = "/android.emulation.control.EmulatorController/setBattery" EmulatorController_GetBattery_FullMethodName = "/android.emulation.control.EmulatorController/getBattery" EmulatorController_SetGps_FullMethodName = "/android.emulation.control.EmulatorController/setGps" EmulatorController_GetGps_FullMethodName = "/android.emulation.control.EmulatorController/getGps" EmulatorController_SendFingerprint_FullMethodName = "/android.emulation.control.EmulatorController/sendFingerprint" EmulatorController_SendKey_FullMethodName = "/android.emulation.control.EmulatorController/sendKey" EmulatorController_SendTouch_FullMethodName = "/android.emulation.control.EmulatorController/sendTouch" EmulatorController_SendMouse_FullMethodName = "/android.emulation.control.EmulatorController/sendMouse" EmulatorController_InjectWheel_FullMethodName = "/android.emulation.control.EmulatorController/injectWheel" EmulatorController_StreamInputEvent_FullMethodName = "/android.emulation.control.EmulatorController/streamInputEvent" EmulatorController_SendPhone_FullMethodName = "/android.emulation.control.EmulatorController/sendPhone" EmulatorController_SendSms_FullMethodName = "/android.emulation.control.EmulatorController/sendSms" EmulatorController_SetPhoneNumber_FullMethodName = "/android.emulation.control.EmulatorController/setPhoneNumber" EmulatorController_GetStatus_FullMethodName = "/android.emulation.control.EmulatorController/getStatus" EmulatorController_GetScreenshot_FullMethodName = "/android.emulation.control.EmulatorController/getScreenshot" EmulatorController_StreamScreenshot_FullMethodName = "/android.emulation.control.EmulatorController/streamScreenshot" EmulatorController_StreamAudio_FullMethodName = "/android.emulation.control.EmulatorController/streamAudio" EmulatorController_InjectAudio_FullMethodName = "/android.emulation.control.EmulatorController/injectAudio" EmulatorController_GetMicrophoneState_FullMethodName = "/android.emulation.control.EmulatorController/getMicrophoneState" EmulatorController_SetMicrophoneState_FullMethodName = "/android.emulation.control.EmulatorController/setMicrophoneState" EmulatorController_GetLogcat_FullMethodName = "/android.emulation.control.EmulatorController/getLogcat" EmulatorController_StreamLogcat_FullMethodName = "/android.emulation.control.EmulatorController/streamLogcat" EmulatorController_SetVmState_FullMethodName = "/android.emulation.control.EmulatorController/setVmState" EmulatorController_GetVmState_FullMethodName = "/android.emulation.control.EmulatorController/getVmState" EmulatorController_SetDisplayConfigurations_FullMethodName = "/android.emulation.control.EmulatorController/setDisplayConfigurations" EmulatorController_GetDisplayConfigurations_FullMethodName = "/android.emulation.control.EmulatorController/getDisplayConfigurations" EmulatorController_StreamNotification_FullMethodName = "/android.emulation.control.EmulatorController/streamNotification" EmulatorController_RotateVirtualSceneCamera_FullMethodName = "/android.emulation.control.EmulatorController/rotateVirtualSceneCamera" EmulatorController_SetVirtualSceneCameraVelocity_FullMethodName = "/android.emulation.control.EmulatorController/setVirtualSceneCameraVelocity" EmulatorController_SetPosture_FullMethodName = "/android.emulation.control.EmulatorController/setPosture" EmulatorController_GetBrightness_FullMethodName = "/android.emulation.control.EmulatorController/getBrightness" EmulatorController_SetBrightness_FullMethodName = "/android.emulation.control.EmulatorController/setBrightness" EmulatorController_GetDisplayMode_FullMethodName = "/android.emulation.control.EmulatorController/getDisplayMode" EmulatorController_SetDisplayMode_FullMethodName = "/android.emulation.control.EmulatorController/setDisplayMode" EmulatorController_SetXrOptions_FullMethodName = "/android.emulation.control.EmulatorController/setXrOptions" EmulatorController_GetXrOptions_FullMethodName = "/android.emulation.control.EmulatorController/getXrOptions" EmulatorController_SetEnvironment_FullMethodName = "/android.emulation.control.EmulatorController/setEnvironment" EmulatorController_GetEnvironment_FullMethodName = "/android.emulation.control.EmulatorController/getEnvironment" EmulatorController_GetHostCameras_FullMethodName = "/android.emulation.control.EmulatorController/getHostCameras" )
Variables ¶
var ( DisplayModeValue_name = map[int32]string{ 0: "PHONE", 1: "FOLDABLE", 2: "TABLET", 3: "DESKTOP", } DisplayModeValue_value = map[string]int32{ "PHONE": 0, "FOLDABLE": 1, "TABLET": 2, "DESKTOP": 3, } )
Enum value maps for DisplayModeValue.
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", 11: "RESTART", 12: "START", 13: "STOP", } 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, "RESTART": 11, "START": 12, "STOP": 13, } )
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", 16: "POSTURE", 17: "HEART_RATE", 18: "RGBC_LIGHT", 19: "WRIST_TILT", } 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, "POSTURE": 16, "HEART_RATE": 17, "RGBC_LIGHT": 18, "WRIST_TILT": 19, } )
Enum value maps for PhysicalModelValue_PhysicalType.
var ( PhysicalModelValue_Interpolation_name = map[int32]string{ 0: "SMOOTH", 1: "STEP", } PhysicalModelValue_Interpolation_value = map[string]int32{ "SMOOTH": 0, "STEP": 1, } )
Enum value maps for PhysicalModelValue_Interpolation.
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", 14: "HEART_RATE", 15: "RGBC_LIGHT", 17: "ACCELERATION_UNCALIBRATED", 18: "HEADING", } 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, "HEART_RATE": 14, "RGBC_LIGHT": 15, "ACCELERATION_UNCALIBRATED": 17, "HEADING": 18, } )
Enum value maps for SensorValue_SensorType.
var ( BrightnessValue_LightType_name = map[int32]string{ 0: "LCD", 1: "KEYBOARD", 2: "BUTTON", } BrightnessValue_LightType_value = map[string]int32{ "LCD": 0, "KEYBOARD": 1, "BUTTON": 2, } )
Enum value maps for BrightnessValue_LightType.
var ( XrOptions_Environment_name = map[int32]string{ 0: "LIVING_ROOM_DAY", 1: "LIVING_ROOM_NIGHT", } XrOptions_Environment_value = map[string]int32{ "LIVING_ROOM_DAY": 0, "LIVING_ROOM_NIGHT": 1, } )
Enum value maps for XrOptions_Environment.
var ( LedIndicator_Facing_name = map[int32]string{ 0: "INSIDE", 1: "OUTSIDE", } LedIndicator_Facing_value = map[string]int32{ "INSIDE": 0, "OUTSIDE": 1, } )
Enum value maps for LedIndicator_Facing.
var ( LedIndicator_State_name = map[int32]string{ 0: "OFF", 1: "ON", } LedIndicator_State_value = map[string]int32{ "OFF": 0, "ON": 1, } )
Enum value maps for LedIndicator_State.
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: "AEHD", } VmConfiguration_VmHypervisorType_value = map[string]int32{ "UNKNOWN": 0, "NONE": 1, "KVM": 2, "HAXM": 3, "HVF": 4, "WHPX": 5, "AEHD": 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 ( XrCommand_Action_name = map[int32]string{ 0: "RECENTER", } XrCommand_Action_value = map[string]int32{ "RECENTER": 0, } )
Enum value maps for XrCommand_Action.
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 ( AudioFormat_DeliveryMode_name = map[int32]string{ 0: "MODE_UNSPECIFIED", 1: "MODE_REAL_TIME", } AudioFormat_DeliveryMode_value = map[string]int32{ "MODE_UNSPECIFIED": 0, "MODE_REAL_TIME": 1, } )
Enum value maps for AudioFormat_DeliveryMode.
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 ( DisplayPowerModeNotification_PowerMode_name = map[int32]string{ 0: "OFF", 1: "DOZE", 2: "ON", 3: "DOZE_SUSPEND", 4: "ON_SUSPEND", } DisplayPowerModeNotification_PowerMode_value = map[string]int32{ "OFF": 0, "DOZE": 1, "ON": 2, "DOZE_SUSPEND": 3, "ON_SUSPEND": 4, } )
Enum value maps for DisplayPowerModeNotification_PowerMode.
var ( Posture_PostureValue_name = map[int32]string{ 0: "POSTURE_UNKNOWN", 1: "POSTURE_CLOSED", 2: "POSTURE_HALF_OPENED", 3: "POSTURE_OPENED", 4: "POSTURE_FLIPPED", 5: "POSTURE_TENT", 6: "POSTURE_MAX", } Posture_PostureValue_value = map[string]int32{ "POSTURE_UNKNOWN": 0, "POSTURE_CLOSED": 1, "POSTURE_HALF_OPENED": 2, "POSTURE_OPENED": 3, "POSTURE_FLIPPED": 4, "POSTURE_TENT": 5, "POSTURE_MAX": 6, } )
Enum value maps for Posture_PostureValue.
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: "setPhoneNumber", Handler: _EmulatorController_SetPhoneNumber_Handler, }, { MethodName: "getStatus", Handler: _EmulatorController_GetStatus_Handler, }, { MethodName: "getScreenshot", Handler: _EmulatorController_GetScreenshot_Handler, }, { MethodName: "getMicrophoneState", Handler: _EmulatorController_GetMicrophoneState_Handler, }, { MethodName: "setMicrophoneState", Handler: _EmulatorController_SetMicrophoneState_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, }, { MethodName: "setPosture", Handler: _EmulatorController_SetPosture_Handler, }, { MethodName: "getBrightness", Handler: _EmulatorController_GetBrightness_Handler, }, { MethodName: "setBrightness", Handler: _EmulatorController_SetBrightness_Handler, }, { MethodName: "getDisplayMode", Handler: _EmulatorController_GetDisplayMode_Handler, }, { MethodName: "setDisplayMode", Handler: _EmulatorController_SetDisplayMode_Handler, }, { MethodName: "setXrOptions", Handler: _EmulatorController_SetXrOptions_Handler, }, { MethodName: "getXrOptions", Handler: _EmulatorController_GetXrOptions_Handler, }, { MethodName: "setEnvironment", Handler: _EmulatorController_SetEnvironment_Handler, }, { MethodName: "getEnvironment", Handler: _EmulatorController_GetEnvironment_Handler, }, { MethodName: "getHostCameras", Handler: _EmulatorController_GetHostCameras_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: "injectWheel", Handler: _EmulatorController_InjectWheel_Handler, ClientStreams: true, }, { StreamName: "streamInputEvent", Handler: _EmulatorController_StreamInputEvent_Handler, ClientStreams: 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 AndroidEvent ¶
type AndroidEvent struct {
// The type of the event. The types of the event are specified
// by the android kernel. Some examples are:
// EV_SYN, EV_KEY, EV_SW, etc..
// The exact definitions can be found in the input.h header file.
Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
// The actual code to be send to the kernel. The actual meaning
// of the code depends on the type definition.
Code int32 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"`
// The actual value of the event.
Value int32 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"`
// The display id associated with this input event.
Display int32 `protobuf:"varint,4,opt,name=display,proto3" json:"display,omitempty"`
// contains filtered or unexported fields
}
The android input event system is a framework for handling input from a variety of devices by generating events that describe changes in the state of the devices and forwarding them to user space applications.
An AndroidEvents will be delivered directly to the kernel as is.
func (*AndroidEvent) Descriptor
deprecated
func (*AndroidEvent) Descriptor() ([]byte, []int)
Deprecated: Use AndroidEvent.ProtoReflect.Descriptor instead.
func (*AndroidEvent) GetCode ¶
func (x *AndroidEvent) GetCode() int32
func (*AndroidEvent) GetDisplay ¶
func (x *AndroidEvent) GetDisplay() int32
func (*AndroidEvent) GetType ¶
func (x *AndroidEvent) GetType() int32
func (*AndroidEvent) GetValue ¶
func (x *AndroidEvent) GetValue() int32
func (*AndroidEvent) ProtoMessage ¶
func (*AndroidEvent) ProtoMessage()
func (*AndroidEvent) ProtoReflect ¶
func (x *AndroidEvent) ProtoReflect() protoreflect.Message
func (*AndroidEvent) Reset ¶
func (x *AndroidEvent) Reset()
func (*AndroidEvent) String ¶
func (x *AndroidEvent) String() string
type AngularVelocity ¶
type AngularVelocity struct {
// Components of the target angular velocity vector in radians per second.
// Transition to these values is implementation dependent, and may be
// smoothed over time.
OmegaX float32 `protobuf:"fixed32,1,opt,name=omega_x,json=omegaX,proto3" json:"omega_x,omitempty"`
OmegaY float32 `protobuf:"fixed32,2,opt,name=omega_y,json=omegaY,proto3" json:"omega_y,omitempty"`
OmegaZ float32 `protobuf:"fixed32,3,opt,name=omega_z,json=omegaZ,proto3" json:"omega_z,omitempty"`
// contains filtered or unexported fields
}
func (*AngularVelocity) Descriptor
deprecated
func (*AngularVelocity) Descriptor() ([]byte, []int)
Deprecated: Use AngularVelocity.ProtoReflect.Descriptor instead.
func (*AngularVelocity) GetOmegaX ¶
func (x *AngularVelocity) GetOmegaX() float32
func (*AngularVelocity) GetOmegaY ¶
func (x *AngularVelocity) GetOmegaY() float32
func (*AngularVelocity) GetOmegaZ ¶
func (x *AngularVelocity) GetOmegaZ() float32
func (*AngularVelocity) ProtoMessage ¶
func (*AngularVelocity) ProtoMessage()
func (*AngularVelocity) ProtoReflect ¶
func (x *AngularVelocity) ProtoReflect() protoreflect.Message
func (*AngularVelocity) Reset ¶
func (x *AngularVelocity) Reset()
func (*AngularVelocity) String ¶
func (x *AngularVelocity) String() string
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"`
// [Input Only]
// The mode used when delivering audio packets.
Mode AudioFormat_DeliveryMode `protobuf:"varint,4,opt,name=mode,proto3,enum=android.emulation.control.AudioFormat_DeliveryMode" json:"mode,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) GetMode ¶
func (x *AudioFormat) GetMode() AudioFormat_DeliveryMode
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_DeliveryMode ¶
type AudioFormat_DeliveryMode int32
const ( // The audio queue will block and wait until the emulator requests // packets. The client does not have to throttle and can push packets at // will. This can result in the client falling behind. AudioFormat_MODE_UNSPECIFIED AudioFormat_DeliveryMode = 0 // Audio packets will be delivered in real time (when possible). The // audio queue will be overwritten with incoming data if data is made // available. This means the client needs to control timing properly, or // packets will get overwritten. AudioFormat_MODE_REAL_TIME AudioFormat_DeliveryMode = 1 // )
func (AudioFormat_DeliveryMode) Descriptor ¶
func (AudioFormat_DeliveryMode) Descriptor() protoreflect.EnumDescriptor
func (AudioFormat_DeliveryMode) Enum ¶
func (x AudioFormat_DeliveryMode) Enum() *AudioFormat_DeliveryMode
func (AudioFormat_DeliveryMode) EnumDescriptor
deprecated
func (AudioFormat_DeliveryMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AudioFormat_DeliveryMode.Descriptor instead.
func (AudioFormat_DeliveryMode) Number ¶
func (x AudioFormat_DeliveryMode) Number() protoreflect.EnumNumber
func (AudioFormat_DeliveryMode) String ¶
func (x AudioFormat_DeliveryMode) String() string
func (AudioFormat_DeliveryMode) Type ¶
func (AudioFormat_DeliveryMode) 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 BootCompletedNotification ¶
type BootCompletedNotification struct {
// The time in milliseconds it took for the boot to complete.
// Note that this value can be 0 when you are loading from a snapshot.
Time int32 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
// contains filtered or unexported fields
}
func (*BootCompletedNotification) Descriptor
deprecated
func (*BootCompletedNotification) Descriptor() ([]byte, []int)
Deprecated: Use BootCompletedNotification.ProtoReflect.Descriptor instead.
func (*BootCompletedNotification) GetTime ¶
func (x *BootCompletedNotification) GetTime() int32
func (*BootCompletedNotification) ProtoMessage ¶
func (*BootCompletedNotification) ProtoMessage()
func (*BootCompletedNotification) ProtoReflect ¶
func (x *BootCompletedNotification) ProtoReflect() protoreflect.Message
func (*BootCompletedNotification) Reset ¶
func (x *BootCompletedNotification) Reset()
func (*BootCompletedNotification) String ¶
func (x *BootCompletedNotification) String() string
type BrightnessValue ¶
type BrightnessValue struct {
// Type of light
Target BrightnessValue_LightType `protobuf:"varint,1,opt,name=target,proto3,enum=android.emulation.control.BrightnessValue_LightType" json:"target,omitempty"`
// Light intensity, ranges from 0-255.
Value uint32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
A single backlight brightness value.
func (*BrightnessValue) Descriptor
deprecated
func (*BrightnessValue) Descriptor() ([]byte, []int)
Deprecated: Use BrightnessValue.ProtoReflect.Descriptor instead.
func (*BrightnessValue) GetTarget ¶
func (x *BrightnessValue) GetTarget() BrightnessValue_LightType
func (*BrightnessValue) GetValue ¶
func (x *BrightnessValue) GetValue() uint32
func (*BrightnessValue) ProtoMessage ¶
func (*BrightnessValue) ProtoMessage()
func (*BrightnessValue) ProtoReflect ¶
func (x *BrightnessValue) ProtoReflect() protoreflect.Message
func (*BrightnessValue) Reset ¶
func (x *BrightnessValue) Reset()
func (*BrightnessValue) String ¶
func (x *BrightnessValue) String() string
type BrightnessValue_LightType ¶
type BrightnessValue_LightType int32
const ( // Display backlight. This will affect all displays. BrightnessValue_LCD BrightnessValue_LightType = 0 BrightnessValue_KEYBOARD BrightnessValue_LightType = 1 BrightnessValue_BUTTON BrightnessValue_LightType = 2 )
func (BrightnessValue_LightType) Descriptor ¶
func (BrightnessValue_LightType) Descriptor() protoreflect.EnumDescriptor
func (BrightnessValue_LightType) Enum ¶
func (x BrightnessValue_LightType) Enum() *BrightnessValue_LightType
func (BrightnessValue_LightType) EnumDescriptor
deprecated
func (BrightnessValue_LightType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BrightnessValue_LightType.Descriptor instead.
func (BrightnessValue_LightType) Number ¶
func (x BrightnessValue_LightType) Number() protoreflect.EnumNumber
func (BrightnessValue_LightType) String ¶
func (x BrightnessValue_LightType) String() string
func (BrightnessValue_LightType) Type ¶
func (BrightnessValue_LightType) Type() protoreflect.EnumType
type Camera ¶
type Camera struct {
// Human-readable name for use with UI
DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Os Specific identifier
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Camera) Descriptor
deprecated
func (*Camera) GetDisplayName ¶
func (*Camera) ProtoMessage ¶
func (*Camera) ProtoMessage()
func (*Camera) ProtoReflect ¶
func (x *Camera) ProtoReflect() protoreflect.Message
type CameraList ¶
type CameraList struct {
Cameras []*Camera `protobuf:"bytes,1,rep,name=cameras,proto3" json:"cameras,omitempty"`
// contains filtered or unexported fields
}
func (*CameraList) Descriptor
deprecated
func (*CameraList) Descriptor() ([]byte, []int)
Deprecated: Use CameraList.ProtoReflect.Descriptor instead.
func (*CameraList) GetCameras ¶
func (x *CameraList) GetCameras() []*Camera
func (*CameraList) ProtoMessage ¶
func (*CameraList) ProtoMessage()
func (*CameraList) ProtoReflect ¶
func (x *CameraList) ProtoReflect() protoreflect.Message
func (*CameraList) Reset ¶
func (x *CameraList) Reset()
func (*CameraList) String ¶
func (x *CameraList) String() string
type CameraNotification ¶
type CameraNotification struct {
// Indicates whether the camera app was activated or deactivated.
Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
// The display the camera app is associated with.
Display int32 `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"`
// contains filtered or unexported fields
}
Fired when the virtual scene camera is activated or deactivated and also in response to the streamNotification call.
func (*CameraNotification) Descriptor
deprecated
func (*CameraNotification) Descriptor() ([]byte, []int)
Deprecated: Use CameraNotification.ProtoReflect.Descriptor instead.
func (*CameraNotification) GetActive ¶
func (x *CameraNotification) GetActive() bool
func (*CameraNotification) GetDisplay ¶
func (x *CameraNotification) GetDisplay() int32
func (*CameraNotification) ProtoMessage ¶
func (*CameraNotification) ProtoMessage()
func (*CameraNotification) ProtoReflect ¶
func (x *CameraNotification) ProtoReflect() protoreflect.Message
func (*CameraNotification) Reset ¶
func (x *CameraNotification) Reset()
func (*CameraNotification) String ¶
func (x *CameraNotification) String() string
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.
//
// A display with the id in the range [1, userConfigurable]
// can be modified. See DisplayConfigurations below for details.
//
// 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"`
// Display configurations with id [1, userConfigurable] are
// user configurable, that is they can be added, removed or
// updated.
UserConfigurable uint32 `protobuf:"varint,2,opt,name=userConfigurable,proto3" json:"userConfigurable,omitempty"`
// The maximum number of attached displays this emulator supports.
// This is the total number of displays that can be attached to
// the emulator.
//
// Note: A display with an id that is larger than userConfigurable cannot
// be modified.
MaxDisplays uint32 `protobuf:"varint,3,opt,name=maxDisplays,proto3" json:"maxDisplays,omitempty"`
// contains filtered or unexported fields
}
Provides information about all the displays that can be attached to the emulator. The emulator will always have at least one display.
The emulator usually has the following display configurations: 0: The default display. 1 - 3: User configurable displays. These can be added/removed.
For example the standalone emulator allows you to modify these in the extended controls.
6 - 11: Fixed external displays. For example Android Auto uses fixed
displays in this range.
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) GetMaxDisplays ¶
func (x *DisplayConfigurations) GetMaxDisplays() uint32
func (*DisplayConfigurations) GetUserConfigurable ¶
func (x *DisplayConfigurations) GetUserConfigurable() uint32
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 DisplayConfigurationsChangedNotification ¶
type DisplayConfigurationsChangedNotification struct {
DisplayConfigurations *DisplayConfigurations `protobuf:"bytes,1,opt,name=displayConfigurations,proto3" json:"displayConfigurations,omitempty"`
// contains filtered or unexported fields
}
Fired when an update to a display event has been fired through the extended ui. This does not fire events when the display is changed through the console or the gRPC endpoint.
func (*DisplayConfigurationsChangedNotification) Descriptor
deprecated
func (*DisplayConfigurationsChangedNotification) Descriptor() ([]byte, []int)
Deprecated: Use DisplayConfigurationsChangedNotification.ProtoReflect.Descriptor instead.
func (*DisplayConfigurationsChangedNotification) GetDisplayConfigurations ¶
func (x *DisplayConfigurationsChangedNotification) GetDisplayConfigurations() *DisplayConfigurations
func (*DisplayConfigurationsChangedNotification) ProtoMessage ¶
func (*DisplayConfigurationsChangedNotification) ProtoMessage()
func (*DisplayConfigurationsChangedNotification) ProtoReflect ¶
func (x *DisplayConfigurationsChangedNotification) ProtoReflect() protoreflect.Message
func (*DisplayConfigurationsChangedNotification) Reset ¶
func (x *DisplayConfigurationsChangedNotification) Reset()
func (*DisplayConfigurationsChangedNotification) String ¶
func (x *DisplayConfigurationsChangedNotification) String() string
type DisplayMode ¶
type DisplayMode struct {
Value DisplayModeValue `protobuf:"varint,1,opt,name=value,proto3,enum=android.emulation.control.DisplayModeValue" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*DisplayMode) Descriptor
deprecated
func (*DisplayMode) Descriptor() ([]byte, []int)
Deprecated: Use DisplayMode.ProtoReflect.Descriptor instead.
func (*DisplayMode) GetValue ¶
func (x *DisplayMode) GetValue() DisplayModeValue
func (*DisplayMode) ProtoMessage ¶
func (*DisplayMode) ProtoMessage()
func (*DisplayMode) ProtoReflect ¶
func (x *DisplayMode) ProtoReflect() protoreflect.Message
func (*DisplayMode) Reset ¶
func (x *DisplayMode) Reset()
func (*DisplayMode) String ¶
func (x *DisplayMode) String() string
type DisplayModeValue ¶
type DisplayModeValue int32
in line with android/emulation/resizable_display_config.h
const ( DisplayModeValue_PHONE DisplayModeValue = 0 DisplayModeValue_FOLDABLE DisplayModeValue = 1 DisplayModeValue_TABLET DisplayModeValue = 2 DisplayModeValue_DESKTOP DisplayModeValue = 3 )
func (DisplayModeValue) Descriptor ¶
func (DisplayModeValue) Descriptor() protoreflect.EnumDescriptor
func (DisplayModeValue) Enum ¶
func (x DisplayModeValue) Enum() *DisplayModeValue
func (DisplayModeValue) EnumDescriptor
deprecated
func (DisplayModeValue) EnumDescriptor() ([]byte, []int)
Deprecated: Use DisplayModeValue.Descriptor instead.
func (DisplayModeValue) Number ¶
func (x DisplayModeValue) Number() protoreflect.EnumNumber
func (DisplayModeValue) String ¶
func (x DisplayModeValue) String() string
func (DisplayModeValue) Type ¶
func (DisplayModeValue) Type() protoreflect.EnumType
type DisplayPowerModeNotification ¶
type DisplayPowerModeNotification struct {
// The display ID.
Display uint32 `protobuf:"varint,1,opt,name=display,proto3" json:"display,omitempty"`
// The power mode of the display.
PowerMode DisplayPowerModeNotification_PowerMode `` /* 159-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*DisplayPowerModeNotification) Descriptor
deprecated
func (*DisplayPowerModeNotification) Descriptor() ([]byte, []int)
Deprecated: Use DisplayPowerModeNotification.ProtoReflect.Descriptor instead.
func (*DisplayPowerModeNotification) GetDisplay ¶
func (x *DisplayPowerModeNotification) GetDisplay() uint32
func (*DisplayPowerModeNotification) GetPowerMode ¶
func (x *DisplayPowerModeNotification) GetPowerMode() DisplayPowerModeNotification_PowerMode
func (*DisplayPowerModeNotification) ProtoMessage ¶
func (*DisplayPowerModeNotification) ProtoMessage()
func (*DisplayPowerModeNotification) ProtoReflect ¶
func (x *DisplayPowerModeNotification) ProtoReflect() protoreflect.Message
func (*DisplayPowerModeNotification) Reset ¶
func (x *DisplayPowerModeNotification) Reset()
func (*DisplayPowerModeNotification) String ¶
func (x *DisplayPowerModeNotification) String() string
type DisplayPowerModeNotification_PowerMode ¶
type DisplayPowerModeNotification_PowerMode int32
const ( DisplayPowerModeNotification_OFF DisplayPowerModeNotification_PowerMode = 0 // The screen is fully turned off; backlight is off and rendering is disabled DisplayPowerModeNotification_DOZE DisplayPowerModeNotification_PowerMode = 1 // The screen is in low-power Always-On/ambient display mode DisplayPowerModeNotification_ON DisplayPowerModeNotification_PowerMode = 2 // The screen is fully turned on and active DisplayPowerModeNotification_DOZE_SUSPEND DisplayPowerModeNotification_PowerMode = 3 // The screen is in low-power doze mode, and updates/rendering are suspended DisplayPowerModeNotification_ON_SUSPEND DisplayPowerModeNotification_PowerMode = 4 // The screen is fully turned on, but updates/rendering are suspended )
func (DisplayPowerModeNotification_PowerMode) Descriptor ¶
func (DisplayPowerModeNotification_PowerMode) Descriptor() protoreflect.EnumDescriptor
func (DisplayPowerModeNotification_PowerMode) EnumDescriptor
deprecated
func (DisplayPowerModeNotification_PowerMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use DisplayPowerModeNotification_PowerMode.Descriptor instead.
func (DisplayPowerModeNotification_PowerMode) Number ¶
func (x DisplayPowerModeNotification_PowerMode) Number() protoreflect.EnumNumber
func (DisplayPowerModeNotification_PowerMode) String ¶
func (x DisplayPowerModeNotification_PowerMode) String() string
func (DisplayPowerModeNotification_PowerMode) Type ¶
func (DisplayPowerModeNotification_PowerMode) Type() protoreflect.EnumType
type EmulatorControllerClient ¶
type EmulatorControllerClient interface {
// set/get/stream the sensor data
// This RPC is not implemented in EmulatorController and will return an unimplemented error.
StreamSensor(ctx context.Context, in *SensorValue, opts ...grpc.CallOption) (grpc.ServerStreamingClient[SensorValue], error)
// Gets the current value of a specified sensor.
//
// The following gRPC error codes can be returned:
// - INTERNAL (code 13) if `getSensorSize` fails to retrieve sensor dimensions.
//
// The `status` field in the `SensorValue` reply indicates the operational state:
// - `OK` (0): Sensor data retrieved successfully.
// - `UNKNOWN` (2): Unknown sensor type (should not happen if using valid `SensorType`).
// - `DISABLED` (3): The sensor is disabled.
// - `NO_SERVICE` (4): The `qemud` service responsible for sensors is not available or initiated.
GetSensor(ctx context.Context, in *SensorValue, opts ...grpc.CallOption) (*SensorValue, error)
// Sets the override value for a specified sensor. This operation is asynchronous
// and executed on the emulator's main looper. An immediate subsequent `getSensor`
// call might not reflect the newly set value.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
// No specific gRPC error codes are returned by this method itself, but underlying
// operations might log warnings if the sensor agent is unavailable.
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.
//
// This operation is asynchronous and executed on the emulator's main looper. An immediate subsequent `getPhysicalModel`
// call might not reflect the newly set value. The `interpolation` field from the request is used to determine the
// physical interpolation method, mapped using `abs((static_cast<int>(physicalValue.interpolation())) - 1)`.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the current value of a specified physical model parameter.
//
// The `status` field in the `PhysicalModelValue` reply indicates the operational state:
// - `OK` (0): Physical model data retrieved successfully.
// - `UNKNOWN` (2): Unknown physical type (should not happen if using valid `PhysicalType`).
// - `NO_SERVICE` (3): The `qemud` service responsible for physical parameters is not available or initiated.
GetPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (*PhysicalModelValue, error)
// This RPC is not implemented in EmulatorController and will return an unimplemented error.
StreamPhysicalModel(ctx context.Context, in *PhysicalModelValue, opts ...grpc.CallOption) (grpc.ServerStreamingClient[PhysicalModelValue], error)
// Atomically sets the current primary clipboard data. This operation is asynchronous
// and executed on the emulator's main looper. It triggers a `ClipboardEvent`
// to all listeners (except the originating channel) indicating the new content.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetClipboard(ctx context.Context, in *ClipData, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves the current primary clipboard data. This is a synchronous operation.
//
// This method returns `OK` (code 0) and the current `ClipData` upon success.
GetClipboard(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ClipData, error)
// Streams real-time updates of the clipboard content. Upon subscription,
// it immediately sends the current clipboard state. Subsequent updates are
// streamed as new content becomes available from the guest or is set via `setClipboard`
// from a different client. Events originating from the same client that initiated
// the stream are filtered out to prevent echoing.
//
// It is possible to miss very rapid clipboard updates. The stream will block
// awaiting new events after the initial state is sent.
//
// This method returns a server-side streaming reactor.
StreamClipboard(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ClipData], error)
// Sets the emulator's battery state to the provided values. This operation is
// executed asynchronously on the main looper.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation. No explicit gRPC error codes are returned by this method.
SetBattery(ctx context.Context, in *BatteryState, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves the current battery state from the emulator. This is a
// synchronous operation that waits for completion.
//
// This method returns `OK` (code 0) and populates the `BatteryState` reply
// with the current information upon success. No explicit gRPC error codes
// are returned by this method.
GetBattery(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*BatteryState, error)
// Sets the state of the GPS in the emulator. This operation is asynchronous
// and executed on the main looper. It updates the emulator's GPS location
// (latitude, longitude, altitude, speed, bearing, and satellites) and sets
// the timestamp.
//
// Note: Setting the GPS position will not be immediately reflected in the user
// interface. Android typically samples GPS at 1 Hz.
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation.
SetGps(ctx context.Context, in *GpsState, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the latest GPS state as reported by the emulator. This includes data
// delivered by previous `setGps` calls or from the location UI if active.
// This is a synchronous operation that waits for completion.
//
// Note: The returned GPS state is not necessarily the exact coordinate
// visible at the time due to Android's typical 1 Hz GPS sample frequency.
//
// This method returns `OK` (code 0) and populates the `GpsState` reply
// with the retrieved information upon success. No explicit gRPC error codes
// are returned by this method.
GetGps(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GpsState, error)
// Simulates a touch event on the fingerprint sensor. This operation is
// executed asynchronously on the main looper.
//
// The `isTouching` field indicates whether the fingerprint sensor is being
// touched, and `touchId` specifies the identifier of the registered
// fingerprint. The `setTouch` agent function is used to apply these values.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation. No explicit gRPC error codes are returned by this method.
SendFingerprint(ctx context.Context, in *Fingerprint, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Sends a keyboard event to the emulator. This operation is asynchronous
// and executed on the main looper.
//
// The `KeyboardEvent` message allows specifying input using `keyCode`, `key` (W3C standard string), or `text` (UTF-8 string).
// The `KeyEventSender` prioritizes `key`, then `keyCode`, then `text`.
// - If `key` is a non-printable W3C key string (e.g., "Backspace", "ArrowUp"), it's translated to an evdev keycode and sent.
// - If `key` is a printable Unicode character, it's converted to a sequence of evdev keydown/keyup events, handling modifiers.
// - If `keyCode` is provided, it's translated from its `codeType` (Usb, Evdev, XKB, Win, Mac) to an evdev keycode and sent as keydown/keyup pairs.
// - If `text` is provided, each UTF-8 character is converted to evdev keypress (keydown then keyup) events.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SendKey(ctx context.Context, in *KeyboardEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Sends touch events to the emulator. This operation is asynchronous and executed on the main looper.
//
// The `TouchEvent` contains a list of `Touch` objects, each with `x`, `y` coordinates, `identifier`, `pressure`, `touch_major`, `touch_minor`, `expiration`, and `orientation`.
// Coordinates are scaled to the emulator's display resolution. Each `Touch` `identifier` is mapped to an internal Linux multitouch slot.
// Expiration handling ensures that inactive touch events are properly "lifted" after 120 seconds.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation. Warnings are logged if no touch slots are available.
SendTouch(ctx context.Context, in *TouchEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Sends mouse events to the emulator. This operation is asynchronous and executed on the main looper.
//
// The `MouseEvent` specifies `x`, `y` coordinates, `buttons` state (bitmask: 1 for left, 2 for right), and `display` ID.
// In certain virtual input configurations (VirtioInput enabled, but VirtioMouse and VirtioTablet disabled), `buttons` may be masked to only consider the primary button.
// The event is sent to the emulator's `user_event_agent`.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SendMouse(ctx context.Context, in *MouseEvent, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Injects a stream of wheel events into the emulator. This is a server-side streaming RPC.
//
// Each `WheelEvent` contains `dx`, `dy` (delta values, `dy` is pre-multiplied by 120 for scroll clicks), and `display` ID.
// If the emulator's input device has rotary capabilities (e.g., AVD_WEAR flavor), `dy` is scaled and sent as a rotary event.
// Otherwise, it's sent as a standard mouse wheel event.
//
// This method returns a server-side streaming reactor.
InjectWheel(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[WheelEvent, emptypb.Empty], error)
// Streams a series of generic input events to the emulator. The events are processed in the order they arrive.
// This is a server-side streaming RPC that supports various input types encapsulated within `InputEvent`'s `oneof type` field.
//
// Supported input types:
// - `key_event` (KeyboardEvent): Processed by `KeyEventSender` as described in `sendKey`.
// - `touch_event` (TouchEvent): Processed by `TouchEventSender` as described in `sendTouch`.
// - `mouse_event` (MouseEvent): Processed by `MouseEventSender` as described in `sendMouse`.
// - `android_event` (AndroidEvent): Raw Linux input events (`type`, `code`, `value`) sent directly to the kernel.
// - `pen_event` (PenEvent): Processed by `PenEventSender` for pen input, including pressure, orientation, and button state.
// - `wheel_event` (WheelEvent): Processed by `WheelEventSender` as described in `injectWheel`.
// - `xr_command` (XrCommand): Executes XR-specific commands (e.g., `RECENTER` to recenter the viewport). Unknown actions are logged as warnings.
// - `xr_head_rotation_event` (RotationRadian): Sends head rotation data in radians. Logs an error if the agent call fails.
// - `xr_head_movement_event` (Translation): Sends head movement data in meters. Logs an error if the agent call fails.
// - `xr_head_angular_velocity_event` (AngularVelocity): Sends head angular velocity data in radians per second. Logs an error if the agent call fails.
// - `xr_head_velocity_event` (Velocity): Sends head velocity data in meters per second. Logs an error if the agent call fails.
// - `touchpad_event` (TouchpadEvent): Processed by `TouchpadEventSender` for touchpad input, similar to touch events but for a touchpad device.
//
// All underlying input sending operations for XR events are executed asynchronously on the main looper.
//
// Returns `INVALID_ARGUMENT` (code 3) if an unrecognized input event type is received, indicating a potential out-of-date emulator.
// The stream reactor automatically deletes itself upon completion.
StreamInputEvent(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[InputEvent, emptypb.Empty], error)
// Initiates or manipulates a phone call in the emulator. This is a synchronous
// operation executed on the main looper.
//
// The `PhoneCall` message specifies the `operation` (e.g., InitCall, AcceptCall)
// and the target phone `number`. The `telephonyCmd` agent function handles the
// actual call action.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The operation was successful.
// - `BadOperation` (1): The provided `operation` enum is out of range.
// - `BadNumber` (2): The provided `number` is malformed.
// - `InvalidAction` (3): The requested `operation` is invalid given the current call state (e.g., disconnecting when no call is active).
// - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.
// - `RadioOff` (5): The emulator's radio is turned off.
SendPhone(ctx context.Context, in *PhoneCall, opts ...grpc.CallOption) (*PhoneResponse, error)
// Sends an SMS message to the emulator. This is a synchronous operation.
//
// The `SmsMessage` contains the `srcAddress` (source phone number) and the `text` of the message.
// The `srcAddress` is validated for GSM formatting. The message `text` is converted into SMS PDUs
// (Protocol Data Units) and delivered via the modem agent.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The SMS message was successfully delivered.
// - `BadNumber` (2): The `srcAddress` is malformed.
// - `ActionFailed` (4): An internal error occurred, e.g., if the modem agent is unavailable or PDU creation fails.
//
// Other error cases from PDU creation (e.g., invalid characters in text) also result in `ActionFailed`.
SendSms(ctx context.Context, in *SmsMessage, opts ...grpc.CallOption) (*PhoneResponse, error)
// Sets the emulator's phone number. This is a synchronous operation.
//
// The `PhoneNumber` message contains the new `number` to be set. The modem agent's
// `amodem_update_phone_number` function is used for this update.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The phone number was successfully updated.
// - `BadNumber` (2): The provided `number` is invalid for the modem.
// - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.
SetPhoneNumber(ctx context.Context, in *PhoneNumber, opts ...grpc.CallOption) (*PhoneResponse, error)
// Retrieves the current status of the emulator. This includes comprehensive
// information about the virtual machine's configuration and the guest operating system's state.
//
// The `EmulatorStatus` reply contains:
// - `version`: The emulator version string.
// - `uptime`: The time the emulator has been active in milliseconds.
// - `booted`: A boolean indicating if the device has completed booting.
// - `vmConfig`: Detailed `VmConfiguration` (hypervisor type, CPU cores, RAM size).
// - `hardwareConfig`: Key-value pairs describing the emulator's hardware configuration.
// - `heartbeat`: A monotonically increasing number indicating guest activity (incremented approximately once per second).
// - `guestConfig`: A map of key-value pairs with guest-specific configurations, including:
// - "multidisplay": "available" or "unavailable" based on display pipe readiness.
// - "androidVersion": The Android version of the guest OS.
// - "hypervisorVersion": The hypervisor version used by the guest.
//
// This method returns `OK` (code 0) upon successful retrieval of the emulator status.
GetStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EmulatorStatus, error)
// Retrieves a single screenshot in the desired format.
//
// The image will be scaled to the `desiredWidth` and `desiredHeight` specified in `ImageFormat`, while maintaining
// the aspect ratio. If `width` or `height` are 0, the device's current display dimensions are used.
// The returned image will never exceed the device's actual display resolution, but can be smaller.
//
// The `display` field in `ImageFormat` specifies the target display; 0 (or omitted) indicates the main display.
// For folded Pixel Fold devices, the display ID might be internally remapped, and `foldedDisplay` information will be populated.
// The resulting image is properly oriented based on the device's coarse-grained orientation, derived from sensor state.
//
// The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery, but if the shared memory region
// is too small, a `FAILED_PRECONDITION` error will be returned.
//
// This method returns:
// - `OK` (code 0) and an `Image` object upon success.
// - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.
// - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation (an expensive operation).
// - `FAILED_PRECONDITION` (code 9) if the guest has not posted a new frame yet (for non-PNG formats when fast path is used).
//
// This method will return an image with width 0 and height 0 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. This is a server-side streaming RPC.
//
// A new frame is delivered whenever the device produces a new frame or when sensor changes occur.
// Initial state: The first frame delivered might be an empty image (width 0, height 0) if the display is inactive.
// Subsequent frames are delivered when new content is available or a sensor event triggers an update.
// If the display becomes inactive, an empty image will be delivered again. Images resume when the display becomes active.
//
// `ImageFormat` parameters (format, width, height, display) behave as described in `getScreenshot`.
// The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery. If `MMAP` is used and the
// provided shared memory handle is valid and mapped, pixel data will be written directly to it.
// The `image` field in the `Image` reply will be empty if `MMAP` transport is used.
//
// Performance considerations:
// - Streaming can produce a significant amount of data.
// - `PNG` format is CPU-intensive due to encoding overhead.
// - Using `MMAP` transport can significantly reduce gRPC overhead for pixel data.
//
// This method returns:
// - A server-side streaming reactor.
// - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.
// - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation.
StreamScreenshot(ctx context.Context, in *ImageFormat, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Image], error)
// Streams a series of audio packets in the desired format. This is a server-side streaming RPC.
// A new frame is delivered approximately every 20-30ms when the emulated device produces audio.
// If `samplingRate` is 0, it defaults to 44100 Hz.
// The stream may block indefinitely if the emulator ceases to produce audio.
// Packets are allocated with a buffer size calculated based on the audio format and a 30ms frame time.
//
// This method returns `OK` (code 0) upon successful streaming initiation.
StreamAudio(ctx context.Context, in *AudioFormat, opts ...grpc.CallOption) (grpc.ServerStreamingClient[AudioPacket], error)
// Injects a series of audio packets into the Android microphone. This is a client-side streaming RPC.
// Audio packets are processed at a rate determined by the emulator's request for frames.
// An internal buffer can hold approximately 300ms of audio.
//
// Notes:
// - Only the `AudioFormat` from the first received packet is honored. Subsequent `AudioFormat` changes are ignored.
// - `MODE_REAL_TIME` is experimental: incoming data may overwrite existing data if the client does not control timing properly.
// - The circular buffer attempts to deliver all queued samples upon stream closure by writing silence for up to 300ms.
//
// Returns the following gRPC error codes:
// - `FAILED_PRECONDITION` (code 9): If another microphone is already active, or if unable to register the microphone.
// - `INVALID_ARGUMENT` (code 3): If the desired `samplingRate` exceeds 48kHz, or if an `AudioPacket` is too large for the internal buffer.
//
// This method returns `OK` (code 0) upon successful completion of the stream.
InjectAudio(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[AudioPacket, emptypb.Empty], error)
// Retrieves the current settings for the microphone
GetMicrophoneState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*MicrophoneState, error)
// Sets the state for the microphone
SetMicrophoneState(ctx context.Context, in *MicrophoneState, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Deprecated: Do not use.
// Deprecated, please use the streamLogcat method instead.
GetLogcat(ctx context.Context, in *LogMessage, opts ...grpc.CallOption) (*LogMessage, error)
// Streams the logcat output from the emulator in real-time. This is a server-side streaming RPC.
// The stream sources its data from the `logcat` command executed via `AdbShellStream` in the Android guest.
// Log lines are processed individually as they arrive.
//
// The `LogMessage.sort` field determines the output format:
// - If `LogMessage.sort` is `Parsed`, each incoming log line is parsed into a structured `LogcatEntry` object,
// and these entries are returned in the `LogMessage.entries` field. Structured parsing is typically
// available for Android API Level 23 (Marshmallow) and later.
// - If `LogMessage.sort` is `Text` (or unspecified), the raw log line is returned in the `LogMessage.contents` field.
//
// The stream continues as long as the underlying `logcat` process is running and the client is connected.
// The stream will naturally terminate if the `logcat` process stops or the connection is lost.
// No explicit gRPC error codes are returned by this method during active streaming.
StreamLogcat(ctx context.Context, in *LogMessage, opts ...grpc.CallOption) (grpc.ServerStreamingClient[LogMessage], error)
// Transitions the virtual machine to the desired state. This operation is scheduled
// asynchronously.
//
// Transition commands:
// - `RUNNING` or `START`: Starts or resumes execution of the virtual machine.
// - `PAUSED` or `STOP`: Pauses execution of the virtual machine, halting CPU cycles.
// - `RESET` or `RESTART`: Performs a warm reset of the virtual machine.
// - `SHUTDOWN`: Initiates a graceful shutdown of the emulator.
// - `TERMINATE`: Forcefully terminates the emulator process immediately without cleanup.
// This can cause data corruption and must be used with caution.
//
// Note that write-only actions (`START`, `STOP`, `RESET`, `RESTART`) perform the
// transition but are not observed as states in `getVmState`. Purely observable states
// (`UNKNOWN`, `RESTORE_VM`, `SAVE_VM`, `INTERNAL_ERROR`) cannot be set directly.
//
// Returns once the operation has been scheduled.
// Note: The call may not return when the state is set to `TERMINATE` or `SHUTDOWN`.
SetVmState(ctx context.Context, in *VmRunState, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves the current execution state of the virtual machine.
//
// The returned `VmRunState` represents the current condition of the VM:
// - `RUNNING`: The virtual machine is actively executing.
// - `PAUSED`: Execution is suspended (CPUs are halted).
// - `SHUTDOWN`: The guest operating system has initiated a shutdown.
// - `RESTORE_VM`: The virtual machine is paused while restoring its state (e.g., loading a snapshot).
// - `SAVE_VM`: The virtual machine is paused while saving its state (e.g., taking a snapshot).
// - `INTERNAL_ERROR`: Execution has stopped due to a guest panic, I/O error, or hypervisor failure.
// - `UNKNOWN`: The virtual machine is in an unmapped or transient state.
//
// This is a synchronous query operation.
GetVmState(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VmRunState, error)
// Atomically changes the current multi-display configuration. This operation applies
// the provided `DisplayConfigurations`, with special handling for secondary displays.
// Display ID 0 (the primary display) cannot be modified via this RPC.
//
// Preconditions:
// - The `android::featurecontrol::MultiDisplay` feature must be enabled.
//
// Input Validation:
// - `INVALID_ARGUMENT` (code 3): If duplicate `display` IDs are found in the request.
// - `INVALID_ARGUMENT` (code 3): If any `DisplayConfiguration` (width, height, dpi, flags)
// is outside valid ranges as determined by `multiDisplayParamValidate`.
// - `INVALID_ARGUMENT` (code 3): If any `display` ID is outside the configurable range
// `[1, userConfigurable]`.
//
// Atomic Update and Rollback:
// The system attempts to apply each display configuration. If any update fails
// (e.g., after multiple retries for transient pipe errors), a rollback mechanism
// is initiated: successfully updated displays are reverted to their previous state,
// and newly added displays are deleted. In such cases, an `INTERNAL` error is returned.
//
// Deletion of Unrequested Displays:
// Any displays that were active before this call but are not present in the new
// `request.displays` (and are not display ID 0) will be deleted.
//
// Notifications:
// Upon successful completion, `notifyDisplayChanges()` is called to inform
// third-party subscribers.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful application of all configurations, returning the final active `DisplayConfigurations`.
// - `FAILED_PRECONDITION` (code 9): If the multi-display feature is not available.
// - `INTERNAL` (code 13): If an internal emulator failure occurs during display modification or rollback.
SetDisplayConfigurations(ctx context.Context, in *DisplayConfigurations, opts ...grpc.CallOption) (*DisplayConfigurations, error)
// Returns all currently valid logical displays configured in the emulator. This is a synchronous operation.
//
// Preconditions:
// - The `android::featurecontrol::MultiDisplay` feature must be enabled.
//
// The `DisplayConfigurations` reply contains:
// - `displays`: A repeated field of `DisplayConfiguration` objects, each detailing
// the width, height, DPI, flags, and ID of an active display.
// For Pixel Fold devices, only the main display configuration might be relevant.
// - `userConfigurable`: The maximum number of user-configurable displays (IDs from 1 up to this value).
// - `maxDisplays`: The total maximum number of displays the emulator supports.
//
// This method returns:
// - `OK` (code 0) and the current `DisplayConfigurations` upon success.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the multi-display feature.
GetDisplayConfigurations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DisplayConfigurations, error)
// Notifies the client of various emulator state changes in real-time. This is a server-side streaming RPC.
// Upon subscription, the current states of virtual scene camera, foldable posture, boot completion,
// and XR options are immediately sent. The stream then continuously delivers new notifications
// when relevant events occur. `UniqueEventStreamWriter` ensures that only distinct state changes are streamed.
//
// Notifications include:
// - `CameraNotification`: Reports virtual scene camera activation/deactivation and associated display.
// - `DisplayConfigurationsChangedNotification`: Triggered when display configurations are modified via the extended UI. Does not fire for changes made through console or gRPC.
// - `Posture`: Reports changes in the device's foldable posture.
// - `BootCompletedNotification`: Indicates when the emulator has finished booting.
// - `BrightnessValue`: Reports changes in backlight brightness (LCD, keyboard, or button).
// - `TextViewFocus`: Sent when a text view gains or loses focus, or immediately on subscription.
// - `XrOptions`: Reports changes in XR-related settings (environment, passthrough coefficient), or immediately on subscription.
// - `MicrophoneState` : Reports changes in the microphone state (currently whether host microphone access is allowed)
// - `LedIndicator`: Reports changes in AI Glasses XR LED light state on subscription.
//
// This method returns a server-side streaming reactor.
StreamNotification(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Notification], error)
// Rotates the virtual scene camera relative to its current orientation. This operation is asynchronous
// and executed on the main looper.
//
// The `RotationRadian` message specifies angles in radians around the x, y, and z axes. The z component of rotation is currently unused.
// The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.
// This operation only succeeds if the virtual scene camera is actively connected.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
RotateVirtualSceneCamera(ctx context.Context, in *RotationRadian, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Sets the absolute velocity of the virtual scene camera. This operation is asynchronous
// and executed on the main looper.
//
// The `Velocity` message specifies components in meters per second along the x, y, and z axes.
// The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.
// The transition to these target velocity values may be smoothed over time by the implementation.
// This operation only succeeds if the virtual scene camera is actively connected.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetVirtualSceneCameraVelocity(ctx context.Context, in *Velocity, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Sets the foldable posture of the device. This operation is asynchronous
// and executed on the main looper.
//
// The `Posture` message contains a `PostureValue` enum, defining the desired
// physical configuration of the foldable device.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the emulator is unable to set the specified posture.
SetPosture(ctx context.Context, in *Posture, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves the current backlight brightness for a specified light type. This is a synchronous operation.
//
// The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is queried.
// Internal mapping converts these to string names like "lcd_backlight".
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval, populating the `BrightnessValue` reply with the `target` and current `value`.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `getBrightness` function is unavailable.
GetBrightness(ctx context.Context, in *BrightnessValue, opts ...grpc.CallOption) (*BrightnessValue, error)
// Sets the backlight brightness for a specified light type. This operation is asynchronous
// and executed on the main looper.
//
// The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is set.
// The `BrightnessValue.value` specifies the desired intensity, ranging from 0 to 255.
// Internal mapping converts `LightType` to string names like "lcd_backlight".
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `setBrightness` function is unavailable.
// - `INVALID_ARGUMENT` (code 3): If the `brightness` value exceeds the valid range (0-255).
SetBrightness(ctx context.Context, in *BrightnessValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Returns the current mode of the primary display of a resizable AVD. This is a synchronous operation.
//
// Preconditions:
// - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).
//
// The `DisplayMode.value` field will be populated with the current `DisplayModeValue`,
// derived from the `getResizableActiveConfigId()`.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval of the display mode.
// - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.
GetDisplayMode(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DisplayMode, error)
// Sets the size of the primary display of a resizable AVD to the specified `DisplayModeValue`. This operation is asynchronous
// and executed on the main looper.
//
// Preconditions:
// - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).
// - The emulator's `changeResizableDisplay` agent function must be available.
//
// The `DisplayMode.value` field specifies the desired display configuration (e.g., `PHONE`, `FOLDABLE`, `TABLET`, `DESKTOP`).
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.
// - `INTERNAL` (code 13): If the internal window agent function `changeResizableDisplay` is not available.
SetDisplayMode(ctx context.Context, in *DisplayMode, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Changes the XR-related settings of the emulator. This operation is asynchronous
// and executed on the main looper.
//
// The `XrOptions` message specifies the `environment` (e.g., `LIVING_ROOM_DAY`, `LIVING_ROOM_NIGHT`)
// and `passthrough_coefficient` (a float between 0.0 and 1.0 for real/artificial environment visibility).
// Values for `passthrough_coefficient` outside [0.0, 1.0] are ignored.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the `setXrOptions` agent function fails (e.g., if XR is not supported).
SetXrOptions(ctx context.Context, in *XrOptions, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves the current state of XR-related settings from the emulator. This is a synchronous operation.
//
// Preconditions:
// - XR mode must be supported in the current AVD (`isXrGuestOs()` must be true).
// (Note: Current implementation of `isXrGuestOs()` always returns true).
//
// The `XrOptions` reply contains the current `environment` and `passthrough_coefficient`.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval of the XR options.
// - `FAILED_PRECONDITION` (code 9): If XR mode is not supported in the current AVD or if the `getXrOptions` agent function fails.
GetXrOptions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*XrOptions, error)
// Sets the environment background for AI glasses.
SetEnvironment(ctx context.Context, in *Environment, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Gets the current environment configuration for AI glasses. Values that are not set in environment.ini
// will be set to default values.
GetEnvironment(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Environment, error)
// Returns the list of video cameras connected to the host machine.
GetHostCameras(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CameraList, 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.
An EmulatorController service lets you control the emulator. Note that this is currently an experimental feature, and that the service definition might change without notice. Use at your own risk!
We use the following rough conventions:
streamXXX --> streams values XXX (usually for emulator lifetime). Values
are updated as soon as they become available.
getXXX --> gets a single value XXX setXXX --> sets a single value XXX, does not returning state, these
usually have an observable lasting side effect.
sendXXX --> send a single event XXX, possibly returning state information.
android usually responds to these events.
func NewEmulatorControllerClient ¶
func NewEmulatorControllerClient(cc grpc.ClientConnInterface) EmulatorControllerClient
type EmulatorControllerServer ¶
type EmulatorControllerServer interface {
// set/get/stream the sensor data
// This RPC is not implemented in EmulatorController and will return an unimplemented error.
StreamSensor(*SensorValue, grpc.ServerStreamingServer[SensorValue]) error
// Gets the current value of a specified sensor.
//
// The following gRPC error codes can be returned:
// - INTERNAL (code 13) if `getSensorSize` fails to retrieve sensor dimensions.
//
// The `status` field in the `SensorValue` reply indicates the operational state:
// - `OK` (0): Sensor data retrieved successfully.
// - `UNKNOWN` (2): Unknown sensor type (should not happen if using valid `SensorType`).
// - `DISABLED` (3): The sensor is disabled.
// - `NO_SERVICE` (4): The `qemud` service responsible for sensors is not available or initiated.
GetSensor(context.Context, *SensorValue) (*SensorValue, error)
// Sets the override value for a specified sensor. This operation is asynchronous
// and executed on the emulator's main looper. An immediate subsequent `getSensor`
// call might not reflect the newly set value.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
// No specific gRPC error codes are returned by this method itself, but underlying
// operations might log warnings if the sensor agent is unavailable.
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.
//
// This operation is asynchronous and executed on the emulator's main looper. An immediate subsequent `getPhysicalModel`
// call might not reflect the newly set value. The `interpolation` field from the request is used to determine the
// physical interpolation method, mapped using `abs((static_cast<int>(physicalValue.interpolation())) - 1)`.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
// Gets the current value of a specified physical model parameter.
//
// The `status` field in the `PhysicalModelValue` reply indicates the operational state:
// - `OK` (0): Physical model data retrieved successfully.
// - `UNKNOWN` (2): Unknown physical type (should not happen if using valid `PhysicalType`).
// - `NO_SERVICE` (3): The `qemud` service responsible for physical parameters is not available or initiated.
GetPhysicalModel(context.Context, *PhysicalModelValue) (*PhysicalModelValue, error)
// This RPC is not implemented in EmulatorController and will return an unimplemented error.
StreamPhysicalModel(*PhysicalModelValue, grpc.ServerStreamingServer[PhysicalModelValue]) error
// Atomically sets the current primary clipboard data. This operation is asynchronous
// and executed on the emulator's main looper. It triggers a `ClipboardEvent`
// to all listeners (except the originating channel) indicating the new content.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetClipboard(context.Context, *ClipData) (*emptypb.Empty, error)
// Retrieves the current primary clipboard data. This is a synchronous operation.
//
// This method returns `OK` (code 0) and the current `ClipData` upon success.
GetClipboard(context.Context, *emptypb.Empty) (*ClipData, error)
// Streams real-time updates of the clipboard content. Upon subscription,
// it immediately sends the current clipboard state. Subsequent updates are
// streamed as new content becomes available from the guest or is set via `setClipboard`
// from a different client. Events originating from the same client that initiated
// the stream are filtered out to prevent echoing.
//
// It is possible to miss very rapid clipboard updates. The stream will block
// awaiting new events after the initial state is sent.
//
// This method returns a server-side streaming reactor.
StreamClipboard(*emptypb.Empty, grpc.ServerStreamingServer[ClipData]) error
// Sets the emulator's battery state to the provided values. This operation is
// executed asynchronously on the main looper.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation. No explicit gRPC error codes are returned by this method.
SetBattery(context.Context, *BatteryState) (*emptypb.Empty, error)
// Retrieves the current battery state from the emulator. This is a
// synchronous operation that waits for completion.
//
// This method returns `OK` (code 0) and populates the `BatteryState` reply
// with the current information upon success. No explicit gRPC error codes
// are returned by this method.
GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
// Sets the state of the GPS in the emulator. This operation is asynchronous
// and executed on the main looper. It updates the emulator's GPS location
// (latitude, longitude, altitude, speed, bearing, and satellites) and sets
// the timestamp.
//
// Note: Setting the GPS position will not be immediately reflected in the user
// interface. Android typically samples GPS at 1 Hz.
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation.
SetGps(context.Context, *GpsState) (*emptypb.Empty, error)
// Gets the latest GPS state as reported by the emulator. This includes data
// delivered by previous `setGps` calls or from the location UI if active.
// This is a synchronous operation that waits for completion.
//
// Note: The returned GPS state is not necessarily the exact coordinate
// visible at the time due to Android's typical 1 Hz GPS sample frequency.
//
// This method returns `OK` (code 0) and populates the `GpsState` reply
// with the retrieved information upon success. No explicit gRPC error codes
// are returned by this method.
GetGps(context.Context, *emptypb.Empty) (*GpsState, error)
// Simulates a touch event on the fingerprint sensor. This operation is
// executed asynchronously on the main looper.
//
// The `isTouching` field indicates whether the fingerprint sensor is being
// touched, and `touchId` specifies the identifier of the registered
// fingerprint. The `setTouch` agent function is used to apply these values.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling
// of the operation. No explicit gRPC error codes are returned by this method.
SendFingerprint(context.Context, *Fingerprint) (*emptypb.Empty, error)
// Sends a keyboard event to the emulator. This operation is asynchronous
// and executed on the main looper.
//
// The `KeyboardEvent` message allows specifying input using `keyCode`, `key` (W3C standard string), or `text` (UTF-8 string).
// The `KeyEventSender` prioritizes `key`, then `keyCode`, then `text`.
// - If `key` is a non-printable W3C key string (e.g., "Backspace", "ArrowUp"), it's translated to an evdev keycode and sent.
// - If `key` is a printable Unicode character, it's converted to a sequence of evdev keydown/keyup events, handling modifiers.
// - If `keyCode` is provided, it's translated from its `codeType` (Usb, Evdev, XKB, Win, Mac) to an evdev keycode and sent as keydown/keyup pairs.
// - If `text` is provided, each UTF-8 character is converted to evdev keypress (keydown then keyup) events.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SendKey(context.Context, *KeyboardEvent) (*emptypb.Empty, error)
// Sends touch events to the emulator. This operation is asynchronous and executed on the main looper.
//
// The `TouchEvent` contains a list of `Touch` objects, each with `x`, `y` coordinates, `identifier`, `pressure`, `touch_major`, `touch_minor`, `expiration`, and `orientation`.
// Coordinates are scaled to the emulator's display resolution. Each `Touch` `identifier` is mapped to an internal Linux multitouch slot.
// Expiration handling ensures that inactive touch events are properly "lifted" after 120 seconds.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation. Warnings are logged if no touch slots are available.
SendTouch(context.Context, *TouchEvent) (*emptypb.Empty, error)
// Sends mouse events to the emulator. This operation is asynchronous and executed on the main looper.
//
// The `MouseEvent` specifies `x`, `y` coordinates, `buttons` state (bitmask: 1 for left, 2 for right), and `display` ID.
// In certain virtual input configurations (VirtioInput enabled, but VirtioMouse and VirtioTablet disabled), `buttons` may be masked to only consider the primary button.
// The event is sent to the emulator's `user_event_agent`.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SendMouse(context.Context, *MouseEvent) (*emptypb.Empty, error)
// Injects a stream of wheel events into the emulator. This is a server-side streaming RPC.
//
// Each `WheelEvent` contains `dx`, `dy` (delta values, `dy` is pre-multiplied by 120 for scroll clicks), and `display` ID.
// If the emulator's input device has rotary capabilities (e.g., AVD_WEAR flavor), `dy` is scaled and sent as a rotary event.
// Otherwise, it's sent as a standard mouse wheel event.
//
// This method returns a server-side streaming reactor.
InjectWheel(grpc.ClientStreamingServer[WheelEvent, emptypb.Empty]) error
// Streams a series of generic input events to the emulator. The events are processed in the order they arrive.
// This is a server-side streaming RPC that supports various input types encapsulated within `InputEvent`'s `oneof type` field.
//
// Supported input types:
// - `key_event` (KeyboardEvent): Processed by `KeyEventSender` as described in `sendKey`.
// - `touch_event` (TouchEvent): Processed by `TouchEventSender` as described in `sendTouch`.
// - `mouse_event` (MouseEvent): Processed by `MouseEventSender` as described in `sendMouse`.
// - `android_event` (AndroidEvent): Raw Linux input events (`type`, `code`, `value`) sent directly to the kernel.
// - `pen_event` (PenEvent): Processed by `PenEventSender` for pen input, including pressure, orientation, and button state.
// - `wheel_event` (WheelEvent): Processed by `WheelEventSender` as described in `injectWheel`.
// - `xr_command` (XrCommand): Executes XR-specific commands (e.g., `RECENTER` to recenter the viewport). Unknown actions are logged as warnings.
// - `xr_head_rotation_event` (RotationRadian): Sends head rotation data in radians. Logs an error if the agent call fails.
// - `xr_head_movement_event` (Translation): Sends head movement data in meters. Logs an error if the agent call fails.
// - `xr_head_angular_velocity_event` (AngularVelocity): Sends head angular velocity data in radians per second. Logs an error if the agent call fails.
// - `xr_head_velocity_event` (Velocity): Sends head velocity data in meters per second. Logs an error if the agent call fails.
// - `touchpad_event` (TouchpadEvent): Processed by `TouchpadEventSender` for touchpad input, similar to touch events but for a touchpad device.
//
// All underlying input sending operations for XR events are executed asynchronously on the main looper.
//
// Returns `INVALID_ARGUMENT` (code 3) if an unrecognized input event type is received, indicating a potential out-of-date emulator.
// The stream reactor automatically deletes itself upon completion.
StreamInputEvent(grpc.ClientStreamingServer[InputEvent, emptypb.Empty]) error
// Initiates or manipulates a phone call in the emulator. This is a synchronous
// operation executed on the main looper.
//
// The `PhoneCall` message specifies the `operation` (e.g., InitCall, AcceptCall)
// and the target phone `number`. The `telephonyCmd` agent function handles the
// actual call action.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The operation was successful.
// - `BadOperation` (1): The provided `operation` enum is out of range.
// - `BadNumber` (2): The provided `number` is malformed.
// - `InvalidAction` (3): The requested `operation` is invalid given the current call state (e.g., disconnecting when no call is active).
// - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.
// - `RadioOff` (5): The emulator's radio is turned off.
SendPhone(context.Context, *PhoneCall) (*PhoneResponse, error)
// Sends an SMS message to the emulator. This is a synchronous operation.
//
// The `SmsMessage` contains the `srcAddress` (source phone number) and the `text` of the message.
// The `srcAddress` is validated for GSM formatting. The message `text` is converted into SMS PDUs
// (Protocol Data Units) and delivered via the modem agent.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The SMS message was successfully delivered.
// - `BadNumber` (2): The `srcAddress` is malformed.
// - `ActionFailed` (4): An internal error occurred, e.g., if the modem agent is unavailable or PDU creation fails.
//
// Other error cases from PDU creation (e.g., invalid characters in text) also result in `ActionFailed`.
SendSms(context.Context, *SmsMessage) (*PhoneResponse, error)
// Sets the emulator's phone number. This is a synchronous operation.
//
// The `PhoneNumber` message contains the new `number` to be set. The modem agent's
// `amodem_update_phone_number` function is used for this update.
//
// Returns a `PhoneResponse` indicating the outcome:
// - `OK` (0): The phone number was successfully updated.
// - `BadNumber` (2): The provided `number` is invalid for the modem.
// - `ActionFailed` (4): An internal error occurred, typically if the modem agent is unavailable.
SetPhoneNumber(context.Context, *PhoneNumber) (*PhoneResponse, error)
// Retrieves the current status of the emulator. This includes comprehensive
// information about the virtual machine's configuration and the guest operating system's state.
//
// The `EmulatorStatus` reply contains:
// - `version`: The emulator version string.
// - `uptime`: The time the emulator has been active in milliseconds.
// - `booted`: A boolean indicating if the device has completed booting.
// - `vmConfig`: Detailed `VmConfiguration` (hypervisor type, CPU cores, RAM size).
// - `hardwareConfig`: Key-value pairs describing the emulator's hardware configuration.
// - `heartbeat`: A monotonically increasing number indicating guest activity (incremented approximately once per second).
// - `guestConfig`: A map of key-value pairs with guest-specific configurations, including:
// - "multidisplay": "available" or "unavailable" based on display pipe readiness.
// - "androidVersion": The Android version of the guest OS.
// - "hypervisorVersion": The hypervisor version used by the guest.
//
// This method returns `OK` (code 0) upon successful retrieval of the emulator status.
GetStatus(context.Context, *emptypb.Empty) (*EmulatorStatus, error)
// Retrieves a single screenshot in the desired format.
//
// The image will be scaled to the `desiredWidth` and `desiredHeight` specified in `ImageFormat`, while maintaining
// the aspect ratio. If `width` or `height` are 0, the device's current display dimensions are used.
// The returned image will never exceed the device's actual display resolution, but can be smaller.
//
// The `display` field in `ImageFormat` specifies the target display; 0 (or omitted) indicates the main display.
// For folded Pixel Fold devices, the display ID might be internally remapped, and `foldedDisplay` information will be populated.
// The resulting image is properly oriented based on the device's coarse-grained orientation, derived from sensor state.
//
// The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery, but if the shared memory region
// is too small, a `FAILED_PRECONDITION` error will be returned.
//
// This method returns:
// - `OK` (code 0) and an `Image` object upon success.
// - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.
// - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation (an expensive operation).
// - `FAILED_PRECONDITION` (code 9) if the guest has not posted a new frame yet (for non-PNG formats when fast path is used).
//
// This method will return an image with width 0 and height 0 if the display is not visible.
GetScreenshot(context.Context, *ImageFormat) (*Image, error)
// Streams a series of screenshots in the desired format. This is a server-side streaming RPC.
//
// A new frame is delivered whenever the device produces a new frame or when sensor changes occur.
// Initial state: The first frame delivered might be an empty image (width 0, height 0) if the display is inactive.
// Subsequent frames are delivered when new content is available or a sensor event triggers an update.
// If the display becomes inactive, an empty image will be delivered again. Images resume when the display becomes active.
//
// `ImageFormat` parameters (format, width, height, display) behave as described in `getScreenshot`.
// The `transport` field in `ImageFormat` can specify `MMAP` for shared memory delivery. If `MMAP` is used and the
// provided shared memory handle is valid and mapped, pixel data will be written directly to it.
// The `image` field in the `Image` reply will be empty if `MMAP` transport is used.
//
// Performance considerations:
// - Streaming can produce a significant amount of data.
// - `PNG` format is CPU-intensive due to encoding overhead.
// - Using `MMAP` transport can significantly reduce gRPC overhead for pixel data.
//
// This method returns:
// - A server-side streaming reactor.
// - `INVALID_ARGUMENT` (code 3) if the specified `display` ID is invalid or disabled.
// - `CANCELLED` (code 1) if the gRPC context is cancelled during the operation.
StreamScreenshot(*ImageFormat, grpc.ServerStreamingServer[Image]) error
// Streams a series of audio packets in the desired format. This is a server-side streaming RPC.
// A new frame is delivered approximately every 20-30ms when the emulated device produces audio.
// If `samplingRate` is 0, it defaults to 44100 Hz.
// The stream may block indefinitely if the emulator ceases to produce audio.
// Packets are allocated with a buffer size calculated based on the audio format and a 30ms frame time.
//
// This method returns `OK` (code 0) upon successful streaming initiation.
StreamAudio(*AudioFormat, grpc.ServerStreamingServer[AudioPacket]) error
// Injects a series of audio packets into the Android microphone. This is a client-side streaming RPC.
// Audio packets are processed at a rate determined by the emulator's request for frames.
// An internal buffer can hold approximately 300ms of audio.
//
// Notes:
// - Only the `AudioFormat` from the first received packet is honored. Subsequent `AudioFormat` changes are ignored.
// - `MODE_REAL_TIME` is experimental: incoming data may overwrite existing data if the client does not control timing properly.
// - The circular buffer attempts to deliver all queued samples upon stream closure by writing silence for up to 300ms.
//
// Returns the following gRPC error codes:
// - `FAILED_PRECONDITION` (code 9): If another microphone is already active, or if unable to register the microphone.
// - `INVALID_ARGUMENT` (code 3): If the desired `samplingRate` exceeds 48kHz, or if an `AudioPacket` is too large for the internal buffer.
//
// This method returns `OK` (code 0) upon successful completion of the stream.
InjectAudio(grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]) error
// Retrieves the current settings for the microphone
GetMicrophoneState(context.Context, *emptypb.Empty) (*MicrophoneState, error)
// Sets the state for the microphone
SetMicrophoneState(context.Context, *MicrophoneState) (*emptypb.Empty, error)
// Deprecated: Do not use.
// Deprecated, please use the streamLogcat method instead.
GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
// Streams the logcat output from the emulator in real-time. This is a server-side streaming RPC.
// The stream sources its data from the `logcat` command executed via `AdbShellStream` in the Android guest.
// Log lines are processed individually as they arrive.
//
// The `LogMessage.sort` field determines the output format:
// - If `LogMessage.sort` is `Parsed`, each incoming log line is parsed into a structured `LogcatEntry` object,
// and these entries are returned in the `LogMessage.entries` field. Structured parsing is typically
// available for Android API Level 23 (Marshmallow) and later.
// - If `LogMessage.sort` is `Text` (or unspecified), the raw log line is returned in the `LogMessage.contents` field.
//
// The stream continues as long as the underlying `logcat` process is running and the client is connected.
// The stream will naturally terminate if the `logcat` process stops or the connection is lost.
// No explicit gRPC error codes are returned by this method during active streaming.
StreamLogcat(*LogMessage, grpc.ServerStreamingServer[LogMessage]) error
// Transitions the virtual machine to the desired state. This operation is scheduled
// asynchronously.
//
// Transition commands:
// - `RUNNING` or `START`: Starts or resumes execution of the virtual machine.
// - `PAUSED` or `STOP`: Pauses execution of the virtual machine, halting CPU cycles.
// - `RESET` or `RESTART`: Performs a warm reset of the virtual machine.
// - `SHUTDOWN`: Initiates a graceful shutdown of the emulator.
// - `TERMINATE`: Forcefully terminates the emulator process immediately without cleanup.
// This can cause data corruption and must be used with caution.
//
// Note that write-only actions (`START`, `STOP`, `RESET`, `RESTART`) perform the
// transition but are not observed as states in `getVmState`. Purely observable states
// (`UNKNOWN`, `RESTORE_VM`, `SAVE_VM`, `INTERNAL_ERROR`) cannot be set directly.
//
// Returns once the operation has been scheduled.
// Note: The call may not return when the state is set to `TERMINATE` or `SHUTDOWN`.
SetVmState(context.Context, *VmRunState) (*emptypb.Empty, error)
// Retrieves the current execution state of the virtual machine.
//
// The returned `VmRunState` represents the current condition of the VM:
// - `RUNNING`: The virtual machine is actively executing.
// - `PAUSED`: Execution is suspended (CPUs are halted).
// - `SHUTDOWN`: The guest operating system has initiated a shutdown.
// - `RESTORE_VM`: The virtual machine is paused while restoring its state (e.g., loading a snapshot).
// - `SAVE_VM`: The virtual machine is paused while saving its state (e.g., taking a snapshot).
// - `INTERNAL_ERROR`: Execution has stopped due to a guest panic, I/O error, or hypervisor failure.
// - `UNKNOWN`: The virtual machine is in an unmapped or transient state.
//
// This is a synchronous query operation.
GetVmState(context.Context, *emptypb.Empty) (*VmRunState, error)
// Atomically changes the current multi-display configuration. This operation applies
// the provided `DisplayConfigurations`, with special handling for secondary displays.
// Display ID 0 (the primary display) cannot be modified via this RPC.
//
// Preconditions:
// - The `android::featurecontrol::MultiDisplay` feature must be enabled.
//
// Input Validation:
// - `INVALID_ARGUMENT` (code 3): If duplicate `display` IDs are found in the request.
// - `INVALID_ARGUMENT` (code 3): If any `DisplayConfiguration` (width, height, dpi, flags)
// is outside valid ranges as determined by `multiDisplayParamValidate`.
// - `INVALID_ARGUMENT` (code 3): If any `display` ID is outside the configurable range
// `[1, userConfigurable]`.
//
// Atomic Update and Rollback:
// The system attempts to apply each display configuration. If any update fails
// (e.g., after multiple retries for transient pipe errors), a rollback mechanism
// is initiated: successfully updated displays are reverted to their previous state,
// and newly added displays are deleted. In such cases, an `INTERNAL` error is returned.
//
// Deletion of Unrequested Displays:
// Any displays that were active before this call but are not present in the new
// `request.displays` (and are not display ID 0) will be deleted.
//
// Notifications:
// Upon successful completion, `notifyDisplayChanges()` is called to inform
// third-party subscribers.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful application of all configurations, returning the final active `DisplayConfigurations`.
// - `FAILED_PRECONDITION` (code 9): If the multi-display feature is not available.
// - `INTERNAL` (code 13): If an internal emulator failure occurs during display modification or rollback.
SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
// Returns all currently valid logical displays configured in the emulator. This is a synchronous operation.
//
// Preconditions:
// - The `android::featurecontrol::MultiDisplay` feature must be enabled.
//
// The `DisplayConfigurations` reply contains:
// - `displays`: A repeated field of `DisplayConfiguration` objects, each detailing
// the width, height, DPI, flags, and ID of an active display.
// For Pixel Fold devices, only the main display configuration might be relevant.
// - `userConfigurable`: The maximum number of user-configurable displays (IDs from 1 up to this value).
// - `maxDisplays`: The total maximum number of displays the emulator supports.
//
// This method returns:
// - `OK` (code 0) and the current `DisplayConfigurations` upon success.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the multi-display feature.
GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
// Notifies the client of various emulator state changes in real-time. This is a server-side streaming RPC.
// Upon subscription, the current states of virtual scene camera, foldable posture, boot completion,
// and XR options are immediately sent. The stream then continuously delivers new notifications
// when relevant events occur. `UniqueEventStreamWriter` ensures that only distinct state changes are streamed.
//
// Notifications include:
// - `CameraNotification`: Reports virtual scene camera activation/deactivation and associated display.
// - `DisplayConfigurationsChangedNotification`: Triggered when display configurations are modified via the extended UI. Does not fire for changes made through console or gRPC.
// - `Posture`: Reports changes in the device's foldable posture.
// - `BootCompletedNotification`: Indicates when the emulator has finished booting.
// - `BrightnessValue`: Reports changes in backlight brightness (LCD, keyboard, or button).
// - `TextViewFocus`: Sent when a text view gains or loses focus, or immediately on subscription.
// - `XrOptions`: Reports changes in XR-related settings (environment, passthrough coefficient), or immediately on subscription.
// - `MicrophoneState` : Reports changes in the microphone state (currently whether host microphone access is allowed)
// - `LedIndicator`: Reports changes in AI Glasses XR LED light state on subscription.
//
// This method returns a server-side streaming reactor.
StreamNotification(*emptypb.Empty, grpc.ServerStreamingServer[Notification]) error
// Rotates the virtual scene camera relative to its current orientation. This operation is asynchronous
// and executed on the main looper.
//
// The `RotationRadian` message specifies angles in radians around the x, y, and z axes. The z component of rotation is currently unused.
// The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.
// This operation only succeeds if the virtual scene camera is actively connected.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
RotateVirtualSceneCamera(context.Context, *RotationRadian) (*emptypb.Empty, error)
// Sets the absolute velocity of the virtual scene camera. This operation is asynchronous
// and executed on the main looper.
//
// The `Velocity` message specifies components in meters per second along the x, y, and z axes.
// The coordinate system is right-handed: x-axis points right, y-axis points up, and z-axis points towards the viewer.
// The transition to these target velocity values may be smoothed over time by the implementation.
// This operation only succeeds if the virtual scene camera is actively connected.
//
// This method returns `OK` (code 0) upon successful asynchronous scheduling of the operation.
SetVirtualSceneCameraVelocity(context.Context, *Velocity) (*emptypb.Empty, error)
// Sets the foldable posture of the device. This operation is asynchronous
// and executed on the main looper.
//
// The `Posture` message contains a `PostureValue` enum, defining the desired
// physical configuration of the foldable device.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the emulator is unable to set the specified posture.
SetPosture(context.Context, *Posture) (*emptypb.Empty, error)
// Retrieves the current backlight brightness for a specified light type. This is a synchronous operation.
//
// The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is queried.
// Internal mapping converts these to string names like "lcd_backlight".
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval, populating the `BrightnessValue` reply with the `target` and current `value`.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `getBrightness` function is unavailable.
GetBrightness(context.Context, *BrightnessValue) (*BrightnessValue, error)
// Sets the backlight brightness for a specified light type. This operation is asynchronous
// and executed on the main looper.
//
// The `BrightnessValue.target` field (e.g., `LCD`, `KEYBOARD`, `BUTTON`) determines which light's brightness is set.
// The `BrightnessValue.value` specifies the desired intensity, ranging from 0 to 255.
// Internal mapping converts `LightType` to string names like "lcd_backlight".
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the AVD does not support the `hw-control` agent or its `setBrightness` function is unavailable.
// - `INVALID_ARGUMENT` (code 3): If the `brightness` value exceeds the valid range (0-255).
SetBrightness(context.Context, *BrightnessValue) (*emptypb.Empty, error)
// Returns the current mode of the primary display of a resizable AVD. This is a synchronous operation.
//
// Preconditions:
// - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).
//
// The `DisplayMode.value` field will be populated with the current `DisplayModeValue`,
// derived from the `getResizableActiveConfigId()`.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval of the display mode.
// - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.
GetDisplayMode(context.Context, *emptypb.Empty) (*DisplayMode, error)
// Sets the size of the primary display of a resizable AVD to the specified `DisplayModeValue`. This operation is asynchronous
// and executed on the main looper.
//
// Preconditions:
// - The AVD must be configured to support resizable displays (`resizableEnabled()` must be true).
// - The emulator's `changeResizableDisplay` agent function must be available.
//
// The `DisplayMode.value` field specifies the desired display configuration (e.g., `PHONE`, `FOLDABLE`, `TABLET`, `DESKTOP`).
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the AVD is not resizable.
// - `INTERNAL` (code 13): If the internal window agent function `changeResizableDisplay` is not available.
SetDisplayMode(context.Context, *DisplayMode) (*emptypb.Empty, error)
// Changes the XR-related settings of the emulator. This operation is asynchronous
// and executed on the main looper.
//
// The `XrOptions` message specifies the `environment` (e.g., `LIVING_ROOM_DAY`, `LIVING_ROOM_NIGHT`)
// and `passthrough_coefficient` (a float between 0.0 and 1.0 for real/artificial environment visibility).
// Values for `passthrough_coefficient` outside [0.0, 1.0] are ignored.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful asynchronous scheduling of the operation.
// - `FAILED_PRECONDITION` (code 9): If the `setXrOptions` agent function fails (e.g., if XR is not supported).
SetXrOptions(context.Context, *XrOptions) (*emptypb.Empty, error)
// Retrieves the current state of XR-related settings from the emulator. This is a synchronous operation.
//
// Preconditions:
// - XR mode must be supported in the current AVD (`isXrGuestOs()` must be true).
// (Note: Current implementation of `isXrGuestOs()` always returns true).
//
// The `XrOptions` reply contains the current `environment` and `passthrough_coefficient`.
//
// Returns the following gRPC error codes:
// - `OK` (code 0): Upon successful retrieval of the XR options.
// - `FAILED_PRECONDITION` (code 9): If XR mode is not supported in the current AVD or if the `getXrOptions` agent function fails.
GetXrOptions(context.Context, *emptypb.Empty) (*XrOptions, error)
// Sets the environment background for AI glasses.
SetEnvironment(context.Context, *Environment) (*emptypb.Empty, error)
// Gets the current environment configuration for AI glasses. Values that are not set in environment.ini
// will be set to default values.
GetEnvironment(context.Context, *emptypb.Empty) (*Environment, error)
// Returns the list of video cameras connected to the host machine.
GetHostCameras(context.Context, *emptypb.Empty) (*CameraList, error)
// contains filtered or unexported methods
}
EmulatorControllerServer is the server API for EmulatorController service. All implementations must embed UnimplementedEmulatorControllerServer for forward compatibility.
An EmulatorController service lets you control the emulator. Note that this is currently an experimental feature, and that the service definition might change without notice. Use at your own risk!
We use the following rough conventions:
streamXXX --> streams values XXX (usually for emulator lifetime). Values
are updated as soon as they become available.
getXXX --> gets a single value XXX setXXX --> sets a single value XXX, does not returning state, these
usually have an observable lasting side effect.
sendXXX --> send a single event XXX, possibly returning state information.
android usually responds to these events.
type EmulatorController_InjectAudioClient ¶
type EmulatorController_InjectAudioClient = grpc.ClientStreamingClient[AudioPacket, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_InjectAudioServer ¶
type EmulatorController_InjectAudioServer = grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_InjectWheelClient ¶
type EmulatorController_InjectWheelClient = grpc.ClientStreamingClient[WheelEvent, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_InjectWheelServer ¶
type EmulatorController_InjectWheelServer = grpc.ClientStreamingServer[WheelEvent, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamAudioClient ¶
type EmulatorController_StreamAudioClient = grpc.ServerStreamingClient[AudioPacket]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamAudioServer ¶
type EmulatorController_StreamAudioServer = grpc.ServerStreamingServer[AudioPacket]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamClipboardClient ¶
type EmulatorController_StreamClipboardClient = grpc.ServerStreamingClient[ClipData]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamClipboardServer ¶
type EmulatorController_StreamClipboardServer = grpc.ServerStreamingServer[ClipData]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamInputEventClient ¶
type EmulatorController_StreamInputEventClient = grpc.ClientStreamingClient[InputEvent, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamInputEventServer ¶
type EmulatorController_StreamInputEventServer = grpc.ClientStreamingServer[InputEvent, emptypb.Empty]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamLogcatClient ¶
type EmulatorController_StreamLogcatClient = grpc.ServerStreamingClient[LogMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamLogcatServer ¶
type EmulatorController_StreamLogcatServer = grpc.ServerStreamingServer[LogMessage]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamNotificationClient ¶
type EmulatorController_StreamNotificationClient = grpc.ServerStreamingClient[Notification]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamNotificationServer ¶
type EmulatorController_StreamNotificationServer = grpc.ServerStreamingServer[Notification]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamPhysicalModelClient ¶
type EmulatorController_StreamPhysicalModelClient = grpc.ServerStreamingClient[PhysicalModelValue]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamPhysicalModelServer ¶
type EmulatorController_StreamPhysicalModelServer = grpc.ServerStreamingServer[PhysicalModelValue]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamScreenshotClient ¶
type EmulatorController_StreamScreenshotClient = grpc.ServerStreamingClient[Image]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamScreenshotServer ¶
type EmulatorController_StreamScreenshotServer = grpc.ServerStreamingServer[Image]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamSensorClient ¶
type EmulatorController_StreamSensorClient = grpc.ServerStreamingClient[SensorValue]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EmulatorController_StreamSensorServer ¶
type EmulatorController_StreamSensorServer = grpc.ServerStreamingServer[SensorValue]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
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"`
// Use platformConfig instead
//
// Deprecated: Marked as deprecated in emulator_controller.proto.
HardwareConfig *EntryList `protobuf:"bytes,5,opt,name=hardwareConfig,proto3" json:"hardwareConfig,omitempty"`
// Some guests will produce a heart beat, that can be used to
// detect if the guest is active.
// This is a monotonically increasing number that gets incremented
// around once a second.
Heartbeat uint64 `protobuf:"varint,6,opt,name=heartbeat,proto3" json:"heartbeat,omitempty"`
// The configuration of services in the guest, this map
// contains key value pairs that are specific to the image
// used by the guest.
GuestConfig map[string]string `` /* 149-byte string literal not displayed */
// Configuration of the emulator hardware
PlatformConfig map[string]string `` /* 155-byte string literal not displayed */
// 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) GetGuestConfig ¶
func (x *EmulatorStatus) GetGuestConfig() map[string]string
func (*EmulatorStatus) GetHardwareConfig
deprecated
func (x *EmulatorStatus) GetHardwareConfig() *EntryList
Deprecated: Marked as deprecated in emulator_controller.proto.
func (*EmulatorStatus) GetHeartbeat ¶
func (x *EmulatorStatus) GetHeartbeat() uint64
func (*EmulatorStatus) GetPlatformConfig ¶
func (x *EmulatorStatus) GetPlatformConfig() map[string]string
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 Environment ¶
type Environment struct {
// Key/value pairs corresponing to the contents of the environment.ini file.
// An empty map means no environment.
Environment map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
Specifies environment background for AI glasses.
func (*Environment) Descriptor
deprecated
func (*Environment) Descriptor() ([]byte, []int)
Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetEnvironment ¶
func (x *Environment) GetEnvironment() map[string]string
func (*Environment) ProtoMessage ¶
func (*Environment) ProtoMessage()
func (*Environment) ProtoReflect ¶
func (x *Environment) ProtoReflect() protoreflect.Message
func (*Environment) Reset ¶
func (x *Environment) Reset()
func (*Environment) String ¶
func (x *Environment) String() string
type Fingerprint ¶
type Fingerprint struct {
// True when the fingprint is touched.
IsTouching bool `protobuf:"varint,1,opt,name=isTouching,proto3" json:"isTouching,omitempty"`
// The identifier of the registered fingerprint.
TouchId int32 `protobuf:"varint,2,opt,name=touchId,proto3" json:"touchId,omitempty"`
// contains filtered or unexported fields
}
func (*Fingerprint) Descriptor
deprecated
func (*Fingerprint) Descriptor() ([]byte, []int)
Deprecated: Use Fingerprint.ProtoReflect.Descriptor instead.
func (*Fingerprint) GetIsTouching ¶
func (x *Fingerprint) GetIsTouching() bool
func (*Fingerprint) GetTouchId ¶
func (x *Fingerprint) GetTouchId() int32
func (*Fingerprint) ProtoMessage ¶
func (*Fingerprint) ProtoMessage()
func (*Fingerprint) ProtoReflect ¶
func (x *Fingerprint) ProtoReflect() protoreflect.Message
func (*Fingerprint) Reset ¶
func (x *Fingerprint) Reset()
func (*Fingerprint) String ¶
func (x *Fingerprint) String() string
type FoldedDisplay ¶
type FoldedDisplay struct {
Width uint32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"`
Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
// It is possible for the screen to be folded in different ways depending
// on which surface is shown to the user. So xOffset and yOffset indicate
// the top left corner of the folded screen within the original unfolded
// screen.
XOffset uint32 `protobuf:"varint,3,opt,name=xOffset,proto3" json:"xOffset,omitempty"`
YOffset uint32 `protobuf:"varint,4,opt,name=yOffset,proto3" json:"yOffset,omitempty"`
// contains filtered or unexported fields
}
The aspect ratio (width/height) will be different from the one where the device is unfolded.
func (*FoldedDisplay) Descriptor
deprecated
func (*FoldedDisplay) Descriptor() ([]byte, []int)
Deprecated: Use FoldedDisplay.ProtoReflect.Descriptor instead.
func (*FoldedDisplay) GetHeight ¶
func (x *FoldedDisplay) GetHeight() uint32
func (*FoldedDisplay) GetWidth ¶
func (x *FoldedDisplay) GetWidth() uint32
func (*FoldedDisplay) GetXOffset ¶
func (x *FoldedDisplay) GetXOffset() uint32
func (*FoldedDisplay) GetYOffset ¶
func (x *FoldedDisplay) GetYOffset() uint32
func (*FoldedDisplay) ProtoMessage ¶
func (*FoldedDisplay) ProtoMessage()
func (*FoldedDisplay) ProtoReflect ¶
func (x *FoldedDisplay) ProtoReflect() protoreflect.Message
func (*FoldedDisplay) Reset ¶
func (x *FoldedDisplay) Reset()
func (*FoldedDisplay) String ¶
func (x *FoldedDisplay) String() string
type GpsState ¶
type GpsState struct {
// Setting this to false will disable auto updating from the LocationUI,
// otherwise the location UI will override the location at a frequency of
// 1hz.
//
// - This is unused if the emulator is launched with -no-window, or when he
// location ui is disabled.
// - This will BREAK the location ui experience if it is set to false. For
// example routing will no longer function.
PassiveUpdate bool `protobuf:"varint,1,opt,name=passiveUpdate,proto3" json:"passiveUpdate,omitempty"`
// The latitude, in degrees.
Latitude float64 `protobuf:"fixed64,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
// The longitude, in degrees.
Longitude float64 `protobuf:"fixed64,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
// The speed if it is available, in meters/second over ground
Speed float64 `protobuf:"fixed64,4,opt,name=speed,proto3" json:"speed,omitempty"`
// gets the horizontal direction of travel of this device, and is not
// related to the device orientation. It is guaranteed to be in the
// range [0.0, 360.0] if the device has a bearing. 0=North, 90=East,
// 180=South, etc..
Bearing float64 `protobuf:"fixed64,5,opt,name=bearing,proto3" json:"bearing,omitempty"`
// The altitude if available, in meters above the WGS 84 reference
// ellipsoid.
Altitude float64 `protobuf:"fixed64,6,opt,name=altitude,proto3" json:"altitude,omitempty"`
// The number of satellites used to derive the fix
Satellites int32 `protobuf:"varint,7,opt,name=satellites,proto3" json:"satellites,omitempty"`
// contains filtered or unexported fields
}
func (*GpsState) Descriptor
deprecated
func (*GpsState) 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: Marked as deprecated in emulator_controller.proto.
Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // width is contained in format.
// Deprecated: Marked as deprecated in emulator_controller.proto.
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"`
// [Output Only] Display mode when AVD is resizable.
DisplayMode DisplayModeValue `protobuf:"varint,8,opt,name=displayMode,proto3,enum=android.emulation.control.DisplayModeValue" json:"displayMode,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) GetDisplayMode ¶
func (x *ImageFormat) GetDisplayMode() DisplayModeValue
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 InputEvent ¶
type InputEvent struct {
// Types that are valid to be assigned to Type:
//
// *InputEvent_KeyEvent
// *InputEvent_TouchEvent
// *InputEvent_MouseEvent
// *InputEvent_AndroidEvent
// *InputEvent_PenEvent
// *InputEvent_WheelEvent
// *InputEvent_XrHandEvent
// *InputEvent_XrEyeEvent
// *InputEvent_XrCommand
// *InputEvent_XrHeadRotationEvent
// *InputEvent_XrHeadMovementEvent
// *InputEvent_XrHeadAngularVelocityEvent
// *InputEvent_XrHeadVelocityEvent
// *InputEvent_TouchpadEvent
Type isInputEvent_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
An input event that can be delivered to the emulator.
func (*InputEvent) Descriptor
deprecated
func (*InputEvent) Descriptor() ([]byte, []int)
Deprecated: Use InputEvent.ProtoReflect.Descriptor instead.
func (*InputEvent) GetAndroidEvent ¶
func (x *InputEvent) GetAndroidEvent() *AndroidEvent
func (*InputEvent) GetKeyEvent ¶
func (x *InputEvent) GetKeyEvent() *KeyboardEvent
func (*InputEvent) GetMouseEvent ¶
func (x *InputEvent) GetMouseEvent() *MouseEvent
func (*InputEvent) GetPenEvent ¶
func (x *InputEvent) GetPenEvent() *PenEvent
func (*InputEvent) GetTouchEvent ¶
func (x *InputEvent) GetTouchEvent() *TouchEvent
func (*InputEvent) GetTouchpadEvent ¶
func (x *InputEvent) GetTouchpadEvent() *TouchpadEvent
func (*InputEvent) GetType ¶
func (x *InputEvent) GetType() isInputEvent_Type
func (*InputEvent) GetWheelEvent ¶
func (x *InputEvent) GetWheelEvent() *WheelEvent
func (*InputEvent) GetXrCommand ¶
func (x *InputEvent) GetXrCommand() *XrCommand
func (*InputEvent) GetXrEyeEvent ¶
func (x *InputEvent) GetXrEyeEvent() *MouseEvent
func (*InputEvent) GetXrHandEvent ¶
func (x *InputEvent) GetXrHandEvent() *MouseEvent
func (*InputEvent) GetXrHeadAngularVelocityEvent ¶
func (x *InputEvent) GetXrHeadAngularVelocityEvent() *AngularVelocity
func (*InputEvent) GetXrHeadMovementEvent ¶
func (x *InputEvent) GetXrHeadMovementEvent() *Translation
func (*InputEvent) GetXrHeadRotationEvent ¶
func (x *InputEvent) GetXrHeadRotationEvent() *RotationRadian
func (*InputEvent) GetXrHeadVelocityEvent ¶
func (x *InputEvent) GetXrHeadVelocityEvent() *Velocity
func (*InputEvent) ProtoMessage ¶
func (*InputEvent) ProtoMessage()
func (*InputEvent) ProtoReflect ¶
func (x *InputEvent) ProtoReflect() protoreflect.Message
func (*InputEvent) Reset ¶
func (x *InputEvent) Reset()
func (*InputEvent) String ¶
func (x *InputEvent) String() string
type InputEvent_AndroidEvent ¶
type InputEvent_AndroidEvent struct {
AndroidEvent *AndroidEvent `protobuf:"bytes,4,opt,name=android_event,json=androidEvent,proto3,oneof"`
}
type InputEvent_KeyEvent ¶
type InputEvent_KeyEvent struct {
KeyEvent *KeyboardEvent `protobuf:"bytes,1,opt,name=key_event,json=keyEvent,proto3,oneof"`
}
type InputEvent_MouseEvent ¶
type InputEvent_MouseEvent struct {
MouseEvent *MouseEvent `protobuf:"bytes,3,opt,name=mouse_event,json=mouseEvent,proto3,oneof"`
}
type InputEvent_PenEvent ¶
type InputEvent_PenEvent struct {
PenEvent *PenEvent `protobuf:"bytes,5,opt,name=pen_event,json=penEvent,proto3,oneof"`
}
type InputEvent_TouchEvent ¶
type InputEvent_TouchEvent struct {
TouchEvent *TouchEvent `protobuf:"bytes,2,opt,name=touch_event,json=touchEvent,proto3,oneof"`
}
type InputEvent_TouchpadEvent ¶
type InputEvent_TouchpadEvent struct {
TouchpadEvent *TouchpadEvent `protobuf:"bytes,14,opt,name=touchpad_event,json=touchpadEvent,proto3,oneof"`
}
type InputEvent_WheelEvent ¶
type InputEvent_WheelEvent struct {
WheelEvent *WheelEvent `protobuf:"bytes,6,opt,name=wheel_event,json=wheelEvent,proto3,oneof"`
}
type InputEvent_XrCommand ¶
type InputEvent_XrCommand struct {
XrCommand *XrCommand `protobuf:"bytes,9,opt,name=xr_command,json=xrCommand,proto3,oneof"`
}
type InputEvent_XrEyeEvent ¶
type InputEvent_XrEyeEvent struct {
XrEyeEvent *MouseEvent `protobuf:"bytes,8,opt,name=xr_eye_event,json=xrEyeEvent,proto3,oneof"`
}
type InputEvent_XrHandEvent ¶
type InputEvent_XrHandEvent struct {
XrHandEvent *MouseEvent `protobuf:"bytes,7,opt,name=xr_hand_event,json=xrHandEvent,proto3,oneof"`
}
type InputEvent_XrHeadAngularVelocityEvent ¶
type InputEvent_XrHeadAngularVelocityEvent struct {
XrHeadAngularVelocityEvent *AngularVelocity `protobuf:"bytes,12,opt,name=xr_head_angular_velocity_event,json=xrHeadAngularVelocityEvent,proto3,oneof"`
}
type InputEvent_XrHeadMovementEvent ¶
type InputEvent_XrHeadMovementEvent struct {
XrHeadMovementEvent *Translation `protobuf:"bytes,11,opt,name=xr_head_movement_event,json=xrHeadMovementEvent,proto3,oneof"`
}
type InputEvent_XrHeadRotationEvent ¶
type InputEvent_XrHeadRotationEvent struct {
XrHeadRotationEvent *RotationRadian `protobuf:"bytes,10,opt,name=xr_head_rotation_event,json=xrHeadRotationEvent,proto3,oneof"`
}
type InputEvent_XrHeadVelocityEvent ¶
type InputEvent_XrHeadVelocityEvent struct {
XrHeadVelocityEvent *Velocity `protobuf:"bytes,13,opt,name=xr_head_velocity_event,json=xrHeadVelocityEvent,proto3,oneof"`
}
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 LedIndicator ¶
type LedIndicator struct {
// The indicator's identifier.
Id *uint32 `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
// Determines whether the indicator is inside or outside of the glasses frames.
Facing *LedIndicator_Facing `protobuf:"varint,2,opt,name=facing,proto3,enum=android.emulation.control.LedIndicator_Facing,oneof" json:"facing,omitempty"`
// Determines whether the indicator is on or off.
State *LedIndicator_State `protobuf:"varint,3,opt,name=state,proto3,enum=android.emulation.control.LedIndicator_State,oneof" json:"state,omitempty"`
// Color in RGB format.
Color *uint32 `protobuf:"varint,4,opt,name=color,proto3,oneof" json:"color,omitempty"`
// contains filtered or unexported fields
}
The state of one LED indicator of AI glasses.
func (*LedIndicator) Descriptor
deprecated
func (*LedIndicator) Descriptor() ([]byte, []int)
Deprecated: Use LedIndicator.ProtoReflect.Descriptor instead.
func (*LedIndicator) GetColor ¶
func (x *LedIndicator) GetColor() uint32
func (*LedIndicator) GetFacing ¶
func (x *LedIndicator) GetFacing() LedIndicator_Facing
func (*LedIndicator) GetId ¶
func (x *LedIndicator) GetId() uint32
func (*LedIndicator) GetState ¶
func (x *LedIndicator) GetState() LedIndicator_State
func (*LedIndicator) ProtoMessage ¶
func (*LedIndicator) ProtoMessage()
func (*LedIndicator) ProtoReflect ¶
func (x *LedIndicator) ProtoReflect() protoreflect.Message
func (*LedIndicator) Reset ¶
func (x *LedIndicator) Reset()
func (*LedIndicator) String ¶
func (x *LedIndicator) String() string
type LedIndicator_Facing ¶
type LedIndicator_Facing int32
const ( LedIndicator_INSIDE LedIndicator_Facing = 0 LedIndicator_OUTSIDE LedIndicator_Facing = 1 )
func (LedIndicator_Facing) Descriptor ¶
func (LedIndicator_Facing) Descriptor() protoreflect.EnumDescriptor
func (LedIndicator_Facing) Enum ¶
func (x LedIndicator_Facing) Enum() *LedIndicator_Facing
func (LedIndicator_Facing) EnumDescriptor
deprecated
func (LedIndicator_Facing) EnumDescriptor() ([]byte, []int)
Deprecated: Use LedIndicator_Facing.Descriptor instead.
func (LedIndicator_Facing) Number ¶
func (x LedIndicator_Facing) Number() protoreflect.EnumNumber
func (LedIndicator_Facing) String ¶
func (x LedIndicator_Facing) String() string
func (LedIndicator_Facing) Type ¶
func (LedIndicator_Facing) Type() protoreflect.EnumType
type LedIndicator_State ¶
type LedIndicator_State int32
const ( LedIndicator_OFF LedIndicator_State = 0 LedIndicator_ON LedIndicator_State = 1 )
func (LedIndicator_State) Descriptor ¶
func (LedIndicator_State) Descriptor() protoreflect.EnumDescriptor
func (LedIndicator_State) Enum ¶
func (x LedIndicator_State) Enum() *LedIndicator_State
func (LedIndicator_State) EnumDescriptor
deprecated
func (LedIndicator_State) EnumDescriptor() ([]byte, []int)
Deprecated: Use LedIndicator_State.Descriptor instead.
func (LedIndicator_State) Number ¶
func (x LedIndicator_State) Number() protoreflect.EnumNumber
func (LedIndicator_State) String ¶
func (x LedIndicator_State) String() string
func (LedIndicator_State) Type ¶
func (LedIndicator_State) 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.
//
// Deprecated: Marked as deprecated in emulator_controller.proto.
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.
//
// Deprecated: Marked as deprecated in emulator_controller.proto.
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
deprecated
func (x *LogMessage) GetNext() int64
Deprecated: Marked as deprecated in emulator_controller.proto.
func (*LogMessage) GetSort ¶
func (x *LogMessage) GetSort() LogMessage_LogType
func (*LogMessage) GetStart
deprecated
func (x *LogMessage) GetStart() int64
Deprecated: Marked as deprecated in emulator_controller.proto.
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 MicrophoneState ¶
type MicrophoneState struct {
// Whether or not host microphone access is enabled
RealAudioEnabled bool `protobuf:"varint,1,opt,name=realAudioEnabled,proto3" json:"realAudioEnabled,omitempty"`
// contains filtered or unexported fields
}
func (*MicrophoneState) Descriptor
deprecated
func (*MicrophoneState) Descriptor() ([]byte, []int)
Deprecated: Use MicrophoneState.ProtoReflect.Descriptor instead.
func (*MicrophoneState) GetRealAudioEnabled ¶
func (x *MicrophoneState) GetRealAudioEnabled() bool
func (*MicrophoneState) ProtoMessage ¶
func (*MicrophoneState) ProtoMessage()
func (*MicrophoneState) ProtoReflect ¶
func (x *MicrophoneState) ProtoReflect() protoreflect.Message
func (*MicrophoneState) Reset ¶
func (x *MicrophoneState) Reset()
func (*MicrophoneState) String ¶
func (x *MicrophoneState) String() string
type MouseEvent ¶
type MouseEvent struct {
// The horizontal coordinate. This is the physical location on the
// screen, where 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,
// where 0 indicates the topmost 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 {
// Detailed notification information.
//
// Types that are valid to be assigned to Type:
//
// *Notification_CameraNotification
// *Notification_DisplayConfigurationsChangedNotification
// *Notification_Posture
// *Notification_Booted
// *Notification_Brightness
// *Notification_TextViewFocus
// *Notification_XrOptions
// *Notification_MicrophoneState
// *Notification_LedIndicator
// *Notification_DisplayPowerMode
Type isNotification_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}
func (*Notification) Descriptor
deprecated
func (*Notification) Descriptor() ([]byte, []int)
Deprecated: Use Notification.ProtoReflect.Descriptor instead.
func (*Notification) GetBooted ¶
func (x *Notification) GetBooted() *BootCompletedNotification
func (*Notification) GetBrightness ¶
func (x *Notification) GetBrightness() *BrightnessValue
func (*Notification) GetCameraNotification ¶
func (x *Notification) GetCameraNotification() *CameraNotification
func (*Notification) GetDisplayConfigurationsChangedNotification ¶
func (x *Notification) GetDisplayConfigurationsChangedNotification() *DisplayConfigurationsChangedNotification
func (*Notification) GetDisplayPowerMode ¶
func (x *Notification) GetDisplayPowerMode() *DisplayPowerModeNotification
func (*Notification) GetLedIndicator ¶
func (x *Notification) GetLedIndicator() *LedIndicator
func (*Notification) GetMicrophoneState ¶
func (x *Notification) GetMicrophoneState() *MicrophoneState
func (*Notification) GetPosture ¶
func (x *Notification) GetPosture() *Posture
func (*Notification) GetTextViewFocus ¶
func (x *Notification) GetTextViewFocus() *TextViewFocus
func (*Notification) GetType ¶
func (x *Notification) GetType() isNotification_Type
func (*Notification) GetXrOptions ¶
func (x *Notification) GetXrOptions() *XrOptions
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_Booted ¶
type Notification_Booted struct {
Booted *BootCompletedNotification `protobuf:"bytes,5,opt,name=booted,proto3,oneof"`
}
type Notification_Brightness ¶
type Notification_Brightness struct {
Brightness *BrightnessValue `protobuf:"bytes,6,opt,name=brightness,proto3,oneof"`
}
type Notification_CameraNotification ¶
type Notification_CameraNotification struct {
CameraNotification *CameraNotification `protobuf:"bytes,2,opt,name=cameraNotification,proto3,oneof"`
}
type Notification_DisplayConfigurationsChangedNotification ¶
type Notification_DisplayConfigurationsChangedNotification struct {
DisplayConfigurationsChangedNotification *DisplayConfigurationsChangedNotification `protobuf:"bytes,3,opt,name=displayConfigurationsChangedNotification,proto3,oneof"`
}
type Notification_DisplayPowerMode ¶
type Notification_DisplayPowerMode struct {
// This notification is sent when a display's power mode changes.
DisplayPowerMode *DisplayPowerModeNotification `protobuf:"bytes,11,opt,name=displayPowerMode,proto3,oneof"`
}
type Notification_LedIndicator ¶
type Notification_LedIndicator struct {
// This notification is sent when AI glasses LED light status change.
LedIndicator *LedIndicator `protobuf:"bytes,10,opt,name=ledIndicator,proto3,oneof"`
}
type Notification_MicrophoneState ¶
type Notification_MicrophoneState struct {
MicrophoneState *MicrophoneState `protobuf:"bytes,9,opt,name=microphoneState,proto3,oneof"`
}
type Notification_Posture ¶
type Notification_Posture struct {
Posture *Posture `protobuf:"bytes,4,opt,name=posture,proto3,oneof"`
}
type Notification_TextViewFocus ¶
type Notification_TextViewFocus struct {
// This notification is sent when a TextView receives or loses focus.
// It is also sent immediately in response to the streamNotification
// call.
TextViewFocus *TextViewFocus `protobuf:"bytes,7,opt,name=textViewFocus,proto3,oneof"`
}
type Notification_XrOptions ¶
type Notification_XrOptions struct {
// This notification is sent when XrOptions change.
// It is also sent immediately in response to the streamNotification
// call.
XrOptions *XrOptions `protobuf:"bytes,8,opt,name=xrOptions,proto3,oneof"`
}
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 Pen ¶
type Pen struct {
Location *Touch `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
// True if the button is pressed or not
ButtonPressed bool `protobuf:"varint,2,opt,name=button_pressed,json=buttonPressed,proto3" json:"button_pressed,omitempty"`
// True if it is a rubber pointer.
RubberPointer bool `protobuf:"varint,3,opt,name=rubber_pointer,json=rubberPointer,proto3" json:"rubber_pointer,omitempty"`
// contains filtered or unexported fields
}
A Pen is similar to a touch, with the addition of button and rubber information.
func (*Pen) Descriptor
deprecated
func (*Pen) GetButtonPressed ¶
func (*Pen) GetLocation ¶
func (*Pen) GetRubberPointer ¶
func (*Pen) ProtoMessage ¶
func (*Pen) ProtoMessage()
func (*Pen) ProtoReflect ¶
func (x *Pen) ProtoReflect() protoreflect.Message
type PenEvent ¶
type PenEvent struct {
// The list of Pen objects, note that these do not need to be unique
Events []*Pen `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// The display device where the pen event occurred.
// Omitting or using the value 0 indicates the main display.
Display int32 `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"`
// contains filtered or unexported fields
}
func (*PenEvent) Descriptor
deprecated
func (*PenEvent) GetDisplay ¶
func (*PenEvent) ProtoMessage ¶
func (*PenEvent) ProtoMessage()
func (*PenEvent) ProtoReflect ¶
func (x *PenEvent) ProtoReflect() protoreflect.Message
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 PhoneNumber ¶
type PhoneNumber struct {
//
// The phone number should be a valid GSM-formatted number as specified by
// 3GPP 23.040 Sec 9.1.2.5.
//
// For example: +3106225412 or (650) 555-1221
Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
// contains filtered or unexported fields
}
func (*PhoneNumber) Descriptor
deprecated
func (*PhoneNumber) Descriptor() ([]byte, []int)
Deprecated: Use PhoneNumber.ProtoReflect.Descriptor instead.
func (*PhoneNumber) GetNumber ¶
func (x *PhoneNumber) GetNumber() string
func (*PhoneNumber) ProtoMessage ¶
func (*PhoneNumber) ProtoMessage()
func (*PhoneNumber) ProtoReflect ¶
func (x *PhoneNumber) ProtoReflect() protoreflect.Message
func (*PhoneNumber) Reset ¶
func (x *PhoneNumber) Reset()
func (*PhoneNumber) String ¶
func (x *PhoneNumber) String() string
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.
Value *ParameterValue `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
// [Input Only] How to transition to the target value.
Interpolation PhysicalModelValue_Interpolation `` /* 144-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*PhysicalModelValue) Descriptor
deprecated
func (*PhysicalModelValue) Descriptor() ([]byte, []int)
Deprecated: Use PhysicalModelValue.ProtoReflect.Descriptor instead.
func (*PhysicalModelValue) GetInterpolation ¶
func (x *PhysicalModelValue) GetInterpolation() PhysicalModelValue_Interpolation
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_Interpolation ¶
type PhysicalModelValue_Interpolation int32
const ( PhysicalModelValue_SMOOTH PhysicalModelValue_Interpolation = 0 PhysicalModelValue_STEP PhysicalModelValue_Interpolation = 1 )
func (PhysicalModelValue_Interpolation) Descriptor ¶
func (PhysicalModelValue_Interpolation) Descriptor() protoreflect.EnumDescriptor
func (PhysicalModelValue_Interpolation) Enum ¶
func (x PhysicalModelValue_Interpolation) Enum() *PhysicalModelValue_Interpolation
func (PhysicalModelValue_Interpolation) EnumDescriptor
deprecated
func (PhysicalModelValue_Interpolation) EnumDescriptor() ([]byte, []int)
Deprecated: Use PhysicalModelValue_Interpolation.Descriptor instead.
func (PhysicalModelValue_Interpolation) Number ¶
func (x PhysicalModelValue_Interpolation) Number() protoreflect.EnumNumber
func (PhysicalModelValue_Interpolation) String ¶
func (x PhysicalModelValue_Interpolation) String() string
func (PhysicalModelValue_Interpolation) Type ¶
func (PhysicalModelValue_Interpolation) Type() protoreflect.EnumType
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 // Describing the device posture; the value should be an enum defined // in Posture::PostureValue. PhysicalModelValue_POSTURE PhysicalModelValue_PhysicalType = 16 // Heart rate in bpm PhysicalModelValue_HEART_RATE PhysicalModelValue_PhysicalType = 17 // Ambient RGBC light intensity. Values are in order (Red, Green, Blue, // Clear). PhysicalModelValue_RGBC_LIGHT PhysicalModelValue_PhysicalType = 18 // Wrist tilt gesture (1 = gaze, 0 = ungaze) PhysicalModelValue_WRIST_TILT PhysicalModelValue_PhysicalType = 19 )
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 Posture ¶
type Posture struct {
Value Posture_PostureValue `protobuf:"varint,3,opt,name=value,proto3,enum=android.emulation.control.Posture_PostureValue" json:"value,omitempty"`
// contains filtered or unexported fields
}
Must follow the definition in "external/qemu/android/hw-sensors.h"
func (*Posture) Descriptor
deprecated
func (*Posture) GetValue ¶
func (x *Posture) GetValue() Posture_PostureValue
func (*Posture) ProtoMessage ¶
func (*Posture) ProtoMessage()
func (*Posture) ProtoReflect ¶
func (x *Posture) ProtoReflect() protoreflect.Message
type Posture_PostureValue ¶
type Posture_PostureValue int32
const ( Posture_POSTURE_UNKNOWN Posture_PostureValue = 0 Posture_POSTURE_CLOSED Posture_PostureValue = 1 Posture_POSTURE_HALF_OPENED Posture_PostureValue = 2 Posture_POSTURE_OPENED Posture_PostureValue = 3 Posture_POSTURE_FLIPPED Posture_PostureValue = 4 Posture_POSTURE_TENT Posture_PostureValue = 5 Posture_POSTURE_MAX Posture_PostureValue = 6 )
func (Posture_PostureValue) Descriptor ¶
func (Posture_PostureValue) Descriptor() protoreflect.EnumDescriptor
func (Posture_PostureValue) Enum ¶
func (x Posture_PostureValue) Enum() *Posture_PostureValue
func (Posture_PostureValue) EnumDescriptor
deprecated
func (Posture_PostureValue) EnumDescriptor() ([]byte, []int)
Deprecated: Use Posture_PostureValue.Descriptor instead.
func (Posture_PostureValue) Number ¶
func (x Posture_PostureValue) Number() protoreflect.EnumNumber
func (Posture_PostureValue) String ¶
func (x Posture_PostureValue) String() string
func (Posture_PostureValue) Type ¶
func (Posture_PostureValue) 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 {
// Components of the rotation vector in radians.
// Rotation angles are relative to the current orientation.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"` // Angle of rotation around the x axis in right-handed direction.
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"` // Angle of rotation around the y axis in right-handed direction.
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"` // Angle of rotation around the z axis in right-handed direction.
// 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.
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 // Measures the heart rate in bpm. SensorValue_HEART_RATE SensorValue_SensorType = 14 // Measures the ambient RGBC light intensity. // Values are in order (Red, Green, Blue, Clear). SensorValue_RGBC_LIGHT SensorValue_SensorType = 15 // WIRST_TILT (16) is skipped; clients should use get/setPhysicalModel() // instead. // Measures acceleration force and provides bias data. SensorValue_ACCELERATION_UNCALIBRATED SensorValue_SensorType = 17 // A sensor of this type measures the direction in which the device is // pointing relative to true north in degrees. SensorValue_HEADING SensorValue_SensorType = 18 )
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 TextViewFocus ¶
type TextViewFocus struct {
// Indicates whether a text view currently has focus.
TextViewHasFocus bool `protobuf:"varint,1,opt,name=textViewHasFocus,proto3" json:"textViewHasFocus,omitempty"`
// If a text view has focus, the display where the text view is located.
// Otherwise, unset.
Display int32 `protobuf:"varint,2,opt,name=display,proto3" json:"display,omitempty"`
// contains filtered or unexported fields
}
func (*TextViewFocus) Descriptor
deprecated
func (*TextViewFocus) Descriptor() ([]byte, []int)
Deprecated: Use TextViewFocus.ProtoReflect.Descriptor instead.
func (*TextViewFocus) GetDisplay ¶
func (x *TextViewFocus) GetDisplay() int32
func (*TextViewFocus) GetTextViewHasFocus ¶
func (x *TextViewFocus) GetTextViewHasFocus() bool
func (*TextViewFocus) ProtoMessage ¶
func (*TextViewFocus) ProtoMessage()
func (*TextViewFocus) ProtoReflect ¶
func (x *TextViewFocus) ProtoReflect() protoreflect.Message
func (*TextViewFocus) Reset ¶
func (x *TextViewFocus) Reset()
func (*TextViewFocus) String ¶
func (x *TextViewFocus) 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 */
// The orientation of the contact, if any.
Orientation int32 `protobuf:"varint,8,opt,name=orientation,proto3" json:"orientation,omitempty"`
// contains filtered or unexported fields
}
The Touch interface represents a single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.
func (*Touch) Descriptor
deprecated
func (*Touch) GetExpiration ¶
func (x *Touch) GetExpiration() Touch_EventExpiration
func (*Touch) GetIdentifier ¶
func (*Touch) GetOrientation ¶
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.
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 TouchpadEvent ¶
type TouchpadEvent 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 touchpad device where the touch event occurred.
// Omitting or using the value 0 indicates the main touchpad.
Touchpad int32 `protobuf:"varint,2,opt,name=touchpad,proto3" json:"touchpad,omitempty"`
// contains filtered or unexported fields
}
A TouchpadEvent contains a list of Touch objects that are in contact with the touchpad surface.
Touchpad events are delivered in sequence as specified in the touchList.
TouchpadEvents are delivered to the emulated devices using ["Protocol B"](https://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt)
func (*TouchpadEvent) Descriptor
deprecated
func (*TouchpadEvent) Descriptor() ([]byte, []int)
Deprecated: Use TouchpadEvent.ProtoReflect.Descriptor instead.
func (*TouchpadEvent) GetTouches ¶
func (x *TouchpadEvent) GetTouches() []*Touch
func (*TouchpadEvent) GetTouchpad ¶
func (x *TouchpadEvent) GetTouchpad() int32
func (*TouchpadEvent) ProtoMessage ¶
func (*TouchpadEvent) ProtoMessage()
func (*TouchpadEvent) ProtoReflect ¶
func (x *TouchpadEvent) ProtoReflect() protoreflect.Message
func (*TouchpadEvent) Reset ¶
func (x *TouchpadEvent) Reset()
func (*TouchpadEvent) String ¶
func (x *TouchpadEvent) String() string
type Translation ¶
type Translation struct {
// Components of the translation vector in meters.
DeltaX float32 `protobuf:"fixed32,1,opt,name=delta_x,json=deltaX,proto3" json:"delta_x,omitempty"`
DeltaY float32 `protobuf:"fixed32,2,opt,name=delta_y,json=deltaY,proto3" json:"delta_y,omitempty"`
DeltaZ float32 `protobuf:"fixed32,3,opt,name=delta_z,json=deltaZ,proto3" json:"delta_z,omitempty"`
// contains filtered or unexported fields
}
func (*Translation) Descriptor
deprecated
func (*Translation) Descriptor() ([]byte, []int)
Deprecated: Use Translation.ProtoReflect.Descriptor instead.
func (*Translation) GetDeltaX ¶
func (x *Translation) GetDeltaX() float32
func (*Translation) GetDeltaY ¶
func (x *Translation) GetDeltaY() float32
func (*Translation) GetDeltaZ ¶
func (x *Translation) GetDeltaZ() float32
func (*Translation) ProtoMessage ¶
func (*Translation) ProtoMessage()
func (*Translation) ProtoReflect ¶
func (x *Translation) ProtoReflect() protoreflect.Message
func (*Translation) Reset ¶
func (x *Translation) Reset()
func (*Translation) String ¶
func (x *Translation) String() string
type UnimplementedEmulatorControllerServer ¶
type UnimplementedEmulatorControllerServer struct{}
UnimplementedEmulatorControllerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedEmulatorControllerServer) GetBattery ¶
func (UnimplementedEmulatorControllerServer) GetBattery(context.Context, *emptypb.Empty) (*BatteryState, error)
func (UnimplementedEmulatorControllerServer) GetBrightness ¶
func (UnimplementedEmulatorControllerServer) GetBrightness(context.Context, *BrightnessValue) (*BrightnessValue, error)
func (UnimplementedEmulatorControllerServer) GetClipboard ¶
func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations ¶
func (UnimplementedEmulatorControllerServer) GetDisplayConfigurations(context.Context, *emptypb.Empty) (*DisplayConfigurations, error)
func (UnimplementedEmulatorControllerServer) GetDisplayMode ¶
func (UnimplementedEmulatorControllerServer) GetDisplayMode(context.Context, *emptypb.Empty) (*DisplayMode, error)
func (UnimplementedEmulatorControllerServer) GetEnvironment ¶
func (UnimplementedEmulatorControllerServer) GetEnvironment(context.Context, *emptypb.Empty) (*Environment, error)
func (UnimplementedEmulatorControllerServer) GetHostCameras ¶
func (UnimplementedEmulatorControllerServer) GetHostCameras(context.Context, *emptypb.Empty) (*CameraList, error)
func (UnimplementedEmulatorControllerServer) GetLogcat ¶
func (UnimplementedEmulatorControllerServer) GetLogcat(context.Context, *LogMessage) (*LogMessage, error)
func (UnimplementedEmulatorControllerServer) GetMicrophoneState ¶
func (UnimplementedEmulatorControllerServer) GetMicrophoneState(context.Context, *emptypb.Empty) (*MicrophoneState, 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) GetXrOptions ¶
func (UnimplementedEmulatorControllerServer) InjectAudio ¶
func (UnimplementedEmulatorControllerServer) InjectAudio(grpc.ClientStreamingServer[AudioPacket, emptypb.Empty]) error
func (UnimplementedEmulatorControllerServer) InjectWheel ¶
func (UnimplementedEmulatorControllerServer) InjectWheel(grpc.ClientStreamingServer[WheelEvent, emptypb.Empty]) 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) SetBrightness ¶
func (UnimplementedEmulatorControllerServer) SetBrightness(context.Context, *BrightnessValue) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetClipboard ¶
func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations ¶
func (UnimplementedEmulatorControllerServer) SetDisplayConfigurations(context.Context, *DisplayConfigurations) (*DisplayConfigurations, error)
func (UnimplementedEmulatorControllerServer) SetDisplayMode ¶
func (UnimplementedEmulatorControllerServer) SetDisplayMode(context.Context, *DisplayMode) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetEnvironment ¶
func (UnimplementedEmulatorControllerServer) SetEnvironment(context.Context, *Environment) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetMicrophoneState ¶
func (UnimplementedEmulatorControllerServer) SetMicrophoneState(context.Context, *MicrophoneState) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetPhoneNumber ¶
func (UnimplementedEmulatorControllerServer) SetPhoneNumber(context.Context, *PhoneNumber) (*PhoneResponse, error)
func (UnimplementedEmulatorControllerServer) SetPhysicalModel ¶
func (UnimplementedEmulatorControllerServer) SetPhysicalModel(context.Context, *PhysicalModelValue) (*emptypb.Empty, error)
func (UnimplementedEmulatorControllerServer) SetPosture ¶
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) SetXrOptions ¶
func (UnimplementedEmulatorControllerServer) StreamAudio ¶
func (UnimplementedEmulatorControllerServer) StreamAudio(*AudioFormat, grpc.ServerStreamingServer[AudioPacket]) error
func (UnimplementedEmulatorControllerServer) StreamClipboard ¶
func (UnimplementedEmulatorControllerServer) StreamClipboard(*emptypb.Empty, grpc.ServerStreamingServer[ClipData]) error
func (UnimplementedEmulatorControllerServer) StreamInputEvent ¶
func (UnimplementedEmulatorControllerServer) StreamInputEvent(grpc.ClientStreamingServer[InputEvent, emptypb.Empty]) error
func (UnimplementedEmulatorControllerServer) StreamLogcat ¶
func (UnimplementedEmulatorControllerServer) StreamLogcat(*LogMessage, grpc.ServerStreamingServer[LogMessage]) error
func (UnimplementedEmulatorControllerServer) StreamNotification ¶
func (UnimplementedEmulatorControllerServer) StreamNotification(*emptypb.Empty, grpc.ServerStreamingServer[Notification]) error
func (UnimplementedEmulatorControllerServer) StreamPhysicalModel ¶
func (UnimplementedEmulatorControllerServer) StreamPhysicalModel(*PhysicalModelValue, grpc.ServerStreamingServer[PhysicalModelValue]) error
func (UnimplementedEmulatorControllerServer) StreamScreenshot ¶
func (UnimplementedEmulatorControllerServer) StreamScreenshot(*ImageFormat, grpc.ServerStreamingServer[Image]) error
func (UnimplementedEmulatorControllerServer) StreamSensor ¶
func (UnimplementedEmulatorControllerServer) StreamSensor(*SensorValue, grpc.ServerStreamingServer[SensorValue]) 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 {
// Components of the target velocity vector in meters per second.
// Transition to these values is implementation dependent, and may be
// smoothed over time.
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
// 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) // // Deprecated: Marked as deprecated in emulator_controller.proto. 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_AEHD 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
}
Represents the execution state of the virtual machine, used for both querying the current status and requesting state transitions.
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 ( // Purely observable state. The virtual machine is in an unmapped or transient state. // Cannot be set directly. VmRunState_UNKNOWN VmRunState_RunState = 0 // Active execution state. Setting this state resumes the virtual machine. VmRunState_RUNNING VmRunState_RunState = 1 // Purely observable state. The virtual machine is paused while restoring its state // (e.g., loading a snapshot). Cannot be set directly. VmRunState_RESTORE_VM VmRunState_RunState = 2 // Suspended execution state. Setting this state pauses the virtual machine and halts // CPU cycles. VmRunState_PAUSED VmRunState_RunState = 3 // Purely observable state. The virtual machine is paused while saving its state // (e.g., taking a snapshot). Cannot be set directly. VmRunState_SAVE_VM VmRunState_RunState = 4 // Graceful shutdown state. Setting this state initiates a clean shutdown of the // virtual machine. VmRunState_SHUTDOWN VmRunState_RunState = 5 // Write-only command. Immediately terminates the emulator process without cleanup. // Can cause data corruption and must be used with caution. VmRunState_TERMINATE VmRunState_RunState = 7 // Write-only command. Triggers a warm reset of the virtual machine. VmRunState_RESET VmRunState_RunState = 9 // Purely observable state. The virtual machine has stopped execution due to a guest // panic, internal error, or I/O failure. Cannot be set directly. VmRunState_INTERNAL_ERROR VmRunState_RunState = 10 // Write-only command. Triggers a warm reset of the virtual machine (equivalent to `RESET`). VmRunState_RESTART VmRunState_RunState = 11 // Write-only command. Starts or resumes execution of the virtual machine (equivalent // to `RUNNING`). VmRunState_START VmRunState_RunState = 12 // Write-only command. Stops execution of the virtual machine (equivalent to `PAUSED`). VmRunState_STOP VmRunState_RunState = 13 )
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
type WheelEvent ¶
type WheelEvent struct {
// The value indicating how much the mouse wheel is rotated. Scaled so that
// 120 equals to 1 wheel click. (120 is chosen as a multiplier often used to
// represent wheel movements less than 1 wheel click. e.g.
// https://doc.qt.io/qt-5/qwheelevent.html#angleDelta) Positive delta value
// is assigned to dx when the top of wheel is moved to left. Similarly
// positive delta value is assigned to dy when the top of wheel is moved
// away from the user.
Dx int32 `protobuf:"varint,1,opt,name=dx,proto3" json:"dx,omitempty"`
Dy int32 `protobuf:"varint,2,opt,name=dy,proto3" json:"dy,omitempty"`
// The display device where the mouse event occurred.
// Omitting or using the value 0 indicates the main display.
Display int32 `protobuf:"varint,3,opt,name=display,proto3" json:"display,omitempty"`
// contains filtered or unexported fields
}
func (*WheelEvent) Descriptor
deprecated
func (*WheelEvent) Descriptor() ([]byte, []int)
Deprecated: Use WheelEvent.ProtoReflect.Descriptor instead.
func (*WheelEvent) GetDisplay ¶
func (x *WheelEvent) GetDisplay() int32
func (*WheelEvent) GetDx ¶
func (x *WheelEvent) GetDx() int32
func (*WheelEvent) GetDy ¶
func (x *WheelEvent) GetDy() int32
func (*WheelEvent) ProtoMessage ¶
func (*WheelEvent) ProtoMessage()
func (*WheelEvent) ProtoReflect ¶
func (x *WheelEvent) ProtoReflect() protoreflect.Message
func (*WheelEvent) Reset ¶
func (x *WheelEvent) Reset()
func (*WheelEvent) String ¶
func (x *WheelEvent) String() string
type XrCommand ¶
type XrCommand struct {
Action XrCommand_Action `protobuf:"varint,1,opt,name=action,proto3,enum=android.emulation.control.XrCommand_Action" json:"action,omitempty"`
// contains filtered or unexported fields
}
func (*XrCommand) Descriptor
deprecated
func (*XrCommand) GetAction ¶
func (x *XrCommand) GetAction() XrCommand_Action
func (*XrCommand) ProtoMessage ¶
func (*XrCommand) ProtoMessage()
func (*XrCommand) ProtoReflect ¶
func (x *XrCommand) ProtoReflect() protoreflect.Message
type XrCommand_Action ¶
type XrCommand_Action int32
const ( // Recenter the viewport position and rotation. XrCommand_RECENTER XrCommand_Action = 0 )
func (XrCommand_Action) Descriptor ¶
func (XrCommand_Action) Descriptor() protoreflect.EnumDescriptor
func (XrCommand_Action) Enum ¶
func (x XrCommand_Action) Enum() *XrCommand_Action
func (XrCommand_Action) EnumDescriptor
deprecated
func (XrCommand_Action) EnumDescriptor() ([]byte, []int)
Deprecated: Use XrCommand_Action.Descriptor instead.
func (XrCommand_Action) Number ¶
func (x XrCommand_Action) Number() protoreflect.EnumNumber
func (XrCommand_Action) String ¶
func (x XrCommand_Action) String() string
func (XrCommand_Action) Type ¶
func (XrCommand_Action) Type() protoreflect.EnumType
type XrOptions ¶
type XrOptions struct {
// The currently active artificial surrounding environment (a.k.a.
// passthrough environment).
Environment XrOptions_Environment `` /* 129-byte string literal not displayed */
// A value of 0.0 means that the real or artificial surrounding environment
// (a.k.a. passthrough environment) is not visible. A value of 1.0 means
// that the passthrough environment is fully visible. Any value outside of
// the range [0.0-1.0] is ignored and leaves the state of passthrough
// unchanged. For simplicity of the implementation, this number may be
// rounded to an integer before applying.
PassthroughCoefficient float32 `` /* 129-byte string literal not displayed */
DimmingValue float32 `protobuf:"fixed32,4,opt,name=dimming_value,json=dimmingValue,proto3" json:"dimming_value,omitempty"`
// contains filtered or unexported fields
}
func (*XrOptions) Descriptor
deprecated
func (*XrOptions) GetDimmingValue ¶
func (*XrOptions) GetEnvironment ¶
func (x *XrOptions) GetEnvironment() XrOptions_Environment
func (*XrOptions) GetPassthroughCoefficient ¶
func (*XrOptions) ProtoMessage ¶
func (*XrOptions) ProtoMessage()
func (*XrOptions) ProtoReflect ¶
func (x *XrOptions) ProtoReflect() protoreflect.Message
type XrOptions_Environment ¶
type XrOptions_Environment int32
const ( XrOptions_LIVING_ROOM_DAY XrOptions_Environment = 0 XrOptions_LIVING_ROOM_NIGHT XrOptions_Environment = 1 // More environments may be added later. )
func (XrOptions_Environment) Descriptor ¶
func (XrOptions_Environment) Descriptor() protoreflect.EnumDescriptor
func (XrOptions_Environment) Enum ¶
func (x XrOptions_Environment) Enum() *XrOptions_Environment
func (XrOptions_Environment) EnumDescriptor
deprecated
func (XrOptions_Environment) EnumDescriptor() ([]byte, []int)
Deprecated: Use XrOptions_Environment.Descriptor instead.
func (XrOptions_Environment) Number ¶
func (x XrOptions_Environment) Number() protoreflect.EnumNumber
func (XrOptions_Environment) String ¶
func (x XrOptions_Environment) String() string
func (XrOptions_Environment) Type ¶
func (XrOptions_Environment) Type() protoreflect.EnumType