public class

ManageConferenceUtils

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

Class Overview

Helper class to initialize and run the InCallScreen's "Manage conference" UI.

Summary

Public Constructors
ManageConferenceUtils(InCallScreen inCallScreen, CallManager cm)
Public Methods
final void displayCallerInfoForConferenceRow(CallerInfo ci, TextView nameTextView, TextView numberTypeTextView, TextView numberTextView)
Helper function to fill out the Conference Call(er) information for each item in the "Manage Conference Call" list.
void endConferenceConnection(int i, Connection connection)
Ends the specified connection on a conference call.
int getNumCallersInConference()
void initManageConferencePanel()
void onQueryComplete(int token, Object cookie, CallerInfo ci)
CallerInfoAsyncQuery.OnQueryCompleteListener implementation.
void separateConferenceConnection(int i, Connection connection)
Separates out the specified connection on a conference call.
void setPanelVisible(boolean visible)
Shows or hides the manageConferencePanel.
void startConferenceTime(long base)
Starts the "conference time" chronometer.
void stopConferenceTime()
Stops the "conference time" chronometer.
void updateManageConferencePanel(List<Connection> connections)
Updates the "Manage conference" UI based on the specified List of connections.
void updateManageConferenceRow(int i, Connection connection, boolean canSeparate)
Updates a single row of the "Manage conference" UI.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ManageConferenceUtils (InCallScreen inCallScreen, CallManager cm)

Public Methods

public final void displayCallerInfoForConferenceRow (CallerInfo ci, TextView nameTextView, TextView numberTypeTextView, TextView numberTextView)

Helper function to fill out the Conference Call(er) information for each item in the "Manage Conference Call" list.

public void endConferenceConnection (int i, Connection connection)

Ends the specified connection on a conference call. This method is run (via a closure containing a row index and Connection) when the user clicks the "End" button on a specific row in the Manage conference UI.

public int getNumCallersInConference ()

public void initManageConferencePanel ()

public void onQueryComplete (int token, Object cookie, CallerInfo ci)

CallerInfoAsyncQuery.OnQueryCompleteListener implementation. This method listens for results from the caller-id info queries we fire off in updateManageConferenceRow(), and updates the corresponding conference row.

public void separateConferenceConnection (int i, Connection connection)

Separates out the specified connection on a conference call. This method is run (via a closure containing a row index and Connection) when the user clicks the "Separate" (i.e. "Private") button on a specific row in the Manage conference UI.

public void setPanelVisible (boolean visible)

Shows or hides the manageConferencePanel.

public void startConferenceTime (long base)

Starts the "conference time" chronometer.

public void stopConferenceTime ()

Stops the "conference time" chronometer.

public void updateManageConferencePanel (List<Connection> connections)

Updates the "Manage conference" UI based on the specified List of connections.

Parameters
connections the List of connections belonging to the current foreground call; size must be greater than 1 (or it wouldn't be a conference call in the first place.)

public void updateManageConferenceRow (int i, Connection connection, boolean canSeparate)

Updates a single row of the "Manage conference" UI. (One row in this UI represents a single caller in the conference.)

Parameters
i the row to update
connection the Connection corresponding to this caller. If null, that means this is an "empty slot" in the conference, so hide this row in the UI.
canSeparate if true, show a "Separate" (i.e. "Private") button on this row in the UI.