diff options
author | Libin.Tang@motorola.com <w16529@motorola.com> | 2014-12-17 22:47:45 -0600 |
---|---|---|
committer | Amit Mahajan <amitmahajan@google.com> | 2014-12-22 19:35:18 +0000 |
commit | 0303be4a8ac109e52b2581b7c6a94b27c581f84f (patch) | |
tree | 04f1482695a53b658a249ffb75da3e9a1229838e /telephony/java | |
parent | 996af72b0c2c161e66cee00560e5ba00459f39bf (diff) | |
download | frameworks_base-0303be4a8ac109e52b2581b7c6a94b27c581f84f.zip frameworks_base-0303be4a8ac109e52b2581b7c6a94b27c581f84f.tar.gz frameworks_base-0303be4a8ac109e52b2581b7c6a94b27c581f84f.tar.bz2 |
IMS: add the api to get IMS registration information.
Bug: 18668325
Change-Id: Ie694c7f1cc12a573cbef2815199ae6c91cf8088e
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 14 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index c421800..99d0af1 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -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; + } + } } diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index ca14ca4..d6e40ae9 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -865,4 +865,8 @@ interface ITelephony { * @return {@code True} if the user has enabled video calling, {@code false} otherwise. */ boolean isVideoCallingEnabled(); + /** + * Get IMS Registration Status + */ + boolean isImsRegistered(); } |