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

Commit c32fcaac authored by Libin.Tang@motorola.com's avatar Libin.Tang@motorola.com Committed by Ravi Paluri
Browse files

IMS: add the api to get IMS registration information.

Conflicts:
	telephony/java/android/telephony/TelephonyManager.java

Bug: 18668325
Change-Id: Ie694c7f1cc12a573cbef2815199ae6c91cf8088e
parent f62ea68a
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -4217,4 +4217,18 @@ public class TelephonyManager {
        }
        return false;
    }

    /**
    * Returns the IMS Registration Status
    *@hide
    */
   public boolean isImsRegistered() {
       try {
           return getITelephony().isImsRegistered();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }
}
+4 −0
Original line number Diff line number Diff line
@@ -963,4 +963,8 @@ interface ITelephony {
     * @return {@code True} if the user has enabled video calling, {@code false} otherwise.
     */
    boolean isVideoCallingEnabled();
    /**
     * Get IMS Registration Status
     */
    boolean isImsRegistered();
}