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
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(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
-