diff options
author | Siva Velusamy <vsiva@google.com> | 2012-09-10 14:35:25 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2012-09-10 15:48:29 -0700 |
commit | 2da27350e6d5226d5b61720d0d4fbdf32ee0f976 (patch) | |
tree | 4a4e9c6dc455288bca8e96bfc43f1cacb2cd2eb5 /ddms/libs/ddmuilib/src | |
parent | 72000161fbccf626fe171e74489cc72923d670aa (diff) | |
download | sdk-2da27350e6d5226d5b61720d0d4fbdf32ee0f976.zip sdk-2da27350e6d5226d5b61720d0d4fbdf32ee0f976.tar.gz sdk-2da27350e6d5226d5b61720d0d4fbdf32ee0f976.tar.bz2 |
ddms: report user id if available
The HELO and APNM packets may append the user id at the end of the
packet. If that data is available, display it as part of the
application name.
Change-Id: Ie353c2cc2895db649fc6ab6054f1c88f5d2f247f
Diffstat (limited to 'ddms/libs/ddmuilib/src')
-rw-r--r-- | ddms/libs/ddmuilib/src/com/android/ddmuilib/DevicePanel.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/DevicePanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/DevicePanel.java index 27c844d..5c649ba 100644 --- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/DevicePanel.java +++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/DevicePanel.java @@ -49,6 +49,7 @@ import org.eclipse.swt.widgets.TreeColumn; import org.eclipse.swt.widgets.TreeItem; import java.util.ArrayList; +import java.util.Locale; /** * A display of both the devices and their clients. @@ -244,7 +245,11 @@ public final class DevicePanel extends Panel implements IDebugBridgeChangeListen case CLIENT_COL_NAME: String name = cd.getClientDescription(); if (name != null) { - return name; + if (cd.isValidUserId()) { + return String.format(Locale.US, "%s (%d)", name, cd.getUserId()); + } else { + return name; + } } return "?"; case CLIENT_COL_PID: |