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

Commit 9889dfe0 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add Telecom events for call logging.

When we get bugs to do with writing data to the call log, we have no way
to definitively indicate whether or not a call was logged to the call log,
and if so what number/postdial digits/presentation was actually logged.

This change adds some basic dumpsys info to indicate when a call is or is
not logged to the call log.

Test: Manual test of logging messages in Telecom dumpsys
Bug: 260962050
Change-Id: Iba6ea39c12609a27668aef88d01945eaad5e23c3
parent 065ebfb9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -386,7 +386,12 @@ public final class CallLogManager extends CallsManagerListenerBase {
        if (okayToLog) {
            AddCallArgs args = new AddCallArgs(mContext, paramBuilder.build(),
                    logCallCompletedListener);
            Log.addEvent(call, LogUtils.Events.LOG_CALL, "number=" + Log.piiHandle(logNumber)
                    + ",postDial=" + Log.piiHandle(call.getPostDialDigits()) + ",pres="
                    + call.getHandlePresentation());
            logCallAsync(args);
        } else {
            Log.addEvent(call, LogUtils.Events.SKIP_CALL_LOG);
        }
    }

+2 −0
Original line number Diff line number Diff line
@@ -105,6 +105,8 @@ public class LogUtils {
        public static final String SET_RINGING = "SET_RINGING";
        public static final String SET_ANSWERED = "SET_ANSWERED";
        public static final String SET_DISCONNECTED = "SET_DISCONNECTED";
        public static final String SKIP_CALL_LOG = "SKIP_CALL_LOG";
        public static final String LOG_CALL = "LOG_CALL";
        public static final String SET_DISCONNECTING = "SET_DISCONNECTING";
        public static final String SET_SELECT_PHONE_ACCOUNT = "SET_SELECT_PHONE_ACCOUNT";
        public static final String SET_AUDIO_PROCESSING = "SET_AUDIO_PROCESSING";