Lines Matching refs:metrics

40 using bluetooth::metrics::BluetoothMetricsProto::A2DPSession;
41 using bluetooth::metrics::BluetoothMetricsProto::A2dpSourceCodec;
42 using bluetooth::metrics::BluetoothMetricsProto::BluetoothLog;
43 using bluetooth::metrics::BluetoothMetricsProto::BluetoothSession;
44 using bluetooth::metrics::BluetoothMetricsProto::
46 using bluetooth::metrics::BluetoothMetricsProto::
48 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo;
49 using bluetooth::metrics::BluetoothMetricsProto::DeviceInfo_DeviceType;
50 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileConnectionStats;
51 using bluetooth::metrics::BluetoothMetricsProto::HeadsetProfileType;
52 using bluetooth::metrics::BluetoothMetricsProto::PairEvent;
53 using bluetooth::metrics::BluetoothMetricsProto::RFCommSession;
54 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent;
55 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanEventType;
56 using bluetooth::metrics::BluetoothMetricsProto::ScanEvent_ScanTechnologyType;
57 using bluetooth::metrics::BluetoothMetricsProto::WakeEvent;
58 using bluetooth::metrics::BluetoothMetricsProto::WakeEvent_WakeEventType;
109 A2DPSession* MakeA2DPSession(const A2dpSessionMetrics& metrics, in MakeA2DPSession() argument
112 session->set_media_timer_min_millis(metrics.media_timer_min_ms); in MakeA2DPSession()
113 session->set_media_timer_max_millis(metrics.media_timer_max_ms); in MakeA2DPSession()
114 session->set_media_timer_avg_millis(metrics.media_timer_avg_ms); in MakeA2DPSession()
115 session->set_buffer_overruns_max_count(metrics.buffer_overruns_max_count); in MakeA2DPSession()
116 session->set_buffer_overruns_total(metrics.buffer_overruns_total); in MakeA2DPSession()
117 session->set_buffer_underruns_average(metrics.buffer_underruns_average); in MakeA2DPSession()
118 session->set_buffer_underruns_count(metrics.buffer_underruns_count); in MakeA2DPSession()
119 session->set_audio_duration_millis(metrics.audio_duration_ms); in MakeA2DPSession()
121 session->set_is_a2dp_offload(metrics.is_a2dp_offload); in MakeA2DPSession()
931 BluetoothLog* metrics = BluetoothLog::default_instance().New(); in TEST_F() local
932 metrics->ParseFromString(msg_str); in TEST_F()
933 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 2); in TEST_F()
937 metrics->headset_profile_connection_stats()) { in TEST_F()
953 metrics->clear_headset_profile_connection_stats(); in TEST_F()
954 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 0); in TEST_F()
958 metrics->ParseFromString(msg_str); in TEST_F()
959 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 0); in TEST_F()
960 delete metrics; in TEST_F()
974 BluetoothLog* metrics = BluetoothLog::default_instance().New(); in TEST_F() local
975 metrics->ParseFromString(msg_str); in TEST_F()
976 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 3); in TEST_F()
981 metrics->headset_profile_connection_stats()) { in TEST_F()
1000 metrics->clear_headset_profile_connection_stats(); in TEST_F()
1001 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 0); in TEST_F()
1004 metrics->ParseFromString(msg_str); in TEST_F()
1005 EXPECT_EQ(metrics->headset_profile_connection_stats_size(), 0); in TEST_F()
1006 delete metrics; in TEST_F()