Home
last modified time | relevance | path

Searched refs:simplePredicate (Results 1 – 11 of 11) sorted by relevance

/packages/modules/StatsD/statsd/tests/condition/
DSimpleConditionTracker_test.cpp50 SimplePredicate simplePredicate; in getWakeLockHeldCondition() local
51 simplePredicate.set_start(StringToId("WAKE_LOCK_ACQUIRE")); in getWakeLockHeldCondition()
52 simplePredicate.set_stop(StringToId("WAKE_LOCK_RELEASE")); in getWakeLockHeldCondition()
53 simplePredicate.set_stop_all(StringToId("RELEASE_ALL")); in getWakeLockHeldCondition()
55 simplePredicate.mutable_dimensions()->set_field(TAG_ID); in getWakeLockHeldCondition()
56 simplePredicate.mutable_dimensions()->add_child()->set_field(ATTRIBUTION_NODE_FIELD_ID); in getWakeLockHeldCondition()
57 simplePredicate.mutable_dimensions()->mutable_child(0)->set_position(position); in getWakeLockHeldCondition()
58 simplePredicate.mutable_dimensions()->mutable_child(0)->add_child()->set_field( in getWakeLockHeldCondition()
62 simplePredicate.set_count_nesting(countNesting); in getWakeLockHeldCondition()
63 simplePredicate.set_initial_value(initialValue); in getWakeLockHeldCondition()
[all …]
/packages/modules/StatsD/statsd/src/condition/
DSimpleConditionTracker.cpp31 const SimplePredicate& simplePredicate, in SimpleConditionTracker() argument
37 mCountNesting = simplePredicate.count_nesting(); in SimpleConditionTracker()
39 setMatcherIndices(simplePredicate, atomMatchingTrackerMap); in SimpleConditionTracker()
41 if (simplePredicate.has_dimensions()) { in SimpleConditionTracker()
42 translateFieldMatcher(simplePredicate.dimensions(), &mOutputDimensions); in SimpleConditionTracker()
46 mContainANYPositionInInternalDimensions = HasPositionANY(simplePredicate.dimensions()); in SimpleConditionTracker()
49 mInitialValue = simplePredicate.has_initial_value() in SimpleConditionTracker()
50 ? convertInitialValue(simplePredicate.initial_value()) in SimpleConditionTracker()
90 const SimplePredicate& simplePredicate, in setMatcherIndices() argument
93 if (simplePredicate.has_start()) { in setMatcherIndices()
[all …]
DSimpleConditionTracker.h33 const int index, const SimplePredicate& simplePredicate,
/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DDurationMetricsTests.java80 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetric() local
86 .setSimplePredicate(simplePredicate) in testDurationMetric()
144 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithCondition() local
150 .setSimplePredicate(simplePredicate) in testDurationMetricWithCondition()
260 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithActivation() local
266 .setSimplePredicate(simplePredicate) in testDurationMetricWithActivation()
361 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testDurationMetricWithConditionAndActivation() local
367 .setSimplePredicate(simplePredicate) in testDurationMetricWithConditionAndActivation()
DGaugeMetricsTests.java91 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testGaugeMetric() local
97 .setSimplePredicate(simplePredicate) in testGaugeMetric()
263 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testPulledGaugeMetricWithConditionAndActivation() local
269 .setSimplePredicate(simplePredicate) in testPulledGaugeMetricWithConditionAndActivation()
DValueMetricsTests.java385 SimplePredicate simplePredicate = SimplePredicate.newBuilder() in testValueMetricWithConditionAndActivation() local
391 .setSimplePredicate(simplePredicate) in testValueMetricWithConditionAndActivation()
/packages/modules/StatsD/statsd/src/metrics/
DDurationMetricProducer.cpp220 const SimplePredicate& simplePredicate = durationWhat.simple_predicate(); in onConfigUpdatedLocked() local
225 simplePredicate.start(), mMetricId, metricIndex, metric.has_dimensions_in_what(), in onConfigUpdatedLocked()
232 if (simplePredicate.has_stop()) { in onConfigUpdatedLocked()
234 simplePredicate.stop(), mMetricId, metricIndex, metric.has_dimensions_in_what(), in onConfigUpdatedLocked()
241 if (simplePredicate.has_stop_all()) { in onConfigUpdatedLocked()
243 simplePredicate.stop_all(), mMetricId, metricIndex, metric.has_dimensions_in_what(), in onConfigUpdatedLocked()
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dconfig_update_utils.cpp274 const SimplePredicate& simplePredicate = predicate.simple_predicate(); in determineConditionUpdateStatus() local
275 if (simplePredicate.has_start()) { in determineConditionUpdateStatus()
276 if (replacedMatchers.find(simplePredicate.start()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
281 if (simplePredicate.has_stop()) { in determineConditionUpdateStatus()
282 if (replacedMatchers.find(simplePredicate.stop()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
287 if (simplePredicate.has_stop_all()) { in determineConditionUpdateStatus()
288 if (replacedMatchers.find(simplePredicate.stop_all()) != replacedMatchers.end()) { in determineConditionUpdateStatus()
Dmetrics_manager_util.cpp660 const SimplePredicate& simplePredicate = durationWhat.simple_predicate(); in createDurationMetricProducerAndUpdateMetadata() local
661 bool nesting = simplePredicate.count_nesting(); in createDurationMetricProducerAndUpdateMetadata()
664 if (!simplePredicate.has_start()) { in createDurationMetricProducerAndUpdateMetadata()
671 simplePredicate.start(), metric.id(), metricIndex, metric.has_dimensions_in_what(), in createDurationMetricProducerAndUpdateMetadata()
677 if (simplePredicate.has_stop()) { in createDurationMetricProducerAndUpdateMetadata()
679 simplePredicate.stop(), metric.id(), metricIndex, metric.has_dimensions_in_what(), in createDurationMetricProducerAndUpdateMetadata()
686 if (simplePredicate.has_stop_all()) { in createDurationMetricProducerAndUpdateMetadata()
688 simplePredicate.stop_all(), metric.id(), metricIndex, in createDurationMetricProducerAndUpdateMetadata()
696 const FieldMatcher& internalDimensions = simplePredicate.dimensions(); in createDurationMetricProducerAndUpdateMetadata()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp253 SimplePredicate* simplePredicate = condition->mutable_simple_predicate(); in buildCirclePredicates() local
254 simplePredicate->set_start(StringToId("SCREEN_IS_ON")); in buildCirclePredicates()
255 simplePredicate->set_stop(StringToId("SCREEN_IS_OFF")); in buildCirclePredicates()
1080 SimplePredicate* simplePredicate = condition->mutable_simple_predicate(); in TEST_F() local
1081 simplePredicate->set_stop(StringToId("SCREEN_IS_OFF")); in TEST_F()
1466 SimplePredicate* simplePredicate = predicate.mutable_simple_predicate(); in TEST_F() local
1467 simplePredicate->set_start(startMatcherId); in TEST_F()
1468 simplePredicate->set_stop(stopMatcherId); in TEST_F()
1469 simplePredicate->set_stop_all(stopAllMatcherId); in TEST_F()
/packages/modules/StatsD/statsd/tests/e2e/
DDurationMetric_e2e_test.cpp1668 SimplePredicate* simplePredicate = scheduledJobPredicate.mutable_simple_predicate(); in TEST() local
1669 simplePredicate->set_stop_all(stopAllMatcher.id()); in TEST()