Home
last modified time | relevance | path

Searched refs:combinationPredicate (Results 1 – 5 of 5) sorted by relevance

/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp59 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() local
60 combinationPredicate->set_id(StringToId("CombinationPredicate")); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
61 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
62 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
63 addPredicateToPredicateCombination(isSyncingPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
69 metric->set_condition(combinationPredicate->id()); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
107 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_Link_AND_CombinationCondition() local
108 combinationPredicate->set_id(StringToId("CombinationPredicate")); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
109 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
110 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
[all …]
/packages/modules/StatsD/statsd/tests/e2e/
DMetricConditionLink_e2e_test.cpp61 auto combinationPredicate = config.add_predicate(); in CreateStatsdConfig() local
62 combinationPredicate->set_id(StringToId("combinationPredicate")); in CreateStatsdConfig()
63 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateStatsdConfig()
64 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateStatsdConfig()
65 addPredicateToPredicateCombination(isSyncingPredicate, combinationPredicate); in CreateStatsdConfig()
66 addPredicateToPredicateCombination(isInBackgroundPredicate, combinationPredicate); in CreateStatsdConfig()
71 countMetric->set_condition(combinationPredicate->id()); in CreateStatsdConfig()
DConfigUpdate_e2e_test.cpp103 Predicate* combinationPredicate = config.add_predicate(); in TEST_F() local
104 combinationPredicate->set_id(StringToId("ScreenOnOrUnpluggedPred)")); in TEST_F()
105 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::OR); in TEST_F()
106 addPredicateToPredicateCombination(screenOnPredicate, combinationPredicate); in TEST_F()
107 addPredicateToPredicateCombination(unpluggedPredicate, combinationPredicate); in TEST_F()
111 combinationPredicate->id()); in TEST_F()
171 *newConfig.add_predicate() = *combinationPredicate; in TEST_F()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp1497 Predicate_Combination* combinationPredicate = predicate.mutable_combination(); in TEST_F() local
1498 combinationPredicate->set_operation(LogicalOperation::AND); in TEST_F()
1499 combinationPredicate->add_predicate(888); in TEST_F()
1500 combinationPredicate->add_predicate(777); in TEST_F()
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.cpp471 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument
472 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()