OSDN Git Service

UsbMidiDevice: Clean up terminology and fix comments
authorMikhail Naganov <mnaganov@google.com>
Fri, 17 Jun 2016 11:11:25 +0000 (04:11 -0700)
committerMikhail Naganov <mnaganov@google.com>
Fri, 17 Jun 2016 15:04:28 +0000 (08:04 -0700)
commitaab4c1ad489a8b62186215d826293e9cbcbaeb85
tree00a5fe8a931622dcee8d47e19a6e7fbb9b177268
parent22dcbc3e26c247f6a4d3953a454be12bf136cb67
UsbMidiDevice: Clean up terminology and fix comments

When working with physical MIDI devices, an *input* stream is used
for reading from *output* port of the device, and vice versa. Thus,
using "input" and "output" without specifying whether it's a stream
or a port is confusing.

Clarify names of counter variables, and fix a couple of comments
that were incorrect due to this confusion. No functional changes.

Change-Id: If561eaca4bade94e9296d2c703c9fcebc91296e2
services/usb/java/com/android/server/usb/UsbMidiDevice.java