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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user