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