diff options
author | Mike Lockwood <lockwood@google.com> | 2015-06-18 10:05:17 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2015-06-18 12:31:40 -0700 |
commit | 2aef7e3559e9e2c78287a00b3f693b6dc19e56f0 (patch) | |
tree | 65dd4907732c3f23f48e4240b99695e543084378 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 13e54ff0ebc5fe6f425c16d9d30ea9ecd5db1348 (diff) |
Fix MidiDevice.MidiConnection lifecycle
Update device server's MidiDeviceStatus when a connection is made to one of its output ports.
After connecting an input port to an output port using MidiDevice.connectPorts(),
do not call IMidiDeviceServer.closePort() until MidiDevice.MidiConnection.close() is called.
While I was in there, added missing CloseGuard support to the MidiDevice.MidiConnection class.
This fixes a problem resulting in UsbMidiDevice closing the device's ALSA driver too soon.
Bug: 21850709
Change-Id: I0c120f76b42eec8a143161e46dba73fbec5e4f31
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions