diff options
author | Mike Lockwood <lockwood@google.com> | 2015-05-07 21:23:25 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-07 21:23:26 +0000 |
commit | 3203f9a6a0669f270acce579b1cb30fac5e2af08 (patch) | |
tree | 73d361f9e8eeeff804faba4baa3d198494c1406f /media | |
parent | 6a8c79bb2b4b0c749e76dc3628ec5200efec4f40 (diff) | |
parent | fd5637fcce18adf44421389bf97a9da546f08940 (diff) | |
download | frameworks_base-3203f9a6a0669f270acce579b1cb30fac5e2af08.zip frameworks_base-3203f9a6a0669f270acce579b1cb30fac5e2af08.tar.gz frameworks_base-3203f9a6a0669f270acce579b1cb30fac5e2af08.tar.bz2 |
Merge "MidiManager: Improve output of "dumpsys midi"" into mnc-dev
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/midi/MidiDeviceInfo.java | 3 | ||||
-rw-r--r-- | media/java/android/media/midi/MidiDeviceStatus.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/media/java/android/media/midi/MidiDeviceInfo.java b/media/java/android/media/midi/MidiDeviceInfo.java index 35374ed..57607e9 100644 --- a/media/java/android/media/midi/MidiDeviceInfo.java +++ b/media/java/android/media/midi/MidiDeviceInfo.java @@ -298,6 +298,9 @@ public final class MidiDeviceInfo implements Parcelable { @Override public String toString() { + // This is a hack to force the mProperties Bundle to unparcel so we can + // print all the names and values. + mProperties.getString(PROPERTY_NAME); return ("MidiDeviceInfo[mType=" + mType + ",mInputPortCount=" + mInputPortCount + ",mOutputPortCount=" + mOutputPortCount + diff --git a/media/java/android/media/midi/MidiDeviceStatus.java b/media/java/android/media/midi/MidiDeviceStatus.java index 7522dcf..d4abeff 100644 --- a/media/java/android/media/midi/MidiDeviceStatus.java +++ b/media/java/android/media/midi/MidiDeviceStatus.java @@ -89,10 +89,9 @@ public final class MidiDeviceStatus implements Parcelable { @Override public String toString() { - StringBuilder builder = new StringBuilder(mDeviceInfo.toString()); int inputPortCount = mDeviceInfo.getInputPortCount(); int outputPortCount = mDeviceInfo.getOutputPortCount(); - builder.append(" mInputPortOpen=["); + StringBuilder builder = new StringBuilder("mInputPortOpen=["); for (int i = 0; i < inputPortCount; i++) { builder.append(mInputPortOpen[i]); if (i < inputPortCount -1) { |