Parsing operations for transitions.
- AddDuration: calculates duration from sendTimeNs and finishTimeNs in wm data, if available
- AddRealToElapsedTimeOffsetNs: for legacy shell/wm parsers to provide this information to TracesParserTransitions
- AddRootProperties: adds 'id' and 'realToElapsedTimeOffsetNs' to root of transition properties tree, taken from inner shell/wm property trees
- AddStatus: determines whether transition is aborted/played/merged
- UpdateAbortTimeNodes: for perfetto traces the protos are not split between wm and shell transitions, so the 'abortTimeNs' property is split into 'shellAbortTimeNs' and 'wmAbortTimeNs' - this operation renames these as just 'abortTimeNs' so later operations can be used that are common to legacy and perfetto traces
Bug: b/311643292
Test: npm run test:unit:ci
Change-Id: Iea60f666759c28833f8563c43c83ce721eee6c19
11 files changed