/packages/modules/StatsD/statsd/tests/e2e/ |
D | CountMetric_e2e_test.cpp | 138 auto countMetric = config.add_count_metric(); in TEST() local 139 countMetric->set_id(metricId); in TEST() 140 countMetric->set_what(syncStartMatcher.id()); in TEST() 141 countMetric->set_bucket(TimeUnit::FIVE_MINUTES); in TEST() 142 countMetric->add_slice_by_state(state.id()); in TEST() 289 auto countMetric = config.add_count_metric(); in TEST() local 290 countMetric->set_id(metricId); in TEST() 291 countMetric->set_what(syncStartMatcher.id()); in TEST() 292 countMetric->set_bucket(TimeUnit::FIVE_MINUTES); in TEST() 293 countMetric->add_slice_by_state(state.id()); in TEST() [all …]
|
D | ConfigTtl_e2e_test.cpp | 38 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()
|
D | MetricActivation_e2e_test.cpp | 43 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 …]
|
D | MetricConditionLink_e2e_test.cpp | 69 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()
|
D | Attribution_e2e_test.cpp | 46 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()
|
D | Anomaly_count_e2e_test.cpp | 39 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()
|
D | ConfigUpdate_e2e_ab_test.cpp | 217 CountMetric* countMetric = config.add_count_metric(); in TEST_P() local 218 countMetric->set_id(StringToId("Count2")); in TEST_P() 219 countMetric->set_what(config.atom_matcher(0).id()); in TEST_P() 220 countMetric->set_bucket(FIVE_MINUTES); in TEST_P()
|
D | PartialBucket_e2e_test.cpp | 64 auto countMetric = config.add_count_metric(); in MakeConfig() local 65 countMetric->set_id(StringToId("AppCrashes")); in MakeConfig() 66 countMetric->set_what(appCrashMatcher.id()); in MakeConfig() 67 countMetric->set_bucket(FIVE_MINUTES); in MakeConfig()
|
D | ConfigUpdate_e2e_test.cpp | 2772 CountMetric* countMetric = config.add_count_metric(); in TEST_F() local 2773 countMetric->set_id(StringToId("Tmp")); in TEST_F() 2774 countMetric->set_what(config.atom_matcher(0).id()); in TEST_F() 2775 countMetric->add_slice_by_state(uidProcessState.id()); in TEST_F() 2777 *countMetric->mutable_dimensions_in_what() = in TEST_F() 2779 countMetric->set_bucket(FIVE_MINUTES); in TEST_F() 2780 auto stateLink = countMetric->add_state_link(); in TEST_F() 2786 config.add_no_report_metric(countMetric->id()); in TEST_F()
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 153 auto countMetric = config.add_count_metric(); in MakeConfig() local 154 countMetric->set_id(StringToId("AppCrashes")); in MakeConfig() 155 countMetric->set_what(appCrashMatcher.id()); in MakeConfig() 156 countMetric->set_bucket(FIVE_MINUTES); in MakeConfig() 262 auto countMetric = config.add_count_metric(); in TEST() local 263 countMetric->set_id(123456); in TEST() 264 countMetric->set_what(wakelockAcquireMatcher.id()); in TEST() 265 countMetric->set_bucket(FIVE_MINUTES); in TEST()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.h | 45 const ConfigKey& key, const CountMetric& countMetric, const int conditionIndex,
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 3066 CountMetric countMetric = createCountMetric("COUNT1", matcher1Id, predicate1Id, {}); in TEST_F() local 3067 int64_t countMetricId = countMetric.id(); in TEST_F() 3068 *config.add_count_metric() = countMetric; in TEST_F() 3128 *newConfig.add_count_metric() = countMetric; in TEST_F() 3289 CountMetric countMetric = createCountMetric("COUNT1", config.atom_matcher(0).id(), nullopt, {}); in TEST_F() local 3290 int64_t countMetricId = countMetric.id(); in TEST_F() 3291 *config.add_count_metric() = countMetric; in TEST_F()
|