From 52e3639cb4bf84d637bf3fae88a4197e71829d51 Mon Sep 17 00:00:00 2001 From: Omkar Kolangade Date: Thu, 29 Oct 2015 15:06:27 -0700 Subject: IMS: Support For Per-Call RAT Info Adding the extra key that will be used to propagate RAT information for each call via call extras. The key is used in IMS Service. Bug: 20144385 Change-Id: Ia7ca81d661afb579fd25315036c43489b1dca50d --- telephony/java/com/android/ims/ImsCallProfile.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'telephony/java/com') diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index f263b4d..861a379 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -178,6 +178,7 @@ public class ImsCallProfile implements Parcelable { * Codec: Codec info. * DisplayText: Display text for the call. * AdditionalCallInfo: Additional call info. + * CallRadioTech: The radio tech on which the call is placed. */ public static final String EXTRA_OI = "oi"; public static final String EXTRA_CNA = "cna"; @@ -187,6 +188,7 @@ public class ImsCallProfile implements Parcelable { public static final String EXTRA_CODEC = "Codec"; public static final String EXTRA_DISPLAY_TEXT = "DisplayText"; public static final String EXTRA_ADDITIONAL_CALL_INFO = "AdditionalCallInfo"; + public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech"; public int mServiceType; public int mCallType; -- cgit v1.1 From 613e5fec08cc1513efc1d066701324a4865ff664 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Mon, 2 Nov 2015 11:24:57 -0800 Subject: Improve comment on EXTRA_CALL_RAT_TYPE. Adding comments to EXTRA_CALL_RAT_TYPE to make it clear what it is used for, and what values are expected. Bug: 20144385 Change-Id: I248aca61abc8a57d7aeef650e48cc498e41c859b --- telephony/java/com/android/ims/ImsCallProfile.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'telephony/java/com') diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index 861a379..5f84e0c 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -188,6 +188,20 @@ public class ImsCallProfile implements Parcelable { public static final String EXTRA_CODEC = "Codec"; public static final String EXTRA_DISPLAY_TEXT = "DisplayText"; public static final String EXTRA_ADDITIONAL_CALL_INFO = "AdditionalCallInfo"; + + /** + * Extra key which the RIL can use to indicate the radio technology used for a call. + * Valid values are: + * {@link android.telephony.ServiceState#RIL_RADIO_TECHNOLOGY_LTE}, + * {@link android.telephony.ServiceState#RIL_RADIO_TECHNOLOGY_IWLAN}, and the other defined + * {@code RIL_RADIO_TECHNOLOGY_*} constants. + * Note: Despite the fact the {@link android.telephony.ServiceState} values are integer + * constants, the values passed for the {@link #EXTRA_CALL_RAT_TYPE} should be strings (e.g. + * "14" vs (int) 14). + * Note: This is used by {@link com.android.internal.telephony.imsphone.ImsPhoneConnection# + * updateWifiStateFromExtras(Bundle)} to determine whether to set the + * {@link android.telecom.Connection#CAPABILITY_WIFI} capability on a connection. + */ public static final String EXTRA_CALL_RAT_TYPE = "CallRadioTech"; public int mServiceType; -- cgit v1.1