Loading system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc +0 −22 Original line number Diff line number Diff line Loading @@ -79,28 +79,6 @@ void DualModeController::TimerTick() { link_layer_controller_.TimerTick(); } void DualModeController::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type) { for (auto phy_pair : phy_layers_) { auto phy_list = std::get<1>(phy_pair); if (phy_type != std::get<0>(phy_pair)) { continue; } for (auto phy : phy_list) { phy->Send(to_send); } } } /* void DualModeController::AddConnectionAction(const TaskCallback& task, uint16_t handle) { for (size_t i = 0; i < connections_.size(); i++) if (connections_[i]->GetHandle() == handle) connections_[i]->AddAction(task); } */ void DualModeController::SendCommandCompleteSuccess(OpCode command_opcode) const { send_event_(packets::EventPacketBuilder::CreateCommandCompleteOnlyStatusEvent(command_opcode, hci::Status::SUCCESS) ->ToVector()); Loading system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.h +0 −3 Original line number Diff line number Diff line Loading @@ -64,9 +64,6 @@ class DualModeController : public Device { virtual void TimerTick() override; // Send packets to remote devices void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type); // Route commands and data from the stack. void HandleAcl(std::shared_ptr<std::vector<uint8_t>> acl_packet); void HandleCommand(std::shared_ptr<std::vector<uint8_t>> command_packet); Loading system/vendor_libs/test_vendor_lib/model/devices/device.cc +1 −2 Original line number Diff line number Diff line Loading @@ -59,8 +59,7 @@ bool Device::IsAdvertisementAvailable(std::chrono::milliseconds scan_time) const } void Device::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type) { auto phy_list = phy_layers_[phy_type]; for (auto phy : phy_list) { for (auto phy : phy_layers_[phy_type]) { phy->Send(to_send); } } Loading Loading
system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.cc +0 −22 Original line number Diff line number Diff line Loading @@ -79,28 +79,6 @@ void DualModeController::TimerTick() { link_layer_controller_.TimerTick(); } void DualModeController::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type) { for (auto phy_pair : phy_layers_) { auto phy_list = std::get<1>(phy_pair); if (phy_type != std::get<0>(phy_pair)) { continue; } for (auto phy : phy_list) { phy->Send(to_send); } } } /* void DualModeController::AddConnectionAction(const TaskCallback& task, uint16_t handle) { for (size_t i = 0; i < connections_.size(); i++) if (connections_[i]->GetHandle() == handle) connections_[i]->AddAction(task); } */ void DualModeController::SendCommandCompleteSuccess(OpCode command_opcode) const { send_event_(packets::EventPacketBuilder::CreateCommandCompleteOnlyStatusEvent(command_opcode, hci::Status::SUCCESS) ->ToVector()); Loading
system/vendor_libs/test_vendor_lib/model/controller/dual_mode_controller.h +0 −3 Original line number Diff line number Diff line Loading @@ -64,9 +64,6 @@ class DualModeController : public Device { virtual void TimerTick() override; // Send packets to remote devices void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type); // Route commands and data from the stack. void HandleAcl(std::shared_ptr<std::vector<uint8_t>> acl_packet); void HandleCommand(std::shared_ptr<std::vector<uint8_t>> command_packet); Loading
system/vendor_libs/test_vendor_lib/model/devices/device.cc +1 −2 Original line number Diff line number Diff line Loading @@ -59,8 +59,7 @@ bool Device::IsAdvertisementAvailable(std::chrono::milliseconds scan_time) const } void Device::SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> to_send, Phy::Type phy_type) { auto phy_list = phy_layers_[phy_type]; for (auto phy : phy_list) { for (auto phy : phy_layers_[phy_type]) { phy->Send(to_send); } } Loading