java.lang.Object | |
↳ | com.android.phone.CdmaPhoneCallState |
Class to internally keep track of Call states to maintain information for Call Waiting and 3Way for CDMA instance of Phone App. Explanation for PhoneApp's Call states and why it is required: IDLE - When no call is going on. This is just required as default state to reset the PhoneApp call state to when the complete call gets disconnected SINGLE_ACTIVE - When only single call is active. In normal case(on a single call) this state would be similar for FW's state of ACTIVE call or phone state of OFFHOOK, but in more complex conditions e.g. when phone is already in a CONF_CALL state and user rejects a CW, which basically tells the PhoneApp that the Call is back to a single call, the FW's state still would remain ACTIVE or OFFHOOK and isGeneric would still be true. At this condition PhoneApp does need to enable the "Add Call" menu item and disable the "Swap" and "Merge" options THRWAY_ACTIVE - When user initiate an outgoing call when already on a call. fgCall can have more than one connections from various scenarios (accepting the CW or making a 3way call) but once we are in this state and one of the parties drops off, when the user originates another call we need to remember this state to update the menu items accordingly. FW currently does not differentiate this condition hence PhoneApp needs to maintain it. CONF_CALL - When the user merges two calls or on accepting the Call waiting call. This is required cause even though a call might be generic but that does not mean it is in conference. We can take the same example mention in the SINGLE_ACTIVE state. TODO: Eventually this state information should be maintained by Telephony FW.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CdmaPhoneCallState.PhoneCallState | Allowable values for the PhoneCallState. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Initialize PhoneCallState related members - constructor
| |||||||||||
Return 3Way display information
| |||||||||||
Return information for enabling/disabling "Add Call" menu item
| |||||||||||
Returns the current call state
| |||||||||||
Return previous PhoneCallState's
| |||||||||||
Reset all PhoneCallState
| |||||||||||
Set mAddCallMenuStateAfterCW to enabling/disabling "Add Call" menu item
| |||||||||||
Set current and previous PhoneCallState's
| |||||||||||
Set 3Way display information
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Initialize PhoneCallState related members - constructor
Return 3Way display information
Return information for enabling/disabling "Add Call" menu item
Reset all PhoneCallState
Set mAddCallMenuStateAfterCW to enabling/disabling "Add Call" menu item
Set current and previous PhoneCallState's
Set 3Way display information