Add logcat post procesor;

- Add base post processor for common logic
- Fix logcag collection stream error

Bug: 288323866

Test: make BootTimeTest -j12 && tradefed.sh run commandAndExit AndroidTest.xml \
--logcat-post-processor:boot-time-pattern 'boot_to_user0_unlocked=SystemServerTiming: SystemUserUnlock took to complete'

Change-Id: Iabb2d046b37bb51ce8f0e62c72b46564b99dc7f2
Merged-In: Iabb2d046b37bb51ce8f0e62c72b46564b99dc7f2
(cherry picked from commit e8ba2d953ac90185c4314018e4f1e3963099932c)
5 files changed