commit | 1c249d845bd9309d283234652018b367c727731e | [log] [tgz] |
---|---|---|
author | Harry Zhang <harrytczhang@google.com> | Fri Dec 10 23:19:52 2021 +0000 |
committer | Harry Zhang <harrytczhang@google.com> | Thu Dec 16 01:42:54 2021 +0000 |
tree | eab2127ca37b6a145c69522b8b975800d49b6166 | |
parent | 632b68f67ef72737fd6e9031a3fccc7d1ee92fed [diff] |
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) Original change: https://android-review.googlesource.com/c/platform/platform_testing/+/1918957 Change-Id: I6d74fe767c73199bfc216f15519e6949a05af3fb (cherry picked from commit 5c8241e95c8ad9e84afd55d9edba9d7d1763dde0) Merged-In: I6d74fe767c73199bfc216f15519e6949a05af3fb Merged-In: Ica467d9fb143c8f25e495d4c1d4d4be8632a72ae Merged-In: Idcb8af0a76e03ea14fe929fd9eff29a23134c942