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

Commit 0bd1237c authored by Hall Liu's avatar Hall Liu
Browse files

Improve logging around SRVCC scenarios

Fixes: 158620186
Test: lol
Change-Id: Iafc8e42dacde4c142281be1b6c2d3938400eeb1d
parent 0ea366ae
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -133,7 +133,8 @@ public abstract class CallTracker extends Handler {
            // Individual connections will be removed from the list in handlePollCalls()
            // Individual connections will be removed from the list in handlePollCalls()
            mHandoverConnections.clear();
            mHandoverConnections.clear();
        }
        }
        log("notifySrvccState: mHandoverConnections= " + mHandoverConnections.toString());
        log("notifySrvccState: state=" + state.name() + ", mHandoverConnections= "
                + mHandoverConnections.toString());
    }
    }


    protected void handleRadioAvailable() {
    protected void handleRadioAvailable() {
+1 −0
Original line number Original line Diff line number Diff line
@@ -1386,6 +1386,7 @@ public abstract class Connection {
        StringBuilder str = new StringBuilder(128);
        StringBuilder str = new StringBuilder(128);


        str.append(" callId: " + getTelecomCallId());
        str.append(" callId: " + getTelecomCallId());
        str.append(" objId: " + System.identityHashCode(this));
        str.append(" isExternal: " + (((mConnectionCapabilities & Capability.IS_EXTERNAL_CONNECTION)
        str.append(" isExternal: " + (((mConnectionCapabilities & Capability.IS_EXTERNAL_CONNECTION)
                == Capability.IS_EXTERNAL_CONNECTION) ? "Y" : "N"));
                == Capability.IS_EXTERNAL_CONNECTION) ? "Y" : "N"));
        if (Rlog.isLoggable(LOG_TAG, Log.DEBUG)) {
        if (Rlog.isLoggable(LOG_TAG, Log.DEBUG)) {
+4 −0
Original line number Original line Diff line number Diff line
@@ -875,9 +875,12 @@ public class GsmCdmaCallTracker extends CallTracker {
                    }
                    }


                    mConnections[i] = new GsmCdmaConnection(mPhone, dc, this, i);
                    mConnections[i] = new GsmCdmaConnection(mPhone, dc, this, i);
                    log("New connection is not mPendingMO. Creating new GsmCdmaConnection,"
                            + " objId=" + System.identityHashCode(mConnections[i]));


                    Connection hoConnection = getHoConnection(dc);
                    Connection hoConnection = getHoConnection(dc);
                    if (hoConnection != null) {
                    if (hoConnection != null) {
                        log("Handover connection found.");
                        // Single Radio Voice Call Continuity (SRVCC) completed
                        // Single Radio Voice Call Continuity (SRVCC) completed
                        mConnections[i].migrateFrom(hoConnection);
                        mConnections[i].migrateFrom(hoConnection);
                        // Updating connect time for silent redial cases (ex: Calls are transferred
                        // Updating connect time for silent redial cases (ex: Calls are transferred
@@ -906,6 +909,7 @@ public class GsmCdmaCallTracker extends CallTracker {
                        mPhone.notifyHandoverStateChanged(mConnections[i]);
                        mPhone.notifyHandoverStateChanged(mConnections[i]);
                    } else {
                    } else {
                        // find if the MT call is a new ring or unknown connection
                        // find if the MT call is a new ring or unknown connection
                        log("New connection is not mPendingMO nor a pending handover.");
                        newRinging = checkMtFindNewRinging(dc,i);
                        newRinging = checkMtFindNewRinging(dc,i);
                        if (newRinging == null) {
                        if (newRinging == null) {
                            unknownConnectionAppeared = true;
                            unknownConnectionAppeared = true;