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

Method makePortId

android/src/UsbSerialHelper.java:100–110  ·  view source on GitHub ↗
(UsbDevice device, int iface,
                                   boolean withSerialNumber)

Source from the content-addressed store, hash-verified

98 }
99
100 private static String makePortId(UsbDevice device, int iface,
101 boolean withSerialNumber) {
102 String id = makeDeviceId(device, withSerialNumber);
103
104 if (iface > 0)
105 /* a secondary interface on the same device: append the
106 interface index */
107 id += "#" + iface;
108
109 return id;
110 }
111
112 final class UsbDeviceInterface {
113 public final UsbDevice device;

Callers 1

UsbDeviceInterfaceMethod · 0.80

Calls 1

makeDeviceIdMethod · 0.95

Tested by

no test coverage detected