Make incoming calls work.

This is a CL of random changes. Ties of loose ends which were previously
commented and adds new wiring to connect all the pieces together.

After this CL, incoming calls are functional for call services.

Change-Id: I6fa1e70b816094587849329790236f9289ec260b
diff --git a/src/com/android/telecomm/ServiceBinder.java b/src/com/android/telecomm/ServiceBinder.java
index 9619239..3c84967 100644
--- a/src/com/android/telecomm/ServiceBinder.java
+++ b/src/com/android/telecomm/ServiceBinder.java
@@ -22,6 +22,7 @@
 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;
@@ -72,6 +73,8 @@
         }
     }
 
+    private static final String TAG = ServiceBinder.class.getSimpleName();
+
     /** The application context. */
     private final Context mContext;
 
@@ -119,6 +122,7 @@
      */
     final boolean bind(BindCallback callback) {
         ThreadUtil.checkOnMainThread();
+        Log.d(TAG, "bind()");
 
         // Reset any abort request if we're asked to bind again.
         clearAbort();
@@ -135,11 +139,13 @@
             Intent serviceIntent = new Intent(mServiceAction).setComponent(mComponentName);
             ServiceConnection connection = new ServiceBinderConnection();
 
+            Log.d(TAG, "Binding to call service with intent: " + serviceIntent);
             if (!mContext.bindService(serviceIntent, connection, Context.BIND_AUTO_CREATE)) {
                 handleFailedConnection();
                 return false;
             }
         } else {
+            Log.d(TAG, "Service is already bound.");
             Preconditions.checkNotNull(mBinder);
             handleSuccessfulConnection();
         }