Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/benchmark/
Dduration_metric_benchmark.cpp58 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() local
59 combinationPredicate->set_id(StringToId("CombinationPredicate")); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
60 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
61 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
62 addPredicateToPredicateCombination(isSyncingPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
68 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 …]
Dmetric_util.cpp210 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument
211 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()
/frameworks/base/cmds/statsd/tests/e2e/
DMetricConditionLink_e2e_test.cpp62 auto combinationPredicate = config.add_predicate(); in CreateStatsdConfig() local
63 combinationPredicate->set_id(StringToId("combinationPredicate")); in CreateStatsdConfig()
64 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateStatsdConfig()
65 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateStatsdConfig()
66 addPredicateToPredicateCombination(isSyncingPredicate, combinationPredicate); in CreateStatsdConfig()
67 addPredicateToPredicateCombination(isInBackgroundPredicate, combinationPredicate); in CreateStatsdConfig()
72 countMetric->set_condition(combinationPredicate->id()); in CreateStatsdConfig()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.cpp395 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument
396 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()