Lines Matching refs:counter

64 void ExportCounterMetric(const android::CounterMetric<T> &counter,  in ExportCounterMetric()  argument
70 std::string success_count_name = counter.metric_name() + ".ok.count"; in ExportCounterMetric()
71 std::string error_count_name = counter.metric_name() + ".error.count"; in ExportCounterMetric()
73 counter.ExportValues( in ExportCounterMetric()
88 std::string error_list_name = counter.metric_name() + ".error.list"; in ExportCounterMetric()
96 const android::CounterMetric<T> &counter, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument
101 counter.ExportValues([&](const T &attribute, const int64_t value) { in ExportCounterMetricWithAttributeNames()
102 std::string name = counter.metric_name() + "." + in ExportCounterMetricWithAttributeNames()
268 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
270 counter->set_count(value); in GetSerializedMetrics()
271 counter->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()
276 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
278 counter->set_count(value); in GetSerializedMetrics()
279 counter->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()
284 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
286 counter->set_count(value); in GetSerializedMetrics()
287 counter->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()
292 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
294 counter->set_count(value); in GetSerializedMetrics()
295 counter->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()
300 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
302 counter->set_count(value); in GetSerializedMetrics()
303 counter->mutable_attributes()->set_key_status_type( in GetSerializedMetrics()
309 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
311 counter->set_count(value); in GetSerializedMetrics()
312 counter->mutable_attributes()->set_event_type((uint32_t)event_type); in GetSerializedMetrics()
317 DrmFrameworkMetrics::Counter *counter = in GetSerializedMetrics() local
319 counter->set_count(value); in GetSerializedMetrics()
320 counter->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()