input

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionIInputManagerGetVelocityTrackerStrategy              = binder.FirstCallTransaction + 0
	TransactionIInputManagerGetInputDevice                          = binder.FirstCallTransaction + 1
	TransactionIInputManagerGetInputDeviceIds                       = binder.FirstCallTransaction + 2
	TransactionIInputManagerIsInputDeviceEnabled                    = binder.FirstCallTransaction + 3
	TransactionIInputManagerEnableInputDevice                       = binder.FirstCallTransaction + 4
	TransactionIInputManagerDisableInputDevice                      = binder.FirstCallTransaction + 5
	TransactionIInputManagerHasKeys                                 = binder.FirstCallTransaction + 6
	TransactionIInputManagerGetKeyCodeForKeyLocation                = binder.FirstCallTransaction + 7
	TransactionIInputManagerGetKeyCharacterMap                      = binder.FirstCallTransaction + 8
	TransactionIInputManagerGetMousePointerSpeed                    = binder.FirstCallTransaction + 9
	TransactionIInputManagerTryPointerSpeed                         = binder.FirstCallTransaction + 10
	TransactionIInputManagerInjectInputEvent                        = binder.FirstCallTransaction + 11
	TransactionIInputManagerInjectInputEventToTarget                = binder.FirstCallTransaction + 12
	TransactionIInputManagerVerifyInputEvent                        = binder.FirstCallTransaction + 13
	TransactionIInputManagerGetTouchCalibrationForInputDevice       = binder.FirstCallTransaction + 14
	TransactionIInputManagerSetTouchCalibrationForInputDevice       = binder.FirstCallTransaction + 15
	TransactionIInputManagerGetKeyboardLayouts                      = binder.FirstCallTransaction + 16
	TransactionIInputManagerGetKeyboardLayoutsForInputDevice        = binder.FirstCallTransaction + 17
	TransactionIInputManagerGetKeyboardLayout                       = binder.FirstCallTransaction + 18
	TransactionIInputManagerGetCurrentKeyboardLayoutForInputDevice  = binder.FirstCallTransaction + 19
	TransactionIInputManagerSetCurrentKeyboardLayoutForInputDevice  = binder.FirstCallTransaction + 20
	TransactionIInputManagerGetEnabledKeyboardLayoutsForInputDevice = binder.FirstCallTransaction + 21
	TransactionIInputManagerAddKeyboardLayoutForInputDevice         = binder.FirstCallTransaction + 22
	TransactionIInputManagerRemoveKeyboardLayoutForInputDevice      = binder.FirstCallTransaction + 23
	TransactionIInputManagerGetKeyboardLayoutForInputDevice         = binder.FirstCallTransaction + 24
	TransactionIInputManagerSetKeyboardLayoutForInputDevice         = binder.FirstCallTransaction + 25
	TransactionIInputManagerGetKeyboardLayoutListForInputDevice     = binder.FirstCallTransaction + 26
	TransactionIInputManagerRemapModifierKey                        = binder.FirstCallTransaction + 27
	TransactionIInputManagerClearAllModifierKeyRemappings           = binder.FirstCallTransaction + 28
	TransactionIInputManagerGetModifierKeyRemapping                 = binder.FirstCallTransaction + 29
	TransactionIInputManagerRegisterInputDevicesChangedListener     = binder.FirstCallTransaction + 30
	TransactionIInputManagerIsInTabletMode                          = binder.FirstCallTransaction + 31
	TransactionIInputManagerRegisterTabletModeChangedListener       = binder.FirstCallTransaction + 32
	TransactionIInputManagerIsMicMuted                              = binder.FirstCallTransaction + 33
	TransactionIInputManagerVibrate                                 = binder.FirstCallTransaction + 34
	TransactionIInputManagerVibrateCombined                         = binder.FirstCallTransaction + 35
	TransactionIInputManagerCancelVibrate                           = binder.FirstCallTransaction + 36
	TransactionIInputManagerGetVibratorIds                          = binder.FirstCallTransaction + 37
	TransactionIInputManagerIsVibrating                             = binder.FirstCallTransaction + 38
	TransactionIInputManagerRegisterVibratorStateListener           = binder.FirstCallTransaction + 39
	TransactionIInputManagerUnregisterVibratorStateListener         = binder.FirstCallTransaction + 40
	TransactionIInputManagerGetBatteryState                         = binder.FirstCallTransaction + 41
	TransactionIInputManagerSetPointerIconType                      = binder.FirstCallTransaction + 42
	TransactionIInputManagerSetCustomPointerIcon                    = binder.FirstCallTransaction + 43
	TransactionIInputManagerSetPointerIcon                          = binder.FirstCallTransaction + 44
	TransactionIInputManagerRequestPointerCapture                   = binder.FirstCallTransaction + 45
	TransactionIInputManagerMonitorGestureInput                     = binder.FirstCallTransaction + 46
	TransactionIInputManagerAddPortAssociation                      = binder.FirstCallTransaction + 47
	TransactionIInputManagerRemovePortAssociation                   = binder.FirstCallTransaction + 48
	TransactionIInputManagerAddUniqueIdAssociation                  = binder.FirstCallTransaction + 49
	TransactionIInputManagerRemoveUniqueIdAssociation               = binder.FirstCallTransaction + 50
	TransactionIInputManagerGetSensorList                           = binder.FirstCallTransaction + 51
	TransactionIInputManagerRegisterSensorListener                  = binder.FirstCallTransaction + 52
	TransactionIInputManagerUnregisterSensorListener                = binder.FirstCallTransaction + 53
	TransactionIInputManagerEnableSensor                            = binder.FirstCallTransaction + 54
	TransactionIInputManagerDisableSensor                           = binder.FirstCallTransaction + 55
	TransactionIInputManagerFlushSensor                             = binder.FirstCallTransaction + 56
	TransactionIInputManagerGetLights                               = binder.FirstCallTransaction + 57
	TransactionIInputManagerGetLightState                           = binder.FirstCallTransaction + 58
	TransactionIInputManagerSetLightStates                          = binder.FirstCallTransaction + 59
	TransactionIInputManagerOpenLightSession                        = binder.FirstCallTransaction + 60
	TransactionIInputManagerCloseLightSession                       = binder.FirstCallTransaction + 61
	TransactionIInputManagerCancelCurrentTouch                      = binder.FirstCallTransaction + 62
	TransactionIInputManagerRegisterBatteryListener                 = binder.FirstCallTransaction + 63
	TransactionIInputManagerUnregisterBatteryListener               = binder.FirstCallTransaction + 64
	TransactionIInputManagerGetInputDeviceBluetoothAddress          = binder.FirstCallTransaction + 65
	TransactionIInputManagerPilferPointers                          = binder.FirstCallTransaction + 66
	TransactionIInputManagerRegisterKeyboardBacklightListener       = binder.FirstCallTransaction + 67
	TransactionIInputManagerUnregisterKeyboardBacklightListener     = binder.FirstCallTransaction + 68
	TransactionIInputManagerGetHostUsiVersionFromDisplayConfig      = binder.FirstCallTransaction + 69
	TransactionIInputManagerRegisterStickyModifierStateListener     = binder.FirstCallTransaction + 70
	TransactionIInputManagerUnregisterStickyModifierStateListener   = binder.FirstCallTransaction + 71
)
View Source
const (
	MethodIInputManagerGetVelocityTrackerStrategy              = "getVelocityTrackerStrategy"
	MethodIInputManagerGetInputDevice                          = "getInputDevice"
	MethodIInputManagerGetInputDeviceIds                       = "getInputDeviceIds"
	MethodIInputManagerIsInputDeviceEnabled                    = "isInputDeviceEnabled"
	MethodIInputManagerEnableInputDevice                       = "enableInputDevice"
	MethodIInputManagerDisableInputDevice                      = "disableInputDevice"
	MethodIInputManagerHasKeys                                 = "hasKeys"
	MethodIInputManagerGetKeyCodeForKeyLocation                = "getKeyCodeForKeyLocation"
	MethodIInputManagerGetKeyCharacterMap                      = "getKeyCharacterMap"
	MethodIInputManagerGetMousePointerSpeed                    = "getMousePointerSpeed"
	MethodIInputManagerTryPointerSpeed                         = "tryPointerSpeed"
	MethodIInputManagerInjectInputEvent                        = "injectInputEvent"
	MethodIInputManagerInjectInputEventToTarget                = "injectInputEventToTarget"
	MethodIInputManagerVerifyInputEvent                        = "verifyInputEvent"
	MethodIInputManagerGetTouchCalibrationForInputDevice       = "getTouchCalibrationForInputDevice"
	MethodIInputManagerSetTouchCalibrationForInputDevice       = "setTouchCalibrationForInputDevice"
	MethodIInputManagerGetKeyboardLayouts                      = "getKeyboardLayouts"
	MethodIInputManagerGetKeyboardLayoutsForInputDevice        = "getKeyboardLayoutsForInputDevice"
	MethodIInputManagerGetKeyboardLayout                       = "getKeyboardLayout"
	MethodIInputManagerGetCurrentKeyboardLayoutForInputDevice  = "getCurrentKeyboardLayoutForInputDevice"
	MethodIInputManagerSetCurrentKeyboardLayoutForInputDevice  = "setCurrentKeyboardLayoutForInputDevice"
	MethodIInputManagerGetEnabledKeyboardLayoutsForInputDevice = "getEnabledKeyboardLayoutsForInputDevice"
	MethodIInputManagerAddKeyboardLayoutForInputDevice         = "addKeyboardLayoutForInputDevice"
	MethodIInputManagerRemoveKeyboardLayoutForInputDevice      = "removeKeyboardLayoutForInputDevice"
	MethodIInputManagerGetKeyboardLayoutForInputDevice         = "getKeyboardLayoutForInputDevice"
	MethodIInputManagerSetKeyboardLayoutForInputDevice         = "setKeyboardLayoutForInputDevice"
	MethodIInputManagerGetKeyboardLayoutListForInputDevice     = "getKeyboardLayoutListForInputDevice"
	MethodIInputManagerRemapModifierKey                        = "remapModifierKey"
	MethodIInputManagerClearAllModifierKeyRemappings           = "clearAllModifierKeyRemappings"
	MethodIInputManagerGetModifierKeyRemapping                 = "getModifierKeyRemapping"
	MethodIInputManagerRegisterInputDevicesChangedListener     = "registerInputDevicesChangedListener"
	MethodIInputManagerIsInTabletMode                          = "isInTabletMode"
	MethodIInputManagerRegisterTabletModeChangedListener       = "registerTabletModeChangedListener"
	MethodIInputManagerIsMicMuted                              = "isMicMuted"
	MethodIInputManagerVibrate                                 = "vibrate"
	MethodIInputManagerVibrateCombined                         = "vibrateCombined"
	MethodIInputManagerCancelVibrate                           = "cancelVibrate"
	MethodIInputManagerGetVibratorIds                          = "getVibratorIds"
	MethodIInputManagerIsVibrating                             = "isVibrating"
	MethodIInputManagerRegisterVibratorStateListener           = "registerVibratorStateListener"
	MethodIInputManagerUnregisterVibratorStateListener         = "unregisterVibratorStateListener"
	MethodIInputManagerGetBatteryState                         = "getBatteryState"
	MethodIInputManagerSetPointerIconType                      = "setPointerIconType"
	MethodIInputManagerSetCustomPointerIcon                    = "setCustomPointerIcon"
	MethodIInputManagerSetPointerIcon                          = "setPointerIcon"
	MethodIInputManagerRequestPointerCapture                   = "requestPointerCapture"
	MethodIInputManagerMonitorGestureInput                     = "monitorGestureInput"
	MethodIInputManagerAddPortAssociation                      = "addPortAssociation"
	MethodIInputManagerRemovePortAssociation                   = "removePortAssociation"
	MethodIInputManagerAddUniqueIdAssociation                  = "addUniqueIdAssociation"
	MethodIInputManagerRemoveUniqueIdAssociation               = "removeUniqueIdAssociation"
	MethodIInputManagerGetSensorList                           = "getSensorList"
	MethodIInputManagerRegisterSensorListener                  = "registerSensorListener"
	MethodIInputManagerUnregisterSensorListener                = "unregisterSensorListener"
	MethodIInputManagerEnableSensor                            = "enableSensor"
	MethodIInputManagerDisableSensor                           = "disableSensor"
	MethodIInputManagerFlushSensor                             = "flushSensor"
	MethodIInputManagerGetLights                               = "getLights"
	MethodIInputManagerGetLightState                           = "getLightState"
	MethodIInputManagerSetLightStates                          = "setLightStates"
	MethodIInputManagerOpenLightSession                        = "openLightSession"
	MethodIInputManagerCloseLightSession                       = "closeLightSession"
	MethodIInputManagerCancelCurrentTouch                      = "cancelCurrentTouch"
	MethodIInputManagerRegisterBatteryListener                 = "registerBatteryListener"
	MethodIInputManagerUnregisterBatteryListener               = "unregisterBatteryListener"
	MethodIInputManagerGetInputDeviceBluetoothAddress          = "getInputDeviceBluetoothAddress"
	MethodIInputManagerPilferPointers                          = "pilferPointers"
	MethodIInputManagerRegisterKeyboardBacklightListener       = "registerKeyboardBacklightListener"
	MethodIInputManagerUnregisterKeyboardBacklightListener     = "unregisterKeyboardBacklightListener"
	MethodIInputManagerGetHostUsiVersionFromDisplayConfig      = "getHostUsiVersionFromDisplayConfig"
	MethodIInputManagerRegisterStickyModifierStateListener     = "registerStickyModifierStateListener"
	MethodIInputManagerUnregisterStickyModifierStateListener   = "unregisterStickyModifierStateListener"
)
View Source
const (
	TransactionIInputSensorEventListenerOnInputSensorChanged         = binder.FirstCallTransaction + 0
	TransactionIInputSensorEventListenerOnInputSensorAccuracyChanged = binder.FirstCallTransaction + 1
)
View Source
const (
	MethodIInputSensorEventListenerOnInputSensorChanged         = "onInputSensorChanged"
	MethodIInputSensorEventListenerOnInputSensorAccuracyChanged = "onInputSensorAccuracyChanged"
)
View Source
const DescriptorIInputDeviceBatteryListener = "android.hardware.input.IInputDeviceBatteryListener"
View Source
const DescriptorIInputDevicesChangedListener = "android.hardware.input.IInputDevicesChangedListener"
View Source
const DescriptorIInputManager = "android.hardware.input.IInputManager"
View Source
const DescriptorIInputSensorEventListener = "android.hardware.input.IInputSensorEventListener"
View Source
const DescriptorIKeyboardBacklightListener = "android.hardware.input.IKeyboardBacklightListener"
View Source
const DescriptorIStickyModifierStateListener = "android.hardware.input.IStickyModifierStateListener"
View Source
const DescriptorITabletModeChangedListener = "android.hardware.input.ITabletModeChangedListener"
View Source
const (
	MethodIInputDeviceBatteryListenerOnBatteryStateChanged = "onBatteryStateChanged"
)
View Source
const (
	MethodIInputDevicesChangedListenerOnInputDevicesChanged = "onInputDevicesChanged"
)
View Source
const (
	MethodIKeyboardBacklightListenerOnBrightnessChanged = "onBrightnessChanged"
)
View Source
const (
	MethodIStickyModifierStateListenerOnStickyModifierStateChanged = "onStickyModifierStateChanged"
)
View Source
const (
	MethodITabletModeChangedListenerOnTabletModeChanged = "onTabletModeChanged"
)
View Source
const (
	TransactionIInputDeviceBatteryListenerOnBatteryStateChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIInputDevicesChangedListenerOnInputDevicesChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIKeyboardBacklightListenerOnBrightnessChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionIStickyModifierStateListenerOnStickyModifierStateChanged = binder.FirstCallTransaction + 0
)
View Source
const (
	TransactionITabletModeChangedListenerOnTabletModeChanged = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostUsiVersion

type HostUsiVersion struct {
	MajorVersion int32
	MinorVersion int32
}

func (*HostUsiVersion) MarshalParcel

func (s *HostUsiVersion) MarshalParcel(
	p *parcel.Parcel,
) error

func (*HostUsiVersion) UnmarshalParcel

func (s *HostUsiVersion) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IInputDeviceBatteryListener

type IInputDeviceBatteryListener interface {
	AsBinder() binder.IBinder
	OnBatteryStateChanged(ctx context.Context, batteryState IInputDeviceBatteryState) error
}

func NewInputDeviceBatteryListenerStub

func NewInputDeviceBatteryListenerStub(
	impl IInputDeviceBatteryListenerServer,
) IInputDeviceBatteryListener

NewInputDeviceBatteryListenerStub creates a server-side IInputDeviceBatteryListener wrapping the given server implementation. The returned value satisfies IInputDeviceBatteryListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IInputDeviceBatteryListenerServer

type IInputDeviceBatteryListenerServer interface {
	OnBatteryStateChanged(ctx context.Context, batteryState IInputDeviceBatteryState) error
}

IInputDeviceBatteryListenerServer is the server-side interface that user implementations provide to NewInputDeviceBatteryListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IInputDeviceBatteryState

type IInputDeviceBatteryState struct {
	DeviceId   int32
	UpdateTime int64
	IsPresent  bool
	Status     int32
	Capacity   float32
}

func (*IInputDeviceBatteryState) MarshalParcel

func (s *IInputDeviceBatteryState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*IInputDeviceBatteryState) UnmarshalParcel

func (s *IInputDeviceBatteryState) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IInputDevicesChangedListener

type IInputDevicesChangedListener interface {
	AsBinder() binder.IBinder
	OnInputDevicesChanged(ctx context.Context, deviceIdAndGeneration []int32) error
}

func NewInputDevicesChangedListenerStub

func NewInputDevicesChangedListenerStub(
	impl IInputDevicesChangedListenerServer,
) IInputDevicesChangedListener

NewInputDevicesChangedListenerStub creates a server-side IInputDevicesChangedListener wrapping the given server implementation. The returned value satisfies IInputDevicesChangedListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IInputDevicesChangedListenerServer

type IInputDevicesChangedListenerServer interface {
	OnInputDevicesChanged(ctx context.Context, deviceIdAndGeneration []int32) error
}

IInputDevicesChangedListenerServer is the server-side interface that user implementations provide to NewInputDevicesChangedListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IInputManager

type IInputManager interface {
	AsBinder() binder.IBinder
	GetVelocityTrackerStrategy(ctx context.Context) (string, error)
	GetInputDevice(ctx context.Context, deviceId int32) (view.InputDevice, error)
	GetInputDeviceIds(ctx context.Context) ([]int32, error)
	IsInputDeviceEnabled(ctx context.Context, deviceId int32) (bool, error)
	EnableInputDevice(ctx context.Context, deviceId int32) error
	DisableInputDevice(ctx context.Context, deviceId int32) error
	HasKeys(ctx context.Context, deviceId int32, sourceMask int32, keyCodes []int32, keyExists []bool) (bool, error)
	GetKeyCodeForKeyLocation(ctx context.Context, deviceId int32, locationKeyCode int32) (int32, error)
	GetKeyCharacterMap(ctx context.Context, layoutDescriptor string) (view.KeyCharacterMap, error)
	GetMousePointerSpeed(ctx context.Context) (int32, error)
	TryPointerSpeed(ctx context.Context, speed int32) error
	InjectInputEvent(ctx context.Context, ev view.InputEvent, mode int32) (bool, error)
	InjectInputEventToTarget(ctx context.Context, ev view.InputEvent, mode int32, targetUid int32) (bool, error)
	VerifyInputEvent(ctx context.Context, ev view.InputEvent) (view.VerifiedInputEvent, error)
	GetTouchCalibrationForInputDevice(ctx context.Context, inputDeviceDescriptor string, rotation int32) (TouchCalibration, error)
	SetTouchCalibrationForInputDevice(ctx context.Context, inputDeviceDescriptor string, rotation int32, calibration TouchCalibration) error
	GetKeyboardLayouts(ctx context.Context) ([]KeyboardLayout, error)
	GetKeyboardLayoutsForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) ([]KeyboardLayout, error)
	GetKeyboardLayout(ctx context.Context, keyboardLayoutDescriptor string) (KeyboardLayout, error)
	GetCurrentKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) (string, error)
	SetCurrentKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	GetEnabledKeyboardLayoutsForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) ([]string, error)
	AddKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	RemoveKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	GetKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype) (KeyboardLayoutSelectionResult, error)
	SetKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype, keyboardLayoutDescriptor string) error
	GetKeyboardLayoutListForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype) ([]KeyboardLayout, error)
	RemapModifierKey(ctx context.Context, fromKey int32, toKey int32) error
	ClearAllModifierKeyRemappings(ctx context.Context) error
	GetModifierKeyRemapping(ctx context.Context) (map[any]any, error)
	RegisterInputDevicesChangedListener(ctx context.Context, listener IInputDevicesChangedListener) error
	IsInTabletMode(ctx context.Context) (int32, error)
	RegisterTabletModeChangedListener(ctx context.Context, listener ITabletModeChangedListener) error
	IsMicMuted(ctx context.Context) (int32, error)
	Vibrate(ctx context.Context, deviceId int32, effect os.VibrationEffect, token binder.IBinder) error
	VibrateCombined(ctx context.Context, deviceId int32, vibration os.CombinedVibration, token binder.IBinder) error
	CancelVibrate(ctx context.Context, deviceId int32, token binder.IBinder) error
	GetVibratorIds(ctx context.Context, deviceId int32) ([]int32, error)
	IsVibrating(ctx context.Context, deviceId int32) (bool, error)
	RegisterVibratorStateListener(ctx context.Context, deviceId int32, listener os.IVibratorStateListener) (bool, error)
	UnregisterVibratorStateListener(ctx context.Context, deviceId int32, listener os.IVibratorStateListener) (bool, error)
	GetBatteryState(ctx context.Context, deviceId int32) (IInputDeviceBatteryState, error)
	SetPointerIconType(ctx context.Context, typeId int32) error
	SetCustomPointerIcon(ctx context.Context, icon view.PointerIcon) error
	SetPointerIcon(ctx context.Context, icon view.PointerIcon, displayId int32, deviceId int32, pointerId int32, inputToken binder.IBinder) (bool, error)
	RequestPointerCapture(ctx context.Context, inputChannelToken binder.IBinder, enabled bool) error
	MonitorGestureInput(ctx context.Context, token binder.IBinder, name string, displayId int32) (view.InputMonitor, error)
	AddPortAssociation(ctx context.Context, inputPort string, displayPort int32) error
	RemovePortAssociation(ctx context.Context, inputPort string) error
	AddUniqueIdAssociation(ctx context.Context, inputPort string, displayUniqueId string) error
	RemoveUniqueIdAssociation(ctx context.Context, inputPort string) error
	GetSensorList(ctx context.Context, deviceId int32) ([]InputSensorInfo, error)
	RegisterSensorListener(ctx context.Context, listener IInputSensorEventListener) (bool, error)
	UnregisterSensorListener(ctx context.Context, listener IInputSensorEventListener) error
	EnableSensor(ctx context.Context, deviceId int32, sensorType int32, samplingPeriodUs int32, maxBatchReportLatencyUs int32) (bool, error)
	DisableSensor(ctx context.Context, deviceId int32, sensorType int32) error
	FlushSensor(ctx context.Context, deviceId int32, sensorType int32) (bool, error)
	GetLights(ctx context.Context, deviceId int32) ([]lights.Light, error)
	GetLightState(ctx context.Context, deviceId int32, lightId int32) (lights.LightState, error)
	SetLightStates(ctx context.Context, deviceId int32, lightIds []int32, states []lights.LightState, token binder.IBinder) error
	OpenLightSession(ctx context.Context, deviceId int32, opPkg string, token binder.IBinder) error
	CloseLightSession(ctx context.Context, deviceId int32, token binder.IBinder) error
	CancelCurrentTouch(ctx context.Context) error
	RegisterBatteryListener(ctx context.Context, deviceId int32, listener IInputDeviceBatteryListener) error
	UnregisterBatteryListener(ctx context.Context, deviceId int32, listener IInputDeviceBatteryListener) error
	GetInputDeviceBluetoothAddress(ctx context.Context, deviceId int32) (string, error)
	PilferPointers(ctx context.Context, inputChannelToken binder.IBinder) error
	RegisterKeyboardBacklightListener(ctx context.Context, listener IKeyboardBacklightListener) error
	UnregisterKeyboardBacklightListener(ctx context.Context, listener IKeyboardBacklightListener) error
	GetHostUsiVersionFromDisplayConfig(ctx context.Context, displayId int32) (HostUsiVersion, error)
	RegisterStickyModifierStateListener(ctx context.Context, listener IStickyModifierStateListener) error
	UnregisterStickyModifierStateListener(ctx context.Context, listener IStickyModifierStateListener) error
}

