Home
last modified time | relevance | path

Searched refs:combinationPredicate (Results 1 – 6 of 6) 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.cpp208 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument
209 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()
/frameworks/base/cmds/statsd/tests/e2e/
DDimensionInCondition_e2e_combination_OR_cond_test.cpp51 auto combinationPredicate = config.add_predicate(); in CreateCountMetric_NoLink_CombinationCondition_Config() local
52 combinationPredicate->set_id(987654); in CreateCountMetric_NoLink_CombinationCondition_Config()
53 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::OR); in CreateCountMetric_NoLink_CombinationCondition_Config()
54 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateCountMetric_NoLink_CombinationCondition_Config()
55 addPredicateToPredicateCombination(holdingWakelockPredicate, combinationPredicate); in CreateCountMetric_NoLink_CombinationCondition_Config()
60 metric->set_condition(combinationPredicate->id()); in CreateCountMetric_NoLink_CombinationCondition_Config()
254 auto combinationPredicate = config.add_predicate(); in CreateCountMetric_Link_CombinationCondition() local
255 combinationPredicate->set_id(987654); in CreateCountMetric_Link_CombinationCondition()
256 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::OR); in CreateCountMetric_Link_CombinationCondition()
257 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateCountMetric_Link_CombinationCondition()
[all …]
DDimensionInCondition_e2e_combination_AND_cond_test.cpp62 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() local
63 combinationPredicate->set_id(StringToId("CombinationPredicate")); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
64 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
65 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
66 addPredicateToPredicateCombination(isSyncingPredicate, combinationPredicate); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
72 metric->set_condition(combinationPredicate->id()); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
427 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_Link_AND_CombinationCondition() local
428 combinationPredicate->set_id(StringToId("CombinationPredicate")); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
429 combinationPredicate->mutable_combination()->set_operation(LogicalOperation::AND); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
430 addPredicateToPredicateCombination(screenIsOffPredicate, combinationPredicate); in CreateDurationMetricConfig_Link_AND_CombinationCondition()
[all …]
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.cpp255 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument
256 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()