Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f67998e authored by ram's avatar ram Committed by Android Git Automerger
Browse files

am 78609909: IMS: getPCSCF() API enhanced to support multiple APN types.

* commit '78609909c31d0dc7febaa707ca67b31f98b8c508':
  IMS: getPCSCF() API enhanced to support multiple APN types.
parents 3ac8ad27 e647099e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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];
        }
+2 −1
Original line number Diff line number Diff line
@@ -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