func NewInputManagerStub

func NewInputManagerStub(
	impl IInputManagerServer,
) IInputManager

NewInputManagerStub creates a server-side IInputManager wrapping the given server implementation. The returned value satisfies IInputManager and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IInputManagerServer

type IInputManagerServer interface {
	GetVelocityTrackerStrategy(ctx context.Context) (string, error)
	GetInputDevice(ctx context.Context, deviceId int32) (view.InputDevice, error)
	GetInputDeviceIds(ctx context.Context) ([]int32, error)
	IsInputDeviceEnabled(ctx context.Context, deviceId int32) (bool, error)
	EnableInputDevice(ctx context.Context, deviceId int32) error
	DisableInputDevice(ctx context.Context, deviceId int32) error
	HasKeys(ctx context.Context, deviceId int32, sourceMask int32, keyCodes []int32, keyExists []bool) (bool, error)
	GetKeyCodeForKeyLocation(ctx context.Context, deviceId int32, locationKeyCode int32) (int32, error)
	GetKeyCharacterMap(ctx context.Context, layoutDescriptor string) (view.KeyCharacterMap, error)
	GetMousePointerSpeed(ctx context.Context) (int32, error)
	TryPointerSpeed(ctx context.Context, speed int32) error
	InjectInputEvent(ctx context.Context, ev view.InputEvent, mode int32) (bool, error)
	InjectInputEventToTarget(ctx context.Context, ev view.InputEvent, mode int32, targetUid int32) (bool, error)
	VerifyInputEvent(ctx context.Context, ev view.InputEvent) (view.VerifiedInputEvent, error)
	GetTouchCalibrationForInputDevice(ctx context.Context, inputDeviceDescriptor string, rotation int32) (TouchCalibration, error)
	SetTouchCalibrationForInputDevice(ctx context.Context, inputDeviceDescriptor string, rotation int32, calibration TouchCalibration) error
	GetKeyboardLayouts(ctx context.Context) ([]KeyboardLayout, error)
	GetKeyboardLayoutsForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) ([]KeyboardLayout, error)
	GetKeyboardLayout(ctx context.Context, keyboardLayoutDescriptor string) (KeyboardLayout, error)
	GetCurrentKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) (string, error)
	SetCurrentKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	GetEnabledKeyboardLayoutsForInputDevice(ctx context.Context, identifier InputDeviceIdentifier) ([]string, error)
	AddKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	RemoveKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, keyboardLayoutDescriptor string) error
	GetKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype) (KeyboardLayoutSelectionResult, error)
	SetKeyboardLayoutForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype, keyboardLayoutDescriptor string) error
	GetKeyboardLayoutListForInputDevice(ctx context.Context, identifier InputDeviceIdentifier, imeInfo inputmethod.InputMethodInfo, imeSubtype inputmethod.InputMethodSubtype) ([]KeyboardLayout, error)
	RemapModifierKey(ctx context.Context, fromKey int32, toKey int32) error
	ClearAllModifierKeyRemappings(ctx context.Context) error
	GetModifierKeyRemapping(ctx context.Context) (map[any]any, error)
	RegisterInputDevicesChangedListener(ctx context.Context, listener IInputDevicesChangedListener) error
	IsInTabletMode(ctx context.Context) (int32, error)
	RegisterTabletModeChangedListener(ctx context.Context, listener ITabletModeChangedListener) error
	IsMicMuted(ctx context.Context) (int32, error)
	Vibrate(ctx context.Context, deviceId int32, effect os.VibrationEffect, token binder.IBinder) error
	VibrateCombined(ctx context.Context, deviceId int32, vibration os.CombinedVibration, token binder.IBinder) error
	CancelVibrate(ctx context.Context, deviceId int32, token binder.IBinder) error
	GetVibratorIds(ctx context.Context, deviceId int32) ([]int32, error)
	IsVibrating(ctx context.Context, deviceId int32) (bool, error)
	RegisterVibratorStateListener(ctx context.Context, deviceId int32, listener os.IVibratorStateListener) (bool, error)
	UnregisterVibratorStateListener(ctx context.Context, deviceId int32, listener os.IVibratorStateListener) (bool, error)
	GetBatteryState(ctx context.Context, deviceId int32) (IInputDeviceBatteryState, error)
	SetPointerIconType(ctx context.Context, typeId int32) error
	SetCustomPointerIcon(ctx context.Context, icon view.PointerIcon) error
	SetPointerIcon(ctx context.Context, icon view.PointerIcon, displayId int32, deviceId int32, pointerId int32, inputToken binder.IBinder) (bool, error)
	RequestPointerCapture(ctx context.Context, inputChannelToken binder.IBinder, enabled bool) error
	MonitorGestureInput(ctx context.Context, token binder.IBinder, name string, displayId int32) (view.InputMonitor, error)
	AddPortAssociation(ctx context.Context, inputPort string, displayPort int32) error
	RemovePortAssociation(ctx context.Context, inputPort string) error
	AddUniqueIdAssociation(ctx context.Context, inputPort string, displayUniqueId string) error
	RemoveUniqueIdAssociation(ctx context.Context, inputPort string) error
	GetSensorList(ctx context.Context, deviceId int32) ([]InputSensorInfo, error)
	RegisterSensorListener(ctx context.Context, listener IInputSensorEventListener) (bool, error)
	UnregisterSensorListener(ctx context.Context, listener IInputSensorEventListener) error
	EnableSensor(ctx context.Context, deviceId int32, sensorType int32, samplingPeriodUs int32, maxBatchReportLatencyUs int32) (bool, error)
	DisableSensor(ctx context.Context, deviceId int32, sensorType int32) error
	FlushSensor(ctx context.Context, deviceId int32, sensorType int32) (bool, error)
	GetLights(ctx context.Context, deviceId int32) ([]lights.Light, error)
	GetLightState(ctx context.Context, deviceId int32, lightId int32) (lights.LightState, error)
	SetLightStates(ctx context.Context, deviceId int32, lightIds []int32, states []lights.LightState, token binder.IBinder) error
	OpenLightSession(ctx context.Context, deviceId int32, opPkg string, token binder.IBinder) error
	CloseLightSession(ctx context.Context, deviceId int32, token binder.IBinder) error
	CancelCurrentTouch(ctx context.Context) error
	RegisterBatteryListener(ctx context.Context, deviceId int32, listener IInputDeviceBatteryListener) error
	UnregisterBatteryListener(ctx context.Context, deviceId int32, listener IInputDeviceBatteryListener) error
	GetInputDeviceBluetoothAddress(ctx context.Context, deviceId int32) (string, error)
	PilferPointers(ctx context.Context, inputChannelToken binder.IBinder) error
	RegisterKeyboardBacklightListener(ctx context.Context, listener IKeyboardBacklightListener) error
	UnregisterKeyboardBacklightListener(ctx context.Context, listener IKeyboardBacklightListener) error
	GetHostUsiVersionFromDisplayConfig(ctx context.Context, displayId int32) (HostUsiVersion, error)
	RegisterStickyModifierStateListener(ctx context.Context, listener IStickyModifierStateListener) error
	UnregisterStickyModifierStateListener(ctx context.Context, listener IStickyModifierStateListener) error
}

