Searched refs:emits (Results 1 – 25 of 27) sorted by relevance
12
/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_test.py | 135 assertThat(cert_channel).emits(L2capMatchers.Data(b'abc')) 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)) 243 … assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse()) 275 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationResponse(), at_… 291 …assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.ConfigurationRequest(), at_l… 330 assertThat(cert_channel).emits(L2capMatchers.Data(b"a" * 44)) 414 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.EchoResponse()) 427 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.CommandReject()) [all …]
|
D | l2cap_performance_test.py | 48 assertThat(cert_channel).emits( 72 … assertThat(cert_channel).emits(L2capMatchers.Data(b'a' * mtu), at_least_times=batch_size) 85 assertThat(dut_channel).emits( 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 | 102 assertThat(self._control_channel).emits(request_capture) 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)) 206 assertThat(self.control_channel).emits(response) 217 assertThat(self.control_channel).emits(request) 238 assertThat(self.control_channel).emits(request)
|
/system/bt/gd/security/cert/ |
D | le_security_test.py | 147 assertThat(self.dut_security.get_bond_stream()).emits( 163 assertThat(self.dut_security.get_ui_stream()).emits( 174 assertThat(self.cert_security.get_ui_stream()).emits( 178 assertThat(self.dut_security.get_bond_stream()).emits( 207 assertThat(self.cert_security.get_ui_stream()).emits( 219 assertThat(self.dut_security.get_bond_stream()).emits( 243 assertThat(self.dut_security.get_ui_stream()).emits( 254 assertThat(self.dut_security.get_bond_stream()).emits( 279 assertThat(self.dut_security.get_ui_stream()).emits( 291 assertThat(self.dut_security.get_bond_stream()).emits( [all …]
|
D | cert_security.py | 158 assertThat(self._hci_event_stream).emits(complete_capture) 169 assertThat(self._hci_event_stream).emits(complete_capture) 181 assertThat(self._hci_event_stream).emits(complete_capture) 192 assertThat(self._hci_event_stream).emits(complete_capture) 203 …assertThat(self._hci_event_stream).emits(HciMatchers.EventWithCode(hci_packets.EventCode.USER_PASS… 244 assertThat(self._hci_event_stream).emits(HciMatchers.PinCodeRequest()) 267 assertThat(self._hci_event_stream).emits( 278 assertThat(self._hci_event_stream).emits( 285 assertThat(self._hci_event_stream).emits(HciMatchers.IoCapabilityRequest()) 297 assertThat(self._hci_event_stream).emits(HciMatchers.LinkKeyRequest()) [all …]
|
/system/bt/gd/hci/cert/ |
D | acl_manager_test.py | 50 assertThat(cert_acl).emits(lambda packet: b'SomeMoreAclData' in packet.payload) 51 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 66 assertThat(cert_acl).emits(lambda packet: b'SomeMoreAclData' in packet.payload) 67 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 86 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 101 assertThat(cert_acl).emits(lambda packet: b'SomeMoreAclData' in packet.payload) 102 assertThat(dut_acl).emits(lambda packet: b'SomeAclData' in packet.payload) 118 assertThat(dut_acl).emits(lambda packet: b'Hello!' in packet.payload,
|
D | direct_hci_test.py | 109 … assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.LoopbackOf(ReadLocalNameBuilder())) 118 …assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.EventWithCode(EventCode.INQUIRY_RESU… 177 …assertThat(self.dut_hci.get_le_event_stream()).emits(lambda packet: b'Im_A_Cert' in packet.payload) 184 assertThat(self.cert_hal.get_hci_event_stream()).emits(cert_conn_complete_capture) 188 assertThat(self.dut_hci.get_le_event_stream()).emits(dut_conn_complete_capture) 226 assertThat(self.dut_hci.get_le_event_stream()).emits( 235 assertThat(self.cert_hal.get_acl_stream()).emits( 237 assertThat(self.dut_hci.get_raw_acl_stream()).emits( 279 … assertThat(self.cert_hal.get_acl_stream()).emits(lambda packet: b'SomeAclData' in packet.payload) 280 …assertThat(self.dut_hci.get_raw_acl_stream()).emits(lambda packet: b'SomeMoreAclData' in packet.pa… [all …]
|
D | le_advertising_manager_test.py | 82 …assertThat(self.cert_hci.get_le_event_stream()).emits(lambda packet: b'Im_The_DUT' in packet.paylo…
|
D | le_scanning_with_security_test.py | 83 … assertThat(advertising_event_stream).emits(lambda packet: b'Im_The_CERT' in packet.event)
|
/system/bt/gd/hal/cert/ |
D | simple_hal_test.py | 59 assertThat(self.dut_hal.get_hci_event_stream()).emits( 69 assertThat(self.dut_hal.get_hci_event_stream()).emits(HciMatchers.LoopbackOf(command)) 78 … assertThat(self.dut_hal.get_hci_event_stream()).emits(lambda packet: b'\x02\x0f' in packet.payload 99 …assertThat(self.dut_hal.get_hci_event_stream()).emits(lambda packet: b'Im_A_Cert' in packet.payloa… 121 … assertThat(self.cert_hal.get_acl_stream()).emits(lambda packet: b'SomeAclData' in packet.payload) 122 …assertThat(self.dut_hal.get_acl_stream()).emits(lambda packet: b'SomeMoreAclData' in packet.payloa… 140 assertThat(self.cert_hal.get_hci_event_stream()).emits(HciMatchers.LeConnectionComplete()) 141 assertThat(self.dut_hal.get_hci_event_stream()).emits(HciMatchers.LeConnectionComplete())
|
/system/bt/gd/l2cap/le/cert/ |
D | le_l2cap_test.py | 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… 176 assertThat(self.cert_l2cap.get_control_channel()).emits( 189 assertThat(self.cert_l2cap.get_control_channel()).emits( 201 assertThat(self.cert_l2cap.get_control_channel()).emits(L2capMatchers.LeCommandReject()) 214 assertThat(cert_channel).emits( 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)) 245 assertThat(dut_channel).emits(L2capMatchers.PacketPayloadRawData(b'\x19\x26\x08\x17' * 2)) [all …]
|
D | cert_le_l2cap.py | 61 …assertThat(self._control_channel).emits(L2capMatchers.LeDisconnectionResponse(self._scid, self._dc… 64 …assertThat(self._control_channel).emits(L2capMatchers.LeDisconnectionRequest(self._dcid, self._sci… 113 assertThat(self.control_channel).emits(response) 125 assertThat(self.control_channel).emits(response) 132 assertThat(self.control_channel).emits(request) 142 assertThat(self.control_channel).emits(request) 148 assertThat(self.control_channel).emits(L2capMatchers.LeFlowControlCredit(channel._dcid))
|
D | dual_l2cap_test.py | 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'))
|
/system/bt/gd/neighbor/cert/ |
D | neighbor_test.py | 53 …assertThat(self.cert_hci.get_event_stream()).emits(HciMatchers.CommandComplete(OpCode.WRITE_LOCAL_… 63 …assertThat(session).emits(NeighborMatchers.InquiryResult(self.cert_address), timeout=timedelta(sec… 73 assertThat(session).emits( 92 assertThat(session).emits(
|
D | py_neighbor.py | 48 …assertThat(self.remote_name_stream).emits(lambda msg: bytes(name) in msg.name, timeout=timedelta(s…
|
/system/bt/gd/cert/ |
D | py_security.py | 186 assertThat(self._ui_event_stream).emits(get_passkey) 214 assertThat(self._ui_event_stream).emits(get_unique_id) 228 assertThat(self._bond_event_stream).emits( 240 assertThat(self._enforce_security_policy_stream).emits( 248 …assertThat(self._disconnect_event_stream).emits(lambda event: logging.info("event: %s" % event.add… 271 assertThat(self._oob_data_event_stream).emits(get_oob_data)
|
D | cert_self_test_lib.py | 266 assertThat(event_stream).emits(lambda data: data.value_ == 1) 271 … assertThat(event_stream).emits(lambda data: data.value_ == 1).then(lambda data: data.value_ == 3) 277 assertThat(event_stream).emits(lambda data: data.value_ == 4) 287 … assertThat(event_stream).emits(lambda data: data.value_ == 1).emits(lambda data: data.value_ == 4) 296 …assertThat(event_stream).emits(lambda data: data.value_ == 1, lambda data: data.value_ == 2).inOrd… 301 assertThat(event_stream).emits(lambda data: data.value_ == 2, 308 …assertThat(event_stream).emits(lambda data: data.value_ == 2, lambda data: data.value_ == 1).inOrd… 318 …assertThat(event_stream).emits(lambda data: data.value_ == 4, lambda data: data.value_ == 1).inAny… 372 .emits(lambda data: data.value_ == 1) \
|
D | py_le_security.py | 63 assertThat(self._ui_event_stream).emits(display_passkey_capture, timeout=timeout) 67 assertThat(self._helper_event_stream).emits(
|
D | py_hal.py | 132 assertThat(self.hci_event_stream).emits(HciMatchers.CommandComplete(opcode)) 135 assertThat(self.hci_event_stream).emits(HciMatchers.CommandStatus(opcode)) 153 assertThat(self.hci_event_stream).emits(read_bd_addr) 203 assertThat(self.hci_event_stream).emits(connection_request) 212 assertThat(self.hci_event_stream).emits(connection_complete) 254 assertThat(self.hci_event_stream).emits(connection_complete)
|
D | py_hci.py | 104 assertThat(self.py_hci.get_event_stream()).emits( 162 assertThat(self.event_stream).emits(read_bd_addr) 177 assertThat(self.event_stream).emits(connection_request) 186 assertThat(self.event_stream).emits(connection_complete)
|
D | py_acl_manager.py | 47 assertThat(self.connection_event_stream).emits(disconnection_complete) 81 assertThat(event_stream).emits(connection_complete)
|
D | py_le_acl_manager.py | 57 assertThat(self.connection_event_stream).emits(disconnection_complete) 117 assertThat(event_stream).emits(connection_complete)
|
D | py_le_iso.py | 151 …assertThat(self._iso_event_stream).emits(set_cig_params_complete_capture, timeout=timedelta(second… 174 … assertThat(self._iso_event_stream).emits(cis_establshed_capture, timeout=timedelta(seconds=5))
|
D | py_l2cap.py | 152 assertThat(self.get_security_connection_event_stream()).emits( 154 assertThat(self._hci.get_event_stream()).emits(HciMatchers.LinkKeyRequest())
|
/system/bt/gd/iso/cert/ |
D | le_iso_test.py | 163 assertThat(cert_cis_stream).emits(IsoMatchers.Data(b'abcdefgh' * 10)) 204 assertThat(cert_cis_stream).emits(IsoMatchers.Data(b'abcdefgh' * 10)) 245 assertThat(cert_cis_stream).emits(IsoMatchers.Data(b'abcdefgh' * 10)) 286 assertThat(cert_cis_stream).emits(IsoMatchers.Data(b'abcdefgh' * 10))
|
12