diff options
author | Wink Saville <wink@google.com> | 2011-01-24 23:25:31 -0800 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2011-01-24 23:25:31 -0800 |
commit | 079c8d7fd6ccb559f5b848bb5c25230fa467be04 (patch) | |
tree | 31e1d66d9dc58cd1b6109c4085b35613f4714cf2 /telephony | |
parent | da6f9295840b0e74f61afa273ce2a767d8148af7 (diff) | |
download | frameworks_base-079c8d7fd6ccb559f5b848bb5c25230fa467be04.zip frameworks_base-079c8d7fd6ccb559f5b848bb5c25230fa467be04.tar.gz frameworks_base-079c8d7fd6ccb559f5b848bb5c25230fa467be04.tar.bz2 |
Add debug to CallManager#canDial.
Add some debug to trackdown why canDial is sometime
returning false, see bug 3381435.
Change-Id: I0caade5ffdf9d67cdee0557971a8918182718512
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/internal/telephony/CallManager.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/telephony/java/com/android/internal/telephony/CallManager.java b/telephony/java/com/android/internal/telephony/CallManager.java index 719e5b4..43fae69 100644 --- a/telephony/java/com/android/internal/telephony/CallManager.java +++ b/telephony/java/com/android/internal/telephony/CallManager.java @@ -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 |