public abstract class InputManagerInternal extends Object
Constructor and Description |
---|
InputManagerInternal() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
injectInputEvent(InputEvent event,
int displayId,
int mode) |
abstract void |
onInputMethodSubtypeChanged(int userId,
InputMethodInfo inputMethodInfo,
InputMethodSubtype subtype)
Notifies that InputMethodManagerService switched the current input method subtype.
|
abstract void |
setDisplayViewports(DisplayViewport defaultViewport,
DisplayViewport externalTouchViewport)
Called by the display manager to set information about the displays as needed
by the input system.
|
abstract void |
setInteractive(boolean interactive)
Called by the power manager to tell the input manager whether it should start
watching for wake events.
|
abstract void |
setPulseGestureEnabled(boolean enabled)
Set whether the input stack should deliver pulse gesture events when the device is asleep.
|
abstract void |
toggleCapsLock(int deviceId)
Toggles Caps Lock state for input device with specific id.
|
public abstract boolean injectInputEvent(InputEvent event, int displayId, int mode)
public abstract void setDisplayViewports(DisplayViewport defaultViewport, DisplayViewport externalTouchViewport)
public abstract void setInteractive(boolean interactive)
public abstract void onInputMethodSubtypeChanged(int userId, InputMethodInfo inputMethodInfo, InputMethodSubtype subtype)
userId
- user id that indicates who is using the specified input method and subtype.inputMethodInfo
- null
when no input method is selected.subtype
- null
when inputMethodInfo
does has no subtype.public abstract void toggleCapsLock(int deviceId)
deviceId
- The id of input device.public abstract void setPulseGestureEnabled(boolean enabled)