Package org.robolectric.shadows
Class ShadowInputManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowInputManager
-
@Implements(android.hardware.input.InputManager.class) public class ShadowInputManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowInputManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean[]deviceHasKeys(int id, int[] keyCodes)protected int[]getInputDeviceIds()Used inInputDevice.getDeviceIds()protected booleaninjectInputEvent(android.view.InputEvent event, int mode)static voidreset()
-
-
-
Method Detail
-
injectInputEvent
@Implementation protected boolean injectInputEvent(android.view.InputEvent event, int mode)
-
deviceHasKeys
@Implementation(minSdk=19) protected boolean[] deviceHasKeys(int id, int[] keyCodes)
-
getInputDeviceIds
@Implementation protected int[] getInputDeviceIds()
Used inInputDevice.getDeviceIds()
-
reset
@Resetter public static void reset()
-
-