Adding hidden isWifiCallingEnabled() and isVolteEnabled()

Change-Id: Ic33f8c50dfb2d81b2bdc149629724e3972aad09e
This commit is contained in:
Nathan Harold
2015-03-11 18:08:08 -07:00
parent e32c162a40
commit 42eadcdf34
2 changed files with 40 additions and 0 deletions

View File

@@ -3791,6 +3791,34 @@ public class TelephonyManager {
}
}
/**
* Returns the Status of Volte
*@hide
*/
public boolean isVolteEnabled() {
try {
return getITelephony().isVolteEnabled();
} catch (RemoteException ex) {
return false;
} catch (NullPointerException ex) {
return false;
}
}
/**
* Returns the Status of Wi-Fi Calling
*@hide
*/
public boolean isWifiCallingEnabled() {
try {
return getITelephony().isWifiCallingEnabled();
} catch (RemoteException ex) {
return false;
} catch (NullPointerException ex) {
return false;
}
}
/**
* Set TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC for the default phone.
*

View File

@@ -871,6 +871,18 @@ interface ITelephony {
*/
boolean isImsRegistered();
/**
* Returns the Status of Wi-Fi Calling
*@hide
*/
boolean isWifiCallingEnabled();
/**
* Returns the Status of Volte
*@hide
*/
boolean isVolteEnabled();
/**
* Returns the unique device ID of phone, for example, the IMEI for
* GSM and the MEID for CDMA phones. Return null if device ID is not available.