Create callbacks for setting up and cleaning up metric collectors.

Subclasses should implement these callbacks to ensure that components
that use metric collectors programatically can have them set up and
cleaned up correctly. These classes should not call these callbacks
directly, however, but through setUp and cleanUp().

Bug: 206859096
Test: atest baseMetricListenerInstrumentedTest (updated)
Change-Id: Ib7e9657f7d998324c790eeaf856ede068ac02616
2 files changed
tree: c101a4ca78a5928fc50c6711bbd1c0ec01e60b5b
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg