/system/bt/gd/l2cap/internal/ |
D | dynamic_channel_allocator.cc | 30 …:shared_ptr<DynamicChannelImpl> DynamicChannelAllocator::AllocateChannel(Psm psm, Cid remote_cid) { in AllocateChannel() argument 33 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateChannel() 34 LOG_INFO("Remote cid 0x%x is used", remote_cid); in AllocateChannel() 46 …channels_.try_emplace(cid, std::make_shared<DynamicChannelImpl>(psm, cid, remote_cid, link_, l2cap… in AllocateChannel() 50 used_remote_cid_.insert(remote_cid); in AllocateChannel() 56 … Cid remote_cid) { in AllocateReservedChannel() argument 59 if (used_remote_cid_.find(remote_cid) != used_remote_cid_.end()) { in AllocateReservedChannel() 60 LOG_INFO("Remote cid 0x%x is used", remote_cid); in AllocateReservedChannel() 64 …reserved_cid, std::make_shared<DynamicChannelImpl>(psm, reserved_cid, remote_cid, link_, l2cap_han… in AllocateReservedChannel() 68 used_remote_cid_.insert(remote_cid); in AllocateReservedChannel() [all …]
|
D | dynamic_channel_allocator_test.cc | 68 Cid remote_cid = kFirstDynamicChannel; in TEST_F() local 69 auto channel = channel_allocator_->AllocateChannel(psm, remote_cid); in TEST_F() 79 Cid remote_cid = kFirstDynamicChannel; in TEST_F() local 81 auto channel = channel_allocator_->AllocateReservedChannel(reserved, psm, remote_cid); in TEST_F()
|
D | basic_mode_channel_data_controller.cc | 25 BasicModeDataController::BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channe… in BasicModeDataController() argument 27 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in BasicModeDataController()
|
D | dynamic_channel_allocator.h | 48 std::shared_ptr<DynamicChannelImpl> AllocateChannel(Psm psm, Cid remote_cid); 50 …:shared_ptr<DynamicChannelImpl> AllocateReservedChannel(Cid reserved_cid, Psm psm, Cid remote_cid);
|
D | dynamic_channel_impl.cc | 32 DynamicChannelImpl::DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* li… in DynamicChannelImpl() argument 34 : psm_(psm), cid_(cid), remote_cid_(remote_cid), link_(link), l2cap_handler_(l2cap_handler), in DynamicChannelImpl()
|
D | ilink.h | 32 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) = 0;
|
D | le_credit_based_channel_data_controller.cc | 28 LeCreditBasedDataController::LeCreditBasedDataController(ILink* link, Cid cid, Cid remote_cid, in LeCreditBasedDataController() argument 31 …: cid_(cid), remote_cid_(remote_cid), enqueue_buffer_(channel_queue_end), handler_(handler), sched… in LeCreditBasedDataController()
|
D | basic_mode_channel_data_controller.h | 44 …BasicModeDataController(Cid cid, Cid remote_cid, UpperQueueDownEnd* channel_queue_end, os::Handler…
|
D | dynamic_channel_impl.h | 37 …DynamicChannelImpl(Psm psm, Cid cid, Cid remote_cid, l2cap::internal::ILink* link, os::Handler* l2…
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager.h | 71 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid); 79 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid); 81 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Cid cid, ConnectionResponseResult re… 84 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid); 86 void OnDisconnectionResponse(SignalId signal_id, Cid cid, Cid remote_cid); 105 …void send_connection_response(SignalId signal_id, Cid remote_cid, Cid local_cid, ConnectionRespons… 113 …void send_configuration_request(Cid remote_cid, std::vector<std::unique_ptr<ConfigurationOption>> … 114 void on_security_result_for_incoming(Psm psm, Cid remote_cid, SignalId signal_id, bool result);
|
D | signalling_manager.cc | 122 void ClassicSignallingManager::send_configuration_request(Cid remote_cid, in send_configuration_request() argument 124 …nd pending_command = {next_signal_id_, CommandCode::CONFIGURATION_REQUEST, {}, {}, remote_cid, {}, in send_configuration_request() 133 void ClassicSignallingManager::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 135 next_signal_id_, CommandCode::DISCONNECTION_REQUEST, {}, local_cid, remote_cid, {}, {}}; in SendDisconnectionRequest() 160 void ClassicSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid) { in OnConnectionRequest() argument 162 LOG_WARN("Invalid psm received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest() 163 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::PSM_NOT_SUP… in OnConnectionRequest() 168 if (remote_cid == kInvalidCid) { in OnConnectionRequest() 169 LOG_WARN("Invalid remote cid received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest() 170 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::INVALID_CID, in OnConnectionRequest() [all …]
|
D | link.cc | 200 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 201 signalling_manager_.SendDisconnectionRequest(local_cid, remote_cid); in SendDisconnectionRequest() 208 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument 209 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel() 218 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument 219 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
|
D | link.h | 120 virtual void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 122 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid); 125 … Cid remote_cid);
|
/system/bt/hci/include/ |
D | btsnoop.h | 36 uint16_t remote_cid); 49 uint16_t remote_cid); 53 uint16_t remote_cid);
|
D | bt_vendor_lib.h | 370 uint16_t remote_cid; member
|
/system/bt/hci/src/ |
D | btsnoop.cc | 115 void addL2cCid(uint16_t local_cid, uint16_t remote_cid) { in addL2cCid() argument 117 l2c_remote_cid.insert(remote_cid); in addL2cCid() 121 void setRfcCid(uint16_t local_cid, uint16_t remote_cid) { in setRfcCid() argument 123 rfc_remote_cid = remote_cid; in setRfcCid() 127 void removeL2cCid(uint16_t local_cid, uint16_t remote_cid) { in removeL2cCid() argument 136 l2c_remote_cid.erase(remote_cid); in removeL2cCid() 294 uint16_t remote_cid) { in whitelist_l2c_channel() argument 297 << " cid=" << loghex(local_cid) << ":" << loghex(remote_cid); in whitelist_l2c_channel() 305 filter_list[conn_handle].addL2cCid(local_cid, remote_cid); in whitelist_l2c_channel() 322 uint16_t remote_cid) { in add_rfc_l2c_channel() argument [all …]
|
/system/bt/gd/l2cap/le/internal/ |
D | signalling_manager.h | 104 void SendDisconnectRequest(Cid local_cid, Cid remote_cid); 122 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps, 125 …void OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_t mps, uint16_t init… 128 void OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid); 130 void OnDisconnectionResponse(SignalId signal_id, Cid cid, Cid remote_cid); 132 void OnCredit(Cid remote_cid, uint16_t credits); 136 Cid remote_cid; member
|
D | signalling_manager.cc | 170 void LeSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu,… in OnConnectionRequest() argument 173 LOG_WARN("Invalid psm received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest() 179 if (remote_cid == kInvalidCid) { in OnConnectionRequest() 180 LOG_WARN("Invalid remote cid received from remote psm:%d remote_cid:%d", psm, remote_cid); in OnConnectionRequest() 201 .remote_cid = remote_cid, in OnConnectionRequest() 245 auto new_channel = link_->AllocateDynamicChannel(psm, request.remote_cid); in on_security_result_for_incoming() 265 void LeSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remote_cid, Mtu mtu, uint16_… in OnConnectionResponse() argument 284 …llocateReservedDynamicChannel(command_just_sent_.source_cid_, command_just_sent_.psm_, remote_cid); in OnConnectionResponse() 301 void LeSignallingManager::OnDisconnectionRequest(SignalId signal_id, Cid cid, Cid remote_cid) { in OnDisconnectionRequest() argument 307 if (channel->GetRemoteCid() != remote_cid) { in OnDisconnectionRequest() [all …]
|
D | link.cc | 162 void Link::SendDisconnectionRequest(Cid local_cid, Cid remote_cid) { in SendDisconnectionRequest() argument 164 if (channel == nullptr || channel->GetRemoteCid() != remote_cid) { in SendDisconnectionRequest() 167 signalling_manager_.SendDisconnectRequest(local_cid, remote_cid); in SendDisconnectionRequest() 185 …ed_ptr<l2cap::internal::DynamicChannelImpl> Link::AllocateDynamicChannel(Psm psm, Cid remote_cid) { in AllocateDynamicChannel() argument 186 auto channel = dynamic_channel_allocator_.AllocateChannel(psm, remote_cid); in AllocateDynamicChannel() 197 … Cid remote_cid) { in AllocateReservedDynamicChannel() argument 198 auto channel = dynamic_channel_allocator_.AllocateReservedChannel(reserved_cid, psm, remote_cid); in AllocateReservedDynamicChannel()
|
D | link.h | 106 void SendDisconnectionRequest(Cid local_cid, Cid remote_cid) override; 111 …d::shared_ptr<l2cap::internal::DynamicChannelImpl> AllocateDynamicChannel(Psm psm, Cid remote_cid); 114 … Cid remote_cid);
|
/system/bt/main/shim/ |
D | l2cap.h | 73 uint16_t remote_cid, bool connected); 76 uint16_t remote_cid); 95 bool GetRemoteCid(uint16_t cid, uint16_t* remote_cid);
|
D | l2cap.cc | 260 std::string string_address, uint16_t psm, uint16_t cid, uint16_t remote_cid, in OnLocalInitiatedConnectionCreated() argument 262 cid_to_remote_cid_map_[cid] = remote_cid; in OnLocalInitiatedConnectionCreated() 285 uint16_t remote_cid) { in OnRemoteInitiatedConnectionCreated() argument 296 cid_to_remote_cid_map_[cid] = remote_cid; in OnRemoteInitiatedConnectionCreated() 424 uint16_t* remote_cid) { in GetRemoteCid() argument 430 *remote_cid = it->second; in GetRemoteCid()
|
/system/bt/stack/l2cap/ |
D | l2c_main.cc | 347 if ((p_ccb != NULL) && (p_ccb->remote_cid == rcid)) { in process_l2cap_cmd() 399 p_ccb->remote_cid = rcid; in process_l2cap_cmd() 403 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 406 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 416 STREAM_TO_UINT16(con_info.remote_cid, p); in process_l2cap_cmd() 424 lcid, con_info.remote_cid); in process_l2cap_cmd() 443 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 446 p_lcb->handle, p_ccb->local_cid, p_ccb->remote_cid); in process_l2cap_cmd() 705 if (p_ccb->remote_cid == rcid) { in process_l2cap_cmd() 723 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) { in process_l2cap_cmd()
|
D | l2c_csm.cc | 477 p_ccb->remote_cid); in l2c_csm_term_w4_sec_comp() 538 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp() 555 p_ccb->remote_cid = p_ci->remote_cid; in l2c_csm_w4_l2cap_connect_rsp() 583 if (p_ccb->remote_cid != 0) { in l2c_csm_w4_l2cap_connect_rsp() 1176 p_ccb->remote_cid); in l2c_csm_w4_l2cap_disconnect_rsp() 1232 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp() 1243 p_ccb->remote_cid); in l2c_csm_w4_l2ca_disconnect_rsp() 1375 UINT16_TO_STREAM(p, p_ccb->remote_cid); in l2c_enqueue_peer_data() 1383 p_ccb->remote_cid); in l2c_enqueue_peer_data()
|
D | l2c_ble.cc | 624 p_ccb->remote_cid = rcid; in l2cble_process_sig_cmd() 657 STREAM_TO_UINT16(p_ccb->remote_cid, p); in l2cble_process_sig_cmd() 662 con_info.remote_cid = p_ccb->remote_cid; in l2cble_process_sig_cmd() 670 p_ccb->remote_cid, p_ccb->peer_conn_cfg.mtu, in l2cble_process_sig_cmd() 731 if (p_ccb->remote_cid == rcid) { in l2cble_process_sig_cmd() 751 if ((p_ccb->remote_cid == rcid) && (p_ccb->local_id == id)) in l2cble_process_sig_cmd()
|