public class UsbSerialProber
extends java.lang.Object
Constructor and Description |
---|
UsbSerialProber(ProbeTable probeTable) |
Modifier and Type | Method and Description |
---|---|
java.util.List<UsbSerialDriver> |
findAllDrivers(android.hardware.usb.UsbManager usbManager)
Finds and builds all possible
UsbSerialDrivers
from the currently-attached UsbDevice hierarchy. |
static UsbSerialProber |
getDefaultProber() |
static ProbeTable |
getDefaultProbeTable() |
UsbSerialDriver |
probeDevice(android.hardware.usb.UsbDevice usbDevice)
Probes a single device for a compatible driver.
|
public UsbSerialProber(ProbeTable probeTable)
public static UsbSerialProber getDefaultProber()
public static ProbeTable getDefaultProbeTable()
public java.util.List<UsbSerialDriver> findAllDrivers(android.hardware.usb.UsbManager usbManager)
UsbSerialDrivers
from the currently-attached UsbDevice
hierarchy. This method does
not require permission from the Android USB system, since it does not
open any of the devices.usbManager
- public UsbSerialDriver probeDevice(android.hardware.usb.UsbDevice usbDevice)
usbDevice
- the usb device to probeUsbSerialDriver
compatible with this device, or
null
if none available.