am 774f9be5: Merge "Add debug to CallManager#canDial." into honeycomb

* commit '774f9be5dc02e8a7f742008872c6214e517cb8a3':
  Add debug to CallManager#canDial.
This commit is contained in:
Wink Saville
2011-01-25 11:06:24 -08:00
committed by Android Git Automerger

View File

@@ -774,13 +774,23 @@ public final class CallManager {
boolean allLinesTaken = hasActiveCall && hasHoldingCall;
Call.State fgCallState = getActiveFgCallState();
return (serviceState != ServiceState.STATE_POWER_OFF
boolean result = (serviceState != ServiceState.STATE_POWER_OFF
&& !hasRingingCall
&& !allLinesTaken
&& ((fgCallState == Call.State.ACTIVE)
|| (fgCallState == Call.State.IDLE)
|| (fgCallState == Call.State.DISCONNECTED)));
}
if (result == false) {
Log.d(LOG_TAG, "canDial serviceState=" + serviceState
+ " hasRingingCall=" + hasRingingCall
+ " hasActiveCall=" + hasActiveCall
+ " hasHoldingCall=" + hasHoldingCall
+ " allLinesTaken=" + allLinesTaken
+ " fgCallState=" + fgCallState);
}
return result;
}
/**
* Whether or not the phone can do explicit call transfer in the current