Search in sources :

Example 1 with ImsConfig

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

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 2 with ImsConfig

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

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 3 with ImsConfig

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

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 4 with ImsConfig

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

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 5 with ImsConfig

use of com.android.ims.ImsConfig in project platform_packages_apps_Settings by BlissRoms.

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