Home
last modified time | relevance | path

Searched refs:metricMetadata (Results 1 – 6 of 6) sorted by relevance

/packages/modules/StatsD/statsd/src/metrics/
DRestrictedEventMetricProducer.cpp137 metadata::MetricMetadata* metricMetadata) { in writeMetricMetadataToProto() argument
138 metricMetadata->set_metric_id(mMetricId); in writeMetricMetadataToProto()
139 metricMetadata->set_restricted_category(mRestrictedDataCategory); in writeMetricMetadataToProto()
144 const metadata::MetricMetadata& metricMetadata) { in loadMetricMetadataFromProto() argument
146 static_cast<StatsdRestrictionCategory>(metricMetadata.restricted_category()); in loadMetricMetadataFromProto()
DRestrictedEventMetricProducer.h32 bool writeMetricMetadataToProto(metadata::MetricMetadata* metricMetadata) override;
34 void loadMetricMetadataFromProto(const metadata::MetricMetadata& metricMetadata) override;
DMetricsManager.cpp875 metadata::MetricMetadata* metricMetadata = statsMetadata->add_metric_metadata(); in writeMetadataToProto() local
876 bool metricWritten = metricProducer->writeMetricMetadataToProto(metricMetadata); in writeMetadataToProto()
897 for (const metadata::MetricMetadata& metricMetadata : metadata.metric_metadata()) { in loadMetadata() local
898 int64_t metricId = metricMetadata.metric_id(); in loadMetadata()
903 mAllMetricProducers[it->second]->loadMetricMetadataFromProto(metricMetadata); in loadMetadata()
DMetricProducer.h326 virtual bool writeMetricMetadataToProto(metadata::MetricMetadata* metricMetadata) { in writeMetricMetadataToProto() argument
330 virtual void loadMetricMetadataFromProto(const metadata::MetricMetadata& metricMetadata){}; in loadMetricMetadataFromProto() argument
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp247 metadata::MetricMetadata metricMetadata; in TEST_F() local
248 metricMetadata.set_metric_id(metricId1); in TEST_F()
249 metricMetadata.set_restricted_category(1); // CATEGORY_DIAGNOSTIC in TEST_F()
259 producer.loadMetricMetadataFromProto(metricMetadata); in TEST_F()
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp1046 metadata::MetricMetadata metricMetadata = statsMetadata.metric_metadata(0); in TEST_F() local
1047 EXPECT_EQ(metricMetadata.metric_id(), restrictedMetricId); in TEST_F()
1048 EXPECT_EQ(metricMetadata.restricted_category(), CATEGORY_UNKNOWN); in TEST_F()
1061 metricMetadata = statsMetadata.metric_metadata(0); in TEST_F()
1062 EXPECT_EQ(metricMetadata.metric_id(), restrictedMetricId); in TEST_F()
1063 EXPECT_EQ(metricMetadata.restricted_category(), CATEGORY_DIAGNOSTIC); in TEST_F()