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

Method getAvailable

android/src/UsbSerialHelper.java:331–337  ·  view source on GitHub ↗
(String id)

Source from the content-addressed store, hash-verified

329 }
330
331 private synchronized UsbDeviceInterface getAvailable(String id) {
332 for (UsbDeviceInterface i : interfaces)
333 if (i.isId(id))
334 return i;
335
336 return null;
337 }
338
339 private synchronized void removeAvailable(UsbDevice removeddevice) {
340 Iterator<UsbDeviceInterface> iter = interfaces.iterator();

Callers 1

connectMethod · 0.95

Calls 1

isIdMethod · 0.80

Tested by

no test coverage detected