Lines Matching refs:l2cap
61 using PendingConnectionOpen = std::function<void(std::unique_ptr<l2cap::classic::DynamicChannel>)>;
62 using PendingConnectionFail = std::function<void(l2cap::classic::DynamicChannelManager::ConnectionR…
63 using RegisterServiceComplete = std::function<void(l2cap::Psm, bool is_registered)>;
66 … std::function<void(ConnectionCompleteCallback, std::unique_ptr<l2cap::classic::DynamicChannel>)>;
82 std::unique_ptr<l2cap::classic::DynamicChannel> channel, in ConnectionInterface()
175 const std::unique_ptr<l2cap::classic::DynamicChannel> channel_;
195 …void AddConnection(ConnectionInterfaceDescriptor cid, std::unique_ptr<l2cap::classic::DynamicChann…
209 l2cap::Psm psm, in ConnectionOpened()
211 l2cap::Cid remote_cid) { in ConnectionOpened()
223 …ConnectionCompleteCallback on_complete, hci::Address address, l2cap::Psm psm, ConnectionInterfaceD… in ConnectionFailed()
282 ConnectionInterfaceDescriptor cid, std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in AddConnection()
331 l2cap::Psm psm, in PendingConnection()
343 void OnConnectionOpen(std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in OnConnectionOpen()
350 void OnConnectionFailure(l2cap::classic::DynamicChannelManager::ConnectionResult result) { in OnConnectionFailure()
353 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::SUCCESS: in OnConnectionFailure()
356 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::FAIL_NO_SERVICE_REGISTERED: in OnConnectionFailure()
360 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::FAIL_HCI_ERROR: in OnConnectionFailure()
363 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::FAIL_L2CAP_ERROR: in OnConnectionFailure()
367 l2cap::ConnectionResponseResultText(result.l2cap_connection_response_result).c_str()); in OnConnectionFailure()
369 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::FAIL_REMOTE_NOT_SUPPORT: in OnConnectionFailure()
372 case l2cap::classic::DynamicChannelManager::ConnectionResultCode::FAIL_SECURITY_BLOCK: in OnConnectionFailure()
384 const l2cap::Psm psm_;
397 l2cap::Psm psm,
398 l2cap::classic::DynamicChannelConfigurationOption option,
401 void UnregisterService(l2cap::Psm psm, UnregisterServicePromise unregister_promise);
404 l2cap::Psm psm,
417 impl(L2cap& module, l2cap::classic::L2capClassicModule* l2cap_module);
421 l2cap::classic::L2capClassicModule* l2cap_module_;
425 std::unique_ptr<l2cap::classic::DynamicChannelManager> dynamic_channel_manager_;
427 …std::unordered_map<l2cap::Psm, std::unique_ptr<l2cap::classic::DynamicChannelService>> psm_to_serv…
435 std::unique_ptr<l2cap::classic::DynamicChannel> channel);
439 l2cap::classic::DynamicChannelManager::ConnectionResult result);
440 l2cap::classic::SecurityPolicy GetSecurityPolicy(l2cap::Psm psm) const;
445 L2cap::impl::impl(L2cap& module, l2cap::classic::L2capClassicModule* l2cap_module) in impl()
453 l2cap::classic::SecurityPolicy L2cap::impl::GetSecurityPolicy(l2cap::Psm psm) const { in GetSecurityPolicy()
455 return l2cap::classic::SecurityPolicy::_SDP_ONLY_NO_SECURITY_WHATSOEVER_PLAINTEXT_TRANSPORT_OK; in GetSecurityPolicy()
457 return l2cap::classic::SecurityPolicy::ENCRYPTED_TRANSPORT; in GetSecurityPolicy()
462 l2cap::Psm psm, in RegisterService()
463 l2cap::classic::DynamicChannelConfigurationOption option, in RegisterService()
466 const l2cap::classic::SecurityPolicy security_policy = GetSecurityPolicy(psm); in RegisterService()
474 std::unordered_map<l2cap::Psm, std::unique_ptr<l2cap::classic::DynamicChannelService>>* in RegisterService()
476 l2cap::classic::DynamicChannelManager::RegistrationResult result, in RegisterService()
477 std::unique_ptr<l2cap::classic::DynamicChannelService> service) { in RegisterService()
478 std::unique_ptr<l2cap::classic::DynamicChannelService> service_ = std::move(service); in RegisterService()
480 case l2cap::classic::DynamicChannelManager::RegistrationResult::SUCCESS: in RegisterService()
485 … case l2cap::classic::DynamicChannelManager::RegistrationResult::FAIL_DUPLICATE_SERVICE: in RegisterService()
487 register_promise.set_value(l2cap::kDefaultPsm); in RegisterService()
489 case l2cap::classic::DynamicChannelManager::RegistrationResult::FAIL_INVALID_SERVICE: in RegisterService()
491 register_promise.set_value(l2cap::kDefaultPsm); in RegisterService()
498 [](l2cap::Psm psm, in RegisterService()
501 std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in RegisterService()
515 void L2cap::impl::UnregisterService(l2cap::Psm psm, UnregisterServicePromise unregister_promise) { in UnregisterService()
519 [](std::unordered_map<l2cap::Psm, std::unique_ptr<l2cap::classic::DynamicChannelService>>* in UnregisterService()
522 l2cap::Psm psm) { in UnregisterService()
534 std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in PendingConnectionOpen()
545 l2cap::classic::DynamicChannelManager::ConnectionResult result) { in PendingConnectionFail()
553 l2cap::Psm psm, in CreateConnection()
573 [this, id](std::unique_ptr<l2cap::classic::DynamicChannel> channel) { in CreateConnection()
577 [this, id](l2cap::classic::DynamicChannelManager::ConnectionResult result) { in CreateConnection()
584 l2cap::classic::DynamicChannelConfigurationOption(), in CreateConnection()
616 l2cap::Psm psm{raw_psm}; in RegisterClassicService()
617 l2cap::classic::DynamicChannelConfigurationOption option; in RegisterClassicService()
620 …l2cap::classic::DynamicChannelConfigurationOption::RetransmissionAndFlowControlMode::ENHANCED_RETR… in RegisterClassicService()
633 l2cap::Psm psm{raw_psm}; in UnregisterClassicService()
643 l2cap::Psm psm{raw_psm}; in CreateClassicConnection()
687 list->add<l2cap::classic::L2capClassicModule>(); in ListDependencies()
691 pimpl_ = std::make_unique<impl>(*this, GetDependency<l2cap::classic::L2capClassicModule>()); in Start()