Lines Matching refs:link

46   auto* link = GetLink(device);  in ConnectFixedChannelServices()  local
47 if (link != nullptr) { in ConnectFixedChannelServices()
52 if (link->IsFixedChannelAllocated(fixed_channel_service.first)) { in ConnectFixedChannelServices()
57 auto fixed_channel_impl = link->AllocateFixedChannel(fixed_channel_service.first); in ConnectFixedChannelServices()
90 auto* link = GetLink(device); in ConnectDynamicChannelServices() local
91 if (link == nullptr) { in ConnectDynamicChannelServices()
102link->SendConnectionRequest(psm, link->ReserveDynamicChannel(), std::move(pending_dynamic_channel_… in ConnectDynamicChannelServices()
106 auto* link = GetLink(remote); in InitiateConnectionForSecurity() local
107 if (link != nullptr) { in InitiateConnectionForSecurity()
146 auto link = GetLink(remote); in handle_link_security_hold() local
147 if (link == nullptr) { in handle_link_security_hold()
151 link->AcquireSecurityHold(); in handle_link_security_hold()
155 auto link = GetLink(remote); in handle_link_security_release() local
156 if (link == nullptr) { in handle_link_security_release()
160 link->ReleaseSecurityHold(); in handle_link_security_release()
164 auto link = GetLink(remote); in handle_link_security_disconnect() local
165 if (link == nullptr) { in handle_link_security_disconnect()
169 link->Disconnect(); in handle_link_security_disconnect()
173 auto link = GetLink(remote); in handle_link_security_ensure_authenticated() local
174 if (link == nullptr) { in handle_link_security_ensure_authenticated()
178 link->Authenticate(); in handle_link_security_ensure_authenticated()
182 auto link = GetLink(remote); in handle_link_security_ensure_encrypted() local
183 if (link == nullptr) { in handle_link_security_ensure_encrypted()
187 link->Encrypt(); in handle_link_security_ensure_encrypted()
196 LinkSecurityInterfaceImpl(os::Handler* handler, LinkManager* link_manager, Link* link) in LinkSecurityInterfaceImpl() argument
199 remote_(link->GetDevice().GetAddress()), in LinkSecurityInterfaceImpl()
200 acl_handle_(link->GetAclHandle()) {} in LinkSecurityInterfaceImpl()
247 auto* link = GetLink(device); in OnConnectSuccess() local
248 ASSERT(link != nullptr); in OnConnectSuccess()
249 link->SendInformationRequest(InformationRequestInfoType::EXTENDED_FEATURES_SUPPORTED); in OnConnectSuccess()
250 link->SendInformationRequest(InformationRequestInfoType::FIXED_CHANNELS_SUPPORTED); in OnConnectSuccess()
251 link->ReadRemoteVersionInformation(); in OnConnectSuccess()
252 link->ReadRemoteSupportedFeatures(); in OnConnectSuccess()
253 link->ReadRemoteExtendedFeatures(1); in OnConnectSuccess()
258 auto fixed_channel_impl = link->AllocateFixedChannel(fixed_channel_service.first); in OnConnectSuccess()
265 link->SetPendingDynamicChannels(psm_list, std::move(callback_list)); in OnConnectSuccess()
272 … link_property_listener_, &LinkPropertyListener::OnLinkConnected, device, link->GetAclHandle()); in OnConnectSuccess()
280 std::make_unique<LinkSecurityInterfaceImpl>(l2cap_handler_, this, link)); in OnConnectSuccess()
326 auto* link = GetLink(device); in OnDisconnect() local
327 …ASSERT_LOG(link != nullptr, "Device %s is disconnected with reason 0x%x, but not in local database… in OnDisconnect()