Searched refs:combinationPredicate (Results 1 – 5 of 5) sorted by relevance
59 auto combinationPredicate = config.add_predicate(); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() local60 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() local108 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 …]
61 auto combinationPredicate = config.add_predicate(); in CreateStatsdConfig() local62 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()
103 Predicate* combinationPredicate = config.add_predicate(); in TEST_F() local104 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()
1497 Predicate_Combination* combinationPredicate = predicate.mutable_combination(); in TEST_F() local1498 combinationPredicate->set_operation(LogicalOperation::AND); in TEST_F()1499 combinationPredicate->add_predicate(888); in TEST_F()1500 combinationPredicate->add_predicate(777); in TEST_F()
471 Predicate* combinationPredicate) { in addPredicateToPredicateCombination() argument472 combinationPredicate->mutable_combination()->add_predicate(predicate.id()); in addPredicateToPredicateCombination()