Lines Matching refs:metrics
48 using bluetooth::metrics::BluetoothMetricsProto::A2DPSession;
49 using bluetooth::metrics::BluetoothMetricsProto::A2dpSourceCodec;
50 using bluetooth::metrics::BluetoothMetricsProto::BluetoothLog;
51 using bluetooth::metrics::BluetoothMetricsProto::BluetoothSession;
52 using bluetooth::metrics::BluetoothMetricsProto::
54 using bluetooth::metrics::BluetoothMetricsProto::
56 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo;
57 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo_DeviceType;
58 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileConnectionStats;
59 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType;
60 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType_ARRAYSIZE;
61 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType_IsValid;
62 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType_MAX;
63 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType_MIN;
64 using bluetooth::metrics::BluetoothMetricsProto::PairEvent;
65 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent;
66 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanEventType;
67 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanTechnologyType;
68 using bluetooth::metrics::BluetoothMetricsProto::WakeEvent;
69 using bluetooth::metrics::BluetoothMetricsProto::WakeEvent_WakeEventType;
93 void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) { in Update() argument
94 if (metrics.audio_duration_ms >= 0) { in Update()
96 audio_duration_ms += metrics.audio_duration_ms; in Update()
98 if (metrics.media_timer_min_ms >= 0) { in Update()
100 media_timer_min_ms = metrics.media_timer_min_ms; in Update()
103 std::min(media_timer_min_ms, metrics.media_timer_min_ms); in Update()
106 if (metrics.media_timer_max_ms >= 0) { in Update()
108 std::max(media_timer_max_ms, metrics.media_timer_max_ms); in Update()
110 if (metrics.media_timer_avg_ms >= 0 && metrics.total_scheduling_count >= 0) { in Update()
112 media_timer_avg_ms = metrics.media_timer_avg_ms; in Update()
113 total_scheduling_count = metrics.total_scheduling_count; in Update()
117 metrics.media_timer_avg_ms, metrics.total_scheduling_count); in Update()
118 total_scheduling_count += metrics.total_scheduling_count; in Update()
121 if (metrics.buffer_overruns_max_count >= 0) { in Update()
123 std::max(buffer_overruns_max_count, metrics.buffer_overruns_max_count); in Update()
125 if (metrics.buffer_overruns_total >= 0) { in Update()
128 buffer_overruns_total += metrics.buffer_overruns_total; in Update()
130 if (metrics.buffer_underruns_average >= 0 && in Update()
131 metrics.buffer_underruns_count >= 0) { in Update()
133 buffer_underruns_average = metrics.buffer_underruns_average; in Update()
134 buffer_underruns_count = metrics.buffer_underruns_count; in Update()
138 metrics.buffer_underruns_average, metrics.buffer_underruns_count); in Update()
139 buffer_underruns_count += metrics.buffer_underruns_count; in Update()
143 codec_index = metrics.codec_index; in Update()
146 is_a2dp_offload = metrics.is_a2dp_offload; in Update()