IInputManagerServer is the server-side interface that user implementations provide to NewInputManagerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IInputSensorEventListener

type IInputSensorEventListener interface {
	AsBinder() binder.IBinder
	OnInputSensorChanged(ctx context.Context, deviceId int32, sensorId int32, accuracy int32, timestamp int64, values []float32) error
	OnInputSensorAccuracyChanged(ctx context.Context, deviceId int32, sensorId int32, accuracy int32) error
}

func NewInputSensorEventListenerStub

func NewInputSensorEventListenerStub(
	impl IInputSensorEventListenerServer,
) IInputSensorEventListener

NewInputSensorEventListenerStub creates a server-side IInputSensorEventListener wrapping the given server implementation. The returned value satisfies IInputSensorEventListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IInputSensorEventListenerServer

type IInputSensorEventListenerServer interface {
	OnInputSensorChanged(ctx context.Context, deviceId int32, sensorId int32, accuracy int32, timestamp int64, values []float32) error
	OnInputSensorAccuracyChanged(ctx context.Context, deviceId int32, sensorId int32, accuracy int32) error
}

IInputSensorEventListenerServer is the server-side interface that user implementations provide to NewInputSensorEventListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IKeyboardBacklightListener

type IKeyboardBacklightListener interface {
	AsBinder() binder.IBinder
	OnBrightnessChanged(ctx context.Context, deviceId int32, state IKeyboardBacklightState, isTriggeredByKeyPress bool) error
}

