public class

InCallControlState

extends Object
java.lang.Object
   ↳ com.android.phone.InCallControlState

Class Overview

Helper class to keep track of enabledness, visibility, and "on/off" or "checked" state of the various controls available in the in-call UI, based on the current telephony state. This class is independent of the exact UI controls used on any given device. (Some devices use onscreen touchable buttons, for example, and other devices use menu items.) To avoid cluttering up the InCallMenu and InCallTouchUi code with logic about which functions are available right now, we instead have that logic here, and provide simple boolean flags to indicate the state and/or enabledness of all possible in-call user operations. (In other words, this is the "model" that corresponds to the "view" implemented by InCallMenu and InCallTouchUi.)

Summary

Fields
public boolean bluetoothEnabled
public boolean bluetoothIndicatorOn
public boolean canAddCall
public boolean canHold True if the "Hold" or "Unhold" function should be available right now
public boolean canMerge
public boolean canMute
public boolean canSwap
public boolean dialpadEnabled
public boolean dialpadVisible
public boolean manageConferenceEnabled
public boolean manageConferenceVisible
public boolean muteIndicatorOn
public boolean onHold True if the call is currently on hold
public boolean speakerEnabled
public boolean speakerOn
public boolean supportsHold True if the "Hold" function is *ever* available on this device
Public Constructors
InCallControlState(InCallScreen inCallScreen, CallManager cm)
Public Methods
void dumpState()
void update()
Updates all our public boolean flags based on the current state of the Phone.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public boolean bluetoothEnabled

public boolean bluetoothIndicatorOn

public boolean canAddCall

public boolean canHold

True if the "Hold" or "Unhold" function should be available right now

public boolean canMerge

public boolean canMute

public boolean canSwap

public boolean dialpadEnabled

public boolean dialpadVisible

public boolean manageConferenceEnabled

public boolean manageConferenceVisible

public boolean muteIndicatorOn

public boolean onHold

True if the call is currently on hold

public boolean speakerEnabled

public boolean speakerOn

public boolean supportsHold

True if the "Hold" function is *ever* available on this device

Public Constructors

public InCallControlState (InCallScreen inCallScreen, CallManager cm)

Public Methods

public void dumpState ()

public void update ()

Updates all our public boolean flags based on the current state of the Phone.