summaryrefslogtreecommitdiffstats
path: root/telephony/java/com/android/ims/ImsCallProfile.java
diff options
context:
space:
mode:
authorShriram Ganesh <sganesh@codeaurora.org>2014-10-13 11:31:50 -0700
committerEtan Cohen <etancohen@google.com>2014-11-11 16:36:15 +0000
commit482e6da9720ec8467c9deb5e11874f78caa3eae4 (patch)
tree84d984d384dd3895376bfdf2454b1e16d5728807 /telephony/java/com/android/ims/ImsCallProfile.java
parent12403b242f86c0572a99a963fd1e71eda680192b (diff)
downloadframeworks_base-482e6da9720ec8467c9deb5e11874f78caa3eae4.zip
frameworks_base-482e6da9720ec8467c9deb5e11874f78caa3eae4.tar.gz
frameworks_base-482e6da9720ec8467c9deb5e11874f78caa3eae4.tar.bz2
IMS: Peer capabilities support
Add support for querying peer capabilities IMS: Add support for HD icon display related information Added support to pass the restrict cause associated with the peer in order to enable display of the HD icon when necessary.Added support to pass local audio codec information and defined values for new codecs not defined. Change-Id: If05d46bdb3907a0ec7efdde48337a7932a7a5c21
Diffstat (limited to 'telephony/java/com/android/ims/ImsCallProfile.java')
-rw-r--r--telephony/java/com/android/ims/ImsCallProfile.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java
index 8b7901c..9de938a 100644
--- a/telephony/java/com/android/ims/ImsCallProfile.java
+++ b/telephony/java/com/android/ims/ImsCallProfile.java
@@ -114,6 +114,10 @@ public class ImsCallProfile implements Parcelable {
public static final String EXTRA_CALL_MODE_CHANGEABLE = "call_mode_changeable";
public static final String EXTRA_CONFERENCE_AVAIL = "conference_avail";
+ // Extra string for internal use only. OEMs should not use
+ // this for packing extras.
+ public static final String EXTRA_OEM_EXTRAS = "OemCallExtras";
+
/**
* Integer extra properties
* oir : Rule for originating identity (number) presentation, MO/MT.
@@ -151,6 +155,18 @@ public class ImsCallProfile implements Parcelable {
public static final int DIALSTRING_USSD = 2;
/**
+ * Values for causes that restrict call types
+ */
+ // Default cause not restricted at peer and HD is supported
+ public static final int CALL_RESTRICT_CAUSE_NONE = 0;
+ // Service not supported by RAT at peer
+ public static final int CALL_RESTRICT_CAUSE_RAT = 1;
+ // Service Disabled at peer
+ public static final int CALL_RESTRICT_CAUSE_DISABLED = 2;
+ // HD is not supported
+ public static final int CALL_RESTRICT_CAUSE_HD = 3;
+
+ /**
* String extra properties
* oi : Originating identity (number), MT only
* cna : Calling name
@@ -164,11 +180,10 @@ public class ImsCallProfile implements Parcelable {
public int mServiceType;
public int mCallType;
+ public int mRestrictCause = CALL_RESTRICT_CAUSE_NONE;
public Bundle mCallExtras;
public ImsStreamMediaProfile mMediaProfile;
-
-
public ImsCallProfile(Parcel in) {
readFromParcel(in);
}