Loading system/gd/hci/hci_metrics_logging.cc +9 −1 Original line number Diff line number Diff line Loading @@ -30,15 +30,23 @@ void log_hci_event( EventCode event_code = event_view.GetEventCode(); switch (event_code) { case EventCode::COMMAND_COMPLETE: { CommandCompleteView complete_view = CommandCompleteView::Create(event_view); ASSERT(complete_view.IsValid()); if (complete_view.GetCommandOpCode() == OpCode::NONE) { return; } ASSERT(command_view->IsValid()); log_link_layer_connection_command_complete(event_view, command_view); log_classic_pairing_command_complete(event_view, command_view); break; } case EventCode::COMMAND_STATUS: { ASSERT(command_view->IsValid()); CommandStatusView response_view = CommandStatusView::Create(event_view); ASSERT(response_view.IsValid()); if (response_view.GetCommandOpCode() == OpCode::NONE) { return; } ASSERT(command_view->IsValid()); log_link_layer_connection_command_status(command_view, response_view.GetStatus()); log_classic_pairing_command_status(command_view, response_view.GetStatus()); break; Loading Loading
system/gd/hci/hci_metrics_logging.cc +9 −1 Original line number Diff line number Diff line Loading @@ -30,15 +30,23 @@ void log_hci_event( EventCode event_code = event_view.GetEventCode(); switch (event_code) { case EventCode::COMMAND_COMPLETE: { CommandCompleteView complete_view = CommandCompleteView::Create(event_view); ASSERT(complete_view.IsValid()); if (complete_view.GetCommandOpCode() == OpCode::NONE) { return; } ASSERT(command_view->IsValid()); log_link_layer_connection_command_complete(event_view, command_view); log_classic_pairing_command_complete(event_view, command_view); break; } case EventCode::COMMAND_STATUS: { ASSERT(command_view->IsValid()); CommandStatusView response_view = CommandStatusView::Create(event_view); ASSERT(response_view.IsValid()); if (response_view.GetCommandOpCode() == OpCode::NONE) { return; } ASSERT(command_view->IsValid()); log_link_layer_connection_command_status(command_view, response_view.GetStatus()); log_classic_pairing_command_status(command_view, response_view.GetStatus()); break; Loading