Search in sources :

Example 1 with ImsException

use of com.android.ims.ImsException 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 ImsException

use of com.android.ims.ImsException 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 ImsException

use of com.android.ims.ImsException 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 ImsException

use of com.android.ims.ImsException 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 ImsException

use of com.android.ims.ImsException 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

ImsException (com.android.ims.ImsException)37 Message (android.os.Message)9 ImsUtInterface (com.android.ims.ImsUtInterface)8 ImsCall (com.android.ims.ImsCall)7 ImsConfig (com.android.ims.ImsConfig)7 SpannableStringBuilder (android.text.SpannableStringBuilder)6 CallStateException (com.android.internal.telephony.CallStateException)6 ImsCallProfile (com.android.ims.ImsCallProfile)4 Context (android.content.Context)3 PendingIntent (android.app.PendingIntent)2 Bundle (android.os.Bundle)2 FlakyTest (android.support.test.filters.FlakyTest)2 SmallTest (android.test.suitebuilder.annotation.SmallTest)2 ImsConnectionStateListener (com.android.ims.ImsConnectionStateListener)2 ImsSsInfo (com.android.ims.ImsSsInfo)2 CommandException (com.android.internal.telephony.CommandException)2 TelephonyTest (com.android.internal.telephony.TelephonyTest)2 Test (org.junit.Test)2 Intent (android.content.Intent)1 AsyncResult (android.os.AsyncResult)1