Lines Matching refs:connection
223 ASSERT_LOG(acl_interface.connection.classic.on_connected != nullptr, in ValidateAclInterface()
225 ASSERT_LOG(acl_interface.connection.classic.on_failed != nullptr, in ValidateAclInterface()
228 acl_interface.connection.classic.on_disconnected != nullptr, in ValidateAclInterface()
231 ASSERT_LOG(acl_interface.connection.le.on_connected != nullptr, in ValidateAclInterface()
233 ASSERT_LOG(acl_interface.connection.le.on_failed != nullptr, in ValidateAclInterface()
235 ASSERT_LOG(acl_interface.connection.le.on_disconnected != nullptr, in ValidateAclInterface()
379 std::unique_ptr<hci::acl_manager::ClassicAclConnection> connection, in ClassicShimAclConnection() argument
381 : ShimAclConnection(connection->GetHandle(), send_data_upwards, handler, in ClassicShimAclConnection()
382 connection->GetAclQueueEnd(), creation_time), in ClassicShimAclConnection()
385 connection_(std::move(connection)) {} in ClassicShimAclConnection()
597 std::unique_ptr<hci::acl_manager::LeAclConnection> connection, in LeShimAclConnection() argument
599 : ShimAclConnection(connection->GetHandle(), send_data_upwards, handler, in LeShimAclConnection()
600 connection->GetAclQueueEnd(), creation_time), in LeShimAclConnection()
603 connection_(std::move(connection)) {} in LeShimAclConnection()
713 for (auto& connection : handle_to_classic_connection_map_) { in ShutdownClassicConnections() local
714 connection.second->Shutdown(); in ShutdownClassicConnections()
722 for (auto& connection : handle_to_le_connection_map_) { in ShutdownLeConnections() local
723 connection.second->Shutdown(); in ShutdownLeConnections()
731 for (auto& connection : handle_to_classic_connection_map_) { in FinalShutdown() local
732 connection.second->Shutdown(); in FinalShutdown()
740 for (auto& connection : handle_to_le_connection_map_) { in FinalShutdown() local
741 connection.second->Shutdown(); in FinalShutdown()
788 auto connection = handle_to_classic_connection_map_.find(handle); in disconnect_classic() local
789 if (connection != handle_to_classic_connection_map_.end()) { in disconnect_classic()
790 auto remote_address = connection->second->GetRemoteAddress(); in disconnect_classic()
791 connection->second->InitiateDisconnect( in disconnect_classic()
804 auto connection = handle_to_le_connection_map_.find(handle); in disconnect_le() local
805 if (connection != handle_to_le_connection_map_.end()) { in disconnect_le()
807 connection->second->GetRemoteAddressWithType(); in disconnect_le()
808 connection->second->InitiateDisconnect( in disconnect_le()
1059 TRY_POSTING_ON_MAIN(acl_interface_.connection.sco.on_disconnected, in Acl()
1078 for (const auto& connection : pimpl_->handle_to_classic_connection_map_) { in CheckForOrphanedAclConnections() local
1080 connection.second->Handle(), in CheckForOrphanedAclConnections()
1081 PRIVATE_ADDRESS(connection.second->GetRemoteAddress()), in CheckForOrphanedAclConnections()
1084 connection.second->GetCreationTime()) in CheckForOrphanedAclConnections()
1092 for (const auto& connection : pimpl_->handle_to_le_connection_map_) { in CheckForOrphanedAclConnections() local
1094 connection.second->Handle(), in CheckForOrphanedAclConnections()
1095 PRIVATE_ADDRESS(connection.second->GetRemoteAddressWithType()), in CheckForOrphanedAclConnections()
1098 connection.second->GetCreationTime()) in CheckForOrphanedAclConnections()
1170 TRY_POSTING_ON_MAIN(acl_interface_.connection.classic.on_disconnected, in OnClassicLinkDisconnected()
1189 for (auto& [handle, connection] : pimpl_->handle_to_le_connection_map_) { in GetConnectionLocalAddress()
1190 if (connection->GetRemoteAddressWithType().GetAddress() == remote_address) { in GetConnectionLocalAddress()
1191 return connection->GetLocalAddressWithType(); in GetConnectionLocalAddress()
1210 TRY_POSTING_ON_MAIN(acl_interface_.connection.le.on_disconnected, in OnLeLinkDisconnected()
1227 std::unique_ptr<hci::acl_manager::ClassicAclConnection> connection) { in OnConnectSuccess() argument
1228 ASSERT(connection != nullptr); in OnConnectSuccess()
1229 auto handle = connection->GetHandle(); in OnConnectSuccess()
1230 bool locally_initiated = connection->locally_initiated_; in OnConnectSuccess()
1231 const hci::Address remote_address = connection->GetAddress(); in OnConnectSuccess()
1239 acl_interface_.link.classic, handler_, std::move(connection), in OnConnectSuccess()
1245 TRY_POSTING_ON_MAIN(acl_interface_.connection.classic.on_connected, bd_addr, in OnConnectSuccess()
1258 TRY_POSTING_ON_MAIN(acl_interface_.connection.classic.on_failed, bd_addr, in OnConnectFail()
1273 TRY_POSTING_ON_MAIN(acl_interface_.connection.sco.on_esco_connect_request, in HACK_OnEscoConnectRequest()
1286 TRY_POSTING_ON_MAIN(acl_interface_.connection.sco.on_sco_connect_request, in HACK_OnScoConnectRequest()
1294 std::unique_ptr<hci::acl_manager::LeAclConnection> connection) { in OnLeConnectSuccess() argument
1295 ASSERT(connection != nullptr); in OnLeConnectSuccess()
1296 auto handle = connection->GetHandle(); in OnLeConnectSuccess()
1298 hci::Role connection_role = connection->GetRole(); in OnLeConnectSuccess()
1299 bool locally_initiated = connection->locally_initiated_; in OnLeConnectSuccess()
1306 acl_interface_.link.le, handler_, std::move(connection), in OnLeConnectSuccess()
1329 acl_interface_.connection.le.on_connected, legacy_address_with_type, in OnLeConnectSuccess()
1349 TRY_POSTING_ON_MAIN(acl_interface_.connection.le.on_failed, in OnLeConnectFail()
1421 TRY_POSTING_ON_MAIN(acl_interface_.connection.sco.on_disconnected, handle, in HACK_OnScoDisconnected()