Lines Matching refs:hci

40     hci::IoCapability io_capability,  in DispatchPairingHandler()
41 hci::AuthenticationRequirements auth_requirements, in DispatchPairingHandler()
44 common::OnceCallback<void(hci::Address, PairingResultOrFailure)> callback = in DispatchPairingHandler()
53 case hci::AddressType::PUBLIC_DEVICE_ADDRESS: { in DispatchPairingHandler()
68 auto new_entry = std::pair<hci::Address, std::shared_ptr<pairing::PairingHandler>>( in DispatchPairingHandler()
77 …security_manager_channel_->SendCommand(hci::WriteSimplePairingModeBuilder::Create(hci::Enable::ENA… in Init()
78 …security_manager_channel_->SendCommand(hci::WriteSecureConnectionsHostSupportBuilder::Create(hci::… in Init()
98hci::AddressWithType(adapter_config.GetAddress().value(), hci::AddressType::PUBLIC_DEVICE_ADDRESS); in Init()
101hci::LeAddressManager::AddressPolicy address_policy = hci::LeAddressManager::AddressPolicy::USE_RE… in Init()
102 hci::AddressWithType address_with_type(hci::Address{}, hci::AddressType::RANDOM_DEVICE_ADDRESS); in Init()
112 void SecurityManagerImpl::CreateBond(hci::AddressWithType device) { in CreateBond()
117hci::AddressWithType device, pairing::OobData remote_p192_oob_data, pairing::OobData remote_p256_o… in CreateBondOutOfBand()
138 void SecurityManagerImpl::CreateBondLe(hci::AddressWithType address) { in CreateBondLe()
159 void SecurityManagerImpl::CancelBond(hci::AddressWithType device) { in CancelBond()
173 void SecurityManagerImpl::RemoveBond(hci::AddressWithType device) { in RemoveBond()
177 security_manager_channel_->SendCommand(hci::DeleteStoredLinkKeyBuilder::Create( in RemoveBond()
178 device.GetAddress(), hci::DeleteStoredLinkKeyDeleteAllFlag::SPECIFIED_BD_ADDR)); in RemoveBond()
192 hci::LeAddressManager::AddressPolicy address_policy, in SetLeInitiatorAddressPolicyForTest()
193 hci::AddressWithType fixed_address, in SetLeInitiatorAddressPolicyForTest()
222 void SecurityManagerImpl::NotifyDeviceBonded(hci::AddressWithType device) { in NotifyDeviceBonded()
228 void SecurityManagerImpl::NotifyDeviceBondFailed(hci::AddressWithType device, PairingFailure status… in NotifyDeviceBondFailed()
235 void SecurityManagerImpl::NotifyDeviceUnbonded(hci::AddressWithType device) { in NotifyDeviceUnbonded()
243 void SecurityManagerImpl::NotifyEncryptionStateChanged(hci::EncryptionChangeView encryption_change_… in NotifyEncryptionStateChanged()
259 …if (event_code != hci::EventCode::LINK_KEY_REQUEST && event_code != hci::EventCode::PIN_CODE_REQUE… in HandleEvent()
260 event_code != hci::EventCode::IO_CAPABILITY_RESPONSE) { in HandleEvent()
262 hci::EventCodeText(event_code).c_str()); in HandleEvent()
269 …security_database_.FindOrCreate(hci::AddressWithType{bd_addr, hci::AddressType::PUBLIC_DEVICE_ADDR… in HandleEvent()
283 void SecurityManagerImpl::OnHciEventReceived(hci::EventView packet) { in OnHciEventReceived()
284 auto event = hci::EventView::Create(packet); in OnHciEventReceived()
286 const hci::EventCode code = event.GetEventCode(); in OnHciEventReceived()
288 case hci::EventCode::PIN_CODE_REQUEST: in OnHciEventReceived()
289 HandleEvent<hci::PinCodeRequestView>(hci::PinCodeRequestView::Create(event)); in OnHciEventReceived()
291 case hci::EventCode::LINK_KEY_REQUEST: in OnHciEventReceived()
292 HandleEvent(hci::LinkKeyRequestView::Create(event)); in OnHciEventReceived()
294 case hci::EventCode::LINK_KEY_NOTIFICATION: in OnHciEventReceived()
295 HandleEvent(hci::LinkKeyNotificationView::Create(event)); in OnHciEventReceived()
297 case hci::EventCode::IO_CAPABILITY_REQUEST: in OnHciEventReceived()
298 HandleEvent(hci::IoCapabilityRequestView::Create(event)); in OnHciEventReceived()
300 case hci::EventCode::IO_CAPABILITY_RESPONSE: in OnHciEventReceived()
301 HandleEvent(hci::IoCapabilityResponseView::Create(event)); in OnHciEventReceived()
303 case hci::EventCode::SIMPLE_PAIRING_COMPLETE: in OnHciEventReceived()
304 HandleEvent(hci::SimplePairingCompleteView::Create(event)); in OnHciEventReceived()
306 case hci::EventCode::REMOTE_OOB_DATA_REQUEST: in OnHciEventReceived()
307 HandleEvent(hci::RemoteOobDataRequestView::Create(event)); in OnHciEventReceived()
309 case hci::EventCode::USER_PASSKEY_NOTIFICATION: in OnHciEventReceived()
310 HandleEvent(hci::UserPasskeyNotificationView::Create(event)); in OnHciEventReceived()
312 case hci::EventCode::KEYPRESS_NOTIFICATION: in OnHciEventReceived()
313 HandleEvent(hci::KeypressNotificationView::Create(event)); in OnHciEventReceived()
315 case hci::EventCode::USER_CONFIRMATION_REQUEST: in OnHciEventReceived()
316 HandleEvent(hci::UserConfirmationRequestView::Create(event)); in OnHciEventReceived()
318 case hci::EventCode::USER_PASSKEY_REQUEST: in OnHciEventReceived()
319 HandleEvent(hci::UserPasskeyRequestView::Create(event)); in OnHciEventReceived()
321 case hci::EventCode::REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATION: in OnHciEventReceived()
322 LOG_INFO("Unhandled event: %s", hci::EventCodeText(code).c_str()); in OnHciEventReceived()
325 case hci::EventCode::ENCRYPTION_CHANGE: { in OnHciEventReceived()
340 ASSERT_LOG(false, "Cannot handle received packet: %s", hci::EventCodeText(code).c_str()); in OnHciEventReceived()
345 void SecurityManagerImpl::OnConnectionClosed(hci::Address address) { in OnConnectionClosed()
351 …auto record = security_database_.FindOrCreate(hci::AddressWithType(address, hci::AddressType::PUBL… in OnConnectionClosed()
353 … security_database_.Remove(hci::AddressWithType(address, hci::AddressType::PUBLIC_DEVICE_ADDRESS)); in OnConnectionClosed()
357 …*this->facade_disconnect_callback_, hci::AddressWithType(address, hci::AddressType::PUBLIC_DEVICE_… in OnConnectionClosed()
361 void SecurityManagerImpl::OnHciLeEvent(hci::LeMetaEventView event) { in OnHciLeEvent()
362 hci::SubeventCode code = event.GetSubeventCode(); in OnHciLeEvent()
364 if (code == hci::SubeventCode::LONG_TERM_KEY_REQUEST) { in OnHciLeEvent()
365hci::LeLongTermKeyRequestView le_long_term_key_request_view = hci::LeLongTermKeyRequestView::Creat… in OnHciLeEvent()
376 LOG_INFO("Unhandled HCI LE security event, code %s", hci::SubeventCodeText(code).c_str()); in OnHciLeEvent()
382 LOG_ERROR("Unhandled HCI LE security event, code %s", hci::SubeventCodeText(code).c_str()); in OnHciLeEvent()
385 void SecurityManagerImpl::OnPairingPromptAccepted(const bluetooth::hci::AddressWithType& address, b… in OnPairingPromptAccepted()
396 void SecurityManagerImpl::OnConfirmYesNo(const bluetooth::hci::AddressWithType& address, bool confi… in OnConfirmYesNo()
407 void SecurityManagerImpl::OnPasskeyEntry(const bluetooth::hci::AddressWithType& address, uint32_t p… in OnPasskeyEntry()
418 void SecurityManagerImpl::OnPinEntry(const bluetooth::hci::AddressWithType& address, std::vector<ui… in OnPinEntry()
429 void SecurityManagerImpl::OnPairingHandlerComplete(hci::Address address, PairingResultOrFailure sta… in OnPairingHandlerComplete()
435 auto remote = hci::AddressWithType(address, hci::AddressType::PUBLIC_DEVICE_ADDRESS); in OnPairingHandlerComplete()
458 LeFixedChannelEntry* SecurityManagerImpl::FindStoredLeChannel(const hci::AddressWithType& device) { in FindStoredLeChannel()
467 bool SecurityManagerImpl::EraseStoredLeChannel(const hci::AddressWithType& device) { in EraseStoredLeChannel()
477 void SecurityManagerImpl::OnSmpCommandLe(hci::AddressWithType device) { in OnSmpCommandLe()
512 if (temp_cmd_view.GetCode() == Code::PAIRING_REQUEST && my_role == hci::Role::PERIPHERAL) { in OnSmpCommandLe()
637 void SecurityManagerImpl::OnConnectionClosedLe(hci::AddressWithType address, hci::ErrorCode error_c… in OnConnectionClosedLe()
667 hci::HciLayer* hci_layer, in SecurityManagerImpl()
668 hci::AclManager* acl_manager, in SecurityManagerImpl()
669 hci::Controller* controller, in SecurityManagerImpl()
722 record->SetLinkKey(*result.distributed_keys.remote_link_key, hci::KeyType::AUTHENTICATED_P256); in OnPairingFinished()
736 pending_le_pairing_.address_ = hci::AddressWithType(); in WipeLePairingHandler()
744 void SecurityManagerImpl::SetIoCapability(hci::IoCapability io_capability) { in SetIoCapability()
766hci::ReadLocalOobDataBuilder::Create(), std::forward<channel::SecurityCommandStatusCallback>(callb… in GetOutOfBandData()
777 hci::AddressWithType remote_address, in SetOutOfBandData()
785 void SecurityManagerImpl::SetAuthenticationRequirements(hci::AuthenticationRequirements authenticat… in SetAuthenticationRequirements()
790 hci::AddressWithType remote, in InternalEnforceSecurityPolicy()
801 hci::AuthenticationRequirements authentication_requirements = kDefaultAuthenticationRequirements; in InternalEnforceSecurityPolicy()
808 … authentication_requirements = hci::AuthenticationRequirements::GENERAL_BONDING_MITM_PROTECTION; in InternalEnforceSecurityPolicy()
811 authentication_requirements = hci::AuthenticationRequirements::GENERAL_BONDING; in InternalEnforceSecurityPolicy()
829 void SecurityManagerImpl::UpdateLinkSecurityCondition(hci::AddressWithType remote) { in UpdateLinkSecurityCondition()
840 hci::AddressWithType remote, l2cap::classic::SecurityPolicy policy) { in IsSecurityRequirementSatisfied()
854 hci::AddressWithType remote, in EnforceSecurityPolicy()
865 hci::AddressWithType remote, l2cap::le::SecurityPolicy policy, in EnforceLeSecurityPolicy()