Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/condition/
DSimpleConditionTracker_test.cpp42 SimplePredicate simplePredicate; in getWakeLockHeldCondition() local
43 simplePredicate.set_start(StringToId("WAKE_LOCK_ACQUIRE")); in getWakeLockHeldCondition()
44 simplePredicate.set_stop(StringToId("WAKE_LOCK_RELEASE")); in getWakeLockHeldCondition()
45 simplePredicate.set_stop_all(StringToId("RELEASE_ALL")); in getWakeLockHeldCondition()
47 simplePredicate.mutable_dimensions()->set_field(TAG_ID); in getWakeLockHeldCondition()
48 simplePredicate.mutable_dimensions()->add_child()->set_field(ATTRIBUTION_NODE_FIELD_ID); in getWakeLockHeldCondition()
49 simplePredicate.mutable_dimensions()->mutable_child(0)->set_position(position); in getWakeLockHeldCondition()
50 simplePredicate.mutable_dimensions()->mutable_child(0)->add_child()->set_field( in getWakeLockHeldCondition()
54 simplePredicate.set_count_nesting(countNesting); in getWakeLockHeldCondition()
55 simplePredicate.set_initial_value(defaultFalse ? SimplePredicate_InitialValue_FALSE in getWakeLockHeldCondition()
[all …]
DStateTracker_test.cpp36 SimplePredicate simplePredicate; in getUidProcStatePredicate() local
37 simplePredicate.set_start(StringToId("UidProcState")); in getUidProcStatePredicate()
39 simplePredicate.mutable_dimensions()->set_field(kUidProcTag); in getUidProcStatePredicate()
40 simplePredicate.mutable_dimensions()->add_child()->set_field(1); in getUidProcStatePredicate()
41 simplePredicate.mutable_dimensions()->add_child()->set_field(2); in getUidProcStatePredicate()
43 simplePredicate.set_count_nesting(false); in getUidProcStatePredicate()
44 return simplePredicate; in getUidProcStatePredicate()
/frameworks/base/cmds/statsd/src/condition/
DSimpleConditionTracker.cpp31 const SimplePredicate& simplePredicate, in SimpleConditionTracker() argument
35 mCountNesting = simplePredicate.count_nesting(); in SimpleConditionTracker()
37 if (simplePredicate.has_start()) { in SimpleConditionTracker()
38 auto pair = trackerNameIndexMap.find(simplePredicate.start()); in SimpleConditionTracker()
40 ALOGW("Start matcher %lld not found in the config", (long long)simplePredicate.start()); in SimpleConditionTracker()
49 if (simplePredicate.has_stop()) { in SimpleConditionTracker()
50 auto pair = trackerNameIndexMap.find(simplePredicate.stop()); in SimpleConditionTracker()
52 ALOGW("Stop matcher %lld not found in the config", (long long)simplePredicate.stop()); in SimpleConditionTracker()
61 if (simplePredicate.has_stop_all()) { in SimpleConditionTracker()
62 auto pair = trackerNameIndexMap.find(simplePredicate.stop_all()); in SimpleConditionTracker()
[all …]
DStateTracker.cpp31 const SimplePredicate& simplePredicate, in StateTracker() argument
35 if (simplePredicate.has_start()) { in StateTracker()
36 auto pair = trackerNameIndexMap.find(simplePredicate.start()); in StateTracker()
38 ALOGW("Start matcher %lld not found in the config", (long long)simplePredicate.start()); in StateTracker()
48 if (simplePredicate.has_dimensions()) { in StateTracker()
49 translateFieldMatcher(simplePredicate.dimensions(), &mOutputDimensions); in StateTracker()
62 if (simplePredicate.initial_value() == SimplePredicate_InitialValue_FALSE) { in StateTracker()
DStateTracker.h31 const SimplePredicate& simplePredicate,
DSimpleConditionTracker.h33 const SimplePredicate& simplePredicate,
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.cpp192 bool isStateTracker(const SimplePredicate& simplePredicate, vector<Matcher>* primaryKeys) { in isStateTracker() argument
194 if (!simplePredicate.has_stop() && simplePredicate.has_dimensions()) { in isStateTracker()
196 simplePredicate.dimensions().field()); in isStateTracker()
202 translateFieldMatcher(simplePredicate.dimensions(), &dimensions); in isStateTracker()
363 const auto& simplePredicate = durationWhat.simple_predicate(); in initMetrics() local
365 bool nesting = simplePredicate.count_nesting(); in initMetrics()
368 if (!simplePredicate.has_start() || in initMetrics()
369 !handleMetricWithLogTrackers(simplePredicate.start(), metricIndex, in initMetrics()
376 if (simplePredicate.has_stop() && in initMetrics()
377 !handleMetricWithLogTrackers(simplePredicate.stop(), metricIndex, in initMetrics()
[all …]
Dmetrics_manager_util.h115 bool isStateTracker(const SimplePredicate& simplePredicate, std::vector<Matcher>* primaryKeys);
/frameworks/base/cmds/statsd/tests/
DMetricsManager_test.cpp255 SimplePredicate* simplePredicate = condition->mutable_simple_predicate(); in buildCirclePredicates() local
256 simplePredicate->set_start(StringToId("SCREEN_IS_ON")); in buildCirclePredicates()
257 simplePredicate->set_stop(StringToId("SCREEN_IS_OFF")); in buildCirclePredicates()