@Implements(android.hardware.input.InputManager.class) public class ShadowInputManager extends Object
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() |
@Implementation protected boolean injectInputEvent(InputEvent event, int mode)
@Implementation(minSdk=19) protected boolean[] deviceHasKeys(int id, int[] keyCodes)
@Implementation protected int[] getInputDeviceIds()
InputDevice.getDeviceIds()
@Resetter public static void reset()