Add ability to dump telecom state in a timeline view. am: 897e851f50
am: 5e66c1b834
Change-Id: Iaba35b1138ebe4db0d23f6d7faee1ebb33bc39d1
diff --git a/src/com/android/server/telecom/TelecomServiceImpl.java b/src/com/android/server/telecom/TelecomServiceImpl.java
index b333213..72cf998 100644
--- a/src/com/android/server/telecom/TelecomServiceImpl.java
+++ b/src/com/android/server/telecom/TelecomServiceImpl.java
@@ -79,6 +79,7 @@
}
}
+ 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 @@
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,8 +1244,11 @@
Analytics.dump(pw);
pw.decreaseIndent();
}
-
- Log.dumpEvents(pw);
+ if (isTimeLineView) {
+ Log.dumpEventsTimeline(pw);
+ } else {
+ Log.dumpEvents(pw);
+ }
}
/**