diff options
author | Sailesh Nepal <sail@google.com> | 2014-04-15 18:41:36 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-04-15 18:41:37 +0000 |
commit | 03c527aeb986f208be9d7188e1f73c7c39deed46 (patch) | |
tree | 25598be187e4d354af5644117f9bb28e1cbdc244 /telecomm | |
parent | 844b25a527b6bc1752c70663e66c6e3853fd4afd (diff) | |
parent | 5d9cb82b9b47dfd3d1911458c938cad61accdc75 (diff) | |
download | frameworks_base-03c527aeb986f208be9d7188e1f73c7c39deed46.zip frameworks_base-03c527aeb986f208be9d7188e1f73c7c39deed46.tar.gz frameworks_base-03c527aeb986f208be9d7188e1f73c7c39deed46.tar.bz2 |
Merge "Add toString to CallServiceDescriptor" into master-nova
Diffstat (limited to 'telecomm')
-rw-r--r-- | telecomm/java/android/telecomm/CallServiceDescriptor.java | 8 |
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. |