Searched refs:metricData (Results 1 – 6 of 6) sorted by relevance
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 298 for (EventMetricData metricData : metric.getEventMetrics().getDataList()) { in getEventMetricData() 299 if (metricData.hasAtom()) { in getEventMetricData() 300 data.add(metricData); in getEventMetricData() 302 data.addAll(backfillAggregatedAtomsInEventMetric(metricData)); in getEventMetricData() 310 EventMetricData metricData) { in backfillAggregatedAtomsInEventMetric() argument 311 if (!metricData.hasAggregatedAtomInfo()) { in backfillAggregatedAtomsInEventMetric() 315 StatsLog.AggregatedAtomInfo atomInfo = metricData.getAggregatedAtomInfo(); in backfillAggregatedAtomsInEventMetric()
|
/packages/modules/StatsD/statsd/tests/ |
D | statsd_test_util.h | 691 void backfillDimensionPath(const DimensionsValue& whatPath, T* metricData) { in backfillDimensionPath() argument 692 for (int i = 0; i < metricData->data_size(); ++i) { in backfillDimensionPath() 693 auto data = metricData->mutable_data(i); in backfillDimensionPath() 709 void sortMetricDataByDimensionsValue(const T& metricData, T* sortedMetricData) { in sortMetricDataByDimensionsValue() argument 711 for (int i = 0; i < metricData.data_size(); ++i) { in sortMetricDataByDimensionsValue() 713 std::make_pair(DimensionsPair(metricData.data(i).dimensions_in_what(), in sortMetricDataByDimensionsValue() 714 metricData.data(i).slice_by_state()), in sortMetricDataByDimensionsValue() 718 *sortedMetricData->add_data() = metricData.data(itr.second); in sortMetricDataByDimensionsValue() 723 void sortMetricDataByFirstDimensionLeafValue(const T& metricData, T* sortedMetricData) { in sortMetricDataByFirstDimensionLeafValue() argument 725 for (int i = 0; i < metricData.data_size(); ++i) { in sortMetricDataByFirstDimensionLeafValue() [all …]
|
D | statsd_test_util.cpp | 2078 std::vector<EventMetricData> metricData; in backfillAggregatedAtomsInEventMetric() local 2085 metricData.push_back(data); in backfillAggregatedAtomsInEventMetric() 2089 if (metricData.size() == 0) { in backfillAggregatedAtomsInEventMetric() 2093 sort(metricData.begin(), metricData.end(), in backfillAggregatedAtomsInEventMetric() 2099 for (int i = 0; i < metricData.size(); ++i) { in backfillAggregatedAtomsInEventMetric() 2100 *(wrapper->add_data()) = metricData[i]; in backfillAggregatedAtomsInEventMetric()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | ConfigUpdate_e2e_ab_test.cpp | 344 StatsLogReport metricData = report.metrics(0); in TEST_P() local 345 EXPECT_EQ(metricData.metric_id(), metric.id()); in TEST_P() 346 EXPECT_TRUE(metricData.has_gauge_metrics()); in TEST_P() 348 sortMetricDataByDimensionsValue(metricData.gauge_metrics(), &gaugeMetrics); in TEST_P() 351 GaugeMetricData data = metricData.gauge_metrics().data(0); in TEST_P()
|
D | ConfigUpdate_e2e_test.cpp | 2889 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local 2890 sortMetricDataByDimensionsValue(reports.reports(0).metrics(0).duration_metrics(), &metricData); in TEST_F() 2891 ASSERT_EQ(metricData.data_size(), 1); in TEST_F() 2892 DurationMetricData data = metricData.data(0); in TEST_F() 2982 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local 2983 sortMetricDataByDimensionsValue(reports.reports(0).metrics(0).duration_metrics(), &metricData); in TEST_F() 2984 ASSERT_EQ(metricData.data_size(), 2); in TEST_F() 2986 DurationMetricData data = metricData.data(0); in TEST_F() 2993 data = metricData.data(1); in TEST_F() 3103 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local [all …]
|
/packages/modules/StatsD/statsd/tests/metrics/ |
D | EventMetricProducer_test.cpp | 238 for (EventMetricData metricData : report.event_metrics().data()) { in TEST_F() local 239 AggregatedAtomInfo atomInfo = metricData.aggregated_atom_info(); in TEST_F() 291 for (EventMetricData metricData : report.event_metrics().data()) { in TEST_F() local 292 AggregatedAtomInfo atomInfo = metricData.aggregated_atom_info(); in TEST_F() 340 for (EventMetricData metricData : report.event_metrics().data()) { in TEST_F() local 341 AggregatedAtomInfo atomInfo = metricData.aggregated_atom_info(); in TEST_F()
|