IMS RAT Reporting in Registration Callbacks
Omkar Kolangade [Tue, 5 May 2015 00:55:13 +0000 (17:55 -0700)]
Modifying the registrationProgressing and
registrationConnected callbacks to have a parameter
for IMS Radio Access Technology information.
Through this, frameworks is aware of the IMS
RAT - LTE or WiFi - and can use the information
to display appropriate UI notifications.

Bug: 21902225
Change-Id: I18f77f502ffae152cca1f53b31698358f9a869b9

src/java/com/android/ims/ImsManager.java

index 1f8ef5d..5878240 100644 (file)
@@ -1032,9 +1032,11 @@ public class ImsManager {
         }
 
         @Override
-        public void registrationConnected() {
+        public void registrationConnected(int imsRadioTech) {
+            // Note: imsRadioTech value maps to RIL_RADIO_TECHNOLOGY
+            //       values in ServiceState.java.
             if (DBG) {
-                log("registrationConnected ::");
+                log("registrationConnected :: imsRadioTech=" + imsRadioTech);
             }
 
             if (mListener != null) {
@@ -1043,9 +1045,11 @@ public class ImsManager {
         }
 
         @Override
-        public void registrationProgressing() {
+        public void registrationProgressing(int imsRadioTech) {
+            // Note: imsRadioTech value maps to RIL_RADIO_TECHNOLOGY
+            //       values in ServiceState.java.
             if (DBG) {
-                log("registrationProgressing ::");
+                log("registrationProgressing :: imsRadioTech=" + imsRadioTech);
             }
 
             if (mListener != null) {