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

Method exists

android/src/UsbSerialHelper.java:217–219  ·  view source on GitHub ↗
(long[] devices, int vendorId, int productId)

Source from the content-addressed store, hash-verified

215 }
216
217 static boolean exists(long[] devices, int vendorId, int productId) {
218 return Arrays.binarySearch(devices, createDevice(vendorId, productId)) >= 0;
219 }
220
221 private static boolean isSupported(UsbDevice device) {
222 return UsbSerialDevice.isSupported(device) &&

Callers 3

isSupportedMethod · 0.95
playExternalMethod · 0.80
getFileForDocIdMethod · 0.80

Calls 1

createDeviceMethod · 0.95

Tested by

no test coverage detected