Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.h464 T* metricData) { in backfillDimensionPath() argument
465 for (int i = 0; i < metricData->data_size(); ++i) { in backfillDimensionPath()
466 auto data = metricData->mutable_data(i); in backfillDimensionPath()
487 void sortMetricDataByDimensionsValue(const T& metricData, T* sortedMetricData) { in sortMetricDataByDimensionsValue() argument
489 for (int i = 0; i < metricData.data_size(); ++i) { in sortMetricDataByDimensionsValue()
491 std::make_pair(DimensionsPair(metricData.data(i).dimensions_in_what(), in sortMetricDataByDimensionsValue()
492 metricData.data(i).slice_by_state()), in sortMetricDataByDimensionsValue()
496 *sortedMetricData->add_data() = metricData.data(itr.second); in sortMetricDataByDimensionsValue()
501 void sortMetricDataByFirstDimensionLeafValue(const T& metricData, T* sortedMetricData) { in sortMetricDataByFirstDimensionLeafValue() argument
503 for (int i = 0; i < metricData.data_size(); ++i) { in sortMetricDataByFirstDimensionLeafValue()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DConfigUpdate_e2e_ab_test.cpp344 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()
DConfigUpdate_e2e_test.cpp2645 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local
2646 sortMetricDataByDimensionsValue(reports.reports(0).metrics(0).duration_metrics(), &metricData); in TEST_F()
2647 ASSERT_EQ(metricData.data_size(), 1); in TEST_F()
2648 DurationMetricData data = metricData.data(0); in TEST_F()
2737 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local
2738 sortMetricDataByDimensionsValue(reports.reports(0).metrics(0).duration_metrics(), &metricData); in TEST_F()
2739 ASSERT_EQ(metricData.data_size(), 2); in TEST_F()
2741 DurationMetricData data = metricData.data(0); in TEST_F()
2748 data = metricData.data(1); in TEST_F()
2857 StatsLogReport::DurationMetricDataWrapper metricData; in TEST_F() local
[all …]