HomeSort by relevance Sort by last modified time
    Searched refs:simplePredicate (Results 1 - 11 of 11) sorted by null

  /frameworks/base/cmds/statsd/tests/condition/
StateTracker_test.cpp 35 SimplePredicate getUidProcStatePredicate() {
36 SimplePredicate simplePredicate;
37 simplePredicate.set_start(StringToId("UidProcState"));
39 simplePredicate.mutable_dimensions()->set_field(kUidProcTag);
40 simplePredicate.mutable_dimensions()->add_child()->set_field(1);
41 simplePredicate.mutable_dimensions()->add_child()->set_field(2);
43 simplePredicate.set_count_nesting(false);
44 return simplePredicate;
SimpleConditionTracker_test.cpp 40 SimplePredicate getWakeLockHeldCondition(bool countNesting, bool defaultFalse,
42 SimplePredicate simplePredicate;
43 simplePredicate.set_start(StringToId("WAKE_LOCK_ACQUIRE"));
44 simplePredicate.set_stop(StringToId("WAKE_LOCK_RELEASE"));
45 simplePredicate.set_stop_all(StringToId("RELEASE_ALL"));
47 simplePredicate.mutable_dimensions()->set_field(TAG_ID);
48 simplePredicate.mutable_dimensions()->add_child()->set_field(ATTRIBUTION_NODE_FIELD_ID);
49 simplePredicate.mutable_dimensions()->mutable_child(0)->set_position(position);
50 simplePredicate.mutable_dimensions()->mutable_child(0)->add_child()->set_field
    [all...]
  /frameworks/base/cmds/statsd/src/condition/
SimpleConditionTracker.cpp 35 const SimplePredicate& simplePredicate,
39 mCountNesting = simplePredicate.count_nesting();
41 if (simplePredicate.has_start()) {
42 auto pair = trackerNameIndexMap.find(simplePredicate.start());
44 ALOGW("Start matcher %lld not found in the config", (long long)simplePredicate.start());
53 if (simplePredicate.has_stop()) {
54 auto pair = trackerNameIndexMap.find(simplePredicate.stop());
56 ALOGW("Stop matcher %lld not found in the config", (long long)simplePredicate.stop());
65 if (simplePredicate.has_stop_all())
    [all...]
StateTracker.cpp 31 const SimplePredicate& simplePredicate,
35 if (simplePredicate.has_start()) {
36 auto pair = trackerNameIndexMap.find(simplePredicate.start());
38 ALOGW("Start matcher %lld not found in the config", (long long)simplePredicate.start());
48 if (simplePredicate.has_dimensions()) {
49 translateFieldMatcher(simplePredicate.dimensions(), &mOutputDimensions);
62 if (simplePredicate.initial_value() == SimplePredicate_InitialValue_FALSE) {
SimpleConditionTracker.h 33 const SimplePredicate& simplePredicate,
StateTracker.h 31 const SimplePredicate& simplePredicate,
  /frameworks/base/cmds/statsd/src/metrics/
metrics_manager_util.cpp 163 * A StateTracker is built from a SimplePredicate which has only "start", and no "stop"
169 bool isStateTracker(const SimplePredicate& simplePredicate, vector<Matcher>* primaryKeys) {
171 if (!simplePredicate.has_stop() && simplePredicate.has_dimensions()) {
174 simplePredicate.dimensions().field());
180 translateFieldMatcher(simplePredicate.dimensions(), &dimensions);
339 const auto& simplePredicate = durationWhat.simple_predicate();
341 bool nesting = simplePredicate.count_nesting();
344 if (!simplePredicate.has_start() |
    [all...]
metrics_manager_util.h 114 bool isStateTracker(const SimplePredicate& simplePredicate, std::vector<Matcher>* primaryKeys);
  /cts/hostsidetests/statsd/src/android/cts/statsd/metric/
GaugeMetricsTests.java 27 import com.android.internal.os.StatsdConfigProto.SimplePredicate;
58 SimplePredicate simplePredicate = SimplePredicate.newBuilder()
64 .setSimplePredicate(simplePredicate)
DurationMetricsTests.java 27 import com.android.internal.os.StatsdConfigProto.SimplePredicate;
60 SimplePredicate simplePredicate = SimplePredicate.newBuilder()
66 .setSimplePredicate(simplePredicate)
120 SimplePredicate simplePredicateA = SimplePredicate.newBuilder()
140 .setSimplePredicate(SimplePredicate.newBuilder()
  /frameworks/base/cmds/statsd/tests/
MetricsManager_test.cpp 257 SimplePredicate* simplePredicate = condition->mutable_simple_predicate();
258 simplePredicate->set_start(StringToId("SCREEN_IS_ON"));
259 simplePredicate->set_stop(StringToId("SCREEN_IS_OFF"));

Completed in 77 milliseconds