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 for
InputManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean[]
deviceHasKeys
(int id, int[] keyCodes) protected int[]
Used inInputDevice.getDeviceIds()
protected boolean
injectInputEvent
(InputEvent event, int mode) protected void
static void
reset()
protected Object
verifyInputEvent
(Object inputEvent) Provides a local java implementation, since the real implementation is in system server + native code.
-
Constructor Details
-
ShadowInputManager
public ShadowInputManager()
-
-
Method Details
-
injectInputEvent
-
deviceHasKeys
-
getInputDeviceIds
Used inInputDevice.getDeviceIds()
-
populateInputDevicesLocked
@Implementation(maxSdk=33) protected void populateInputDevicesLocked() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
verifyInputEvent
Provides a local java implementation, since the real implementation is in system server + native code. -
reset
-