Merge "API Review: Rethrow from system server for ImsCallSessionListener" into rvc-dev am: 5463a87fc3

Change-Id: I688086c0ce404644c4279b0a88103f048ef0bc3b
This commit is contained in:
Automerger Merge Worker
2020-03-10 17:19:29 +00:00

View File

@@ -58,7 +58,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionProgressing(profile); mListener.callSessionProgressing(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -71,7 +71,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionInitiated(profile); mListener.callSessionInitiated(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -85,7 +85,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionInitiatedFailed(reasonInfo); mListener.callSessionInitiatedFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -98,7 +98,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionTerminated(reasonInfo); mListener.callSessionTerminated(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -115,7 +115,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionHeld(profile); mListener.callSessionHeld(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -128,7 +128,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionHoldFailed(reasonInfo); mListener.callSessionHoldFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -141,7 +141,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionHoldReceived(profile); mListener.callSessionHoldReceived(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -155,7 +155,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionResumed(profile); mListener.callSessionResumed(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -169,7 +169,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionResumeFailed(reasonInfo); mListener.callSessionResumeFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -182,7 +182,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionResumeReceived(profile); mListener.callSessionResumeReceived(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -201,7 +201,7 @@ public class ImsCallSessionListener {
mListener.callSessionMergeStarted(newSession != null ? mListener.callSessionMergeStarted(newSession != null ?
newSession.getServiceImpl() : null, profile); newSession.getServiceImpl() : null, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -216,7 +216,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionMergeStarted(newSession, profile); mListener.callSessionMergeStarted(newSession, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -232,7 +232,7 @@ public class ImsCallSessionListener {
mListener.callSessionMergeComplete(newSession != null ? mListener.callSessionMergeComplete(newSession != null ?
newSession.getServiceImpl() : null); newSession.getServiceImpl() : null);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -247,7 +247,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionMergeComplete(newSession); mListener.callSessionMergeComplete(newSession);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -260,7 +260,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionMergeFailed(reasonInfo); mListener.callSessionMergeFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -273,7 +273,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionUpdated(profile); mListener.callSessionUpdated(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -286,7 +286,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionUpdateFailed(reasonInfo); mListener.callSessionUpdateFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -299,7 +299,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionUpdateReceived(profile); mListener.callSessionUpdateReceived(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -319,7 +319,7 @@ public class ImsCallSessionListener {
mListener.callSessionConferenceExtended( mListener.callSessionConferenceExtended(
newSession != null ? newSession.getServiceImpl() : null, profile); newSession != null ? newSession.getServiceImpl() : null, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -333,7 +333,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionConferenceExtended(newSession, profile); mListener.callSessionConferenceExtended(newSession, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -347,7 +347,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionConferenceExtendFailed(reasonInfo); mListener.callSessionConferenceExtendFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -364,7 +364,7 @@ public class ImsCallSessionListener {
mListener.callSessionConferenceExtendReceived(newSession != null mListener.callSessionConferenceExtendReceived(newSession != null
? newSession.getServiceImpl() : null, profile); ? newSession.getServiceImpl() : null, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -379,7 +379,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionConferenceExtendReceived(newSession, profile); mListener.callSessionConferenceExtendReceived(newSession, profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -391,7 +391,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionInviteParticipantsRequestDelivered(); mListener.callSessionInviteParticipantsRequestDelivered();
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -407,7 +407,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionInviteParticipantsRequestFailed(reasonInfo); mListener.callSessionInviteParticipantsRequestFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -419,7 +419,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionRemoveParticipantsRequestDelivered(); mListener.callSessionRemoveParticipantsRequestDelivered();
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -435,7 +435,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionInviteParticipantsRequestFailed(reasonInfo); mListener.callSessionInviteParticipantsRequestFailed(reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -448,7 +448,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionConferenceStateUpdated(state); mListener.callSessionConferenceStateUpdated(state);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -465,7 +465,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionUssdMessageReceived(mode, ussdMessage); mListener.callSessionUssdMessageReceived(mode, ussdMessage);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -501,7 +501,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionMayHandover(srcNetworkType, targetNetworkType); mListener.callSessionMayHandover(srcNetworkType, targetNetworkType);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -537,7 +537,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionHandover(srcNetworkType, targetNetworkType, reasonInfo); mListener.callSessionHandover(srcNetworkType, targetNetworkType, reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -570,7 +570,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionHandoverFailed(srcNetworkType, targetNetworkType, reasonInfo); mListener.callSessionHandoverFailed(srcNetworkType, targetNetworkType, reasonInfo);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -587,7 +587,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionTtyModeReceived(mode); mListener.callSessionTtyModeReceived(mode);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -600,7 +600,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionMultipartyStateChanged(isMultiParty); mListener.callSessionMultipartyStateChanged(isMultiParty);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -614,7 +614,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionSuppServiceReceived(suppSrvNotification); mListener.callSessionSuppServiceReceived(suppSrvNotification);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -628,7 +628,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionRttModifyRequestReceived(callProfile); mListener.callSessionRttModifyRequestReceived(callProfile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -641,7 +641,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionRttModifyResponseReceived(status); mListener.callSessionRttModifyResponseReceived(status);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -654,7 +654,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionRttMessageReceived(rttMessage); mListener.callSessionRttMessageReceived(rttMessage);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -667,7 +667,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callSessionRttAudioIndicatorChanged(profile); mListener.callSessionRttAudioIndicatorChanged(profile);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
@@ -680,7 +680,7 @@ public class ImsCallSessionListener {
try { try {
mListener.callQualityChanged(callQuality); mListener.callQualityChanged(callQuality);
} catch (RemoteException e) { } catch (RemoteException e) {
throw new RuntimeException(e); e.rethrowFromSystemServer();
} }
} }
} }