Search in sources :

Example 1 with ImsExternalCallTracker

use of com.android.internal.telephony.imsphone.ImsExternalCallTracker in project android_frameworks_opt_telephony by LineageOS.

the class TelephonyTester method handleTestDialogEventPackageIntent.

/**
 * Handles intents containing test dialog event package data.
 *
 * @param intent
 */
private void handleTestDialogEventPackageIntent(Intent intent) {
    ImsPhone imsPhone = (ImsPhone) mPhone;
    if (imsPhone == null) {
        return;
    }
    ImsExternalCallTracker externalCallTracker = imsPhone.getExternalCallTracker();
    if (externalCallTracker == null) {
        return;
    }
    if (intent.hasExtra(EXTRA_STARTPACKAGE)) {
        mImsExternalCallStates.clear();
    } else if (intent.hasExtra(EXTRA_SENDPACKAGE)) {
        externalCallTracker.refreshExternalCallState(mImsExternalCallStates);
        mImsExternalCallStates.clear();
    } else if (intent.hasExtra(EXTRA_DIALOGID)) {
        ImsExternalCallState state = new ImsExternalCallState(intent.getIntExtra(EXTRA_DIALOGID, 0), Uri.parse(intent.getStringExtra(EXTRA_NUMBER)), intent.getBooleanExtra(EXTRA_CANPULL, true), intent.getIntExtra(EXTRA_STATE, ImsExternalCallState.CALL_STATE_CONFIRMED), ImsCallProfile.CALL_TYPE_VOICE, false);
        mImsExternalCallStates.add(state);
    }
}
Also used : ImsExternalCallTracker(com.android.internal.telephony.imsphone.ImsExternalCallTracker) ImsExternalCallState(android.telephony.ims.ImsExternalCallState) ImsPhone(com.android.internal.telephony.imsphone.ImsPhone)

Aggregations

ImsExternalCallState (android.telephony.ims.ImsExternalCallState)1 ImsExternalCallTracker (com.android.internal.telephony.imsphone.ImsExternalCallTracker)1 ImsPhone (com.android.internal.telephony.imsphone.ImsPhone)1