Lines Matching refs:metrics

1277   A2dpSessionMetrics metrics;  in btif_a2dp_source_update_metrics()  local
1278 metrics.codec_index = stats.codec_index; in btif_a2dp_source_update_metrics()
1279 metrics.is_a2dp_offload = btif_av_is_a2dp_offload_running(); in btif_a2dp_source_update_metrics()
1287 metrics.audio_duration_ms = in btif_a2dp_source_update_metrics()
1293 metrics.media_timer_min_ms = in btif_a2dp_source_update_metrics()
1296 metrics.media_timer_max_ms = in btif_a2dp_source_update_metrics()
1300 metrics.total_scheduling_count = enqueue_stats.overdue_scheduling_count + in btif_a2dp_source_update_metrics()
1303 if (metrics.total_scheduling_count > 0) { in btif_a2dp_source_update_metrics()
1304 metrics.media_timer_avg_ms = enqueue_stats.total_scheduling_time_us / in btif_a2dp_source_update_metrics()
1305 (1000 * metrics.total_scheduling_count); in btif_a2dp_source_update_metrics()
1308 metrics.buffer_overruns_max_count = stats.tx_queue_max_dropped_messages; in btif_a2dp_source_update_metrics()
1309 metrics.buffer_overruns_total = stats.tx_queue_total_dropped_messages; in btif_a2dp_source_update_metrics()
1310 metrics.buffer_underruns_count = stats.media_read_total_underflow_count; in btif_a2dp_source_update_metrics()
1311 metrics.buffer_underruns_average = 0; in btif_a2dp_source_update_metrics()
1312 if (metrics.buffer_underruns_count > 0) { in btif_a2dp_source_update_metrics()
1313 metrics.buffer_underruns_average = in btif_a2dp_source_update_metrics()
1315 metrics.buffer_underruns_count; in btif_a2dp_source_update_metrics()
1318 BluetoothMetricsLogger::GetInstance()->LogA2dpSession(metrics); in btif_a2dp_source_update_metrics()