Upate logging to use LogUtil
This CL replaces all calls to Log.* with calls to LogUtil.*.
Bug: 13172967
Change-Id: I649e2c4f74f9d74d046eddc777e192a066882520
diff --git a/src/com/android/telecomm/ServiceBinder.java b/src/com/android/telecomm/ServiceBinder.java
index 2b9cc5c..98ce4ca 100644
--- a/src/com/android/telecomm/ServiceBinder.java
+++ b/src/com/android/telecomm/ServiceBinder.java
@@ -22,7 +22,6 @@
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.IInterface;
-import android.util.Log;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
@@ -73,8 +72,6 @@
}
}
- private static final String TAG = ServiceBinder.class.getSimpleName();
-
/** The application context. */
private final Context mContext;
@@ -125,7 +122,7 @@
*/
final boolean bind(BindCallback callback) {
ThreadUtil.checkOnMainThread();
- Log.d(TAG, "bind()");
+ Log.d(this, "bind()");
// Reset any abort request if we're asked to bind again.
clearAbort();
@@ -142,13 +139,13 @@
Intent serviceIntent = new Intent(mServiceAction).setComponent(mComponentName);
ServiceConnection connection = new ServiceBinderConnection();
- Log.d(TAG, "Binding to call service with intent: " + serviceIntent);
+ Log.d(this, "Binding to call service with intent: %s", serviceIntent);
if (!mContext.bindService(serviceIntent, connection, Context.BIND_AUTO_CREATE)) {
handleFailedConnection();
return false;
}
} else {
- Log.d(TAG, "Service is already bound.");
+ Log.d(this, "Service is already bound.");
Preconditions.checkNotNull(mBinder);
handleSuccessfulConnection();
}
@@ -164,8 +161,8 @@
if (mAssociatedCallCount > 0) {
mAssociatedCallCount--;
} else {
- Log.wtf(TAG, mComponentName.getClassName() +
- ": ignoring a request to decrement mAssociatedCallCount below zero");
+ Log.wtf(this, "%s: ignoring a request to decrement mAssociatedCallCount below zero",
+ mComponentName.getClassName());
}
}