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

Commit 5e66c1b8 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

Change-Id: Ia2fd3eabf11754b4cb29ce837926df68f31cfca7
parents 59db768a 897e851f
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line 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 static final int DEFAULT_VIDEO_STATE = -1;


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


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

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


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