use of com.android.ims.ImsMultiEndpoint in project android_frameworks_opt_telephony by LineageOS.
the class ImsPhoneCallTracker method startListeningForCalls.
private void startListeningForCalls() throws ImsException {
mImsServiceRetryCount = 0;
mServiceId = mImsManager.open(ImsServiceClass.MMTEL, createIncomingCallPendingIntent(), mImsConnectionStateListener);
mImsManager.setImsConfigListener(mImsConfigListener);
// Get the ECBM interface and set IMSPhone's listener object for notifications
getEcbmInterface().setEcbmStateListener(mPhone.getImsEcbmStateListener());
if (mPhone.isInEcm()) {
// Call exit ECBM which will invoke onECBMExited
mPhone.exitEmergencyCallbackMode();
}
int mPreferredTtyMode = Settings.Secure.getInt(mPhone.getContext().getContentResolver(), Settings.Secure.PREFERRED_TTY_MODE, Phone.TTY_MODE_OFF);
mImsManager.setUiTTYMode(mPhone.getContext(), mPreferredTtyMode, null);
ImsMultiEndpoint multiEndpoint = getMultiEndpointInterface();
if (multiEndpoint != null) {
multiEndpoint.setExternalCallStateListener(mPhone.getExternalCallTracker().getExternalCallStateListener());
}
mImsManager.updateImsServiceConfigForSlot(true);
}
Aggregations