am d00b6067: Merge "IMS: add the api to get IMS registration information." into lmp-mr1-dev

* commit 'd00b6067bf03b59143d98dba1343ced27306863c':
  IMS: add the api to get IMS registration information.
This commit is contained in:
Amit Mahajan
2014-12-23 01:24:28 +00:00
committed by Android Git Automerger
2 changed files with 18 additions and 0 deletions

View File

@@ -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;
}
}
}

View File

@@ -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();
}