func NewKeyboardBacklightListenerStub

func NewKeyboardBacklightListenerStub(
	impl IKeyboardBacklightListenerServer,
) IKeyboardBacklightListener

NewKeyboardBacklightListenerStub creates a server-side IKeyboardBacklightListener wrapping the given server implementation. The returned value satisfies IKeyboardBacklightListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IKeyboardBacklightListenerServer

type IKeyboardBacklightListenerServer interface {
	OnBrightnessChanged(ctx context.Context, deviceId int32, state IKeyboardBacklightState, isTriggeredByKeyPress bool) error
}

IKeyboardBacklightListenerServer is the server-side interface that user implementations provide to NewKeyboardBacklightListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IKeyboardBacklightState

type IKeyboardBacklightState struct {
	BrightnessLevel    int32
	MaxBrightnessLevel int32
}

func (*IKeyboardBacklightState) MarshalParcel

func (s *IKeyboardBacklightState) MarshalParcel(
	p *parcel.Parcel,
) error

func (*IKeyboardBacklightState) UnmarshalParcel

func (s *IKeyboardBacklightState) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IStickyModifierStateListener

type IStickyModifierStateListener interface {
	AsBinder() binder.IBinder
	OnStickyModifierStateChanged(ctx context.Context, modifierState int32, lockedModifierState int32) error
}

