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

Commit 897e851f authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Add ability to dump telecom state in a timeline view.

Adding "timeline" parameter to dumpsys so that it is possible to dump
the telecom event log in a timeline format.

Test: Manual
Bug: 38450166
Change-Id: Id0f7a27b36f303c4c1a3e577afa0b40d97782dfa
parent 3cb2f5e5
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ public class TelecomServiceImpl {
        }
    }

    private static final String TIME_LINE_ARG = "timeline";
    private static final int DEFAULT_VIDEO_STATE = -1;

    private final ITelecomService.Stub mBinderImpl = new ITelecomService.Stub() {
@@ -1224,6 +1225,7 @@ public class TelecomServiceImpl {
                Analytics.dumpToEncodedProto(writer, args);
                return;
            }
            boolean isTimeLineView = (args.length > 0 && TIME_LINE_ARG.equalsIgnoreCase(args[0]));

            final IndentingPrintWriter pw = new IndentingPrintWriter(writer, "  ");
            if (mCallsManager != null) {
@@ -1242,9 +1244,12 @@ public class TelecomServiceImpl {
                Analytics.dump(pw);
                pw.decreaseIndent();
            }

            if (isTimeLineView) {
                Log.dumpEventsTimeline(pw);
            } else {
                Log.dumpEvents(pw);
            }
        }

        /**
         * @see android.telecom.TelecomManager#createManageBlockedNumbersIntent