Home
last modified time | relevance | path

Searched refs:acl_connection (Results 1 – 14 of 14) sorted by relevance

/system/bt/gd/hci/
Dacl_manager.cc63 struct AclManager::acl_connection { struct in bluetooth::hci::AclManager
64 acl_connection(AddressWithType address_with_type, os::Handler* handler) in acl_connection() function
144 …handler_, common::Bind(&AclManager::acl_connection::on_incoming_data_ready, common::Unretained(thi… in on_incoming_packet()
270 void handle_dequeue_from_upper(std::map<uint16_t, acl_connection>::iterator connection_pair) { in handle_dequeue_from_upper()
501 auto& acl_connection = acl_connections_.find(handle)->second; in on_disconnection_complete() local
502 acl_connection.is_disconnected_ = true; in on_disconnection_complete()
503 acl_connection.disconnect_reason_ = disconnection_complete.GetReason(); in on_disconnection_complete()
504 acl_connection.call_disconnect_callback(); in on_disconnection_complete()
506 acl_packet_credits_ += acl_connection.number_of_sent_packets_; in on_disconnection_complete()
507 acl_connection.number_of_sent_packets_ = 0; in on_disconnection_complete()
[all …]
Dacl_manager.h259 struct acl_connection;
/system/bt/gd/l2cap/classic/internal/
Dlink_manager_test.cc122 std::unique_ptr<MockAclConnection> acl_connection = std::make_unique<MockAclConnection>(); in TEST_F() local
123 EXPECT_CALL(*acl_connection, GetAddress()).WillRepeatedly(Return(device)); in TEST_F()
124 …EXPECT_CALL(*acl_connection, GetAddressType()).WillRepeatedly(Return(hci::AddressType::PUBLIC_DEVI… in TEST_F()
125 EXPECT_CALL(*acl_connection, RegisterCallbacks(_, l2cap_handler_)).Times(1); in TEST_F()
126 EXPECT_CALL(*acl_connection, RegisterDisconnectCallback(_, l2cap_handler_)).Times(1); in TEST_F()
127 EXPECT_CALL(*acl_connection, UnregisterCallbacks(_)).Times(1); in TEST_F()
143 … common::Unretained(hci_connection_callbacks), std::move(acl_connection))); in TEST_F()
294 std::unique_ptr<MockAclConnection> acl_connection(raw_acl_connection); in TEST_F() local
295 EXPECT_CALL(*acl_connection, GetAddress()).WillRepeatedly(Return(device)); in TEST_F()
296 …EXPECT_CALL(*acl_connection, GetAddressType()).WillRepeatedly(Return(hci::AddressType::PUBLIC_DEVI… in TEST_F()
[all …]
Dlink_mock.h39 std::unique_ptr<hci::AclConnection> acl_connection) in MockLink() argument
40 : Link(handler, std::move(acl_connection), parameter_provider, nullptr, nullptr){}; in MockLink()
Dlink_manager.cc128 void LinkManager::OnConnectSuccess(std::unique_ptr<hci::AclConnection> acl_connection) { in OnConnectSuccess() argument
130 hci::Address device = acl_connection->GetAddress(); in OnConnectSuccess()
132 acl_connection->GetAddress().ToString().c_str()); in OnConnectSuccess()
134 acl_connection->RegisterDisconnectCallback( in OnConnectSuccess()
136 links_.try_emplace(device, l2cap_handler_, std::move(acl_connection), parameter_provider_, in OnConnectSuccess()
Dlink_manager.h62 void OnConnectSuccess(std::unique_ptr<hci::AclConnection> acl_connection) override;
Dlink.cc32 Link::Link(os::Handler* l2cap_handler, std::unique_ptr<hci::AclConnection> acl_connection, in Link() argument
36 : l2cap_handler_(l2cap_handler), acl_connection_(std::move(acl_connection)), in Link()
Dlink.h44 Link(os::Handler* l2cap_handler, std::unique_ptr<hci::AclConnection> acl_connection,
/system/bt/gd/l2cap/le/internal/
Dlink_manager.cc104 std::unique_ptr<hci::AclConnection> acl_connection) { in OnLeConnectSuccess() argument
106 …hci::AddressWithType connected_address_with_type(acl_connection->GetAddress(), acl_connection->Get… in OnLeConnectSuccess()
108 acl_connection->GetAddress().ToString().c_str()); in OnLeConnectSuccess()
110 acl_connection->RegisterDisconnectCallback( in OnLeConnectSuccess()
113 …links_.try_emplace(connected_address_with_type, l2cap_handler_, std::move(acl_connection), paramet… in OnLeConnectSuccess()
Dlink_manager_test.cc120 std::unique_ptr<MockAclConnection> acl_connection = std::make_unique<MockAclConnection>(); in TEST_F() local
121 EXPECT_CALL(*acl_connection, RegisterDisconnectCallback(_, l2cap_handler_)).Times(1); in TEST_F()
122 EXPECT_CALL(*acl_connection, GetAddress()).WillRepeatedly(Return(address_with_type.GetAddress())); in TEST_F()
123 …EXPECT_CALL(*acl_connection, GetAddressType()).WillRepeatedly(Return(address_with_type.GetAddressT… in TEST_F()
140 std::move(acl_connection))); in TEST_F()
300 std::unique_ptr<MockAclConnection> acl_connection(raw_acl_connection); in TEST_F() local
301 EXPECT_CALL(*acl_connection, GetAddress()).WillRepeatedly(Return(address_with_type.GetAddress())); in TEST_F()
302 …EXPECT_CALL(*acl_connection, GetAddressType()).WillRepeatedly(Return(address_with_type.GetAddressT… in TEST_F()
319 std::move(acl_connection))); in TEST_F()
382 std::unique_ptr<MockAclConnection> acl_connection(raw_acl_connection); in TEST_F() local
[all …]
Dlink_manager.h61 std::unique_ptr<hci::AclConnection> acl_connection) override;
Dlink.cc33 Link::Link(os::Handler* l2cap_handler, std::unique_ptr<hci::AclConnection> acl_connection, in Link() argument
37 : l2cap_handler_(l2cap_handler), acl_connection_(std::move(acl_connection)), in Link()
Dlink.h42 Link(os::Handler* l2cap_handler, std::unique_ptr<hci::AclConnection> acl_connection,
/system/bt/vendor_libs/test_vendor_lib/
DAndroid.bp10 "model/controller/acl_connection.cc",