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

Commit 01e39b84 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Increased logging for calls that are created but never added." into udc-dev

parents cb8273aa 4594154e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2397,6 +2397,8 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,

    @Override
    public void handleCreateConferenceFailure(DisconnectCause disconnectCause) {
        Log.i(this, "handleCreateConferenceFailure; callid=%s, disconnectCause=%s",
                getId(), disconnectCause);
        clearConnectionService();
        setDisconnectCause(disconnectCause);
        mCallsManager.markCallAsDisconnected(this, disconnectCause);
@@ -2417,6 +2419,8 @@ public class Call implements CreateConnectionResponse, EventManager.Loggable,

    @Override
    public void handleCreateConnectionFailure(DisconnectCause disconnectCause) {
        Log.i(this, "handleCreateConnectionFailure; callid=%s, disconnectCause=%s",
                getId(), disconnectCause);
        clearConnectionService();
        setDisconnectCause(disconnectCause);
        mCallsManager.markCallAsDisconnected(this, disconnectCause);
+3 −3
Original line number Diff line number Diff line
@@ -734,8 +734,7 @@ public class CallsManager extends Call.ListenerBase

    @Override
    public void onFailedOutgoingCall(Call call, DisconnectCause disconnectCause) {
        Log.v(this, "onFailedOutgoingCall, call: %s", call);

        Log.i(this, "onFailedOutgoingCall for call %s", call);
        markCallAsRemoved(call);
    }

@@ -990,14 +989,15 @@ public class CallsManager extends Call.ListenerBase

    @Override
    public void onFailedIncomingCall(Call call) {
        Log.i(this, "onFailedIncomingCall for call %s", call);
        setCallState(call, CallState.DISCONNECTED, "failed incoming call");
        call.removeListener(this);
    }

    @Override
    public void onSuccessfulUnknownCall(Call call, int callState) {
        setCallState(call, callState, "successful unknown call");
        Log.i(this, "onSuccessfulUnknownCall for call %s", call);
        setCallState(call, callState, "successful unknown call");
        addCall(call);
    }

+1 −1
Original line number Diff line number Diff line
@@ -1597,7 +1597,7 @@ public class ConnectionServiceWrapper extends ServiceBinder implements
            public void onSuccess() {
                String callId = mCallIdMapper.getCallId(call);
                if (callId == null) {
                    Log.w(ConnectionServiceWrapper.this, "Call not present"
                    Log.i(ConnectionServiceWrapper.this, "Call not present"
                            + " in call id mapper, maybe it was aborted before the bind"
                            + " completed successfully?");
                    response.handleCreateConnectionFailure(