Fields Summary |
---|
public static final int | CALL_STATE_ACTIVECall is active. |
public static final int | CALL_STATE_HELDCall is in held state. |
public static final int | CALL_STATE_DIALINGOutgoing call that is being dialed right now. |
public static final int | CALL_STATE_ALERTINGOutgoing call that remote party has already been alerted about. |
public static final int | CALL_STATE_INCOMINGIncoming call that can be accepted or rejected. |
public static final int | CALL_STATE_WAITINGWaiting call state when there is already an active call. |
public static final int | CALL_STATE_HELD_BY_RESPONSE_AND_HOLDCall that has been held by response and hold
(see Bluetooth specification for further references). |
public static final int | CALL_STATE_TERMINATEDCall that has been already terminated and should not be referenced as a valid call. |
private final int | mId |
private int | mState |
private String | mNumber |
private boolean | mMultiParty |
private final boolean | mOutgoing |
public static final Parcelable.Creator | CREATOR{@link Parcelable.Creator} interface implementation. |
Methods Summary |
---|
public int | describeContents()
return 0;
|
public int | getId()Gets call's Id.
return mId;
|
public java.lang.String | getNumber()Gets call's number.
return mNumber;
|
public int | getState()Gets call's current state.
return mState;
|
public boolean | isMultiParty()Checks if call is an active call in a conference mode (aka multi party).
return mMultiParty;
|
public boolean | isOutgoing()Checks if this call is an outgoing call.
return mOutgoing;
|
public void | setMultiParty(boolean multiParty)Sets this call as multi party call.
Note: This is an internal function and shouldn't be exposed
mMultiParty = multiParty;
|
public void | setNumber(java.lang.String number)Sets call's number.
Note: This is an internal function and shouldn't be exposed
mNumber = number;
|
public void | setState(int state)Sets call's state.
Note: This is an internal function and shouldn't be exposed
mState = state;
|
public java.lang.String | toString()
StringBuilder builder = new StringBuilder("BluetoothHeadsetClientCall{mId: ");
builder.append(mId);
builder.append(", mState: ");
switch (mState) {
case CALL_STATE_ACTIVE: builder.append("ACTIVE"); break;
case CALL_STATE_HELD: builder.append("HELD"); break;
case CALL_STATE_DIALING: builder.append("DIALING"); break;
case CALL_STATE_ALERTING: builder.append("ALERTING"); break;
case CALL_STATE_INCOMING: builder.append("INCOMING"); break;
case CALL_STATE_WAITING: builder.append("WAITING"); break;
case CALL_STATE_HELD_BY_RESPONSE_AND_HOLD: builder.append("HELD_BY_RESPONSE_AND_HOLD"); break;
case CALL_STATE_TERMINATED: builder.append("TERMINATED"); break;
default: builder.append(mState); break;
}
builder.append(", mNumber: ");
builder.append(mNumber);
builder.append(", mMultiParty: ");
builder.append(mMultiParty);
builder.append(", mOutgoing: ");
builder.append(mOutgoing);
builder.append("}");
return builder.toString();
|
public void | writeToParcel(android.os.Parcel out, int flags)
out.writeInt(mId);
out.writeInt(mState);
out.writeString(mNumber);
out.writeInt(mMultiParty ? 1 : 0);
out.writeInt(mOutgoing ? 1 : 0);
|