Home
last modified time | relevance | path

Searched refs:countMetric (Results 1 – 12 of 12) sorted by relevance

/packages/modules/StatsD/statsd/tests/e2e/
DCountMetric_e2e_test.cpp133 CountMetric* countMetric = config.add_count_metric(); in TEST() local
135 countMetric->set_id(metricId); in TEST()
136 countMetric->set_what(syncStartMatcher.id()); in TEST()
137 countMetric->set_condition(screenOnPredicate.id()); in TEST()
138 countMetric->set_bucket(FIVE_MINUTES); in TEST()
296 auto countMetric = config.add_count_metric(); in TEST() local
297 countMetric->set_id(metricId); in TEST()
298 countMetric->set_what(syncStartMatcher.id()); in TEST()
299 countMetric->set_bucket(TimeUnit::FIVE_MINUTES); in TEST()
300 countMetric->add_slice_by_state(state.id()); in TEST()
[all …]
DConfigTtl_e2e_test.cpp38 auto countMetric = config.add_count_metric(); in CreateStatsdConfig() local
39 countMetric->set_id(123456); in CreateStatsdConfig()
40 countMetric->set_what(wakelockAcquireMatcher.id()); in CreateStatsdConfig()
41 *countMetric->mutable_dimensions_in_what() = CreateAttributionUidDimensions( in CreateStatsdConfig()
43 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
DMetricConditionLink_e2e_test.cpp69 auto countMetric = config.add_count_metric(); in CreateStatsdConfig() local
70 countMetric->set_id(StringToId("AppCrashes")); in CreateStatsdConfig()
71 countMetric->set_what(appCrashMatcher.id()); in CreateStatsdConfig()
72 countMetric->set_condition(combinationPredicate->id()); in CreateStatsdConfig()
74 *countMetric->mutable_dimensions_in_what() = in CreateStatsdConfig()
76 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
79 auto links = countMetric->add_links(); in CreateStatsdConfig()
88 links = countMetric->add_links(); in CreateStatsdConfig()
DMetricActivation_e2e_test.cpp43 auto countMetric = config.add_count_metric(); in CreateStatsdConfig() local
44 countMetric->set_id(metricId); in CreateStatsdConfig()
45 countMetric->set_what(crashMatcher.id()); in CreateStatsdConfig()
46 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
47 countMetric->mutable_dimensions_in_what()->set_field( in CreateStatsdConfig()
49 countMetric->mutable_dimensions_in_what()->add_child()->set_field(1); // uid field in CreateStatsdConfig()
77 auto countMetric = config.add_count_metric(); in CreateStatsdConfigWithOneDeactivation() local
78 countMetric->set_id(metricId); in CreateStatsdConfigWithOneDeactivation()
79 countMetric->set_what(crashMatcher.id()); in CreateStatsdConfigWithOneDeactivation()
80 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfigWithOneDeactivation()
[all …]
DAttribution_e2e_test.cpp46 auto countMetric = config.add_count_metric(); in CreateStatsdConfig() local
47 countMetric->set_id(123456); in CreateStatsdConfig()
48 countMetric->set_what(wakelockAcquireMatcher.id()); in CreateStatsdConfig()
49 *countMetric->mutable_dimensions_in_what() = in CreateStatsdConfig()
52 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
DAnomaly_count_e2e_test.cpp39 auto countMetric = config.add_count_metric(); in CreateStatsdConfig() local
40 countMetric->set_id(123456); in CreateStatsdConfig()
41 countMetric->set_what(wakelockAcquireMatcher.id()); in CreateStatsdConfig()
42 *countMetric->mutable_dimensions_in_what() = CreateAttributionUidDimensions( in CreateStatsdConfig()
44 countMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig()
DPartialBucket_e2e_test.cpp44 auto countMetric = config.add_count_metric(); in MakeCountMetricConfig() local
45 countMetric->set_id(StringToId("AppCrashes")); in MakeCountMetricConfig()
46 countMetric->set_what(appCrashMatcher.id()); in MakeCountMetricConfig()
47 countMetric->set_bucket(FIVE_MINUTES); in MakeCountMetricConfig()
49 countMetric->set_split_bucket_for_app_upgrade(splitBucket.value()); in MakeCountMetricConfig()
DConfigUpdate_e2e_ab_test.cpp222 CountMetric* countMetric = config.add_count_metric(); in TEST_P() local
223 countMetric->set_id(StringToId("Count2")); in TEST_P()
224 countMetric->set_what(config.atom_matcher(0).id()); in TEST_P()
225 countMetric->set_bucket(FIVE_MINUTES); in TEST_P()
DConfigUpdate_e2e_test.cpp3088 CountMetric* countMetric = config.add_count_metric(); in TEST_P() local
3089 countMetric->set_id(StringToId("Tmp")); in TEST_P()
3090 countMetric->set_what(config.atom_matcher(0).id()); in TEST_P()
3091 countMetric->add_slice_by_state(uidProcessState.id()); in TEST_P()
3093 *countMetric->mutable_dimensions_in_what() = in TEST_P()
3095 countMetric->set_bucket(FIVE_MINUTES); in TEST_P()
3096 auto stateLink = countMetric->add_state_link(); in TEST_P()
3102 config.add_no_report_metric(countMetric->id()); in TEST_P()
/packages/modules/StatsD/statsd/src/metrics/
DCountMetricProducer.h47 const ConfigKey& key, const CountMetric& countMetric, const int conditionIndex,
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp177 auto countMetric = config.add_count_metric(); in MakeConfig() local
178 countMetric->set_id(StringToId("AppCrashes")); in MakeConfig()
179 countMetric->set_what(appCrashMatcher.id()); in MakeConfig()
180 countMetric->set_bucket(FIVE_MINUTES); in MakeConfig()
356 auto countMetric = config.add_count_metric(); in TEST() local
357 countMetric->set_id(123456); in TEST()
358 countMetric->set_what(wakelockAcquireMatcher.id()); in TEST()
359 countMetric->set_bucket(FIVE_MINUTES); in TEST()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp3456 CountMetric countMetric = createCountMetric("COUNT1", matcher1Id, predicate1Id, {}); in TEST_F() local
3457 int64_t countMetricId = countMetric.id(); in TEST_F()
3458 *config.add_count_metric() = countMetric; in TEST_F()
3523 *newConfig.add_count_metric() = countMetric; in TEST_F()
3696 CountMetric countMetric = createCountMetric("COUNT1", config.atom_matcher(0).id(), nullopt, {}); in TEST_F() local
3697 int64_t countMetricId = countMetric.id(); in TEST_F()
3698 *config.add_count_metric() = countMetric; in TEST_F()