func NewStickyModifierStateListenerStub

func NewStickyModifierStateListenerStub(
	impl IStickyModifierStateListenerServer,
) IStickyModifierStateListener

NewStickyModifierStateListenerStub creates a server-side IStickyModifierStateListener wrapping the given server implementation. The returned value satisfies IStickyModifierStateListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IStickyModifierStateListenerServer

type IStickyModifierStateListenerServer interface {
	OnStickyModifierStateChanged(ctx context.Context, modifierState int32, lockedModifierState int32) error
}

IStickyModifierStateListenerServer is the server-side interface that user implementations provide to NewStickyModifierStateListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ITabletModeChangedListener

type ITabletModeChangedListener interface {
	AsBinder() binder.IBinder
	OnTabletModeChanged(ctx context.Context, whenNanos int64, inTabletMode bool) error
}

func NewTabletModeChangedListenerStub

func NewTabletModeChangedListenerStub(
	impl ITabletModeChangedListenerServer,
) ITabletModeChangedListener

NewTabletModeChangedListenerStub creates a server-side ITabletModeChangedListener wrapping the given server implementation. The returned value satisfies ITabletModeChangedListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type ITabletModeChangedListenerServer

type ITabletModeChangedListenerServer interface {
	OnTabletModeChanged(ctx context.Context, whenNanos int64, inTabletMode bool) error
}

ITabletModeChangedListenerServer is the server-side interface that user implementations provide to NewTabletModeChangedListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type InputDeviceBatteryListenerProxy

type InputDeviceBatteryListenerProxy struct {
	Remote binder.IBinder
}

func NewInputDeviceBatteryListenerProxy

func NewInputDeviceBatteryListenerProxy(
	remote binder.IBinder,
) *InputDeviceBatteryListenerProxy

func (*InputDeviceBatteryListenerProxy) AsBinder

func (*InputDeviceBatteryListenerProxy) OnBatteryStateChanged

func (p *InputDeviceBatteryListenerProxy) OnBatteryStateChanged(
	ctx context.Context,
	batteryState IInputDeviceBatteryState,
) error

type InputDeviceBatteryListenerStub

type InputDeviceBatteryListenerStub struct {
	Impl      IInputDeviceBatteryListener
	Transport binder.VersionAwareTransport
}

InputDeviceBatteryListenerStub dispatches incoming binder transactions to a typed IInputDeviceBatteryListener implementation.

func (*InputDeviceBatteryListenerStub) Descriptor

func (s *InputDeviceBatteryListenerStub) Descriptor() string

func (*InputDeviceBatteryListenerStub) OnTransaction

type InputDeviceIdentifier

type InputDeviceIdentifier struct {
	Descriptor string
	VendorId   int32
	ProductId  int32
}

func (*InputDeviceIdentifier) MarshalParcel

func (s *InputDeviceIdentifier) MarshalParcel(
	p *parcel.Parcel,
) error

func (*InputDeviceIdentifier) UnmarshalParcel

func (s *InputDeviceIdentifier) UnmarshalParcel(
	p *parcel.Parcel,
) error

type InputDevicesChangedListenerProxy

type InputDevicesChangedListenerProxy struct {
	Remote binder.IBinder
}

func NewInputDevicesChangedListenerProxy

func NewInputDevicesChangedListenerProxy(
	remote binder.IBinder,
) *InputDevicesChangedListenerProxy

func (*InputDevicesChangedListenerProxy) AsBinder

func (*InputDevicesChangedListenerProxy) OnInputDevicesChanged

func (p *InputDevicesChangedListenerProxy) OnInputDevicesChanged(
	ctx context.Context,
	deviceIdAndGeneration []int32,
) error

type InputDevicesChangedListenerStub

type InputDevicesChangedListenerStub struct {
	Impl      IInputDevicesChangedListener
	Transport binder.VersionAwareTransport
}

InputDevicesChangedListenerStub dispatches incoming binder transactions to a typed IInputDevicesChangedListener implementation.

func (*InputDevicesChangedListenerStub) Descriptor

func (s *InputDevicesChangedListenerStub) Descriptor() string

func (*InputDevicesChangedListenerStub) OnTransaction

type InputManagerProxy

type InputManagerProxy struct {
	Remote binder.IBinder
}

func NewInputManagerProxy

func NewInputManagerProxy(
	remote binder.IBinder,
) *InputManagerProxy

func (*InputManagerProxy) AddKeyboardLayoutForInputDevice

func (p *InputManagerProxy) AddKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	keyboardLayoutDescriptor string,
) error

func (*InputManagerProxy) AddPortAssociation

func (p *InputManagerProxy) AddPortAssociation(
	ctx context.Context,
	inputPort string,
	displayPort int32,
) error

func (*InputManagerProxy) AddUniqueIdAssociation

func (p *InputManagerProxy) AddUniqueIdAssociation(
	ctx context.Context,
	inputPort string,
	displayUniqueId string,
) error

func (*InputManagerProxy) AsBinder

func (p *InputManagerProxy) AsBinder() binder.IBinder

func (*InputManagerProxy) CancelCurrentTouch

func (p *InputManagerProxy) CancelCurrentTouch(
	ctx context.Context,
) error

func (*InputManagerProxy) CancelVibrate

func (p *InputManagerProxy) CancelVibrate(
	ctx context.Context,
	deviceId int32,
	token binder.IBinder,
) error

func (*InputManagerProxy) ClearAllModifierKeyRemappings

func (p *InputManagerProxy) ClearAllModifierKeyRemappings(
	ctx context.Context,
) error

func (*InputManagerProxy) CloseLightSession

func (p *InputManagerProxy) CloseLightSession(
	ctx context.Context,
	deviceId int32,
	token binder.IBinder,
) error

func (*InputManagerProxy) DisableInputDevice

func (p *InputManagerProxy) DisableInputDevice(
	ctx context.Context,
	deviceId int32,
) error

func (*InputManagerProxy) DisableSensor

