OSDN Git Service

IMS: getPCSCF() API enhanced to support multiple APN types.
authorram <ram.pl@samsung.com>
Fri, 18 Jul 2014 12:08:15 +0000 (17:38 +0530)
committerEtan Cohen <etancohen@google.com>
Thu, 24 Jul 2014 00:41:00 +0000 (00:41 +0000)
Change-Id: I014f341b93a9ea7280e04cdfc13418fe81c9fc8b
Signed-off-by: ram <ram.pl@samsung.com>
telephony/java/android/telephony/TelephonyManager.java
telephony/java/com/android/internal/telephony/ITelephony.aidl

index 2555874..39bbf72 100644 (file)
@@ -2789,13 +2789,13 @@ public class TelephonyManager {
 
     /**
      * Get P-CSCF address from PCO after data connection is established or modified.
-     *
+     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
      * @return array of P-CSCF address
      * @hide
      */
-    public String[] getPcscfAddress() {
+    public String[] getPcscfAddress(String apnType) {
         try {
-            return getITelephony().getPcscfAddress();
+            return getITelephony().getPcscfAddress(apnType);
         } catch (RemoteException e) {
             return new String[0];
         }
index ec7b8ae..8c37e3d 100644 (file)
@@ -634,8 +634,9 @@ interface ITelephony {
 
     /**
      * Get P-CSCF address from PCO after data connection is established or modified.
+     * @param apnType the apnType, "ims" for IMS APN, "emergency" for EMERGENCY APN
      */
-    String[] getPcscfAddress();
+    String[] getPcscfAddress(String apnType);
 
     /**
      * Set IMS registration state