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/CallActivity.java b/src/com/android/telecomm/CallActivity.java
index 9347c2e..2418a0a 100644
--- a/src/com/android/telecomm/CallActivity.java
+++ b/src/com/android/telecomm/CallActivity.java
@@ -22,7 +22,6 @@
import android.os.Bundle;
import android.telecomm.CallServiceDescriptor;
import android.telecomm.TelecommConstants;
-import android.util.Log;
import android.widget.Toast;
/**
@@ -31,11 +30,6 @@
*/
public class CallActivity extends Activity {
- private static final String TAG = CallActivity.class.getSimpleName();
-
- /** Indicates whether or not debug-level entries should be logged. */
- private static boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
-
private CallsManager mCallsManager = CallsManager.getInstance();
/**
@@ -57,11 +51,9 @@
Intent intent = getIntent();
Configuration configuration = getResources().getConfiguration();
- if (DEBUG) {
- Log.d(TAG, "onCreate: this = " + this + ", bundle= " + bundle);
- Log.d(TAG, " - intent = " + intent);
- Log.d(TAG, " - configuration = " + configuration);
- }
+ Log.d(this, "onCreate: this = %s, bundle = %s", this, bundle);
+ Log.d(this, " - intent = %s", intent);
+ Log.d(this, " - configuration = %s", configuration);
// TODO(santoscordon): Figure out if there is something to restore from bundle.
// See OutgoingCallBroadcaster in services/Telephony for more.
@@ -71,9 +63,7 @@
// This activity does not have associated UI, so close.
finish();
- if (DEBUG) {
- Log.d(TAG, "onCreate: end");
- }
+ Log.d(this, "onCreate: end");
}
/**
@@ -122,7 +112,7 @@
CallServiceDescriptor descriptor =
intent.getParcelableExtra(TelecommConstants.EXTRA_CALL_SERVICE_DESCRIPTOR);
if (descriptor == null) {
- Log.w(TAG, "Rejecting incoming call due to null descriptor");
+ Log.w(this, "Rejecting incoming call due to null descriptor");
return;
}
@@ -131,7 +121,7 @@
clientExtras = intent.getBundleExtra(TelecommConstants.EXTRA_INCOMING_CALL_EXTRAS);
}
- Log.d(TAG, "Processing incoming call from call service [" + descriptor + "]");
+ Log.d(this, "Processing incoming call from call service [%s]", descriptor);
mCallsManager.processIncomingCallIntent(descriptor, clientExtras);
}
}