func (p *InputManagerProxy) DisableSensor(
	ctx context.Context,
	deviceId int32,
	sensorType int32,
) error

func (*InputManagerProxy) EnableInputDevice

func (p *InputManagerProxy) EnableInputDevice(
	ctx context.Context,
	deviceId int32,
) error

func (*InputManagerProxy) EnableSensor

func (p *InputManagerProxy) EnableSensor(
	ctx context.Context,
	deviceId int32,
	sensorType int32,
	samplingPeriodUs int32,
	maxBatchReportLatencyUs int32,
) (bool, error)

func (*InputManagerProxy) FlushSensor

func (p *InputManagerProxy) FlushSensor(
	ctx context.Context,
	deviceId int32,
	sensorType int32,
) (bool, error)

func (*InputManagerProxy) GetBatteryState

func (p *InputManagerProxy) GetBatteryState(
	ctx context.Context,
	deviceId int32,
) (IInputDeviceBatteryState, error)

func (*InputManagerProxy) GetCurrentKeyboardLayoutForInputDevice

func (p *InputManagerProxy) GetCurrentKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
) (string, error)

func (*InputManagerProxy) GetEnabledKeyboardLayoutsForInputDevice

func (p *InputManagerProxy) GetEnabledKeyboardLayoutsForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
) ([]string, error)

func (*InputManagerProxy) GetHostUsiVersionFromDisplayConfig

func (p *InputManagerProxy) GetHostUsiVersionFromDisplayConfig(
	ctx context.Context,
	displayId int32,
) (HostUsiVersion, error)

func (*InputManagerProxy) GetInputDevice

func (p *InputManagerProxy) GetInputDevice(
	ctx context.Context,
	deviceId int32,
) (view.InputDevice, error)

func (*InputManagerProxy) GetInputDeviceBluetoothAddress

func (p *InputManagerProxy) GetInputDeviceBluetoothAddress(
	ctx context.Context,
	deviceId int32,
) (string, error)

func (*InputManagerProxy) GetInputDeviceIds

func (p *InputManagerProxy) GetInputDeviceIds(
	ctx context.Context,
) ([]int32, error)

func (*InputManagerProxy) GetKeyCharacterMap

func (p *InputManagerProxy) GetKeyCharacterMap(
	ctx context.Context,
	layoutDescriptor string,
) (view.KeyCharacterMap, error)

func (*InputManagerProxy) GetKeyCodeForKeyLocation

func (p *InputManagerProxy) GetKeyCodeForKeyLocation(
	ctx context.Context,
	deviceId int32,
	locationKeyCode int32,
) (int32, error)

func (*InputManagerProxy) GetKeyboardLayout

func (p *InputManagerProxy) GetKeyboardLayout(
	ctx context.Context,
	keyboardLayoutDescriptor string,
) (KeyboardLayout, error)

func (*InputManagerProxy) GetKeyboardLayoutForInputDevice

func (p *InputManagerProxy) GetKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	imeInfo inputmethod.InputMethodInfo,
	imeSubtype inputmethod.InputMethodSubtype,
) (KeyboardLayoutSelectionResult, error)

func (*InputManagerProxy) GetKeyboardLayoutListForInputDevice

func (p *InputManagerProxy) GetKeyboardLayoutListForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	imeInfo inputmethod.InputMethodInfo,
	imeSubtype inputmethod.InputMethodSubtype,
) ([]KeyboardLayout, error)

func (*InputManagerProxy) GetKeyboardLayouts

func (p *InputManagerProxy) GetKeyboardLayouts(
	ctx context.Context,
) ([]KeyboardLayout, error)

func (*InputManagerProxy) GetKeyboardLayoutsForInputDevice

func (p *InputManagerProxy) GetKeyboardLayoutsForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
) ([]KeyboardLayout, error)

func (*InputManagerProxy) GetLightState

func (p *InputManagerProxy) GetLightState(
	ctx context.Context,
	deviceId int32,
	lightId int32,
) (lights.LightState, error)

func (*InputManagerProxy) GetLights

func (p *InputManagerProxy) GetLights(
	ctx context.Context,
	deviceId int32,
) ([]lights.Light, error)

func (*InputManagerProxy) GetModifierKeyRemapping

func (p *InputManagerProxy) GetModifierKeyRemapping(
	ctx context.Context,
) (map[any]any, error)

func (*InputManagerProxy) GetMousePointerSpeed

func (p *InputManagerProxy) GetMousePointerSpeed(
	ctx context.Context,
) (int32, error)

func (*InputManagerProxy) GetSensorList

func (p *InputManagerProxy) GetSensorList(
	ctx context.Context,
	deviceId int32,
) ([]InputSensorInfo, error)

func (*InputManagerProxy) GetTouchCalibrationForInputDevice

func (p *InputManagerProxy) GetTouchCalibrationForInputDevice(
	ctx context.Context,
	inputDeviceDescriptor string,
	rotation int32,
) (TouchCalibration, error)

func (*InputManagerProxy) GetVelocityTrackerStrategy

func (p *InputManagerProxy) GetVelocityTrackerStrategy(
	ctx context.Context,
) (string, error)

func (*InputManagerProxy) GetVibratorIds

func (p *InputManagerProxy) GetVibratorIds(
	ctx context.Context,
	deviceId int32,
) ([]int32, error)

func (*InputManagerProxy) HasKeys

func (p *InputManagerProxy) HasKeys(
	ctx context.Context,
	deviceId int32,
	sourceMask int32,
	keyCodes []int32,
	keyExists []bool,
) (bool, error)

func (*InputManagerProxy) InjectInputEvent

func (p *InputManagerProxy) InjectInputEvent(
	ctx context.Context,
	ev view.InputEvent,
	mode int32,
) (bool, error)

func (*InputManagerProxy) InjectInputEventToTarget

func (p *InputManagerProxy) InjectInputEventToTarget(
	ctx context.Context,
	ev view.InputEvent,
	mode int32,
	targetUid int32,
) (bool, error)

func (*InputManagerProxy) IsInTabletMode

func (p *InputManagerProxy) IsInTabletMode(
	ctx context.Context,
) (int32, error)

func (*InputManagerProxy) IsInputDeviceEnabled

func (p *InputManagerProxy) IsInputDeviceEnabled(
	ctx context.Context,
	deviceId int32,
) (bool, error)

func (*InputManagerProxy) IsMicMuted

func (p *InputManagerProxy) IsMicMuted(
	ctx context.Context,
) (int32, error)

func (*InputManagerProxy) IsVibrating

func (p *InputManagerProxy) IsVibrating(
	ctx context.Context,
	deviceId int32,
) (bool, error)

func (*InputManagerProxy) MonitorGestureInput

func (p *InputManagerProxy) MonitorGestureInput(
	ctx context.Context,
	token binder.IBinder,
	name string,
	displayId int32,
) (view.InputMonitor, error)

func (*InputManagerProxy) OpenLightSession

func (p *InputManagerProxy) OpenLightSession(
	ctx context.Context,
	deviceId int32,
	opPkg string,
	token binder.IBinder,
) error

func (*InputManagerProxy) PilferPointers

func (p *InputManagerProxy) PilferPointers(
	ctx context.Context,
	inputChannelToken binder.IBinder,
) error

func (*InputManagerProxy) RegisterBatteryListener

func (p *InputManagerProxy) RegisterBatteryListener(
	ctx context.Context,
	deviceId int32,
	listener IInputDeviceBatteryListener,
) error

func (*InputManagerProxy) RegisterInputDevicesChangedListener

func (p *InputManagerProxy) RegisterInputDevicesChangedListener(
	ctx context.Context,
	listener IInputDevicesChangedListener,
) error

func (*InputManagerProxy) RegisterKeyboardBacklightListener

func (p *InputManagerProxy) RegisterKeyboardBacklightListener(
	ctx context.Context,
	listener IKeyboardBacklightListener,
) error

func (*InputManagerProxy) RegisterSensorListener

func (p *InputManagerProxy) RegisterSensorListener(
	ctx context.Context,
	listener IInputSensorEventListener,
) (bool, error)

func (*InputManagerProxy) RegisterStickyModifierStateListener

func (p *InputManagerProxy) RegisterStickyModifierStateListener(
	ctx context.Context,
	listener IStickyModifierStateListener,
) error

