Add support for USB devices with multiple configurations and alternate interfaces

Added UsbConfiguration class, as well as accessors to UsbDevice to get configuration list
Added methods to UsbDeviceConnection to select configurations and alternate interfaces.

Also added accessors for USB descriptor name strings and fixed some memory leaks in the JNI code.

Bug: 12425052
Change-Id: Idb990f4d5c054a8cb997eb3f440f6da9f83bce05
This commit is contained in:
Mike Lockwood
2014-01-13 10:31:01 -08:00
parent dfae159bb8
commit 7531aa2235
9 changed files with 561 additions and 126 deletions

View File

@@ -244,9 +244,11 @@ public class ZygoteInit {
}
static void preload() {
Log.d(TAG, "begin preload");
preloadClasses();
preloadResources();
preloadOpenGL();
Log.d(TAG, "end preload");
}
private static void preloadOpenGL() {