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

Method requestPermission

android/src/UsbSerialHelper.java:380–387  ·  view source on GitHub ↗
(UsbDevice device)

Source from the content-addressed store, hash-verified

378 }
379
380 private void requestPermission(UsbDevice device) {
381 PendingIntent pi =
382 PendingIntent.getBroadcast(context, 0,
383 new Intent(UsbSerialHelper.ACTION_USB_PERMISSION),
384 0);
385
386 usbmanager.requestPermission(device, pi);
387 }
388
389 private synchronized AndroidPort connect(String id, int baud)
390 throws IOException

Callers 2

onReceiveMethod · 0.95
openMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected