Package org.robolectric.shadows
Class ShadowInputDevice
- java.lang.Object
-
- org.robolectric.shadows.ShadowInputDevice
-
@Implements(android.view.InputDevice.class) public class ShadowInputDevice extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ShadowInputDevice()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetName()protected intgetProductId()protected intgetVendorId()static android.view.InputDevicemakeInputDeviceNamed(java.lang.String deviceName)voidsetDeviceName(java.lang.String deviceName)voidsetProductId(int productId)voidsetVendorId(int vendorId)
-
-
-
Method Detail
-
makeInputDeviceNamed
public static android.view.InputDevice makeInputDeviceNamed(java.lang.String deviceName)
-
getName
@Implementation protected java.lang.String getName()
-
getProductId
@Implementation(minSdk=19) protected int getProductId()
-
getVendorId
@Implementation(minSdk=19) protected int getVendorId()
-
setDeviceName
public void setDeviceName(java.lang.String deviceName)
-
setProductId
public void setProductId(int productId)
-
setVendorId
public void setVendorId(int vendorId)
-
-