func (*InputManagerProxy) RegisterTabletModeChangedListener

func (p *InputManagerProxy) RegisterTabletModeChangedListener(
	ctx context.Context,
	listener ITabletModeChangedListener,
) error

func (*InputManagerProxy) RegisterVibratorStateListener

func (p *InputManagerProxy) RegisterVibratorStateListener(
	ctx context.Context,
	deviceId int32,
	listener os.IVibratorStateListener,
) (bool, error)

func (*InputManagerProxy) RemapModifierKey

func (p *InputManagerProxy) RemapModifierKey(
	ctx context.Context,
	fromKey int32,
	toKey int32,
) error

func (*InputManagerProxy) RemoveKeyboardLayoutForInputDevice

func (p *InputManagerProxy) RemoveKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	keyboardLayoutDescriptor string,
) error

func (*InputManagerProxy) RemovePortAssociation

func (p *InputManagerProxy) RemovePortAssociation(
	ctx context.Context,
	inputPort string,
) error

func (*InputManagerProxy) RemoveUniqueIdAssociation

func (p *InputManagerProxy) RemoveUniqueIdAssociation(
	ctx context.Context,
	inputPort string,
) error

func (*InputManagerProxy) RequestPointerCapture

func (p *InputManagerProxy) RequestPointerCapture(
	ctx context.Context,
	inputChannelToken binder.IBinder,
	enabled bool,
) error

func (*InputManagerProxy) SetCurrentKeyboardLayoutForInputDevice

func (p *InputManagerProxy) SetCurrentKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	keyboardLayoutDescriptor string,
) error

func (*InputManagerProxy) SetCustomPointerIcon

func (p *InputManagerProxy) SetCustomPointerIcon(
	ctx context.Context,
	icon view.PointerIcon,
) error

func (*InputManagerProxy) SetKeyboardLayoutForInputDevice

func (p *InputManagerProxy) SetKeyboardLayoutForInputDevice(
	ctx context.Context,
	identifier InputDeviceIdentifier,
	imeInfo inputmethod.InputMethodInfo,
	imeSubtype inputmethod.InputMethodSubtype,
	keyboardLayoutDescriptor string,
) error

func (*InputManagerProxy) SetLightStates

func (p *InputManagerProxy) SetLightStates(
	ctx context.Context,
	deviceId int32,
	lightIds []int32,
	states []lights.LightState,
	token binder.IBinder,
) error

func (*InputManagerProxy) SetPointerIcon

func (p *InputManagerProxy) SetPointerIcon(
	ctx context.Context,
	icon view.PointerIcon,
	displayId int32,
	deviceId int32,
	pointerId int32,
	inputToken binder.IBinder,
) (bool, error)

func (*InputManagerProxy) SetPointerIconType

func (p *InputManagerProxy) SetPointerIconType(
	ctx context.Context,
	typeId int32,
) error

func (*InputManagerProxy) SetTouchCalibrationForInputDevice

func (p *InputManagerProxy) SetTouchCalibrationForInputDevice(
	ctx context.Context,
	inputDeviceDescriptor string,
	rotation int32,
	calibration TouchCalibration,
) error

func (*InputManagerProxy) TryPointerSpeed

func (p *InputManagerProxy) TryPointerSpeed(
	ctx context.Context,
	speed int32,
) error

func (*InputManagerProxy) UnregisterBatteryListener

func (p *InputManagerProxy) UnregisterBatteryListener(
	ctx context.Context,
	deviceId int32,
	listener IInputDeviceBatteryListener,
) error

func (*InputManagerProxy) UnregisterKeyboardBacklightListener

func (p *InputManagerProxy) UnregisterKeyboardBacklightListener(
	ctx context.Context,
	listener IKeyboardBacklightListener,
) error

func (*InputManagerProxy) UnregisterSensorListener

func (p *InputManagerProxy) UnregisterSensorListener(
	ctx context.Context,
	listener IInputSensorEventListener,
) error

func (*InputManagerProxy) UnregisterStickyModifierStateListener

func (p *InputManagerProxy) UnregisterStickyModifierStateListener(
	ctx context.Context,
	listener IStickyModifierStateListener,
) error

func (*InputManagerProxy) UnregisterVibratorStateListener

func (p *InputManagerProxy) UnregisterVibratorStateListener(
	ctx context.Context,
	deviceId int32,
	listener os.IVibratorStateListener,
) (bool, error)

func (*InputManagerProxy) VerifyInputEvent

func (p *InputManagerProxy) VerifyInputEvent(
	ctx context.Context,
	ev view.InputEvent,
) (view.VerifiedInputEvent, error)

func (*InputManagerProxy) Vibrate

func (p *InputManagerProxy) Vibrate(
	ctx context.Context,
	deviceId int32,
	effect os.VibrationEffect,
	token binder.IBinder,
) error

func (*InputManagerProxy) VibrateCombined

func (p *InputManagerProxy) VibrateCombined(
	ctx context.Context,
	deviceId int32,
	vibration os.CombinedVibration,
	token binder.IBinder,
) error

type InputManagerStub

type InputManagerStub struct {
	Impl      IInputManager
	Transport binder.VersionAwareTransport
}

InputManagerStub dispatches incoming binder transactions to a typed IInputManager implementation.

func (*InputManagerStub) Descriptor

func (s *InputManagerStub) Descriptor() string

func (*InputManagerStub) OnTransaction

