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

Commit 78a16ae9 authored by Tyler Gunn's avatar Tyler Gunn Committed by android-build-merger
Browse files

Add ability to dump telecom state in a timeline view. am: 897e851f am: 5e66c1b8 am: 6784b4f7

am: 78c3a6e0

Change-Id: Ic07f5bc862bd0b66477ddf2a1016652d5e612bf7
parents 25d1fafb 78c3a6e0
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -77,6 +77,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() {
@@ -1222,6 +1223,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) {
@@ -1240,9 +1242,12 @@ public class TelecomServiceImpl {
                Analytics.dump(pw);
                pw.decreaseIndent();
            }

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

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