summaryrefslogtreecommitdiff
path: root/src/com/android/loganalysis/parser/EventsLogParser.java
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2018-05-08 18:59:18 -0700
committerVadim Tryshev <vadimt@google.com>2018-05-09 13:10:56 -0700
commit630e6d6877bf424e70519a612e1f059169c498ed (patch)
tree0a016599c82b8ae098f529c514a79d5e5706226b /src/com/android/loganalysis/parser/EventsLogParser.java
parentd2962e783f1f542c456ed5220f1ced5ddb57dc9e (diff)
downloadloganalysis-630e6d6877bf424e70519a612e1f059169c498ed.tar.gz
Using WINDOWS_DRAWN_DELAY where needed, switching from relying on Recents activity to the Launcher one. Removing cold launches in the beginning in removeAdditionalLaunchInfo. Bug: 72967764 Test: Running app transition tests locally Change-Id: Iec8c2ad2cdfc0fb2e570f114cd26897f3607e71f
Diffstat (limited to 'src/com/android/loganalysis/parser/EventsLogParser.java')
-rw-r--r--src/com/android/loganalysis/parser/EventsLogParser.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/loganalysis/parser/EventsLogParser.java b/src/com/android/loganalysis/parser/EventsLogParser.java
index b69948d..1e1803c 100644
--- a/src/com/android/loganalysis/parser/EventsLogParser.java
+++ b/src/com/android/loganalysis/parser/EventsLogParser.java
@@ -54,6 +54,7 @@ public class EventsLogParser implements IParser {
private static final String TRANSITION_DELAY_KEY = "319";
private static final String STARTING_WINDOW_DELAY_KEY = "321";
private static final String COLD_LAUNCH_KEY = "945";
+ private static final String WINDOWS_DRAWN_DELAY_KEY = "322";
@Override
public IItem parse(List<String> lines) {
@@ -80,13 +81,16 @@ public class EventsLogParser implements IParser {
TransitionDelayItem delayItem = new TransitionDelayItem();
if (null != transitionInfoMap.get(PACKAGE_KEY)
&& null != transitionInfoMap.get(ACTIVITY_KEY)
- && null != transitionInfoMap.get(TRANSITION_DELAY_KEY)) {
+ && null != transitionInfoMap.get(TRANSITION_DELAY_KEY)
+ && null != transitionInfoMap.get(WINDOWS_DRAWN_DELAY_KEY)) {
delayItem.setComponentName(transitionInfoMap.get(PACKAGE_KEY) + "/"
+ transitionInfoMap.get(ACTIVITY_KEY));
delayItem.setTransitionDelay(Long.parseLong(transitionInfoMap
.get(TRANSITION_DELAY_KEY)));
delayItem.setDateTime(String.format("%s %s", match.group(DATE),
match.group(TIME)));
+ delayItem.setWindowDrawnDelay(
+ Long.parseLong(transitionInfoMap.get(WINDOWS_DRAWN_DELAY_KEY)));
}
if (transitionInfoMap.containsKey(COLD_LAUNCH_KEY)) {
if (null != transitionInfoMap.get(STARTING_WINDOW_DELAY_KEY)) {