Lines Matching refs:hci

48       hci::Address address,
49 hci::PageScanRepetitionMode page_scan_repetition_mode,
51 hci::ClockOffsetValid clock_offset_valid,
54 …void CancelRemoteNameRequest(hci::Address address, CancelRemoteNameCallback, os::Handler* handler);
64 void EnqueueCommandComplete(std::unique_ptr<hci::CommandBuilder> command);
65 void EnqueueCommandStatus(std::unique_ptr<hci::CommandBuilder> command);
67 void OnCommandComplete(hci::CommandCompleteView view);
68 void OnCommandStatus(hci::CommandStatusView status);
69 void OnEvent(hci::EventView view);
71 std::unordered_map<hci::Address, std::unique_ptr<ReadCallbackHandler>> read_callback_handler_map_;
72 …std::unordered_map<hci::Address, std::unique_ptr<CancelCallbackHandler>> cancel_callback_handler_m…
74 hci::HciLayer* hci_layer_;
82 void neighbor::NameModule::impl::EnqueueCommandComplete(std::unique_ptr<hci::CommandBuilder> comman… in EnqueueCommandComplete()
86 void neighbor::NameModule::impl::EnqueueCommandStatus(std::unique_ptr<hci::CommandBuilder> command)… in EnqueueCommandStatus()
90 void neighbor::NameModule::impl::OnCommandComplete(hci::CommandCompleteView view) { in OnCommandComplete()
92 case hci::OpCode::REMOTE_NAME_REQUEST_CANCEL: { in OnCommandComplete()
93 auto packet = hci::RemoteNameRequestCancelCompleteView::Create(view); in OnCommandComplete()
95 ASSERT(packet.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandComplete()
96 hci::Address address = packet.GetBdAddr(); in OnCommandComplete()
101 LOG_WARN("Unhandled command:%s", hci::OpCodeText(view.GetCommandOpCode()).c_str()); in OnCommandComplete()
106 void neighbor::NameModule::impl::OnCommandStatus(hci::CommandStatusView status) { in OnCommandStatus()
107 ASSERT(status.GetStatus() == hci::ErrorCode::SUCCESS); in OnCommandStatus()
110 case hci::OpCode::REMOTE_NAME_REQUEST: { in OnCommandStatus()
111 auto packet = hci::RemoteNameRequestStatusView::Create(status); in OnCommandStatus()
116 LOG_WARN("Unhandled command:%s", hci::OpCodeText(status.GetCommandOpCode()).c_str()); in OnCommandStatus()
121 void neighbor::NameModule::impl::OnEvent(hci::EventView view) { in OnEvent()
123 case hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE: { in OnEvent()
124 auto packet = hci::RemoteNameRequestCompleteView::Create(view); in OnEvent()
126 hci::Address address = packet.GetBdAddr(); in OnEvent()
134 LOG_ERROR("Unhandled event:%s", hci::EventCodeText(view.GetEventCode()).c_str()); in OnEvent()
140 hci_layer_ = module_.GetDependency<hci::HciLayer>(); in Start()
144hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE, handler_->BindOn(this, &NameModule::impl::OnEvent)); in Start()
148 hci_layer_->UnregisterEventHandler(hci::EventCode::REMOTE_NAME_REQUEST_COMPLETE); in Stop()
152 hci::Address address, in ReadRemoteNameRequest()
153 hci::PageScanRepetitionMode page_scan_repetition_mode, in ReadRemoteNameRequest()
155 hci::ClockOffsetValid clock_offset_valid, in ReadRemoteNameRequest()
162 …handler->Post(common::BindOnce(std::move(callback), hci::ErrorCode::UNSPECIFIED_ERROR, address, kE… in ReadRemoteNameRequest()
171hci::RemoteNameRequestBuilder::Create(address, page_scan_repetition_mode, clock_offset, clock_offs… in ReadRemoteNameRequest()
175 hci::Address address, CancelRemoteNameCallback callback, os::Handler* handler) { in CancelRemoteNameRequest()
180 … handler->Post(common::BindOnce(std::move(callback), hci::ErrorCode::UNSPECIFIED_ERROR, address)); in CancelRemoteNameRequest()
187 EnqueueCommandComplete(hci::RemoteNameRequestCancelBuilder::Create(address)); in CancelRemoteNameRequest()
200 hci::Address address, in ReadRemoteNameRequest()
201 hci::PageScanRepetitionMode page_scan_repetition_mode, in ReadRemoteNameRequest()
203 hci::ClockOffsetValid clock_offset_valid, in ReadRemoteNameRequest()
220 hci::Address address, CancelRemoteNameCallback callback, os::Handler* handler) { in CancelRemoteNameRequest()
235 list->add<hci::HciLayer>(); in ListDependencies()