/system/bt/gd/l2cap/classic/cert/ |
D | cert_l2cap.py | 42 def __init__(self, device, scid, dcid, acl_stream, acl, control_channel, fcs=None): argument 44 self._scid = scid 52 …self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrameWithFcs(scid)) 54 … self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrame(scid)) 202 def open_channel(self, signal_id, psm, scid, fcs=None): argument 203 self.control_channel.send(l2cap_packets.ConnectionRequestBuilder(signal_id, psm, scid)) 205 response = L2capCaptures.ConnectionResponse(scid) 207 channel = CertL2capChannel(self._device, scid, 210 self.scid_to_channel[scid] = channel 214 def verify_and_respond_open_channel_from_remote(self, psm=0x33, scid=None, fcs=None): argument [all …]
|
D | l2cap_test.py | 71 scid=0x0101, argument 77 cert_channel = self.cert_l2cap.open_channel(signal_id, psm, scid, fcs=fcs) 83 scid=0x0101, argument 89 request_matcher = L2capMatchers.ConfigurationRequestView(scid) 97 …(dut_channel, cert_channel) = self._open_unconfigured_channel_from_cert(signal_id, scid, psm, mode… 140 (dut_channel, cert_channel) = self._open_channel_from_cert(scid=0x41, psm=0x33) 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) 284 scid = 0x41 286 L2capMatchers.ConfigurationRequestView(scid)).then().send_configuration_response( [all …]
|
/system/bt/gd/l2cap/le/cert/ |
D | cert_le_l2cap.py | 34 def __init__(self, device, scid, dcid, acl_stream, acl, control_channel, initial_credits=0): argument 36 self._scid = scid 41 self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrame(scid)) 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… 114 channel = CertLeL2capChannel(self._device, scid, 118 self._cid_to_cert_channels[scid] = channel 133 (scid, dcid) = self._respond_connection_request_default(request.get(), result, our_scid) 134 channel = CertLeL2capChannel(self._device, scid, dcid, self._get_acl_stream(), self._le_acl, 137 self._cid_to_cert_channels[scid] = channel [all …]
|
D | dual_l2cap_test.py | 108 … cert_channel = self.cert_l2cap.verify_and_respond_open_channel_from_remote(psm=psm, scid=our_scid) 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 | 90 scid=0x0101, 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) 543 (dut_channel, cert_channel) = self._open_channel_from_cert(psm=0x33, scid=0x0101)
|
/system/bt/gd/cert/ |
D | matchers.py | 265 def ConnectionResponse(scid): argument 266 return lambda packet: L2capMatchers._is_matching_connection_response(packet, scid) 285 def DisconnectionRequest(scid, dcid): argument 286 return lambda packet: L2capMatchers._is_matching_disconnection_request(packet, scid, dcid) 289 def DisconnectionResponse(scid, dcid): argument 290 return lambda packet: L2capMatchers._is_matching_disconnection_response(packet, scid, dcid) 328 def LeDisconnectionRequest(scid, dcid): argument 329 … return lambda packet: L2capMatchers._is_matching_le_disconnection_request(packet, scid, dcid) 332 def LeDisconnectionResponse(scid, dcid): argument 333 … return lambda packet: L2capMatchers._is_matching_le_disconnection_response(packet, scid, dcid) [all …]
|
D | captures.py | 131 def ConnectionResponse(scid): argument 132 … return Capture(L2capMatchers.ConnectionResponse(scid), L2capCaptures._extract_connection_response)
|
/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() 63 pending_command.source_cid_ = scid; in CreditBasedConnectionRequest() 70 static PendingCommand DisconnectionRequest(SignalId signal_id, Cid scid, Cid dcid) { in DisconnectionRequest() 74 pending_command.source_cid_ = scid; in DisconnectionRequest()
|
D | signalling_manager.cc | 81 void LeSignallingManager::SendDisconnectRequest(Cid scid, Cid dcid) { in SendDisconnectRequest() argument 82 …PendingCommand pending_command = PendingCommand::DisconnectionRequest(next_signal_id_, scid, dcid); in SendDisconnectRequest()
|