public class ImsCallProfile extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
CALL_RESTRICT_CAUSE_DISABLED |
static int |
CALL_RESTRICT_CAUSE_HD |
static int |
CALL_RESTRICT_CAUSE_NONE
Values for causes that restrict call types
|
static int |
CALL_RESTRICT_CAUSE_RAT |
static int |
CALL_TYPE_VIDEO_N_VOICE
VT to support IR.92 & IR.94 (voice + video upgrade/downgrade)
|
static int |
CALL_TYPE_VOICE
IR.92 (Voice only)
|
static int |
CALL_TYPE_VOICE_N_VIDEO
IMSPhone to support IR.92 & IR.94 (voice + video upgrade/downgrade)
|
static int |
CALL_TYPE_VS
VideoShare (video two way)
|
static int |
CALL_TYPE_VS_RX
VideoShare (video RX one way)
|
static int |
CALL_TYPE_VS_TX
VideoShare (video TX one way)
|
static int |
CALL_TYPE_VT
Video Telephony (audio / video two way)
|
static int |
CALL_TYPE_VT_NODIR
Video Telephony (audio two way / video inactive)
|
static int |
CALL_TYPE_VT_RX
Video Telephony (audio two way / video RX one way)
|
static int |
CALL_TYPE_VT_TX
Video Telephony (audio two way / video TX one way)
|
static Parcelable.Creator<ImsCallProfile> |
CREATOR |
static int |
DIALSTRING_NORMAL
Values for EXTRA_DIALSTRING
|
static int |
DIALSTRING_SS_CONF |
static int |
DIALSTRING_USSD |
static String |
EXTRA_ADDITIONAL_CALL_INFO |
static String |
EXTRA_CALL_MODE_CHANGEABLE |
static String |
EXTRA_CALL_RAT_TYPE
Extra key which the RIL can use to indicate the radio technology used for a call.
|
static String |
EXTRA_CALL_RAT_TYPE_ALT
Similar to
EXTRA_CALL_RAT_TYPE , except with a lowercase 'c'. |
static String |
EXTRA_CHILD_NUMBER |
static String |
EXTRA_CNA |
static String |
EXTRA_CNAP |
static String |
EXTRA_CODEC |
static String |
EXTRA_CONFERENCE
Boolean extra properties - "true" / "false"
conference : Indicates if the session is for the conference call or not.
|
static String |
EXTRA_CONFERENCE_AVAIL |
static String |
EXTRA_DIALSTRING |
static String |
EXTRA_DISPLAY_TEXT |
static String |
EXTRA_E_CALL |
static String |
EXTRA_IS_CALL_PULL |
static String |
EXTRA_OEM_EXTRAS |
static String |
EXTRA_OI
String extra properties
oi : Originating identity (number), MT only
cna : Calling name
ussd : For network-initiated USSD, MT only
remote_uri : Connected user identity (it can be used for the conference)
ChildNum: Child number info.
|
static String |
EXTRA_OIR
Integer extra properties
oir : Rule for originating identity (number) presentation, MO/MT.
|
static String |
EXTRA_REMOTE_URI |
static String |
EXTRA_USSD |
static String |
EXTRA_VMS |
Bundle |
mCallExtras |
int |
mCallType |
ImsStreamMediaProfile |
mMediaProfile |
int |
mRestrictCause |
int |
mServiceType |
static int |
OIR_DEFAULT
Values for EXTRA_OIR / EXTRA_CNAP
|
static int |
OIR_PRESENTATION_NOT_RESTRICTED |
static int |
OIR_PRESENTATION_PAYPHONE |
static int |
OIR_PRESENTATION_RESTRICTED |
static int |
OIR_PRESENTATION_UNKNOWN |
static int |
SERVICE_TYPE_EMERGENCY
It is for an emergency call.
|
static int |
SERVICE_TYPE_NONE
It is for a special case.
|
static int |
SERVICE_TYPE_NORMAL
It is a default type and can be selected when the device is connected to the IMS network.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
ImsCallProfile() |
ImsCallProfile(int serviceType,
int callType) |
ImsCallProfile(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
String |
getCallExtra(String name) |
String |
getCallExtra(String name,
String defaultValue) |
boolean |
getCallExtraBoolean(String name) |
boolean |
getCallExtraBoolean(String name,
boolean defaultValue) |
int |
getCallExtraInt(String name) |
int |
getCallExtraInt(String name,
int defaultValue) |
static int |
getCallTypeFromVideoState(int videoState)
Converts from the video state values defined in
VideoProfile
to the call types defined in ImsCallProfile . |
static int |
getVideoStateFromCallType(int callType)
Translates a
ImsCallProfile CALL_TYPE_* constant into a video state. |
static int |
getVideoStateFromImsCallProfile(ImsCallProfile callProfile)
Converts from the call types defined in
ImsCallProfile to the
video state values defined in VideoProfile . |
boolean |
isVideoCall()
Determines if the
ImsCallProfile represents a video call. |
boolean |
isVideoPaused()
Checks if video call is paused
|
static int |
OIRToPresentation(int oir)
Translate OIR value to presentation value
|
static int |
presentationToOIR(int presentation)
Translate presentation value to OIR value
|
void |
setCallExtra(String name,
String value) |
void |
setCallExtraBoolean(String name,
boolean value) |
void |
setCallExtraInt(String name,
int value) |
String |
toString()
Returns a string representation of the object.
|
void |
updateCallExtras(ImsCallProfile profile) |
void |
updateCallType(ImsCallProfile profile) |
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final int SERVICE_TYPE_NONE
public static final int SERVICE_TYPE_NORMAL
public static final int SERVICE_TYPE_EMERGENCY
public static final int CALL_TYPE_VOICE_N_VIDEO
public static final int CALL_TYPE_VOICE
public static final int CALL_TYPE_VIDEO_N_VOICE
public static final int CALL_TYPE_VT
public static final int CALL_TYPE_VT_TX
public static final int CALL_TYPE_VT_RX
public static final int CALL_TYPE_VT_NODIR
public static final int CALL_TYPE_VS
public static final int CALL_TYPE_VS_TX
public static final int CALL_TYPE_VS_RX
public static final String EXTRA_CONFERENCE
public static final String EXTRA_E_CALL
public static final String EXTRA_VMS
public static final String EXTRA_CALL_MODE_CHANGEABLE
public static final String EXTRA_CONFERENCE_AVAIL
public static final String EXTRA_OEM_EXTRAS
public static final String EXTRA_OIR
OIR_DEFAULT
OIR_PRESENTATION_RESTRICTED
OIR_PRESENTATION_NOT_RESTRICTED
cnap : Rule for calling name presentation
OIR_DEFAULT
OIR_PRESENTATION_RESTRICTED
OIR_PRESENTATION_NOT_RESTRICTED
dialstring : To identify the Ims call type, MO
ImsCallProfile#DIALSTRING_NORMAL_CALL
DIALSTRING_SS_CONF
DIALSTRING_USSD
public static final String EXTRA_CNAP
public static final String EXTRA_DIALSTRING
public static final int OIR_DEFAULT
public static final int OIR_PRESENTATION_RESTRICTED
public static final int OIR_PRESENTATION_NOT_RESTRICTED
public static final int OIR_PRESENTATION_UNKNOWN
public static final int OIR_PRESENTATION_PAYPHONE
public static final int DIALSTRING_NORMAL
public static final int DIALSTRING_SS_CONF
public static final int DIALSTRING_USSD
public static final int CALL_RESTRICT_CAUSE_NONE
public static final int CALL_RESTRICT_CAUSE_RAT
public static final int CALL_RESTRICT_CAUSE_DISABLED
public static final int CALL_RESTRICT_CAUSE_HD
public static final String EXTRA_OI
public static final String EXTRA_CNA
public static final String EXTRA_USSD
public static final String EXTRA_REMOTE_URI
public static final String EXTRA_CHILD_NUMBER
public static final String EXTRA_CODEC
public static final String EXTRA_DISPLAY_TEXT
public static final String EXTRA_ADDITIONAL_CALL_INFO
public static final String EXTRA_IS_CALL_PULL
public static final String EXTRA_CALL_RAT_TYPE
ServiceState.RIL_RADIO_TECHNOLOGY_LTE
,
ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN
, and the other defined
RIL_RADIO_TECHNOLOGY_*
constants.
Note: Despite the fact the ServiceState
values are integer
constants, the values passed for the EXTRA_CALL_RAT_TYPE
should be strings (e.g.
"14" vs (int) 14).
Note: This is used by updateWifiStateFromExtras(Bundle)
to determine whether to set the
Connection.PROPERTY_WIFI
property on a connection.public static final String EXTRA_CALL_RAT_TYPE_ALT
EXTRA_CALL_RAT_TYPE
, except with a lowercase 'c'. Used to ensure
compatibility with modems that are non-compliant with the EXTRA_CALL_RAT_TYPE
extra key. Should be removed when the non-compliant modems are fixed.public int mServiceType
public int mCallType
public int mRestrictCause
public Bundle mCallExtras
public ImsStreamMediaProfile mMediaProfile
public static final Parcelable.Creator<ImsCallProfile> CREATOR
public ImsCallProfile(Parcel in)
public ImsCallProfile()
public ImsCallProfile(int serviceType, int callType)
public boolean getCallExtraBoolean(String name)
public boolean getCallExtraBoolean(String name, boolean defaultValue)
public int getCallExtraInt(String name)
public int getCallExtraInt(String name, int defaultValue)
public void setCallExtraBoolean(String name, boolean value)
public void setCallExtraInt(String name, int value)
public void updateCallType(ImsCallProfile profile)
public void updateCallExtras(ImsCallProfile profile)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public static int getVideoStateFromImsCallProfile(ImsCallProfile callProfile)
ImsCallProfile
to the
video state values defined in VideoProfile
.callProfile
- The call profile.public static int getVideoStateFromCallType(int callType)
ImsCallProfile
CALL_TYPE_*
constant into a video state.callType
- The call type.public static int getCallTypeFromVideoState(int videoState)
VideoProfile
to the call types defined in ImsCallProfile
.videoState
- The video state.public static int presentationToOIR(int presentation)
presentation
- public static int OIRToPresentation(int oir)
oir
- valuepublic boolean isVideoPaused()
public boolean isVideoCall()
ImsCallProfile
represents a video call.true
if the profile is for a video call, false
otherwise.