Merge changes from topic "IMS Threading Refactoring" am: a28bba3ebe am: 0cf0002495

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1964910

Change-Id: Ieeee66f67e779b33c40d3ce01023120d943fa585
This commit is contained in:
Parvathy Shanmugam
2022-02-04 11:25:23 +00:00
committed by Automerger Merge Worker

View File

@@ -1212,50 +1212,56 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionInitiating(ImsCallProfile profile) { public void callSessionInitiating(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionInitiating( mListener.callSessionInitiating(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionProgressing(ImsStreamMediaProfile profile) { public void callSessionProgressing(ImsStreamMediaProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionProgressing( mListener.callSessionProgressing(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionInitiated(ImsCallProfile profile) { public void callSessionInitiated(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionStarted( mListener.callSessionStarted(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionInitiatingFailed(ImsReasonInfo reasonInfo) { public void callSessionInitiatingFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionStartFailed( mListener.callSessionStartFailed(ImsCallSession.this, reasonInfo);
ImsCallSession.this, reasonInfo), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionInitiatedFailed(ImsReasonInfo reasonInfo) { public void callSessionInitiatedFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionStartFailed( mListener.callSessionStartFailed(ImsCallSession.this, reasonInfo);
ImsCallSession.this, reasonInfo), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionTerminated(ImsReasonInfo reasonInfo) { public void callSessionTerminated(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionTerminated( mListener.callSessionTerminated(ImsCallSession.this, reasonInfo);
ImsCallSession.this, reasonInfo), mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1263,51 +1269,56 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionHeld(ImsCallProfile profile) { public void callSessionHeld(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionHeld( mListener.callSessionHeld(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionHoldFailed(ImsReasonInfo reasonInfo) { public void callSessionHoldFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionHoldFailed( mListener.callSessionHoldFailed(ImsCallSession.this, reasonInfo);
ImsCallSession.this, reasonInfo), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionHoldReceived(ImsCallProfile profile) { public void callSessionHoldReceived(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionHoldReceived( mListener.callSessionHoldReceived(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionResumed(ImsCallProfile profile) { public void callSessionResumed(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionResumed( mListener.callSessionResumed(ImsCallSession.this, profile);
ImsCallSession.this, profile), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionResumeFailed(ImsReasonInfo reasonInfo) { public void callSessionResumeFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionResumeFailed( mListener.callSessionResumeFailed(ImsCallSession.this, reasonInfo);
ImsCallSession.this, reasonInfo), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionResumeReceived(ImsCallProfile profile) { public void callSessionResumeReceived(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionResumeReceived(ImsCallSession.this, profile);
mListener.callSessionResumeReceived(ImsCallSession.this, profile),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1330,8 +1341,8 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionMergeComplete(IImsCallSession newSession) { public void callSessionMergeComplete(IImsCallSession newSession) {
if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> { TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) {
if (newSession != null) { if (newSession != null) {
// New session created after conference // New session created after conference
mListener.callSessionMergeComplete(new ImsCallSession(newSession)); mListener.callSessionMergeComplete(new ImsCallSession(newSession));
@@ -1339,8 +1350,8 @@ public class ImsCallSession {
// Session already exists. Hence no need to pass // Session already exists. Hence no need to pass
mListener.callSessionMergeComplete(null); mListener.callSessionMergeComplete(null);
} }
}, mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1350,11 +1361,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionMergeFailed(ImsReasonInfo reasonInfo) { public void callSessionMergeFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionMergeFailed(ImsCallSession.this, reasonInfo);
mListener.callSessionMergeFailed(ImsCallSession.this, reasonInfo),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1362,29 +1373,29 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionUpdated(ImsCallProfile profile) { public void callSessionUpdated(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionUpdated(ImsCallSession.this, profile);
mListener.callSessionUpdated(ImsCallSession.this, profile),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionUpdateFailed(ImsReasonInfo reasonInfo) { public void callSessionUpdateFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionUpdateFailed(ImsCallSession.this, reasonInfo);
mListener.callSessionUpdateFailed(ImsCallSession.this, reasonInfo),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionUpdateReceived(ImsCallProfile profile) { public void callSessionUpdateReceived(ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionUpdateReceived(ImsCallSession.this, profile);
mListener.callSessionUpdateReceived(ImsCallSession.this, profile),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1393,30 +1404,33 @@ public class ImsCallSession {
@Override @Override
public void callSessionConferenceExtended(IImsCallSession newSession, public void callSessionConferenceExtended(IImsCallSession newSession,
ImsCallProfile profile) { ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionConferenceExtended(ImsCallSession.this, mListener.callSessionConferenceExtended(ImsCallSession.this,
new ImsCallSession(newSession), profile), mListenerExecutor); new ImsCallSession(newSession), profile);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionConferenceExtendFailed(ImsReasonInfo reasonInfo) { public void callSessionConferenceExtendFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionConferenceExtendFailed( mListener.callSessionConferenceExtendFailed(
ImsCallSession.this, reasonInfo), mListenerExecutor); ImsCallSession.this, reasonInfo);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionConferenceExtendReceived(IImsCallSession newSession, public void callSessionConferenceExtendReceived(IImsCallSession newSession,
ImsCallProfile profile) { ImsCallProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionConferenceExtendReceived(ImsCallSession.this, mListener.callSessionConferenceExtendReceived(ImsCallSession.this,
new ImsCallSession(newSession), profile), mListenerExecutor); new ImsCallSession(newSession), profile);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1425,38 +1439,41 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionInviteParticipantsRequestDelivered() { public void callSessionInviteParticipantsRequestDelivered() {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionInviteParticipantsRequestDelivered( mListener.callSessionInviteParticipantsRequestDelivered(
ImsCallSession.this), mListenerExecutor); ImsCallSession.this);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionInviteParticipantsRequestFailed(ImsReasonInfo reasonInfo) { public void callSessionInviteParticipantsRequestFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionInviteParticipantsRequestFailed(ImsCallSession.this, mListener.callSessionInviteParticipantsRequestFailed(ImsCallSession.this,
reasonInfo), mListenerExecutor); reasonInfo);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionRemoveParticipantsRequestDelivered() { public void callSessionRemoveParticipantsRequestDelivered() {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionRemoveParticipantsRequestDelivered(ImsCallSession.this);
mListener.callSessionRemoveParticipantsRequestDelivered(
ImsCallSession.this), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionRemoveParticipantsRequestFailed(ImsReasonInfo reasonInfo) { public void callSessionRemoveParticipantsRequestFailed(ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionRemoveParticipantsRequestFailed(ImsCallSession.this, mListener.callSessionRemoveParticipantsRequestFailed(ImsCallSession.this,
reasonInfo), mListenerExecutor); reasonInfo);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1464,11 +1481,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionConferenceStateUpdated(ImsConferenceState state) { public void callSessionConferenceStateUpdated(ImsConferenceState state) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionConferenceStateUpdated(ImsCallSession.this, state);
mListener.callSessionConferenceStateUpdated(ImsCallSession.this, state),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1476,11 +1493,12 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionUssdMessageReceived(int mode, String ussdMessage) { public void callSessionUssdMessageReceived(int mode, String ussdMessage) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionUssdMessageReceived(ImsCallSession.this, mode, mListener.callSessionUssdMessageReceived(ImsCallSession.this, mode,
ussdMessage), mListenerExecutor); ussdMessage);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1496,11 +1514,12 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionMayHandover(int srcNetworkType, int targetNetworkType) { public void callSessionMayHandover(int srcNetworkType, int targetNetworkType) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionMayHandover(ImsCallSession.this, srcNetworkType, mListener.callSessionMayHandover(ImsCallSession.this, srcNetworkType,
targetNetworkType), mListenerExecutor); targetNetworkType);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1509,11 +1528,12 @@ public class ImsCallSession {
@Override @Override
public void callSessionHandover(int srcNetworkType, int targetNetworkType, public void callSessionHandover(int srcNetworkType, int targetNetworkType,
ImsReasonInfo reasonInfo) { ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionHandover(ImsCallSession.this, srcNetworkType, mListener.callSessionHandover(ImsCallSession.this, srcNetworkType,
targetNetworkType, reasonInfo), mListenerExecutor); targetNetworkType, reasonInfo);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1522,11 +1542,12 @@ public class ImsCallSession {
@Override @Override
public void callSessionHandoverFailed(int srcNetworkType, int targetNetworkType, public void callSessionHandoverFailed(int srcNetworkType, int targetNetworkType,
ImsReasonInfo reasonInfo) { ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionHandoverFailed(ImsCallSession.this, srcNetworkType, mListener.callSessionHandoverFailed(ImsCallSession.this, srcNetworkType,
targetNetworkType, reasonInfo), mListenerExecutor); targetNetworkType, reasonInfo);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1534,11 +1555,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionTtyModeReceived(int mode) { public void callSessionTtyModeReceived(int mode) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionTtyModeReceived(ImsCallSession.this, mode);
mListener.callSessionTtyModeReceived(ImsCallSession.this, mode),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1548,20 +1569,22 @@ public class ImsCallSession {
* otherwise. * otherwise.
*/ */
public void callSessionMultipartyStateChanged(boolean isMultiParty) { public void callSessionMultipartyStateChanged(boolean isMultiParty) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionMultipartyStateChanged(ImsCallSession.this, mListener.callSessionMultipartyStateChanged(ImsCallSession.this,
isMultiParty), mListenerExecutor); isMultiParty);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionSuppServiceReceived(ImsSuppServiceNotification suppServiceInfo ) { public void callSessionSuppServiceReceived(ImsSuppServiceNotification suppServiceInfo ) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionSuppServiceReceived(ImsCallSession.this, mListener.callSessionSuppServiceReceived(ImsCallSession.this,
suppServiceInfo), mListenerExecutor); suppServiceInfo);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1569,11 +1592,12 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionRttModifyRequestReceived(ImsCallProfile callProfile) { public void callSessionRttModifyRequestReceived(ImsCallProfile callProfile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionRttModifyRequestReceived(ImsCallSession.this, mListener.callSessionRttModifyRequestReceived(ImsCallSession.this,
callProfile), mListenerExecutor); callProfile);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1581,11 +1605,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionRttModifyResponseReceived(int status) { public void callSessionRttModifyResponseReceived(int status) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionRttModifyResponseReceived(status);
mListener.callSessionRttModifyResponseReceived(status),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1593,10 +1617,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionRttMessageReceived(String rttMessage) { public void callSessionRttMessageReceived(String rttMessage) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionRttMessageReceived(rttMessage);
mListener.callSessionRttMessageReceived(rttMessage), mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1604,28 +1629,29 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionRttAudioIndicatorChanged(ImsStreamMediaProfile profile) { public void callSessionRttAudioIndicatorChanged(ImsStreamMediaProfile profile) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionRttAudioIndicatorChanged(profile);
mListener.callSessionRttAudioIndicatorChanged(profile),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionTransferred() { public void callSessionTransferred() {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionTransferred(ImsCallSession.this);
mListener.callSessionTransferred(ImsCallSession.this), mListenerExecutor);
} }
}, mListenerExecutor);
} }
@Override @Override
public void callSessionTransferFailed(@Nullable ImsReasonInfo reasonInfo) { public void callSessionTransferFailed(@Nullable ImsReasonInfo reasonInfo) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionTransferFailed(ImsCallSession.this, reasonInfo);
mListener.callSessionTransferFailed(ImsCallSession.this, reasonInfo),
mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1634,10 +1660,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callSessionDtmfReceived(char dtmf) { public void callSessionDtmfReceived(char dtmf) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callSessionDtmfReceived( mListener.callSessionDtmfReceived(dtmf);
dtmf), mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1645,10 +1672,11 @@ public class ImsCallSession {
*/ */
@Override @Override
public void callQualityChanged(CallQuality callQuality) { public void callQualityChanged(CallQuality callQuality) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()-> mListener.callQualityChanged( mListener.callQualityChanged(callQuality);
callQuality), mListenerExecutor);
} }
}, mListenerExecutor);
} }
/** /**
@@ -1658,11 +1686,12 @@ public class ImsCallSession {
@Override @Override
public void callSessionRtpHeaderExtensionsReceived( public void callSessionRtpHeaderExtensionsReceived(
@NonNull List<RtpHeaderExtension> extensions) { @NonNull List<RtpHeaderExtension> extensions) {
TelephonyUtils.runWithCleanCallingIdentity(()-> {
if (mListener != null) { if (mListener != null) {
TelephonyUtils.runWithCleanCallingIdentity(()->
mListener.callSessionRtpHeaderExtensionsReceived( mListener.callSessionRtpHeaderExtensionsReceived(
new ArraySet<RtpHeaderExtension>(extensions)), mListenerExecutor); new ArraySet<RtpHeaderExtension>(extensions));
} }
}, mListenerExecutor);
} }
} }