Searched refs:durationMetric (Results 1 – 7 of 7) sorted by relevance
43 auto durationMetric = config.add_duration_metric(); in TEST() local44 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() local127 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 …]
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()
62 auto durationMetric = config.add_duration_metric(); in CreateStatsdConfig() local63 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()
2620 DurationMetric* durationMetric = config.add_duration_metric(); in TEST_F() local2621 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() local2700 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 …]
910 DurationMetric* durationMetric = config.add_duration_metric(); in TEST() local911 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()
3087 DurationMetric durationMetric = createDurationMetric("DURATION1", predicate1Id, nullopt, {}); in TEST_F() local3088 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() local3295 int64_t durationMetricId = durationMetric.id(); in TEST_F()3296 *config.add_duration_metric() = durationMetric; in TEST_F()
42 const ConfigKey& key, const DurationMetric& durationMetric, const int conditionIndex,