USB MIDI: Add more info to MIDI Endpoints
Add more info to MIDI endpoint descriptors. Bug: 266473128 Test: adb shell dumpsys usb dump-descriptors -dump-list Change-Id: I047b542f34de97b72b429454c7592dda8c1d2884
This commit is contained in:
@@ -62,6 +62,9 @@ public final class UsbACMidi10Endpoint extends UsbACEndpoint {
|
||||
+ " Length: " + getLength());
|
||||
canvas.openList();
|
||||
canvas.writeListItem("" + getNumJacks() + " Jacks.");
|
||||
for (int i = 0; i < getNumJacks(); i++) {
|
||||
canvas.writeListItem("Jack " + i + ": " + mJackIds[i]);
|
||||
}
|
||||
canvas.closeList();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,9 @@ public final class UsbACMidi20Endpoint extends UsbACEndpoint {
|
||||
+ " Length: " + getLength());
|
||||
canvas.openList();
|
||||
canvas.writeListItem("" + getNumGroupTerminals() + " Group Terminals.");
|
||||
for (int i = 0; i < getNumGroupTerminals(); i++) {
|
||||
canvas.writeListItem("Group Terminal " + i + ": " + mBlockIds[i]);
|
||||
}
|
||||
canvas.closeList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user