summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorSailesh Nepal <sail@google.com>2014-04-15 11:19:19 -0700
committerSailesh Nepal <sail@google.com>2014-04-15 11:37:01 -0700
commit5d9cb82b9b47dfd3d1911458c938cad61accdc75 (patch)
tree856c0ac55232a21d9f745eb84fc69f2e6a873dc1 /telecomm
parent3f3d33ffb71a8b96b80d32f5758189fe91891549 (diff)
downloadframeworks_base-5d9cb82b9b47dfd3d1911458c938cad61accdc75.zip
frameworks_base-5d9cb82b9b47dfd3d1911458c938cad61accdc75.tar.gz
frameworks_base-5d9cb82b9b47dfd3d1911458c938cad61accdc75.tar.bz2
Add toString to CallServiceDescriptor
Change-Id: I847dbd8cf965516ad45f91d2db5df19469e2a2f8
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecomm/CallServiceDescriptor.java8
1 files changed, 8 insertions, 0 deletions
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.