Searched refs:durationMetric (Results 1 – 5 of 5) sorted by relevance
42 auto durationMetric = config.add_duration_metric(); in TEST() local43 durationMetric->set_id(metricId); in TEST()44 durationMetric->set_what(durationPredicate.id()); in TEST()45 durationMetric->set_bucket(FIVE_MINUTES); in TEST()46 durationMetric->set_aggregation_type(DurationMetric_AggregationType_SUM); in TEST()125 auto durationMetric = config.add_duration_metric(); in TEST() local126 durationMetric->set_id(metricId); in TEST()127 durationMetric->set_what(durationPredicate.id()); in TEST()128 durationMetric->set_bucket(FIVE_MINUTES); in TEST()129 durationMetric->set_aggregation_type(DurationMetric_AggregationType_SUM); in TEST()[all …]
51 auto durationMetric = config.add_duration_metric(); in CreateStatsdConfig() local52 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()
54 auto durationMetric = config.add_duration_metric(); in CreateStatsdConfig() local55 durationMetric->set_id(StringToId("WakelockDuration")); in CreateStatsdConfig()56 durationMetric->set_what(holdingWakelockPredicate.id()); in CreateStatsdConfig()57 durationMetric->set_condition(screenIsOffPredicate.id()); in CreateStatsdConfig()58 durationMetric->set_aggregation_type(aggregationType); in CreateStatsdConfig()59 *durationMetric->mutable_dimensions_in_what() = in CreateStatsdConfig()61 durationMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
41 DurationMetricProducer(const ConfigKey& key, const DurationMetric& durationMetric,
408 sp<MetricProducer> durationMetric = new DurationMetricProducer( in initMetrics() local412 allMetricProducers.push_back(durationMetric); in initMetrics()