func (s *InputManagerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type InputSensorEventListenerProxy

type InputSensorEventListenerProxy struct {
	Remote binder.IBinder
}

func NewInputSensorEventListenerProxy

func NewInputSensorEventListenerProxy(
	remote binder.IBinder,
) *InputSensorEventListenerProxy

func (*InputSensorEventListenerProxy) AsBinder

func (*InputSensorEventListenerProxy) OnInputSensorAccuracyChanged

func (p *InputSensorEventListenerProxy) OnInputSensorAccuracyChanged(
	ctx context.Context,
	deviceId int32,
	sensorId int32,
	accuracy int32,
) error

func (*InputSensorEventListenerProxy) OnInputSensorChanged

func (p *InputSensorEventListenerProxy) OnInputSensorChanged(
	ctx context.Context,
	deviceId int32,
	sensorId int32,
	accuracy int32,
	timestamp int64,
	values []float32,
) error

type InputSensorEventListenerStub

type InputSensorEventListenerStub struct {
	Impl      IInputSensorEventListener
	Transport binder.VersionAwareTransport
}

InputSensorEventListenerStub dispatches incoming binder transactions to a typed IInputSensorEventListener implementation.

func (*InputSensorEventListenerStub) Descriptor

func (s *InputSensorEventListenerStub) Descriptor() string

func (*InputSensorEventListenerStub) OnTransaction

type InputSensorInfo

type InputSensorInfo struct {
	Name                   string
	Vendor                 string
	Version                int32
	Handle                 int32
	Type                   int32
	MaxRange               float32
	Resolution             float32
	Power                  float32
	MinDelay               int32
	FifoReservedEventCount int32
	FifoMaxEventCount      int32
	StringType             string
	RequiredPermission     string
	MaxDelay               int32
	Flags                  int32
	Id                     int32
}

func (*InputSensorInfo) MarshalParcel

func (s *InputSensorInfo) MarshalParcel(
	p *parcel.Parcel,
) error

func (*InputSensorInfo) UnmarshalParcel

func (s *InputSensorInfo) UnmarshalParcel(
	p *parcel.Parcel,
) error

type KeyboardBacklightListenerProxy

type KeyboardBacklightListenerProxy struct {
	Remote binder.IBinder
}

func NewKeyboardBacklightListenerProxy

func NewKeyboardBacklightListenerProxy(
	remote binder.IBinder,
) *KeyboardBacklightListenerProxy

func (*KeyboardBacklightListenerProxy) AsBinder

func (*KeyboardBacklightListenerProxy) OnBrightnessChanged

func (p *KeyboardBacklightListenerProxy) OnBrightnessChanged(
	ctx context.Context,
	deviceId int32,
	state IKeyboardBacklightState,
	isTriggeredByKeyPress bool,
) error

type KeyboardBacklightListenerStub

type KeyboardBacklightListenerStub struct {
	Impl      IKeyboardBacklightListener
	Transport binder.VersionAwareTransport
}

KeyboardBacklightListenerStub dispatches incoming binder transactions to a typed IKeyboardBacklightListener implementation.

func (*KeyboardBacklightListenerStub) Descriptor

func (s *KeyboardBacklightListenerStub) Descriptor() string

func (*KeyboardBacklightListenerStub) OnTransaction

type KeyboardLayout

type KeyboardLayout struct {
	Descriptor string
	Label      string
	Collection string
	Priority   int32
	VendorId   int32
	ProductId  int32
}

func (*KeyboardLayout) MarshalParcel

func (s *KeyboardLayout) MarshalParcel(
	p *parcel.Parcel,
) error

func (*KeyboardLayout) UnmarshalParcel

func (s *KeyboardLayout) UnmarshalParcel(
	p *parcel.Parcel,
) error

type KeyboardLayoutSelectionResult

type KeyboardLayoutSelectionResult struct {
	Flg               int32
	SelectionCriteria int32
}

func (*KeyboardLayoutSelectionResult) MarshalParcel

func (s *KeyboardLayoutSelectionResult) MarshalParcel(
	p *parcel.Parcel,
) error

func (*KeyboardLayoutSelectionResult) UnmarshalParcel

func (s *KeyboardLayoutSelectionResult) UnmarshalParcel(
	p *parcel.Parcel,
) error

type StickyModifierStateListenerProxy

type StickyModifierStateListenerProxy struct {
	Remote binder.IBinder
}

func NewStickyModifierStateListenerProxy

func NewStickyModifierStateListenerProxy(
	remote binder.IBinder,
) *StickyModifierStateListenerProxy

func (*StickyModifierStateListenerProxy) AsBinder

func (*StickyModifierStateListenerProxy) OnStickyModifierStateChanged

func (p *StickyModifierStateListenerProxy) OnStickyModifierStateChanged(
	ctx context.Context,
	modifierState int32,
	lockedModifierState int32,
) error

type StickyModifierStateListenerStub

type StickyModifierStateListenerStub struct {
	Impl      IStickyModifierStateListener
	Transport binder.VersionAwareTransport
}

StickyModifierStateListenerStub dispatches incoming binder transactions to a typed IStickyModifierStateListener implementation.

func (*StickyModifierStateListenerStub) Descriptor

func (s *StickyModifierStateListenerStub) Descriptor() string

func (*StickyModifierStateListenerStub) OnTransaction

type TabletModeChangedListenerProxy

type TabletModeChangedListenerProxy struct {
	Remote binder.IBinder
}

func NewTabletModeChangedListenerProxy

func NewTabletModeChangedListenerProxy(
	remote binder.IBinder,
) *TabletModeChangedListenerProxy

func (*TabletModeChangedListenerProxy) AsBinder

func (*TabletModeChangedListenerProxy) OnTabletModeChanged

func (p *TabletModeChangedListenerProxy) OnTabletModeChanged(
	ctx context.Context,
	whenNanos int64,
	inTabletMode bool,
) error

type TabletModeChangedListenerStub

type TabletModeChangedListenerStub struct {
	Impl      ITabletModeChangedListener
	Transport binder.VersionAwareTransport
}

TabletModeChangedListenerStub dispatches incoming binder transactions to a typed ITabletModeChangedListener implementation.

func (*TabletModeChangedListenerStub) Descriptor

func (s *TabletModeChangedListenerStub) Descriptor() string

func (*TabletModeChangedListenerStub) OnTransaction

type TouchCalibration

type TouchCalibration struct {
	XScale  float32
	XYMix   float32
	XOffset float32
	YXMix   float32
	YScale  float32
	YOffset float32
}

func (*TouchCalibration) MarshalParcel

func (s *TouchCalibration) MarshalParcel(
	p *parcel.Parcel,
) error

func (*TouchCalibration) UnmarshalParcel

func (s *TouchCalibration) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualDpadConfig

type VirtualDpadConfig struct {
}

func (*VirtualDpadConfig) MarshalParcel

func (s *VirtualDpadConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualDpadConfig) UnmarshalParcel

func (s *VirtualDpadConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualKeyEvent

type VirtualKeyEvent struct {
	Action         int32
	KeyCode        int32
	EventTimeNanos int64
}

func (*VirtualKeyEvent) MarshalParcel

func (s *VirtualKeyEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualKeyEvent) UnmarshalParcel

func (s *VirtualKeyEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualKeyboardConfig

type VirtualKeyboardConfig struct {
	LanguageTag string
	LayoutType  string
}

func (*VirtualKeyboardConfig) MarshalParcel

func (s *VirtualKeyboardConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualKeyboardConfig) UnmarshalParcel

func (s *VirtualKeyboardConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualMouseButtonEvent

type VirtualMouseButtonEvent struct {
	Action         int32
	ButtonCode     int32
	EventTimeNanos int64
}

func (*VirtualMouseButtonEvent) MarshalParcel

func (s *VirtualMouseButtonEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualMouseButtonEvent) UnmarshalParcel

func (s *VirtualMouseButtonEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualMouseConfig

type VirtualMouseConfig struct {
}

func (*VirtualMouseConfig) MarshalParcel

func (s *VirtualMouseConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualMouseConfig) UnmarshalParcel

func (s *VirtualMouseConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualMouseRelativeEvent

type VirtualMouseRelativeEvent struct {
	RelativeX      float32
	RelativeY      float32
	EventTimeNanos int64
}

func (*VirtualMouseRelativeEvent) MarshalParcel

func (s *VirtualMouseRelativeEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualMouseRelativeEvent) UnmarshalParcel

func (s *VirtualMouseRelativeEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualMouseScrollEvent

type VirtualMouseScrollEvent struct {
	XAxisMovement  float32
	YAxisMovement  float32
	EventTimeNanos int64
}

func (*VirtualMouseScrollEvent) MarshalParcel

func (s *VirtualMouseScrollEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualMouseScrollEvent) UnmarshalParcel

func (s *VirtualMouseScrollEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualNavigationTouchpadConfig

type VirtualNavigationTouchpadConfig struct {
	Height int32
	Width  int32
}

func (*VirtualNavigationTouchpadConfig) MarshalParcel

func (s *VirtualNavigationTouchpadConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualNavigationTouchpadConfig) UnmarshalParcel

func (s *VirtualNavigationTouchpadConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualStylusButtonEvent

type VirtualStylusButtonEvent struct {
	Action         int32
	ButtonCode     int32
	EventTimeNanos int64
}

func (*VirtualStylusButtonEvent) MarshalParcel

func (s *VirtualStylusButtonEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualStylusButtonEvent) UnmarshalParcel

func (s *VirtualStylusButtonEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualStylusConfig

type VirtualStylusConfig struct {
}

func (*VirtualStylusConfig) MarshalParcel

func (s *VirtualStylusConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualStylusConfig) UnmarshalParcel

func (s *VirtualStylusConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualStylusMotionEvent

type VirtualStylusMotionEvent struct {
	ToolType       int32
	Action         int32
	X              int32
	Y              int32
	Pressure       int32
	TiltX          int32
	TiltY          int32
	EventTimeNanos int64
}

func (*VirtualStylusMotionEvent) MarshalParcel

func (s *VirtualStylusMotionEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualStylusMotionEvent) UnmarshalParcel

func (s *VirtualStylusMotionEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualTouchEvent

type VirtualTouchEvent struct {
	PointerId      int32
	ToolType       int32
	Action         int32
	X              float32
	Y              float32
	Pressure       float32
	MajorAxisSize  float32
	EventTimeNanos int64
}

func (*VirtualTouchEvent) MarshalParcel

func (s *VirtualTouchEvent) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualTouchEvent) UnmarshalParcel

func (s *VirtualTouchEvent) UnmarshalParcel(
	p *parcel.Parcel,
) error

type VirtualTouchscreenConfig

type VirtualTouchscreenConfig struct {
}

func (*VirtualTouchscreenConfig) MarshalParcel

func (s *VirtualTouchscreenConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*VirtualTouchscreenConfig) UnmarshalParcel

func (s *VirtualTouchscreenConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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