summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2015-03-04 14:50:39 -0800
committerMike Lockwood <lockwood@google.com>2015-03-04 20:38:37 -0800
commit3b7664589be22ddad34b72e11ced937d48660ebb (patch)
tree0ba58e00c256b3545ae49b838831d3c8d7b4aca5 /services
parent20821ecbe81ba52b260ae232096bc2bfb3e92ad0 (diff)
downloadframeworks_base-3b7664589be22ddad34b72e11ced937d48660ebb.zip
frameworks_base-3b7664589be22ddad34b72e11ced937d48660ebb.tar.gz
frameworks_base-3b7664589be22ddad34b72e11ced937d48660ebb.tar.bz2
Make MidiSender and MidiReceiver abstract classes, rename MidiReceiver.post() to receive()
Change-Id: I1cef3bd48ca0acf2968c9de223f78445f3434404
Diffstat (limited to 'services')
-rw-r--r--services/usb/java/com/android/server/usb/UsbMidiDevice.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/usb/java/com/android/server/usb/UsbMidiDevice.java b/services/usb/java/com/android/server/usb/UsbMidiDevice.java
index b5187d6..51d61bb 100644
--- a/services/usb/java/com/android/server/usb/UsbMidiDevice.java
+++ b/services/usb/java/com/android/server/usb/UsbMidiDevice.java
@@ -103,7 +103,7 @@ public final class UsbMidiDevice implements Closeable {
final int portF = port;
mInputPortReceivers[port] = new MidiReceiver() {
@Override
- public void post(byte[] data, int offset, int count, long timestamp)
+ public void receive(byte[] data, int offset, int count, long timestamp)
throws IOException {
// FIXME - timestamps are ignored, future posting not supported yet.
mOutputStreams[portF].write(data, offset, count);
@@ -144,7 +144,7 @@ public final class UsbMidiDevice implements Closeable {
int count = mInputStreams[index].read(buffer);
long timestamp = System.nanoTime();
- outputReceivers[index].post(buffer, 0, count, timestamp);
+ outputReceivers[index].receive(buffer, 0, count, timestamp);
} else if ((pfd.revents & (OsConstants.POLLERR
| OsConstants.POLLHUP)) != 0) {
done = true;