Home
last modified time | relevance | path

Searched refs:mMetricsConfigStore (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DMetricsConfigStoreTest.java46 private MetricsConfigStore mMetricsConfigStore; field in MetricsConfigStoreTest
53 mMetricsConfigStore = new MetricsConfigStore(mTestRootDir); in setUp()
61 mMetricsConfigStore = new MetricsConfigStore(mTestRootDir); // reload data in testRetrieveActiveMetricsConfigs_shouldSendConfigsToListener()
63 List<TelemetryProto.MetricsConfig> result = mMetricsConfigStore.getActiveMetricsConfigs(); in testRetrieveActiveMetricsConfigs_shouldSendConfigsToListener()
70 int status = mMetricsConfigStore.addMetricsConfig(METRICS_CONFIG_FOO); in testAddMetricsConfig_shouldWriteConfigToDisk()
81 int status = mMetricsConfigStore.addMetricsConfig(invalidConfig); in testAddMetricsConfig_whenInvalidVersion_shouldNotWriteToDisk()
89 int status = mMetricsConfigStore.addMetricsConfig(METRICS_CONFIG_BAR); in testRemoveMetricsConfig_shouldDeleteConfigFromDisk()
92 mMetricsConfigStore.removeMetricsConfig(NAME_BAR); in testRemoveMetricsConfig_shouldDeleteConfigFromDisk()
99 boolean success = mMetricsConfigStore.removeMetricsConfig(NAME_BAR); in testRemoveMetricsConfig_whenConfigDoesNotExist_shouldDoNothing()
109 mMetricsConfigStore.removeAllMetricsConfigs(); in testRemoveAllMetricsConfigs_shouldDeleteAll()
[all …]
DCarTelemetryServiceTest.java97 private MetricsConfigStore mMetricsConfigStore; field in CarTelemetryServiceTest
170 mMetricsConfigStore = mService.getMetricsConfigStore(); in setUp()
251 assertThat(mMetricsConfigStore.getActiveMetricsConfigs()) in testAddMetricsConfig_newerMetricsConfig_shouldReplaceAndDeleteOldResult()
277 assertThat(mMetricsConfigStore.getActiveMetricsConfigs()).isEmpty(); in testRemoveMetricsConfig_shouldDeleteConfigAndResult()
296 assertThat(mMetricsConfigStore.getActiveMetricsConfigs()).isEmpty(); in testRemoveAllMetricsConfigs_shouldRemoveConfigsAndResults()
304 mMetricsConfigStore.addMetricsConfig(METRICS_CONFIG_V1); in testGetFinishedReport_whenNoReport_shouldReceiveNoReportStatus()
457 mMetricsConfigStore.addMetricsConfig(METRICS_CONFIG_V1); in testOnReportFinished_removesConfigAndDoesNotNotifyClient()
462 assertThat(mMetricsConfigStore.getActiveMetricsConfigs()).isEmpty(); in testOnReportFinished_removesConfigAndDoesNotNotifyClient()
470 mMetricsConfigStore.addMetricsConfig(METRICS_CONFIG_V1); in testOnReportFinished_withReport_removesConfigAndNotifiesClient()
475 assertThat(mMetricsConfigStore.getActiveMetricsConfigs()).isEmpty(); in testOnReportFinished_withReport_removesConfigAndNotifiesClient()
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/
DCarTelemetryService.java173 private MetricsConfigStore mMetricsConfigStore; field in CarTelemetryService
239 mMetricsConfigStore = new MetricsConfigStore(rootDirectory); in init()
293 for (TelemetryProto.MetricsConfig config : mMetricsConfigStore.getActiveMetricsConfigs()) { in dump()
381 int status = mMetricsConfigStore.addMetricsConfig(metricsConfig); in addMetricsConfigInternal()
419 mMetricsConfigStore.removeMetricsConfig(metricsConfigName); in removeMetricsConfig()
438 mMetricsConfigStore.removeAllMetricsConfigs(); in removeAllMetricsConfigs()
472 } else if (mMetricsConfigStore.containsConfig(metricsConfigName)) { in getFinishedReport()
563 List<TelemetryProto.MetricsConfig> activeMetricsConfigs = mMetricsConfigStore in getActiveMetricsConfigDetails()
644 mMetricsConfigStore.getActiveMetricsConfigs()) { in startMetricsCollection()
697 mMetricsConfigStore.removeMetricsConfig(metricsConfigName); in cleanupMetricsConfig()
[all …]