/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/ |
D | ResultStoreTest.java | 199 MetricsReportList reportList = mResultStore.getMetricsReports(metricsConfigName, true); in testGetMetricsReports_whenNoData_shouldReceiveNull() local 201 assertThat(reportList).isNull(); in testGetMetricsReports_whenNoData_shouldReceiveNull() 210 MetricsReportList reportList = mResultStore.getMetricsReports(metricsConfigName, true); in testGetMetricsReports_whenDataCorrupt_shouldReceiveNull() local 212 assertThat(reportList).isNull(); in testGetMetricsReports_whenDataCorrupt_shouldReceiveNull() 225 MetricsReportList reportList = mResultStore.getMetricsReports(metricsConfigName, false); in testGetMetricsReports_whenMultipleReports_shouldReceiveCorrectList() local 227 assertThat(reportList.getReportCount()).isEqualTo(2); in testGetMetricsReports_whenMultipleReports_shouldReceiveCorrectList() 229 assertThat(MetricsReportProtoUtils.getBundle(reportList, 0).toString()) in testGetMetricsReports_whenMultipleReports_shouldReceiveCorrectList() 231 assertThat(MetricsReportProtoUtils.getBundle(reportList, 1).toString()) in testGetMetricsReports_whenMultipleReports_shouldReceiveCorrectList() 244 MetricsReportList reportList = mResultStore.getMetricsReports(testFinalFileName, true); in testGetMetricsReports_whenDeleteFlagTrue_shouldDeleteData() local 246 assertThat(reportList.getReportCount()).isEqualTo(2); in testGetMetricsReports_whenDeleteFlagTrue_shouldDeleteData() [all …]
|
/packages/services/Car/service/src/com/android/car/telemetry/ |
D | ResultStore.java | 143 MetricsReportList.Builder reportList = mMetricsReportCache.get(metricsConfigName); in getMetricsReports() local 145 if (reportList == null) { in getMetricsReports() 146 reportList = readMetricsReportList(metricsConfigName); in getMetricsReports() 152 return reportList == null ? null : reportList.build(); in getMetricsReports() 180 MetricsReportList.Builder reportList = readMetricsReportList(file.getName()); in getAllMetricsReports() local 181 if (reportList != null) { in getAllMetricsReports() 182 results.put(file.getName(), reportList.build()); in getAllMetricsReports() 311 MetricsReportList.Builder reportList = mMetricsReportCache.get(metricsConfigName); in putMetricsReport() local 313 if (reportList == null) { in putMetricsReport() 314 reportList = readMetricsReportList(metricsConfigName); in putMetricsReport() [all …]
|
D | CarTelemetryService.java | 310 MetricsReportList reportList = finalResults.valueAt(i); in dump() local 311 writer.println("\tTotal number of metrics reports: " + reportList.getReportCount()); in dump() 312 for (int j = 0; j < reportList.getReportCount(); j++) { in dump() 314 PersistableBundle report = MetricsReportProtoUtils.getBundle(reportList, j); in dump() 462 MetricsReportList reportList; in getFinishedReport() local 464 if ((reportList = mResultStore.getMetricsReports(metricsConfigName, true)) != null) { in getFinishedReport() 465 streamReports(listener, metricsConfigName, reportList); in getFinishedReport() 498 MetricsReportList reportList = in getAllFinishedReports() local 500 if (reportList != null) { in getAllFinishedReports() 501 streamReports(listener, configName, reportList); in getAllFinishedReports() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/util/ |
D | MetricsReportProtoUtilsTest.java | 50 MetricsReportList reportList = in testBuildMetricsReportListAndGetBundle() local 52 assertThat(reportList.getReportCount()).isEqualTo(2); in testBuildMetricsReportListAndGetBundle() 53 PersistableBundle report1 = MetricsReportProtoUtils.getBundle(reportList, 0); in testBuildMetricsReportListAndGetBundle() 54 PersistableBundle report2 = MetricsReportProtoUtils.getBundle(reportList, 1); in testBuildMetricsReportListAndGetBundle()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/localdrive/ |
D | LocalDrive.java | 269 ConfigMetricsReportList reportList; in cmdGetData() local 271 reportList = Utils.getReportList(configId, clearData, true /* SHELL_UID */, sLogger, in cmdGetData() 279 = ConfigMetricsReportList.newBuilder(reportList); in cmdGetData() 282 for (ConfigMetricsReport report : reportList.getReportsList()) { in cmdGetData() 285 reportList = builder.build(); in cmdGetData() 289 sLogger.info(reportList.toString()); in cmdGetData() 292 System.out.write(reportList.toByteArray()); in cmdGetData()
|
/packages/modules/StatsD/apex/tests/libstatspull/src/com/android/internal/os/statsd/libstats/ |
D | StatsConfigUtils.java | 94 ConfigMetricsReportList reportList = null; in getConfigMetricsReport() local 96 reportList = ConfigMetricsReportList.parser() in getConfigMetricsReport() 101 assertThat(reportList).isNotNull(); in getConfigMetricsReport() 102 assertThat(reportList.getReportsCount()).isEqualTo(1); in getConfigMetricsReport() 103 ConfigMetricsReport report = reportList.getReports(0); in getConfigMetricsReport()
|
/packages/services/Car/service/src/com/android/car/telemetry/util/ |
D | MetricsReportProtoUtils.java | 81 public static PersistableBundle getBundle(MetricsReportList reportList, int index) { in getBundle() argument 82 if (index >= reportList.getReportCount()) { in getBundle() 85 return getBundle(reportList.getReport(index).getReportBytes()); in getBundle()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/ |
D | MetricActivationTests.java | 260 ConfigMetricsReportList reportList = ReportUtils.getReportList(getDevice(), in testCancellation() local 262 List<ConfigMetricsReport> reports = getSortedConfigMetricsReports(reportList); in testCancellation() 405 ConfigMetricsReportList reportList = ReportUtils.getReportList(getDevice(), in testRestart() local 407 List<ConfigMetricsReport> reports = getSortedConfigMetricsReports(reportList); in testRestart() 542 ConfigMetricsReportList reportList = ReportUtils.getReportList(getDevice(), in testMultipleActivations() local 544 List<ConfigMetricsReport> reports = getSortedConfigMetricsReports(reportList); in testMultipleActivations()
|
/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/ |
D | ConfigMetricsReportListConverter.java | 80 @NonNull StatsLogProto.ConfigMetricsReportList reportList) in convert() 87 for (StatsLogProto.ConfigMetricsReport report : reportList.getReportsList()) { in convert()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/statsconverters/ |
D | ConfigMetricsReportListConverterTest.java | 79 ConfigMetricsReportList reportList = ConfigMetricsReportList.newBuilder() in testConvertMultipleReports_correctlySetsPersistableBundles() local 117 Map<Long, PersistableBundle> map = ConfigMetricsReportListConverter.convert(reportList); in testConvertMultipleReports_correctlySetsPersistableBundles()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 116 ConfigMetricsReportList reportList = in getReportList() local 119 return reportList; in getReportList()
|
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/ |
D | TestDrive.java | 297 private void dumpMetrics(ConfigMetricsReportList reportList, Dumper dumper) { in dumpMetrics() argument 299 ConfigMetricsReport report = reportList.getReports(reportList.getReportsCount() - 1); in dumpMetrics()
|