Implement custom metric collector for AdServices

Sample output with cold-start and hot-start latency data:https://paste.googleplex.com/6021916566487040

Test: tested locally useing following command
adb shell am instrument -w -e class android.platform.test.scenario.adservices.TopicsCrystalBallTest -e listener android.device.collectors.TopicsLatencyCollector -e skip_test_failure_metrics true android.platform.test.scenario/androidx.test.runner.AndroidJUnitRunner

To execute unit test: atest CollectorsHelperAospTest:com.android.helpers.TopicsLatencyHelperTest

Bug:b/229641201

change-Id: Idd5014d2c050dc52c6ffb7320b929dfb6879561c
6 files changed
tree: 3f72c58f5d38b14b728acda4d79ac62abf089006
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg