Package org.robolectric.shadows
Class ShadowInputManager
- java.lang.Object
-
- org.robolectric.shadows.ShadowInputManager
-
@Implements(value=android.hardware.input.InputManager.class, looseSignatures=true) public class ShadowInputManager extends Object
Shadow forInputManager
-
-
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 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.
-
-
-
Method Detail
-
injectInputEvent
@Implementation protected boolean injectInputEvent(InputEvent event, int mode)
-
deviceHasKeys
@Implementation(minSdk=19) protected boolean[] deviceHasKeys(int id, int[] keyCodes)
-
getInputDeviceIds
@Implementation protected int[] getInputDeviceIds()
Used inInputDevice.getDeviceIds()
-
verifyInputEvent
@Implementation(minSdk=30) protected Object verifyInputEvent(Object inputEvent)
Provides a local java implementation, since the real implementation is in system server + native code.
-
reset
@Resetter public static void reset()
-
-