Improve logging in BluetoothHeadsetClientCall.

am: 3c67873f0a

* commit '3c67873f0a20a958f6cf1ccccb472fa050bf55b7':
  Improve logging in BluetoothHeadsetClientCall.
This commit is contained in:
Bryce Lee
2015-12-09 22:54:19 +00:00
committed by android-build-merger

View File

@@ -172,8 +172,12 @@ public final class BluetoothHeadsetClientCall implements Parcelable {
}
public String toString() {
return toString(false);
}
public String toString(boolean loggable) {
StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mDevice: ");
builder.append(mDevice);
builder.append(loggable ? mDevice.hashCode() : mDevice);
builder.append(", mId: ");
builder.append(mId);
builder.append(", mState: ");
@@ -189,7 +193,7 @@ public final class BluetoothHeadsetClientCall implements Parcelable {
default: builder.append(mState); break;
}
builder.append(", mNumber: ");
builder.append(mNumber);
builder.append(loggable ? mNumber.hashCode() : mNumber);
builder.append(", mMultiParty: ");
builder.append(mMultiParty);
builder.append(", mOutgoing: ");