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

automerge: 4f68c0c

* commit '4f68c0c1d8811d610021d97839af303c2752eff2':
  IMS: add the api to get IMS registration information.
This commit is contained in:
Amit Mahajan
2014-12-28 05:29:52 +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();
}