Home
last modified time | relevance | path

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

/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DCountMetricsTests.java79 int matcherId = 1; in testSimpleEventCountMetric() local
85 .setWhat(matcherId)) in testSimpleEventCountMetric()
86 .addAtomMatcher(MetricsUtils.simpleAtomMatcher(matcherId)); in testSimpleEventCountMetric()
311 int matcherId = 1; in testPartialBucketCountMetric() local
317 .setWhat(matcherId) in testPartialBucketCountMetric()
319 .addAtomMatcher(MetricsUtils.simpleAtomMatcher(matcherId)); in testPartialBucketCountMetric()
DMetricsUtils.java151 public static EventActivation.Builder createEventActivation(int ttlSecs, int matcherId, in createEventActivation() argument
154 .setAtomMatcherId(matcherId) in createEventActivation()
/packages/modules/StatsD/statsd/tests/
DDataCorruptionReason_test.cpp75 const int64_t matcherId = StringToId("CUSTOM_EVENT" + std::to_string(kInterestAtomId)); in buildGoodEventConfig() local
77 eventMatcher->set_id(matcherId); in buildGoodEventConfig()
83 metric->set_what(matcherId); in buildGoodEventConfig()
Dstatsd_test_util.cpp1573 int64_t matcherId = 678; in createEventMatcherWizard() local
1575 {new SimpleAtomMatchingTracker(matcherId, matcherHash, atomMatcher, uidMap)}); in createEventMatcherWizard()
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.cpp103 optional<InvalidConfigReason> validateSimpleAtomMatcher(int64_t matcherId, in validateSimpleAtomMatcher() argument
109 INVALID_CONFIG_REASON_MATCHER_NO_VALUE_MATCHER_NOR_STRING_REPLACER, matcherId); in validateSimpleAtomMatcher()
120 matcherId); in validateSimpleAtomMatcher()
126 return createInvalidConfigReasonWithMatcher(*reasonEnum, matcherId); in validateSimpleAtomMatcher()
221 const int64_t matcherId, const int64_t metricId, const int metricIndex, in handleMetricWithAtomMatchingTrackers() argument
225 auto logTrackerIt = atomMatchingTrackerMap.find(matcherId); in handleMetricWithAtomMatchingTrackers()
227 ALOGW("cannot find the AtomMatcher \"%lld\" in config", (long long)matcherId); in handleMetricWithAtomMatchingTrackers()
229 metricId, matcherId); in handleMetricWithAtomMatchingTrackers()
235 (long long)matcherId); in handleMetricWithAtomMatchingTrackers()
237 INVALID_CONFIG_REASON_METRIC_MATCHER_MORE_THAN_ONE_ATOM, metricId, matcherId); in handleMetricWithAtomMatchingTrackers()
Dmetrics_manager_util.h69 const int64_t matcherId, int64_t metricId, int metricIndex, const bool enforceOneAtom,
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.h1113 const int64_t matcherId);
1117 const int64_t matcherId);
DStatsdStats.cpp1678 for (const auto& matcherId : configStats.reason->matcherIds) { in addConfigStatsToProto() local
1681 matcherId); in addConfigStatsToProto()
2127 const int64_t matcherId) { in createInvalidConfigReasonWithMatcher() argument
2129 invalidConfigReason.matcherIds.push_back(matcherId); in createInvalidConfigReasonWithMatcher()
2135 const int64_t matcherId) { in createInvalidConfigReasonWithMatcher() argument
2137 invalidConfigReason.matcherIds.push_back(matcherId); in createInvalidConfigReasonWithMatcher()
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/testdrive/
DTestDrive.java553 private static AtomMatcher createAtomMatcher(int atomId, long matcherId) { in createAtomMatcher() argument
556 .setId(matcherId) in createAtomMatcher()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dmetrics_manager_util_test.cpp1244 int64_t matcherId = 1; in TEST_F() local
1247 matcher->set_id(matcherId); in TEST_F()
1251 INVALID_CONFIG_REASON_MATCHER_NO_OPERATION, matcherId)); in TEST_F()
1256 int64_t matcherId = 1; in TEST_F() local
1261 matcher->set_id(matcherId); in TEST_F()
1268 INVALID_CONFIG_REASON_MATCHER_NOT_OPERATION_IS_NOT_UNARY, matcherId)); in TEST_F()
Dconfig_update_utils_test.cpp167 int64_t matcherId = matcher.id(); in TEST_F() local
176 newAtomMatchingTrackerMap[matcherId] = 0; in TEST_F()
194 int64_t matcherId = newMatcher.id(); in TEST_F() local
195 EXPECT_EQ(matcherId, matcher.id()); in TEST_F()
201 newAtomMatchingTrackerMap[matcherId] = 0; in TEST_F()
219 int64_t matcherId = newMatcher.id(); in TEST_F() local
220 EXPECT_NE(matcherId, matcher.id()); in TEST_F()
226 newAtomMatchingTrackerMap[matcherId] = 0; in TEST_F()