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

Commit 0303be4a authored by Libin.Tang@motorola.com's avatar Libin.Tang@motorola.com Committed by Amit Mahajan
Browse files

IMS: add the api to get IMS registration information.

Bug: 18668325
Change-Id: Ie694c7f1cc12a573cbef2815199ae6c91cf8088e
parent 996af72b
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -3663,4 +3663,18 @@ 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;
       }
   }
}
}
+4 −0
Original line number Original line Diff line number Diff line
@@ -865,4 +865,8 @@ interface ITelephony {
     * @return {@code True} if the user has enabled video calling, {@code false} otherwise.
     * @return {@code True} if the user has enabled video calling, {@code false} otherwise.
     */
     */
    boolean isVideoCallingEnabled();
    boolean isVideoCallingEnabled();
    /**
     * Get IMS Registration Status
     */
    boolean isImsRegistered();
}
}