Searched refs:gaugeMetric (Results 1 – 7 of 7) sorted by relevance
/packages/modules/StatsD/statsd/tools/localtools/test/com/android/statsd/shelltools/testdrive/ |
D | ConfigurationTest.java | 126 final StatsdConfigProto.GaugeMetric gaugeMetric = config.getGaugeMetric(0); in testOnePulled() local 127 assertTrue(gaugeMetric.getGaugeFieldsFilter().getIncludeAll()); in testOnePulled() 132 findAndRemoveAtomMatcherById(atomMatchers, gaugeMetric.getWhat()) in testOnePulled() 135 findAndRemoveAtomMatcherById(atomMatchers, gaugeMetric.getTriggerEvent()) in testOnePulled() 200 final StatsdConfigProto.GaugeMetric gaugeMetric = config.getGaugeMetric(0); in testOnePulledTwoPushed() local 201 assertTrue(mConfiguration.isTrackedMetric(gaugeMetric.getId())); in testOnePulledTwoPushed() 202 assertTrue(gaugeMetric.getGaugeFieldsFilter().getIncludeAll()); in testOnePulledTwoPushed() 210 assertEquals(pulledAtom, findAndRemoveAtomMatcherById(atomMatchers, gaugeMetric.getWhat()) in testOnePulledTwoPushed() 213 findAndRemoveAtomMatcherById(atomMatchers, gaugeMetric.getTriggerEvent()) in testOnePulledTwoPushed() 293 final StatsdConfigProto.GaugeMetric gaugeMetric = config.getGaugeMetric(0); in testOnePulledTwoPushedTogether() local [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | GaugeMetric_e2e_push_test.cpp | 46 auto gaugeMetric = config.add_gauge_metric(); in CreateStatsdConfigForPushedEvent() local 47 gaugeMetric->set_id(123456); in CreateStatsdConfigForPushedEvent() 48 gaugeMetric->set_what(atomMatcher.id()); in CreateStatsdConfigForPushedEvent() 49 gaugeMetric->set_condition(isInBackgroundPredicate.id()); in CreateStatsdConfigForPushedEvent() 50 gaugeMetric->mutable_gauge_fields_filter()->set_include_all(false); in CreateStatsdConfigForPushedEvent() 51 gaugeMetric->set_sampling_type(sampling_type); in CreateStatsdConfigForPushedEvent() 52 auto fieldMatcher = gaugeMetric->mutable_gauge_fields_filter()->mutable_fields(); in CreateStatsdConfigForPushedEvent() 57 *gaugeMetric->mutable_dimensions_in_what() = in CreateStatsdConfigForPushedEvent() 59 gaugeMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfigForPushedEvent() 61 auto links = gaugeMetric->add_links(); in CreateStatsdConfigForPushedEvent() [all …]
|
D | PartialBucket_e2e_test.cpp | 111 auto gaugeMetric = config.add_gauge_metric(); in MakeGaugeMetricConfig() local 112 gaugeMetric->set_id(123456); in MakeGaugeMetricConfig() 113 gaugeMetric->set_what(pulledAtomMatcher.id()); in MakeGaugeMetricConfig() 114 gaugeMetric->mutable_gauge_fields_filter()->set_include_all(true); in MakeGaugeMetricConfig() 115 *gaugeMetric->mutable_dimensions_in_what() = in MakeGaugeMetricConfig() 117 gaugeMetric->set_bucket(FIVE_MINUTES); in MakeGaugeMetricConfig() 118 gaugeMetric->set_min_bucket_size_nanos(minTime); in MakeGaugeMetricConfig() 119 gaugeMetric->set_split_bucket_for_app_upgrade(true); in MakeGaugeMetricConfig()
|
D | GaugeMetric_e2e_pull_test.cpp | 50 auto gaugeMetric = config.add_gauge_metric(); in CreateStatsdConfig() local 51 gaugeMetric->set_id(metricId); in CreateStatsdConfig() 52 gaugeMetric->set_what(atomMatcher.id()); in CreateStatsdConfig() 54 gaugeMetric->set_condition(screenIsOffPredicate.id()); in CreateStatsdConfig() 56 gaugeMetric->set_sampling_type(sampling_type); in CreateStatsdConfig() 57 gaugeMetric->mutable_gauge_fields_filter()->set_include_all(true); in CreateStatsdConfig() 58 *gaugeMetric->mutable_dimensions_in_what() = in CreateStatsdConfig() 60 gaugeMetric->set_bucket(FIVE_MINUTES); in CreateStatsdConfig() 61 gaugeMetric->set_max_pull_delay_sec(INT_MAX); in CreateStatsdConfig()
|
/packages/modules/StatsD/tests/src/android/cts/statsd/atom/ |
D | AtomTestCase.java | 717 GaugeMetric.Builder gaugeMetric) throws Exception { in addGaugeAtom() argument 756 gaugeMetric in addGaugeAtom() 760 conf.addGaugeMetric(gaugeMetric.build()); in addGaugeAtom() 772 GaugeMetric.Builder gaugeMetric = GaugeMetric.newBuilder() in addGaugeAtomWithDimensions() local 778 gaugeMetric.setDimensionsInWhat(dimension.build()); in addGaugeAtomWithDimensions() 780 addGaugeAtom(conf, atomId, gaugeMetric); in addGaugeAtomWithDimensions()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | GaugeMetricProducer.h | 63 const ConfigKey& key, const GaugeMetric& gaugeMetric, const int conditionIndex,
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | config_update_utils_test.cpp | 3379 GaugeMetric gaugeMetric = createGaugeMetric("GAUGE1", matcher3Id, in TEST_F() local 3381 int64_t gaugeMetricId = gaugeMetric.id(); in TEST_F() 3382 *config.add_gauge_metric() = gaugeMetric; in TEST_F() 3410 gaugeMetric.set_condition(predicate1Id); in TEST_F() 3444 *newConfig.add_gauge_metric() = gaugeMetric; in TEST_F()
|