Fields Summary |
---|
public static final int | PRECISE_CALL_STATE_NOT_VALIDCall state is not valid (Not received a call state). |
public static final int | PRECISE_CALL_STATE_IDLECall state: No activity. |
public static final int | PRECISE_CALL_STATE_ACTIVECall state: Active. |
public static final int | PRECISE_CALL_STATE_HOLDINGCall state: On hold. |
public static final int | PRECISE_CALL_STATE_DIALINGCall state: Dialing. |
public static final int | PRECISE_CALL_STATE_ALERTINGCall state: Alerting. |
public static final int | PRECISE_CALL_STATE_INCOMINGCall state: Incoming. |
public static final int | PRECISE_CALL_STATE_WAITINGCall state: Waiting. |
public static final int | PRECISE_CALL_STATE_DISCONNECTEDCall state: Disconnected. |
public static final int | PRECISE_CALL_STATE_DISCONNECTINGCall state: Disconnecting. |
private int | mRingingCallState |
private int | mForegroundCallState |
private int | mBackgroundCallState |
private int | mDisconnectCause |
private int | mPreciseDisconnectCause |
public static final Parcelable.Creator | CREATOR |
Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object obj)
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
PreciseCallState other = (PreciseCallState) obj;
return (mRingingCallState != other.mRingingCallState &&
mForegroundCallState != other.mForegroundCallState &&
mBackgroundCallState != other.mBackgroundCallState &&
mDisconnectCause != other.mDisconnectCause &&
mPreciseDisconnectCause != other.mPreciseDisconnectCause);
|
public int | getBackgroundCallState()Get precise background call state
return mBackgroundCallState;
|
public int | getDisconnectCause()Get disconnect cause generated by the framework
return mDisconnectCause;
|
public int | getForegroundCallState()Get precise foreground call state
return mForegroundCallState;
|
public int | getPreciseDisconnectCause()Get disconnect cause generated by the RIL
return mPreciseDisconnectCause;
|
public int | getRingingCallState()Get precise ringing call state
return mRingingCallState;
|
public int | hashCode()
final int prime = 31;
int result = 1;
result = prime * result + mRingingCallState;
result = prime * result + mForegroundCallState;
result = prime * result + mBackgroundCallState;
result = prime * result + mDisconnectCause;
result = prime * result + mPreciseDisconnectCause;
return result;
|
public java.lang.String | toString()
StringBuffer sb = new StringBuffer();
sb.append("Ringing call state: " + mRingingCallState);
sb.append(", Foreground call state: " + mForegroundCallState);
sb.append(", Background call state: " + mBackgroundCallState);
sb.append(", Disconnect cause: " + mDisconnectCause);
sb.append(", Precise disconnect cause: " + mPreciseDisconnectCause);
return sb.toString();
|
public void | writeToParcel(android.os.Parcel out, int flags)
out.writeInt(mRingingCallState);
out.writeInt(mForegroundCallState);
out.writeInt(mBackgroundCallState);
out.writeInt(mDisconnectCause);
out.writeInt(mPreciseDisconnectCause);
|