Adding mute and speaker methods to CallCommandService.
Catching all exceptions from command service since they won't be sent over ipc.
Change-Id: Icdd11a9fe7d4041b228bf2543a8bf0b1ef7b1651
diff --git a/src/com/android/phone/CallHandlerServiceProxy.java b/src/com/android/phone/CallHandlerServiceProxy.java
index cb1e188..a9f6b21 100644
--- a/src/com/android/phone/CallHandlerServiceProxy.java
+++ b/src/com/android/phone/CallHandlerServiceProxy.java
@@ -39,7 +39,7 @@
private static final String TAG = CallHandlerServiceProxy.class.getSimpleName();
private static final boolean DBG =
(PhoneGlobals.DBG_LEVEL >= 1) && (SystemProperties.getInt("ro.debuggable", 0) == 1);
- private static final boolean VDBG = (PhoneGlobals.DBG_LEVEL >= 2);
+
private Context mContext;
private CallStateMonitor mCallStateMonitor;
@@ -85,6 +85,11 @@
@Override
public void onServiceDisconnected(ComponentName className) {
+ // TODO(klp): handle the case where the in call ui crashed or gets destroyed.
+ // In the near term, we need to re-bind to the service when ever it's gone.
+ // Longer term, we need a way to catch the crash and allow the users to choose
+ // a different in-call screen.
+ Log.e(TAG, "Yikes! no in call ui!");
mCallHandlerService = null;
}
};
@@ -118,6 +123,8 @@
} catch (RemoteException e) {
Log.e(TAG, "Remote exception handling onIncomingCall:" + e);
}
+ } else {
+ Log.wtf(TAG, "Call handle service has not connected! Cannot accept incoming call.");
}
}
}