@Implements(value=android.hardware.input.InputManager.class, looseSignatures=true) public class ShadowInputManager extends Object
InputManager
Constructor | Description |
---|---|
ShadowInputManager() |
Modifier and Type | Method | Description |
---|---|---|
protected boolean[] |
deviceHasKeys(int id,
int[] keyCodes) |
|
protected int[] |
getInputDeviceIds() |
Used in
InputDevice.getDeviceIds() |
protected boolean |
injectInputEvent(InputEvent event,
int mode) |
|
static void |
reset() |
|
protected Object |
verifyInputEvent(Object inputEvent) |
Provides a local java implementation, since the real implementation is in system server +
native code.
|
@Implementation protected boolean injectInputEvent(InputEvent event, int mode)
@Implementation(minSdk=19) protected boolean[] deviceHasKeys(int id, int[] keyCodes)
@Implementation protected int[] getInputDeviceIds()
InputDevice.getDeviceIds()
@Implementation(minSdk=30) protected Object verifyInputEvent(Object inputEvent)
@Resetter public static void reset()