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

automerge: 4b2cbae

* commit '4b2cbae9cfd941633eadf9b667b3e3e0372c1ad2':
  IMS: add the api to get IMS registration information.
This commit is contained in:
Amit Mahajan
2014-12-28 05:45:47 +00:00
committed by android-build-merger
2 changed files with 18 additions and 0 deletions

View File

@@ -3659,4 +3659,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();
}