Package org.robolectric.shadows
Class ShadowInputManager
java.lang.Object
org.robolectric.shadows.ShadowInputManager
@Implements(android.hardware.input.InputManager.class)
public class ShadowInputManager
extends Object
Shadow for
InputManager-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean[]deviceHasKeys(int id, int[] keyCodes) protected int[]Used inInputDevice.getDeviceIds()protected booleaninjectInputEvent(InputEvent event, int mode) protected voidstatic voidreset()protected ObjectverifyInputEvent(InputEvent 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
@Implementation protected boolean[] deviceHasKeys(int id, int[] keyCodes) -
getInputDeviceIds
@Implementation protected int[] 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
@Resetter public static void reset()
-