Lines Matching refs:metrics
65 PersistableBundle *metrics) { in ExportCounterMetric() argument
66 if (!metrics) { in ExportCounterMetric()
76 metrics->putLong(android::String16(success_count_name.c_str()), in ExportCounterMetric()
80 metrics->getLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
82 metrics->putLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
89 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportCounterMetric()
96 const android::CounterMetric<T> &counter, PersistableBundle *metrics) { in ExportCounterMetricWithAttributeNames() argument
97 if (!metrics) { in ExportCounterMetricWithAttributeNames()
104 metrics->putLong(android::String16(name.c_str()), value); in ExportCounterMetricWithAttributeNames()
110 PersistableBundle *metrics) { in ExportEventMetric() argument
111 if (!metrics) { in ExportEventMetric()
122 metrics->putLong(android::String16(success_count_name.c_str()), in ExportEventMetric()
124 metrics->putLong(android::String16(timing_name.c_str()), in ExportEventMetric()
128 metrics->getLong(android::String16(error_count_name.c_str()), in ExportEventMetric()
130 metrics->putLong(android::String16(error_count_name.c_str()), in ExportEventMetric()
137 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportEventMetric()
144 PersistableBundle *metrics) { in ExportSessionLifespans() argument
145 if (!metrics) { in ExportSessionLifespans()
162 metrics->putPersistableBundle( in ExportSessionLifespans()
165 metrics->putPersistableBundle( in ExportSessionLifespans()
240 void MediaDrmMetrics::Export(PersistableBundle *metrics) { in Export() argument
241 if (!metrics) { in Export()
245 ExportCounterMetric(mOpenSessionCounter, metrics); in Export()
246 ExportCounterMetric(mCloseSessionCounter, metrics); in Export()
247 ExportEventMetric(mGetKeyRequestTimeUs, metrics); in Export()
248 ExportEventMetric(mProvideKeyResponseTimeUs, metrics); in Export()
249 ExportCounterMetric(mGetProvisionRequestCounter, metrics); in Export()
250 ExportCounterMetric(mProvideProvisionResponseCounter, metrics); in Export()
251 ExportCounterMetricWithAttributeNames(mKeyStatusChangeCounter, metrics); in Export()
252 ExportCounterMetricWithAttributeNames(mEventCounter, metrics); in Export()
253 ExportCounterMetric(mGetDeviceUniqueIdCounter, metrics); in Export()
254 ExportSessionLifespans(mSessionLifespans, metrics); in Export()
264 DrmFrameworkMetrics metrics; in GetSerializedMetrics() local
269 metrics.add_open_session_counter(); in GetSerializedMetrics()
277 metrics.add_close_session_counter(); in GetSerializedMetrics()
285 metrics.add_get_provisioning_request_counter(); in GetSerializedMetrics()
293 metrics.add_provide_provisioning_response_counter(); in GetSerializedMetrics()
301 metrics.add_key_status_change_counter(); in GetSerializedMetrics()
310 metrics.add_event_callback_counter(); in GetSerializedMetrics()
318 metrics.add_get_device_unique_id_counter(); in GetSerializedMetrics()
326 metrics.add_get_key_request_time_us(); in GetSerializedMetrics()
338 metrics.add_provide_key_response_time_us(); in GetSerializedMetrics()
348 auto *map = metrics.mutable_session_lifetimes(); in GetSerializedMetrics()
356 if (!metrics.SerializeToString(serializedMetrics)) { in GetSerializedMetrics()
384 for (const auto &hidlMetric : hidlMetricGroup.metrics) { in HidlMetricsToBundle()