Loading system/stack/eatt/eatt.cc +1 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,7 @@ bool EattExtension::IsOutstandingMsgInSendQueue(const RawAddress& bd_addr) { return pimpl_->eatt_impl_->is_outstanding_msg_in_send_queue(bd_addr); } EattChannel* EattExtension::GetChannelWithQueuedData( EattChannel* EattExtension::GetChannelWithQueuedDataToSend( const RawAddress& bd_addr) { return pimpl_->eatt_impl_->get_channel_with_queued_data(bd_addr); } Loading system/stack/eatt/eatt.h +2 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,8 @@ class EattExtension { * * @return pointer to EATT channel. */ virtual EattChannel* GetChannelWithQueuedData(const RawAddress& bd_addr); virtual EattChannel* GetChannelWithQueuedDataToSend( const RawAddress& bd_addr); /** * Get EATT channel available to send GATT request. Loading system/stack/eatt/eatt_impl.h +8 −2 Original line number Diff line number Diff line Loading @@ -706,7 +706,10 @@ struct eatt_impl { auto iter = find_if( eatt_dev->eatt_channels.begin(), eatt_dev->eatt_channels.end(), [](const std::pair<uint16_t, std::shared_ptr<EattChannel>>& el) { return !el.second->cl_cmd_q_.empty(); if (el.second->cl_cmd_q_.empty()) return false; tGATT_CMD_Q& cmd = el.second->cl_cmd_q_.front(); return cmd.to_send; }); return (iter != eatt_dev->eatt_channels.end()); } Loading @@ -718,7 +721,10 @@ struct eatt_impl { auto iter = find_if( eatt_dev->eatt_channels.begin(), eatt_dev->eatt_channels.end(), [](const std::pair<uint16_t, std::shared_ptr<EattChannel>>& el) { return !el.second->cl_cmd_q_.empty(); if (el.second->cl_cmd_q_.empty()) return false; tGATT_CMD_Q& cmd = el.second->cl_cmd_q_.front(); return cmd.to_send; }); return (iter == eatt_dev->eatt_channels.end()) ? nullptr : iter->second.get(); Loading system/stack/gatt/gatt_cl.cc +2 −1 Original line number Diff line number Diff line Loading @@ -1138,7 +1138,8 @@ bool gatt_cl_send_next_cmd_inq(tGATT_TCB& tcb) { cl_cmd_q = &tcb.cl_cmd_q; } else { EattChannel* channel = EattExtension::GetInstance()->GetChannelWithQueuedData(tcb.peer_bda); EattExtension::GetInstance()->GetChannelWithQueuedDataToSend( tcb.peer_bda); cl_cmd_q = &channel->cl_cmd_q_; } Loading system/stack/test/common/mock_eatt.cc +2 −2 Original line number Diff line number Diff line Loading @@ -86,9 +86,9 @@ bool EattExtension::IsOutstandingMsgInSendQueue(const RawAddress& bd_addr) { return pimpl_->IsOutstandingMsgInSendQueue(bd_addr); } EattChannel* EattExtension::GetChannelWithQueuedData( EattChannel* EattExtension::GetChannelWithQueuedDataToSend( const RawAddress& bd_addr) { return pimpl_->GetChannelWithQueuedData(bd_addr); return pimpl_->GetChannelWithQueuedDataToSend(bd_addr); } EattChannel* EattExtension::GetChannelAvailableForClientRequest( Loading Loading
system/stack/eatt/eatt.cc +1 −1 Original line number Diff line number Diff line Loading @@ -175,7 +175,7 @@ bool EattExtension::IsOutstandingMsgInSendQueue(const RawAddress& bd_addr) { return pimpl_->eatt_impl_->is_outstanding_msg_in_send_queue(bd_addr); } EattChannel* EattExtension::GetChannelWithQueuedData( EattChannel* EattExtension::GetChannelWithQueuedDataToSend( const RawAddress& bd_addr) { return pimpl_->eatt_impl_->get_channel_with_queued_data(bd_addr); } Loading
system/stack/eatt/eatt.h +2 −1 Original line number Diff line number Diff line Loading @@ -224,7 +224,8 @@ class EattExtension { * * @return pointer to EATT channel. */ virtual EattChannel* GetChannelWithQueuedData(const RawAddress& bd_addr); virtual EattChannel* GetChannelWithQueuedDataToSend( const RawAddress& bd_addr); /** * Get EATT channel available to send GATT request. Loading
system/stack/eatt/eatt_impl.h +8 −2 Original line number Diff line number Diff line Loading @@ -706,7 +706,10 @@ struct eatt_impl { auto iter = find_if( eatt_dev->eatt_channels.begin(), eatt_dev->eatt_channels.end(), [](const std::pair<uint16_t, std::shared_ptr<EattChannel>>& el) { return !el.second->cl_cmd_q_.empty(); if (el.second->cl_cmd_q_.empty()) return false; tGATT_CMD_Q& cmd = el.second->cl_cmd_q_.front(); return cmd.to_send; }); return (iter != eatt_dev->eatt_channels.end()); } Loading @@ -718,7 +721,10 @@ struct eatt_impl { auto iter = find_if( eatt_dev->eatt_channels.begin(), eatt_dev->eatt_channels.end(), [](const std::pair<uint16_t, std::shared_ptr<EattChannel>>& el) { return !el.second->cl_cmd_q_.empty(); if (el.second->cl_cmd_q_.empty()) return false; tGATT_CMD_Q& cmd = el.second->cl_cmd_q_.front(); return cmd.to_send; }); return (iter == eatt_dev->eatt_channels.end()) ? nullptr : iter->second.get(); Loading
system/stack/gatt/gatt_cl.cc +2 −1 Original line number Diff line number Diff line Loading @@ -1138,7 +1138,8 @@ bool gatt_cl_send_next_cmd_inq(tGATT_TCB& tcb) { cl_cmd_q = &tcb.cl_cmd_q; } else { EattChannel* channel = EattExtension::GetInstance()->GetChannelWithQueuedData(tcb.peer_bda); EattExtension::GetInstance()->GetChannelWithQueuedDataToSend( tcb.peer_bda); cl_cmd_q = &channel->cl_cmd_q_; } Loading
system/stack/test/common/mock_eatt.cc +2 −2 Original line number Diff line number Diff line Loading @@ -86,9 +86,9 @@ bool EattExtension::IsOutstandingMsgInSendQueue(const RawAddress& bd_addr) { return pimpl_->IsOutstandingMsgInSendQueue(bd_addr); } EattChannel* EattExtension::GetChannelWithQueuedData( EattChannel* EattExtension::GetChannelWithQueuedDataToSend( const RawAddress& bd_addr) { return pimpl_->GetChannelWithQueuedData(bd_addr); return pimpl_->GetChannelWithQueuedDataToSend(bd_addr); } EattChannel* EattExtension::GetChannelAvailableForClientRequest( Loading