bootanalyze: add shutdown events

- will capture logcat if Timeout event happens during shutdown.
- -m option can be used to capture shutdown event taking over certain time like
  -m ShutdownBtDuration=2.0,ShutdownStorageManagerSerivceDuration=3.0,ShutdownInitFsShutdown=5.0
- Duration for interval with items with Xyz and XyzDone
- Shutdown time is counted from the point where shutdown starts.

bug: 64568026
Test: python packages/services/Car/tools/bootanalyze/bootanalyze.py -r -c packages/services/Car/tools/bootanalyze/config.yaml -n 2 -m ShutdownBtDuration=5.0,ShutdownStorageManagerSerivceDuration=5.0
Change-Id: I32919c665c74e9a57308264ecc7cbde93106134c
2 files changed