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

Commit 4dabbbe7 authored by Zhao Fan's avatar Zhao Fan Committed by Gerrit - the friendly Code Review server
Browse files

IMS: Add API to get IMS Registration Status based on subId

Add API isImsRegisteredForSubscriber to get IMS Registration
Status based on subId.

Change-Id: I862978cbbe8f218f9843816253e9a425d27752f3
CRs-Fixed: 1068733
parent df4e734f
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -4786,6 +4786,24 @@ public class TelephonyManager {
       }
   }

   /**
    * Returns the IMS Registration Status
    * using subId
    * @hide
    */
   public boolean isImsRegisteredForSubscriber(int subId) {
       try {
           ITelephony telephony = getITelephony();
           if (telephony == null)
               return false;
           return telephony.isImsRegisteredForSubscriber(subId);
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

    /**
     * Returns the Status of Volte
     * @hide
+5 −0
Original line number Diff line number Diff line
@@ -977,6 +977,11 @@ interface ITelephony {
     */
    boolean isImsRegistered();

    /**
     * Get IMS Registration Status using subId
     */
    boolean isImsRegisteredForSubscriber(int subId);

    /**
     * Returns the Status of Wi-Fi Calling
     */