Search in sources :

Example 6 with ImsConfig

use of com.android.ims.ImsConfig in project android_packages_apps_Settings by DirtyUnicorns.

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;
}
Also used : ImsConfig(com.android.ims.ImsConfig) ImsException(com.android.ims.ImsException)

Example 7 with ImsConfig

use of com.android.ims.ImsConfig 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;
}
Also used : ImsConfig(com.android.ims.ImsConfig) ImsException(com.android.ims.ImsException)

Aggregations

ImsConfig (com.android.ims.ImsConfig)7 ImsException (com.android.ims.ImsException)7