Search in sources :

Example 31 with ImsReasonInfo

use of android.telephony.ims.ImsReasonInfo in project android_frameworks_opt_telephony by LineageOS.

the class TelephonyTester method handleHandoverFailedIntent.

private void handleHandoverFailedIntent() {
    // Attempt to get the active IMS call
    ImsPhone imsPhone = (ImsPhone) mPhone;
    if (imsPhone == null) {
        return;
    }
    ImsPhoneCall imsPhoneCall = imsPhone.getForegroundCall();
    if (imsPhoneCall == null) {
        return;
    }
    ImsCall imsCall = imsPhoneCall.getImsCall();
    if (imsCall == null) {
        return;
    }
    imsCall.getImsCallSessionListenerProxy().callSessionHandoverFailed(imsCall.getCallSession(), TelephonyManager.NETWORK_TYPE_LTE, TelephonyManager.NETWORK_TYPE_IWLAN, new ImsReasonInfo());
}
Also used : ImsCall(com.android.ims.ImsCall) ImsPhoneCall(com.android.internal.telephony.imsphone.ImsPhoneCall) ImsPhone(com.android.internal.telephony.imsphone.ImsPhone) ImsReasonInfo(android.telephony.ims.ImsReasonInfo)

Aggregations

ImsReasonInfo (android.telephony.ims.ImsReasonInfo)31 Test (org.junit.Test)26 SmallTest (android.test.suitebuilder.annotation.SmallTest)25 TelephonyTest (com.android.internal.telephony.TelephonyTest)25 VoiceCallSession (com.android.internal.telephony.nano.PersistAtomsProto.VoiceCallSession)21 ArrayList (java.util.ArrayList)21 RawVoiceCallRatUsage (com.android.internal.telephony.nano.PersistAtomsProto.RawVoiceCallRatUsage)13 FlakyTest (androidx.test.filters.FlakyTest)3 ImsCall (com.android.ims.ImsCall)3 BroadcastReceiver (android.content.BroadcastReceiver)1 Intent (android.content.Intent)1 NetworkCapabilities (android.net.NetworkCapabilities)1 AsyncResult (android.os.AsyncResult)1 Bundle (android.os.Bundle)1 Handler (android.os.Handler)1 PersistableBundle (android.os.PersistableBundle)1 ImsCallProfile (android.telephony.ims.ImsCallProfile)1 RegistrationCallback (android.telephony.ims.ImsMmTelManager.RegistrationCallback)1 RegistrationCallback (android.telephony.ims.RegistrationManager.RegistrationCallback)1 ImsFeature (android.telephony.ims.feature.ImsFeature)1