Improve logging in BluetoothHeadsetClientCall. am: 3c67873f0a am: 180dd72a9b am: a83d518689

am: 0a8c81a204

* commit '0a8c81a2046753f08c036ec68a15778e0c0dade4':
  Improve logging in BluetoothHeadsetClientCall.
This commit is contained in:
Bryce Lee
2015-12-09 23:18:52 +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: ");