Home
last modified time | relevance | path

Searched refs:durationMetric (Results 1 – 7 of 7) sorted by relevance

/packages/modules/StatsD/statsd/tests/e2e/
DDurationMetric_e2e_test.cpp43 auto durationMetric = config.add_duration_metric(); in TEST() local
44 durationMetric->set_id(metricId); in TEST()
45 durationMetric->set_what(durationPredicate.id()); in TEST()
46 durationMetric->set_bucket(FIVE_MINUTES); in TEST()
47 durationMetric->set_aggregation_type(DurationMetric_AggregationType_SUM); in TEST()
126 auto durationMetric = config.add_duration_metric(); in TEST() local
127 durationMetric->set_id(metricId); in TEST()
128 durationMetric->set_what(durationPredicate.id()); in TEST()
129 durationMetric->set_bucket(FIVE_MINUTES); in TEST()
130 durationMetric->set_aggregation_type(DurationMetric_AggregationType_SUM); in TEST()
[all …]
DWakelockDuration_e2e_test.cpp51 auto durationMetric = config.add_duration_metric(); in CreateStatsdConfig() local
52 durationMetric->set_id(StringToId("WakelockDuration")); in CreateStatsdConfig()
53 durationMetric->set_what(holdingWakelockPredicate.id()); in CreateStatsdConfig()
54 durationMetric->set_condition(screenIsOffPredicate.id()); in CreateStatsdConfig()
55 durationMetric->set_aggregation_type(aggregationType); in CreateStatsdConfig()
57 *durationMetric->mutable_dimensions_in_what() = in CreateStatsdConfig()
60 durationMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
DAnomaly_duration_sum_e2e_test.cpp62 auto durationMetric = config.add_duration_metric(); in CreateStatsdConfig() local
63 durationMetric->set_id(StringToId("WakelockDuration")); in CreateStatsdConfig()
64 durationMetric->set_what(holdingWakelockPredicate.id()); in CreateStatsdConfig()
65 durationMetric->set_condition(screenIsOffPredicate.id()); in CreateStatsdConfig()
66 durationMetric->set_aggregation_type(aggregationType); in CreateStatsdConfig()
67 *durationMetric->mutable_dimensions_in_what() = in CreateStatsdConfig()
69 durationMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
DConfigUpdate_e2e_test.cpp2620 DurationMetric* durationMetric = config.add_duration_metric(); in TEST_F() local
2621 durationMetric->set_id(StringToId("WakelockDuration")); in TEST_F()
2622 durationMetric->set_what(holdingWakelockPredicate.id()); in TEST_F()
2623 durationMetric->set_aggregation_type(DurationMetric::SUM); in TEST_F()
2624 durationMetric->set_bucket(FIVE_MINUTES); in TEST_F()
2699 DurationMetric* durationMetric = config.add_duration_metric(); in TEST_F() local
2700 durationMetric->set_id(StringToId("WakelockDuration")); in TEST_F()
2701 durationMetric->set_what(holdingWakelockPredicate.id()); in TEST_F()
2702 durationMetric->set_condition(isInBackgroundPredicate.id()); in TEST_F()
2703 durationMetric->set_aggregation_type(DurationMetric::SUM); in TEST_F()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp910 DurationMetric* durationMetric = config.add_duration_metric(); in TEST() local
911 durationMetric->set_id(StringToId("WakelockDuration")); in TEST()
912 durationMetric->set_what(holdingWakelockPredicate.id()); in TEST()
913 durationMetric->set_aggregation_type(DurationMetric::SUM); in TEST()
916 *durationMetric->mutable_dimensions_in_what() = CreateAttributionUidAndOtherDimensions( in TEST()
918 durationMetric->set_bucket(FIVE_MINUTES); in TEST()
Dconfig_update_utils_test.cpp3087 DurationMetric durationMetric = createDurationMetric("DURATION1", predicate1Id, nullopt, {}); in TEST_F() local
3088 int64_t durationMetricId = durationMetric.id(); in TEST_F()
3089 *config.add_duration_metric() = durationMetric; in TEST_F()
3130 *newConfig.add_duration_metric() = durationMetric; in TEST_F()
3293 DurationMetric durationMetric = in TEST_F() local
3295 int64_t durationMetricId = durationMetric.id(); in TEST_F()
3296 *config.add_duration_metric() = durationMetric; in TEST_F()
/packages/modules/StatsD/statsd/src/metrics/
DDurationMetricProducer.h42 const ConfigKey& key, const DurationMetric& durationMetric, const int conditionIndex,