/system/bt/gd/l2cap/ |
D | signal_id_test.cc | 29 SignalId signal_id(i); in TEST() local 30 if (signal_id.IsValid()) { in TEST() 38 SignalId signal_id(0); in TEST() local 39 ASSERT_FALSE(signal_id.IsValid()); in TEST() 43 SignalId signal_id(0); in TEST() local 44 ASSERT_FALSE(signal_id.IsValid()); in TEST() 46 for (uint8_t i = 0; i != 0xff; ++i, ++signal_id) { in TEST() 47 ASSERT_TRUE(i == signal_id.Value()); in TEST() 52 SignalId signal_id(0); in TEST() local 53 ASSERT_FALSE(signal_id.IsValid()); in TEST() [all …]
|
/system/bt/gd/l2cap/classic/internal/ |
D | signalling_manager.h | 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); 88 void OnConfigurationRequest(SignalId signal_id, Cid cid, Continuation is_continuation, 91 void OnConfigurationResponse(SignalId signal_id, Cid cid, Continuation is_continuation, 94 void OnEchoRequest(SignalId signal_id, const PacketView<kLittleEndian>& packet); 96 void OnEchoResponse(SignalId signal_id, const PacketView<kLittleEndian>& packet); 98 void OnInformationRequest(SignalId signal_id, InformationRequestInfoType type); 100 void OnInformationResponse(SignalId signal_id, const InformationResponseView& response); [all …]
|
D | signalling_manager.cc | 172 void ClassicSignallingManager::OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid) { in OnConnectionRequest() argument 175 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::PSM_NOT_SUP… in OnConnectionRequest() 182 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::INVALID_CID, in OnConnectionRequest() 197 …send_connection_response(signal_id, remote_cid, kInvalidCid, ConnectionResponseResult::PSM_NOT_SUP… in OnConnectionRequest() 206 … this, &ClassicSignallingManager::on_security_result_for_incoming, psm, remote_cid, signal_id)); in OnConnectionRequest() 210 Psm psm, Cid remote_cid, SignalId signal_id, bool result) { in on_security_result_for_incoming() argument 217 signal_id, in on_security_result_for_incoming() 236 signal_id, in on_security_result_for_incoming() 245 void ClassicSignallingManager::OnConnectionResponse(SignalId signal_id, Cid remote_cid, Cid cid, in OnConnectionResponse() argument 247 if (command_just_sent_.signal_id_ != signal_id || in OnConnectionResponse() [all …]
|
/system/bt/gd/l2cap/le/internal/ |
D | signalling_manager.h | 57 …static PendingCommand CreditBasedConnectionRequest(SignalId signal_id, Psm psm, Cid scid, Mtu mtu,… in CreditBasedConnectionRequest() 60 pending_command.signal_id_ = signal_id; in CreditBasedConnectionRequest() 70 static PendingCommand DisconnectionRequest(SignalId signal_id, Cid scid, Cid dcid) { in DisconnectionRequest() 72 pending_command.signal_id_ = signal_id; in DisconnectionRequest() 80 SignalId signal_id, in ConnectionParameterUpdate() 86 pending_command.signal_id_ = signal_id; in ConnectionParameterUpdate() 114 …void SendConnectionParameterUpdateResponse(SignalId signal_id, ConnectionParameterUpdateResponseRe… 127 SignalId signal_id, 132 …void OnConnectionParameterUpdateResponse(SignalId signal_id, ConnectionParameterUpdateResponseResu… 134 void OnConnectionRequest(SignalId signal_id, Psm psm, Cid remote_cid, Mtu mtu, uint16_t mps, [all …]
|
D | signalling_manager.cc | 101 void LeSignallingManager::SendConnectionParameterUpdateResponse(SignalId signal_id, in SendConnectionParameterUpdateResponse() argument 103 auto builder = ConnectionParameterUpdateResponseBuilder::Create(signal_id.Value(), result); in SendConnectionParameterUpdateResponse() 122 auto signal_id = command_reject_view.GetIdentifier(); in OnCommandReject() local 123 if (signal_id != command_just_sent_.signal_id_) { in OnCommandReject() 138 SignalId signal_id, in OnConnectionParameterUpdateRequest() argument 145 auto builder = LeCommandRejectNotUnderstoodBuilder::Create(signal_id.Value()); in OnConnectionParameterUpdateRequest() 152 auto builder = ConnectionParameterUpdateResponseBuilder::Create(signal_id.Value(), in OnConnectionParameterUpdateRequest() 158 signal_id, interval_min, interval_max, peripheral_latency, timeout_multiplier); in OnConnectionParameterUpdateRequest() 161 void LeSignallingManager::OnConnectionParameterUpdateResponse(SignalId signal_id, in OnConnectionParameterUpdateResponse() argument 163 if (signal_id != command_just_sent_.signal_id_) { in OnConnectionParameterUpdateResponse() [all …]
|
D | link.cc | 111 void Link::UpdateConnectionParameterFromRemote(SignalId signal_id, uint16_t conn_interval_min, in UpdateConnectionParameterFromRemote() argument 116 update_request_signal_id_ = signal_id; in UpdateConnectionParameterFromRemote() 286 void Link::on_connection_update_complete(SignalId signal_id, hci::ErrorCode error_code) { in on_connection_update_complete() argument 287 if (!signal_id.IsValid()) { in on_connection_update_complete()
|
D | link.h | 96 virtual void UpdateConnectionParameterFromRemote(SignalId signal_id, uint16_t conn_interval_min, 178 void on_connection_update_complete(SignalId signal_id, hci::ErrorCode error_code);
|
/system/bt/gd/l2cap/le/cert/ |
D | dual_l2cap_test.py | 117 def _open_unconfigured_channel_from_cert(self, signal_id=1, scid=0x0101, psm=0x33): argument 120 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid) 124 def _open_channel_from_cert(self, signal_id=1, scid=0x0101, psm=0x33): argument 125 … (dut_channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm) 132 …def _open_le_coc_from_cert(self, signal_id=1, scid=0x0101, psm=0x35, mtu=1000, mps=100, initial_cr… argument 135 … cert_channel = self.cert_le_l2cap.open_channel(signal_id, psm, scid, mtu, mps, initial_credit)
|
D | le_l2cap_test.py | 89 signal_id=1, argument 117 …def _open_channel_from_cert(self, signal_id=1, scid=0x0101, psm=0x33, mtu=1000, mps=100, initial_c… argument 120 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, mtu, mps, initial_credit) 271 … (dut_channel_x, cert_channel_x) = self._open_channel_from_cert(signal_id=1, scid=0x0103, psm=0x33) 272 … (dut_channel_y, cert_channel_y) = self._open_channel_from_cert(signal_id=2, scid=0x0105, psm=0x35) 273 … (dut_channel_z, cert_channel_z) = self._open_channel_from_cert(signal_id=3, scid=0x0107, psm=0x37)
|
D | cert_le_l2cap.py | 108 def open_channel(self, signal_id, psm, scid, mtu=1000, mps=100, initial_credit=6): argument 110 …l2cap_packets.LeCreditBasedConnectionRequestBuilder(signal_id, psm, scid, mtu, mps, initial_credit…
|
/system/bt/stack/l2cap/ |
D | l2c_utils.cc | 75 p_lcb->signal_id = 1; /* spec does not allow '0' */ in l2cu_allocate_lcb() 267 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected() argument 277 l2cu_send_peer_cmd_reject(p_lcb, L2CAP_CMD_REJ_MTU_EXCEEDED, signal_id, in l2c_is_cmd_rejected() 297 uint8_t signal_id) { in l2cu_build_header() argument 325 UINT8_TO_STREAM(p, signal_id); in l2cu_build_header() 342 if (p_lcb->signal_id == 0) { in l2cu_adj_id() 343 p_lcb->signal_id++; in l2cu_adj_id() 405 p_ccb->p_lcb->signal_id++; in l2cu_send_peer_connect_req() 408 p_ccb->local_id = p_ccb->p_lcb->signal_id; in l2cu_send_peer_connect_req() 522 p_lcb->signal_id++; in l2cu_send_credit_based_reconfig_req() [all …]
|
D | l2c_int.h | 457 uint8_t signal_id; /* Signalling channel id */ member
|
/system/bt/test/mock/ |
D | mock_stack_l2cap_utils.cc | 37 uint8_t signal_id) { in l2cu_build_header() argument 41 bool l2c_is_cmd_rejected(uint8_t cmd_code, uint8_t signal_id, tL2C_LCB* p_lcb) { in l2c_is_cmd_rejected() argument 261 void l2cu_send_peer_echo_rsp(tL2C_LCB* p_lcb, uint8_t signal_id, in l2cu_send_peer_echo_rsp() argument
|
/system/bt/gd/l2cap/classic/cert/ |
D | cert_l2cap.py | 93 signal_id = 3 94 information_request = l2cap_packets.InformationRequestBuilder(signal_id, type) 202 def open_channel(self, signal_id, psm, scid, fcs=None): argument 203 self.control_channel.send(l2cap_packets.ConnectionRequestBuilder(signal_id, psm, scid))
|
D | l2cap_test.py | 70 signal_id=1, argument 77 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, fcs=fcs) 82 signal_id=1, argument 97 …(dut_channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm, mode… 150 self._open_channel_from_cert(signal_id=1, scid=0x41, psm=0x41) 151 self._open_channel_from_cert(signal_id=2, scid=0x43, psm=0x43)
|