Search in sources :

Example 36 with ImsException

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

Example 37 with ImsException

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;
}
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