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

Commit 0aa909b8 authored by Libin.Tang@motorola.com's avatar Libin.Tang@motorola.com Committed by Steve Kondik
Browse files

IMS: add the api to get IMS registration information

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

Bug: 18668325
Change-Id: Ie694c7f1cc12a573cbef2815199ae6c91cf8088e
parent fcd21906
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -3955,6 +3955,20 @@ public class TelephonyManager {
        }
        }
    }
    }


   /**
    * Returns the IMS Registration Status
    *@hide
    */
   public boolean isImsRegistered() {
       try {
           return getITelephony().isImsRegistered();
       } catch (RemoteException ex) {
           return false;
       } catch (NullPointerException ex) {
           return false;
       }
   }

   /**
   /**
    * Set TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC for the default phone.
    * Set TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC for the default phone.
    *
    *
+6 −1
Original line number Original line Diff line number Diff line
@@ -976,6 +976,11 @@ interface ITelephony {
     */
     */
    boolean isVideoCallingEnabled();
    boolean isVideoCallingEnabled();


    /**
     * Get IMS Registration Status
     */
    boolean isImsRegistered();

    /**
    /**
      * Returns the unique device ID of phone, for example, the IMEI for
      * Returns the unique device ID of phone, for example, the IMEI for
      * GSM and the MEID for CDMA phones. Return null if device ID is not available.
      * GSM and the MEID for CDMA phones. Return null if device ID is not available.