Loading system/gd/hci/acl_manager.cc +4 −2 Original line number Diff line number Diff line Loading @@ -281,7 +281,8 @@ struct AclManager::impl { if (acl_connections_.size() == 1 && packet_to_send_ == nullptr) { start_round_robin(); } std::unique_ptr<AclConnection> connection_proxy(new AclConnection(&acl_manager_, handle, address)); std::unique_ptr<AclConnection> connection_proxy( new AclConnection(&acl_manager_, handle, address, peer_address_type)); le_client_handler_->Post(common::BindOnce(&LeConnectionCallbacks::OnLeConnectSuccess, common::Unretained(le_client_callbacks_), std::move(connection_proxy))); } Loading @@ -306,7 +307,8 @@ struct AclManager::impl { if (acl_connections_.size() == 1 && packet_to_send_ == nullptr) { start_round_robin(); } std::unique_ptr<AclConnection> connection_proxy(new AclConnection(&acl_manager_, handle, address)); std::unique_ptr<AclConnection> connection_proxy( new AclConnection(&acl_manager_, handle, address, peer_address_type)); le_client_handler_->Post(common::BindOnce(&LeConnectionCallbacks::OnLeConnectSuccess, common::Unretained(le_client_callbacks_), std::move(connection_proxy))); } Loading system/gd/hci/acl_manager.h +7 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,10 @@ class AclConnection { return address_; } virtual AddressType GetAddressType() const { return address_type_; } uint16_t GetHandle() const { return handle_; } Loading Loading @@ -139,9 +143,12 @@ class AclConnection { friend AclManager; AclConnection(AclManager* manager, uint16_t handle, Address address) : manager_(manager), handle_(handle), address_(address) {} AclConnection(AclManager* manager, uint16_t handle, Address address, AddressType address_type) : manager_(manager), handle_(handle), address_(address), address_type_(address_type) {} AclManager* manager_; uint16_t handle_; Address address_; AddressType address_type_; DISALLOW_COPY_AND_ASSIGN(AclConnection); }; Loading Loading
system/gd/hci/acl_manager.cc +4 −2 Original line number Diff line number Diff line Loading @@ -281,7 +281,8 @@ struct AclManager::impl { if (acl_connections_.size() == 1 && packet_to_send_ == nullptr) { start_round_robin(); } std::unique_ptr<AclConnection> connection_proxy(new AclConnection(&acl_manager_, handle, address)); std::unique_ptr<AclConnection> connection_proxy( new AclConnection(&acl_manager_, handle, address, peer_address_type)); le_client_handler_->Post(common::BindOnce(&LeConnectionCallbacks::OnLeConnectSuccess, common::Unretained(le_client_callbacks_), std::move(connection_proxy))); } Loading @@ -306,7 +307,8 @@ struct AclManager::impl { if (acl_connections_.size() == 1 && packet_to_send_ == nullptr) { start_round_robin(); } std::unique_ptr<AclConnection> connection_proxy(new AclConnection(&acl_manager_, handle, address)); std::unique_ptr<AclConnection> connection_proxy( new AclConnection(&acl_manager_, handle, address, peer_address_type)); le_client_handler_->Post(common::BindOnce(&LeConnectionCallbacks::OnLeConnectSuccess, common::Unretained(le_client_callbacks_), std::move(connection_proxy))); } Loading
system/gd/hci/acl_manager.h +7 −0 Original line number Diff line number Diff line Loading @@ -89,6 +89,10 @@ class AclConnection { return address_; } virtual AddressType GetAddressType() const { return address_type_; } uint16_t GetHandle() const { return handle_; } Loading Loading @@ -139,9 +143,12 @@ class AclConnection { friend AclManager; AclConnection(AclManager* manager, uint16_t handle, Address address) : manager_(manager), handle_(handle), address_(address) {} AclConnection(AclManager* manager, uint16_t handle, Address address, AddressType address_type) : manager_(manager), handle_(handle), address_(address), address_type_(address_type) {} AclManager* manager_; uint16_t handle_; Address address_; AddressType address_type_; DISALLOW_COPY_AND_ASSIGN(AclConnection); }; Loading