• Home
  • Raw
  • Download

Lines Matching refs:pimpl_

291     : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent,  in BluetoothMetricsLogger()
304 pimpl_->pair_event_queue_->Enqueue(event); in LogPairEvent()
306 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogPairEvent()
307 pimpl_->bluetooth_log_->set_num_pair_event( in LogPairEvent()
308 pimpl_->bluetooth_log_->num_pair_event() + 1); in LogPairEvent()
321 pimpl_->wake_event_queue_->Enqueue(event); in LogWakeEvent()
323 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogWakeEvent()
324 pimpl_->bluetooth_log_->set_num_wake_event( in LogWakeEvent()
325 pimpl_->bluetooth_log_->num_wake_event() + 1); in LogWakeEvent()
343 pimpl_->scan_event_queue_->Enqueue(event); in LogScanEvent()
345 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogScanEvent()
346 pimpl_->bluetooth_log_->set_num_scan_event( in LogScanEvent()
347 pimpl_->bluetooth_log_->num_scan_event() + 1); in LogScanEvent()
353 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionStart()
354 if (pimpl_->bluetooth_session_ != nullptr) { in LogBluetoothSessionStart()
361 pimpl_->bluetooth_session_start_time_ms_ = timestamp_ms; in LogBluetoothSessionStart()
362 pimpl_->bluetooth_session_ = new BluetoothSession(); in LogBluetoothSessionStart()
363 pimpl_->bluetooth_session_->set_connection_technology_type( in LogBluetoothSessionStart()
369 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionEnd()
370 if (pimpl_->bluetooth_session_ == nullptr) { in LogBluetoothSessionEnd()
377 (timestamp_ms - pimpl_->bluetooth_session_start_time_ms_) / 1000; in LogBluetoothSessionEnd()
378 pimpl_->bluetooth_session_->set_session_duration_sec(session_duration_sec); in LogBluetoothSessionEnd()
379 pimpl_->bluetooth_session_->set_disconnect_reason_type( in LogBluetoothSessionEnd()
381 pimpl_->bt_session_queue_->Enqueue(pimpl_->bluetooth_session_); in LogBluetoothSessionEnd()
382 pimpl_->bluetooth_session_ = nullptr; in LogBluetoothSessionEnd()
383 pimpl_->a2dp_session_metrics_ = A2dpSessionMetrics(); in LogBluetoothSessionEnd()
385 std::lock_guard<std::recursive_mutex> log_lock(pimpl_->bluetooth_log_lock_); in LogBluetoothSessionEnd()
386 pimpl_->bluetooth_log_->set_num_bluetooth_session( in LogBluetoothSessionEnd()
387 pimpl_->bluetooth_log_->num_bluetooth_session() + 1); in LogBluetoothSessionEnd()
393 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogBluetoothSessionDeviceInfo()
394 if (pimpl_->bluetooth_session_ == nullptr) { in LogBluetoothSessionDeviceInfo()
397 DeviceInfo* info = pimpl_->bluetooth_session_->mutable_device_connected_to(); in LogBluetoothSessionDeviceInfo()
404 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in LogA2dpSession()
405 if (pimpl_->bluetooth_session_ == nullptr) { in LogA2dpSession()
412 pimpl_->a2dp_session_metrics_.Update(a2dp_session_metrics); in LogA2dpSession()
415 pimpl_->bluetooth_session_->mutable_a2dp_session(); in LogA2dpSession()
417 pimpl_->a2dp_session_metrics_.audio_duration_ms); in LogA2dpSession()
419 pimpl_->a2dp_session_metrics_.media_timer_min_ms); in LogA2dpSession()
421 pimpl_->a2dp_session_metrics_.media_timer_max_ms); in LogA2dpSession()
423 pimpl_->a2dp_session_metrics_.media_timer_avg_ms); in LogA2dpSession()
425 pimpl_->a2dp_session_metrics_.buffer_overruns_max_count); in LogA2dpSession()
427 pimpl_->a2dp_session_metrics_.buffer_overruns_total); in LogA2dpSession()
429 pimpl_->a2dp_session_metrics_.buffer_underruns_average); in LogA2dpSession()
431 pimpl_->a2dp_session_metrics_.buffer_underruns_count); in LogA2dpSession()
433 get_a2dp_source_codec(pimpl_->a2dp_session_metrics_.codec_index)); in LogA2dpSession()
435 pimpl_->a2dp_session_metrics_.is_a2dp_offload); in LogA2dpSession()
440 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in LogHeadsetProfileRfcConnection()
443 pimpl_->headset_profile_connection_counts_[HeadsetProfileType::HSP]++; in LogHeadsetProfileRfcConnection()
446 pimpl_->headset_profile_connection_counts_[HeadsetProfileType::HFP]++; in LogHeadsetProfileRfcConnection()
449 pimpl_->headset_profile_connection_counts_ in LogHeadsetProfileRfcConnection()
457 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in WriteString()
461 if (!pimpl_->bluetooth_log_->SerializeToString(serialized)) { in WriteString()
465 pimpl_->bluetooth_log_->Clear(); in WriteString()
486 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in CutoffSession()
487 if (pimpl_->bluetooth_session_ != nullptr) { in CutoffSession()
489 new BluetoothSession(*pimpl_->bluetooth_session_); in CutoffSession()
493 pimpl_->bluetooth_session_ = new_bt_session; in CutoffSession()
494 pimpl_->bluetooth_session_start_time_ms_ = in CutoffSession()
496 pimpl_->a2dp_session_metrics_ = A2dpSessionMetrics(); in CutoffSession()
501 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in Build()
503 BluetoothLog* bluetooth_log = pimpl_->bluetooth_log_; in Build()
504 while (!pimpl_->bt_session_queue_->Empty() && in Build()
506 pimpl_->bt_session_queue_->Capacity()) { in Build()
508 pimpl_->bt_session_queue_->Dequeue()); in Build()
510 while (!pimpl_->pair_event_queue_->Empty() && in Build()
512 pimpl_->pair_event_queue_->Capacity()) { in Build()
514 pimpl_->pair_event_queue_->Dequeue()); in Build()
516 while (!pimpl_->scan_event_queue_->Empty() && in Build()
518 pimpl_->scan_event_queue_->Capacity()) { in Build()
520 pimpl_->scan_event_queue_->Dequeue()); in Build()
522 while (!pimpl_->wake_event_queue_->Empty() && in Build()
524 pimpl_->wake_event_queue_->Capacity()) { in Build()
526 pimpl_->wake_event_queue_->Dequeue()); in Build()
528 while (!pimpl_->bt_session_queue_->Empty() && in Build()
530 pimpl_->wake_event_queue_->Capacity()) { in Build()
532 pimpl_->wake_event_queue_->Dequeue()); in Build()
535 int num_times_connected = pimpl_->headset_profile_connection_counts_[i]; in Build()
546 pimpl_->headset_profile_connection_counts_.fill(0); in Build()
550 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_session_lock_); in ResetSession()
551 if (pimpl_->bluetooth_session_ != nullptr) { in ResetSession()
552 delete pimpl_->bluetooth_session_; in ResetSession()
553 pimpl_->bluetooth_session_ = nullptr; in ResetSession()
555 pimpl_->bluetooth_session_start_time_ms_ = 0; in ResetSession()
556 pimpl_->a2dp_session_metrics_ = A2dpSessionMetrics(); in ResetSession()
560 std::lock_guard<std::recursive_mutex> lock(pimpl_->bluetooth_log_lock_); in ResetLog()
561 pimpl_->bluetooth_log_->Clear(); in ResetLog()
567 pimpl_->bt_session_queue_->Clear(); in Reset()
568 pimpl_->pair_event_queue_->Clear(); in Reset()
569 pimpl_->wake_event_queue_->Clear(); in Reset()
570 pimpl_->scan_event_queue_->Clear(); in Reset()