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

Method removeAvailable

android/src/UsbSerialHelper.java:339–348  ·  view source on GitHub ↗
(UsbDevice removeddevice)

Source from the content-addressed store, hash-verified

337 }
338
339 private synchronized void removeAvailable(UsbDevice removeddevice) {
340 Iterator<UsbDeviceInterface> iter = interfaces.iterator();
341 while (iter.hasNext()) {
342 UsbDeviceInterface iface = iter.next();
343 if (iface.isDevice(removeddevice)) {
344 iface.onDisconnect();
345 iter.remove();
346 }
347 }
348 }
349
350 private UsbSerialHelper(Context context) throws IOException {
351 this.context = context;

Callers 1

onReceiveMethod · 0.95

Calls 3

isDeviceMethod · 0.95
onDisconnectMethod · 0.95
nextMethod · 0.80

Tested by

no test coverage detected