From 5d9cb82b9b47dfd3d1911458c938cad61accdc75 Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Tue, 15 Apr 2014 11:19:19 -0700 Subject: Add toString to CallServiceDescriptor Change-Id: I847dbd8cf965516ad45f91d2db5df19469e2a2f8 --- telecomm/java/android/telecomm/CallServiceDescriptor.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'telecomm') diff --git a/telecomm/java/android/telecomm/CallServiceDescriptor.java b/telecomm/java/android/telecomm/CallServiceDescriptor.java index 3bec270..dec3791 100644 --- a/telecomm/java/android/telecomm/CallServiceDescriptor.java +++ b/telecomm/java/android/telecomm/CallServiceDescriptor.java @@ -22,6 +22,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.util.Log; +import java.util.Locale; import java.util.UUID; /** @@ -123,6 +124,13 @@ public final class CallServiceDescriptor implements Parcelable { mNetworkType == descriptor.mNetworkType; } + @Override + public String toString() { + return String.format(Locale.US, "[%s, component: %s]", + CallServiceDescriptor.class.getSimpleName(), + mComponentName == null ? "null" : mComponentName.flattenToShortString()); + } + /** * @param context {@link Context} to use for the construction of the {@link Builder}. * @return A new {@link Builder} instance. -- cgit v1.1