use of com.android.ims.ImsException in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhone method exitEmergencyCallbackMode.
@Override
public void exitEmergencyCallbackMode() {
if (mWakeLock.isHeld()) {
mWakeLock.release();
}
if (DBG)
Rlog.d(LOG_TAG, "exitEmergencyCallbackMode()");
// Send a message which will invoke handleExitEmergencyCallbackMode
ImsEcbm ecbm;
try {
ecbm = mCT.getEcbmInterface();
ecbm.exitEmergencyCallbackMode();
} catch (ImsException e) {
e.printStackTrace();
}
}
use of com.android.ims.ImsException in project Resurrection_packages_apps_Settings by ResurrectionRemix.
the class RadioInfo method isFeatureProvisioned.
private boolean isFeatureProvisioned(int featureId, boolean defaultValue) {
boolean provisioned = defaultValue;
if (mImsManager != null) {
try {
ImsConfig imsConfig = mImsManager.getConfigInterface();
if (imsConfig != null) {
provisioned = (imsConfig.getProvisionedValue(featureId) == ImsConfig.FeatureValueConstants.ON);
}
} catch (ImsException ex) {
Log.e(TAG, "isFeatureProvisioned() exception:", ex);
}
}
log("isFeatureProvisioned() featureId=" + featureId + " provisioned=" + provisioned);
return provisioned;
}
Aggregations