Searched refs:L2capMatchers (Results 1 – 10 of 10) sorted by relevance
/system/bt/gd/cert/ |
D | matchers.py | 258 class L2capMatchers(object): class 262 return lambda packet: L2capMatchers._is_matching_connection_request(packet, psm) 266 return lambda packet: L2capMatchers._is_matching_connection_response(packet, scid) 270 return lambda packet: L2capMatchers._is_matching_configuration_response(packet, result) 274 return lambda packet: L2capMatchers._is_matching_configuration_request_with_cid(packet, cid) 278 return lambda packet: L2capMatchers._is_matching_configuration_request_with_ertm(packet) 286 return lambda packet: L2capMatchers._is_matching_disconnection_request(packet, scid, dcid) 290 return lambda packet: L2capMatchers._is_matching_disconnection_response(packet, scid, dcid) 294 … return lambda packet: L2capMatchers._is_control_frame_with_code(packet, CommandCode.ECHO_RESPONSE) 298 …return lambda packet: L2capMatchers._is_control_frame_with_code(packet, CommandCode.COMMAND_REJECT) [all …]
|
D | captures.py | 23 from cert.matchers import L2capMatchers 123 … return Capture(L2capMatchers.ConnectionRequest(psm), L2capCaptures._extract_connection_request) 127 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_REQUEST) 132 … return Capture(L2capMatchers.ConnectionResponse(scid), L2capCaptures._extract_connection_response) 136 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_RESPONSE) 141 …return Capture(L2capMatchers.ConfigurationRequest(cid), L2capCaptures._extract_configuration_reque… 145 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONFIGURATION_REQUEST) 151 …L2capMatchers.CreditBasedConnectionRequest(psm), L2capCaptures._extract_credit_based_connection_re… 155 …frame = L2capMatchers.le_control_frame_with_code(packet, LeCommandCode.LE_CREDIT_BASED_CONNECTION_… 160 return Capture(L2capMatchers.CreditBasedConnectionResponse(), [all …]
|
D | py_l2cap.py | 30 from cert.matchers import L2capMatchers 42 … L2capMatchers.PacketPayloadWithMatchingPsm(self._psm)) 164 … L2capMatchers.PacketPayloadWithMatchingCid(self._cid)) 186 … L2capMatchers.PacketPayloadWithMatchingPsm(self._psm))
|
/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_test.py | 30 from cert.matchers import L2capMatchers 89 request_matcher = L2capMatchers.ConfigurationRequestView(scid) 135 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc')) 145 … assertThat(cert_channel).emitsNone(L2capMatchers.SFrame(req_seq=4), timeout=timedelta(seconds=1)) 160 assertThat(cert_channel).emits(L2capMatchers.IFrame(tx_seq=0, payload=b'abc' * 34)) 183 assertThat(cert_channel).emits(L2capMatchers.Data(b'hello')) 205 assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * 48)) 228 … assertThat(self.cert_l2cap.get_control_channel()).emitsNone(L2capMatchers.ConfigurationResponse()) 243 … assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse()) 275 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse(), at_… [all …]
|
D | l2cap_performance_test.py | 19 from cert.matchers import L2capMatchers 49 L2capMatchers.Data(b'a' * mtu), at_least_times=packets, timeout=timedelta(seconds=60)) 72 … assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * mtu), at_least_times=batch_size) 86 … L2capMatchers.PacketPayloadRawData(data), at_least_times=packets, timeout=timedelta(seconds=60)) 113 …assertThat(cert_channel).emits(L2capMatchers.IFrame(payload=b'a' * mtu), at_least_times=tx_window_… 143 assertThat(cert_channel).emits(L2capMatchers.SFrame(req_seq=(i + 1) % 64)) 177 assertThat(dut_channel).emits(L2capMatchers.PacketPayloadRawData(data))
|
D | cert_l2cap.py | 36 from cert.matchers import L2capMatchers 52 …self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrameWithFcs(scid)) 54 … self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrame(scid)) 84 return L2capMatchers.ConfigurationRequest(self._scid) 121 assertThat(self._control_channel).emits(L2capMatchers.ConfigurationResponse(result)) 127 …assertThat(self._control_channel).emits(L2capMatchers.DisconnectionResponse(self._scid, self._dcid… 130 …assertThat(self._control_channel).emits(L2capMatchers.DisconnectionRequest(self._dcid, self._scid))
|
/system/bt/gd/l2cap/le/cert/ |
D | le_l2cap_test.py | 19 from cert.matchers import L2capMatchers 140 assertThat(cert_channel).emits(L2capMatchers.Data(b'hello' * 40)) 147 assertThat(dut_channel).emits(L2capMatchers.PacketPayloadRawData(b'\x19\x26\x08\x17')) 165 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeConnectionParameterUpdateR… 177 L2capMatchers.LeConnectionParameterUpdateResponse( 190 L2capMatchers.LeConnectionParameterUpdateResponse( 201 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject()) 215 … L2capMatchers.FirstLeIFrame(b'hello' * 20, sdu_size=105), L2capMatchers.Data(b'world')).inOrder() 225 assertThat(cert_channel).emits(L2capMatchers.FirstLeIFrame(b'hello' * 40, sdu_size=200)) 233 assertThat(cert_channel).emits(L2capMatchers.FirstLeIFrame(b'hello' * 40, sdu_size=200)) [all …]
|
D | dual_l2cap_test.py | 19 from cert.matchers import L2capMatchers 153 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc')) 156 assertThat(le_cert_channel).emits(L2capMatchers.FirstLeIFrame(b'hello', sdu_size=5)) 159 assertThat(le_dut_channel).emits(L2capMatchers.PacketPayloadRawData(b'\x19\x26\x08\x17')) 178 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc')) 181 assertThat(le_cert_channel).emits(L2capMatchers.FirstLeIFrame(b'hello', sdu_size=5)) 184 assertThat(le_dut_channel).emits(L2capMatchers.PacketPayloadRawData(b'\x19\x26\x08\x17'))
|
D | cert_le_l2cap.py | 27 from cert.matchers import L2capMatchers 41 self._our_acl_view = FilteringEventStream(acl_stream, L2capMatchers.ExtractBasicFrame(scid)) 61 …assertThat(self._control_channel).emits(L2capMatchers.LeDisconnectionResponse(self._scid, self._dc… 64 …assertThat(self._control_channel).emits(L2capMatchers.LeDisconnectionRequest(self._dcid, self._sci… 124 response = L2capMatchers.CreditBasedConnectionResponse(result) 148 assertThat(self.control_channel).emits(L2capMatchers.LeFlowControlCredit(channel._dcid))
|
/system/bt/gd/iso/cert/ |
D | le_iso_test.py | 22 from cert.matchers import HciMatchers, IsoMatchers, L2capMatchers
|