MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / connect

Method connect

android/src/UsbSerialHelper.java:389–397  ·  view source on GitHub ↗
(String id, int baud)

Source from the content-addressed store, hash-verified

387 }
388
389 private synchronized AndroidPort connect(String id, int baud)
390 throws IOException
391 {
392 UsbDeviceInterface deviface = getAvailable(id);
393 if (deviface == null)
394 throw new IOException("USB serial device not found");
395
396 return deviface.open(baud);
397 }
398
399 private synchronized void broadcastDetectedDeviceInterface(UsbDeviceInterface deviface) {
400 if (detectListeners.isEmpty())

Callers

nothing calls this directly

Calls 2

getAvailableMethod · 0.95
openMethod · 0.95

Tested by

no test coverage detected