diff options
author | RoboErik <epastern@google.com> | 2014-05-01 17:11:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-05-01 17:11:34 +0000 |
commit | 67e2196d07dd4dc1f3ce82fdaaa34cdbce89e1ce (patch) | |
tree | eb4bb9d5fc69356ba7f74f6b65a7b21afb9c9204 /media | |
parent | 4a26164316b0d9a6d97dfbb85a2ac176384bb985 (diff) | |
parent | a278ea7cecb59a73586e5dd74ec05e85caa370c5 (diff) | |
download | frameworks_base-67e2196d07dd4dc1f3ce82fdaaa34cdbce89e1ce.zip frameworks_base-67e2196d07dd4dc1f3ce82fdaaa34cdbce89e1ce.tar.gz frameworks_base-67e2196d07dd4dc1f3ce82fdaaa34cdbce89e1ce.tar.bz2 |
Merge "Add dump to MediaSessionService"
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/routeprovider/RouteRequest.java | 13 | ||||
-rw-r--r-- | media/java/android/media/session/SessionInfo.java | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/media/java/android/media/routeprovider/RouteRequest.java b/media/java/android/media/routeprovider/RouteRequest.java index 9913566..68475c0 100644 --- a/media/java/android/media/routeprovider/RouteRequest.java +++ b/media/java/android/media/routeprovider/RouteRequest.java @@ -20,6 +20,8 @@ import android.media.session.SessionInfo; import android.os.Parcel; import android.os.Parcelable; +import java.io.PrintWriter; + /** * A request to connect or discover routes with certain capabilities. * <p> @@ -70,6 +72,17 @@ public final class RouteRequest implements Parcelable { } @Override + public String toString() { + StringBuilder bob = new StringBuilder(); + bob.append("RouteRequest {"); + bob.append("active=").append(mActive); + bob.append(", info=").append(mSessionInfo.toString()); + bob.append(", options=").append(mOptions.toString()); + bob.append("}"); + return bob.toString(); + } + + @Override public int describeContents() { return 0; } diff --git a/media/java/android/media/session/SessionInfo.java b/media/java/android/media/session/SessionInfo.java index 22d8ab1..2b65528 100644 --- a/media/java/android/media/session/SessionInfo.java +++ b/media/java/android/media/session/SessionInfo.java @@ -57,6 +57,11 @@ public final class SessionInfo implements Parcelable { } @Override + public String toString() { + return "SessionInfo {id=" + mId + ", pkg=" + mPackageName + "}"; + } + + @Override public int describeContents() { return 0; } |