Refactor logcat collector.

By default collect logcat on every test end and optionally choose
to collect only on test failed.

Provide option to include the logcat duration before the test
started.

Optionally pass only the logcat directory in the run metrics.

Bug: b/171826266

Test: atest CollectorDeviceLibTest:android.device.collectors.LogcatCollectorTest
Change-Id: Ie18437110095da2a6a8ee2f52a0d04c329454884
5 files changed
tree: 144bce808aa65a9d0bb06d22446fb6f97e8ee50e
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg