Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c797397 authored by Grace Jia's avatar Grace Jia Committed by Automerger Merge Worker
Browse files

Add more detailed log in CallsManager to make debugging handover failure am: 4a0400e5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/services/Telecomm/+/15243483

Change-Id: I57404bb10f00372e8b1293ee5275ad5e36b8be0c
parents afa5c346 4a0400e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3019,6 +3019,7 @@ public class CallsManager extends Call.ListenerBase
     */
    boolean holdActiveCallForNewCall(Call call) {
        Call activeCall = (Call) mConnectionSvrFocusMgr.getCurrentFocusCall();
        Log.i(this, "holdActiveCallForNewCall, newCall: %s, activeCall: %s", call, activeCall);
        if (activeCall != null && activeCall != call) {
            if (canHold(activeCall)) {
                activeCall.hold();
@@ -3074,6 +3075,7 @@ public class CallsManager extends Call.ListenerBase

    @VisibleForTesting
    public void markCallAsActive(Call call) {
        Log.i(this, "markCallAsActive, isSelfManaged: " + call.isSelfManaged());
        if (call.isSelfManaged()) {
            // backward compatibility, the self-managed connection service will set the call state
            // to active directly. We should hold or disconnect the current active call based on the
+1 −1
Original line number Diff line number Diff line
@@ -391,7 +391,7 @@ public class ConnectionServiceFocusManager {
    }

    private void handleRequestFocus(FocusRequest focusRequest) {
        Log.d(this, "handleRequestFocus req = %s", focusRequest);
        Log.i(this, "handleRequestFocus req = %s", focusRequest);
        if (mCurrentFocus == null
                || mCurrentFocus.equals(focusRequest.call.getConnectionServiceWrapper())) {
            updateConnectionServiceFocus(focusRequest.call.getConnectionServiceWrapper());