Loading src/com/android/server/telecom/CallsManager.java +11 −5 Original line number Diff line number Diff line Loading @@ -2472,15 +2472,17 @@ public class CallsManager extends Call.ListenerBase private void rejectHandoverTo(Call handoverTo) { Call handoverFrom = handoverTo.getHandoverSourceCall(); Log.i(this, "rejectHandoverTo: from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); Log.addEvent(handoverFrom, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s", Log.addEvent(handoverFrom, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s, rejected", handoverTo.getId(), handoverFrom.getId()); Log.addEvent(handoverTo, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s", Log.addEvent(handoverTo, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s, rejected", handoverTo.getId(), handoverFrom.getId()); // Inform the "from" Call (ie the source call) that the handover from it has // failed; this allows the InCallService to be notified that a handover it // initiated failed. handoverFrom.onConnectionEvent(Connection.EVENT_HANDOVER_FAILED, null); handoverFrom.onHandoverFailed(android.telecom.Call.Callback.HANDOVER_FAILURE_USER_REJECTED); // Inform the "to" ConnectionService that handover to it has failed. This // allows the ConnectionService the call was being handed over if (handoverTo.getConnectionService() != null) { Loading @@ -2488,6 +2490,8 @@ public class CallsManager extends Call.ListenerBase // early on in the handover process, the CS will be unbound and we won't be // able to send the call event. handoverTo.sendCallEvent(android.telecom.Call.EVENT_HANDOVER_FAILED, null); handoverTo.getConnectionService().handoverFailed(handoverTo, android.telecom.Call.Callback.HANDOVER_FAILURE_USER_REJECTED); } handoverTo.markFinishedHandoverStateAndCleanup(HandoverState.HANDOVER_FAILED); } Loading @@ -2496,7 +2500,9 @@ public class CallsManager extends Call.ListenerBase Call handoverFrom = handoverTo.getHandoverSourceCall(); Log.i(this, "acceptHandoverTo: from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); handoverTo.setHandoverState(HandoverState.HANDOVER_ACCEPTED); handoverTo.onHandoverComplete(); handoverFrom.setHandoverState(HandoverState.HANDOVER_ACCEPTED); handoverFrom.onHandoverComplete(); Log.addEvent(handoverTo, LogUtils.Events.ACCEPT_HANDOVER, "from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); Loading Loading @@ -3411,7 +3417,7 @@ public class CallsManager extends Call.ListenerBase boolean isHandoverToSupported = isHandoverToPhoneAccountSupported(handoverToHandle); if (!isHandoverFromSupported || !isHandoverToSupported) { handoverFromCall.onHandoverFailed( android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } Loading Loading @@ -3642,7 +3648,7 @@ public class CallsManager extends Call.ListenerBase hasEmergencyCall()) { Log.w(this, "acceptHandover: Handover not supported"); notifyHandoverFailed(call, android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } Loading @@ -3650,7 +3656,7 @@ public class CallsManager extends Call.ListenerBase if (phoneAccount == null) { Log.w(this, "acceptHandover: Handover not supported. phoneAccount = null"); notifyHandoverFailed(call, android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } call.setIsSelfManaged(phoneAccount.isSelfManaged()); Loading Loading
src/com/android/server/telecom/CallsManager.java +11 −5 Original line number Diff line number Diff line Loading @@ -2472,15 +2472,17 @@ public class CallsManager extends Call.ListenerBase private void rejectHandoverTo(Call handoverTo) { Call handoverFrom = handoverTo.getHandoverSourceCall(); Log.i(this, "rejectHandoverTo: from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); Log.addEvent(handoverFrom, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s", Log.addEvent(handoverFrom, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s, rejected", handoverTo.getId(), handoverFrom.getId()); Log.addEvent(handoverTo, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s", Log.addEvent(handoverTo, LogUtils.Events.HANDOVER_FAILED, "from=%s, to=%s, rejected", handoverTo.getId(), handoverFrom.getId()); // Inform the "from" Call (ie the source call) that the handover from it has // failed; this allows the InCallService to be notified that a handover it // initiated failed. handoverFrom.onConnectionEvent(Connection.EVENT_HANDOVER_FAILED, null); handoverFrom.onHandoverFailed(android.telecom.Call.Callback.HANDOVER_FAILURE_USER_REJECTED); // Inform the "to" ConnectionService that handover to it has failed. This // allows the ConnectionService the call was being handed over if (handoverTo.getConnectionService() != null) { Loading @@ -2488,6 +2490,8 @@ public class CallsManager extends Call.ListenerBase // early on in the handover process, the CS will be unbound and we won't be // able to send the call event. handoverTo.sendCallEvent(android.telecom.Call.EVENT_HANDOVER_FAILED, null); handoverTo.getConnectionService().handoverFailed(handoverTo, android.telecom.Call.Callback.HANDOVER_FAILURE_USER_REJECTED); } handoverTo.markFinishedHandoverStateAndCleanup(HandoverState.HANDOVER_FAILED); } Loading @@ -2496,7 +2500,9 @@ public class CallsManager extends Call.ListenerBase Call handoverFrom = handoverTo.getHandoverSourceCall(); Log.i(this, "acceptHandoverTo: from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); handoverTo.setHandoverState(HandoverState.HANDOVER_ACCEPTED); handoverTo.onHandoverComplete(); handoverFrom.setHandoverState(HandoverState.HANDOVER_ACCEPTED); handoverFrom.onHandoverComplete(); Log.addEvent(handoverTo, LogUtils.Events.ACCEPT_HANDOVER, "from=%s, to=%s", handoverFrom.getId(), handoverTo.getId()); Loading Loading @@ -3411,7 +3417,7 @@ public class CallsManager extends Call.ListenerBase boolean isHandoverToSupported = isHandoverToPhoneAccountSupported(handoverToHandle); if (!isHandoverFromSupported || !isHandoverToSupported) { handoverFromCall.onHandoverFailed( android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } Loading Loading @@ -3642,7 +3648,7 @@ public class CallsManager extends Call.ListenerBase hasEmergencyCall()) { Log.w(this, "acceptHandover: Handover not supported"); notifyHandoverFailed(call, android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } Loading @@ -3650,7 +3656,7 @@ public class CallsManager extends Call.ListenerBase if (phoneAccount == null) { Log.w(this, "acceptHandover: Handover not supported. phoneAccount = null"); notifyHandoverFailed(call, android.telecom.Call.Callback.HANDOVER_FAILURE_DEST_NOT_SUPPORTED); android.telecom.Call.Callback.HANDOVER_FAILURE_NOT_SUPPORTED); return; } call.setIsSelfManaged(phoneAccount.isSelfManaged()); Loading