Searched refs:HciMatchers (Results 1 – 7 of 7) sorted by relevance
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/ |
D | matchers.py | 24 class HciMatchers(object): class 28 return lambda msg: HciMatchers._is_matching_command_complete(msg.payload, opcode) 32 return HciMatchers._extract_matching_command_complete(packet_bytes, opcode) 36 return HciMatchers._extract_matching_command_complete(packet_bytes, opcode) is not None 40 event = HciMatchers._extract_matching_event(packet_bytes, hci.EventCode.COMMAND_COMPLETE) 49 return lambda msg: HciMatchers._is_matching_command_status(msg.payload, opcode) 53 return HciMatchers._extract_matching_command_status(packet_bytes, opcode) 57 return HciMatchers._extract_matching_command_status(packet_bytes, opcode) is not None 61 event = HciMatchers._extract_matching_event(packet_bytes, hci.EventCode.COMMAND_STATUS) 70 return lambda msg: HciMatchers._is_matching_event(msg.payload, event_code) [all …]
|
D | captures.py | 18 from blueberry.tests.gd.cert.matchers import HciMatchers 58 HciMatchers.CommandComplete(hci.OpCode.READ_LOCAL_OOB_DATA), 59 …lambda packet: HciMatchers.ExtractMatchingCommandComplete(packet.payload, hci.OpCode.READ_LOCAL_OO… 64 … HciMatchers.CommandComplete(hci.OpCode.READ_LOCAL_OOB_EXTENDED_DATA), lambda packet: HciMatchers. 69 return Capture(HciMatchers.CommandComplete(hci.OpCode.READ_BD_ADDR), 74 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_REQUEST), 79 return Capture(HciMatchers.EventWithCode(hci.EventCode.CONNECTION_COMPLETE), 84 return Capture(HciMatchers.EventWithCode(hci.EventCode.DISCONNECTION_COMPLETE), 89 return Capture(HciMatchers.LeConnectionComplete(), 90 lambda packet: HciMatchers.ExtractLeConnectionComplete(packet.payload)) [all …]
|
D | py_hci.py | 28 from blueberry.tests.gd.cert.matchers import HciMatchers 126 HciMatchers.CommandComplete(hci.OpCode.LE_SET_EXTENDED_ADVERTISING_ENABLE)) 215 … assertThat(self.event_stream).emits(HciMatchers.CommandComplete(hci.OpCode.LE_SET_RANDOM_ADDRESS)) 234 …assertThat(self.event_stream).emits(HciMatchers.CommandStatus(hci.OpCode.LE_EXTENDED_CREATE_CONNEC…
|
D | py_hal.py | 25 from blueberry.tests.gd.cert.matchers import HciMatchers 136 assertThat(self.hci_event_stream).emits(HciMatchers.CommandComplete(opcode)) 139 assertThat(self.hci_event_stream).emits(HciMatchers.CommandStatus(opcode))
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/ |
D | cert_security.py | 22 from blueberry.tests.gd.cert.matchers import HciMatchers 195 …assertThat(self._hci_event_stream).emits(HciMatchers.EventWithCode(hci.EventCode.USER_PASSKEY_REQU… 247 assertThat(self._hci_event_stream).emits(HciMatchers.PinCodeRequest()) 271 …assertThat(self._hci_event_stream).emits(HciMatchers.CommandComplete(hci.OpCode.WRITE_SIMPLE_PAIRI… 282 HciMatchers.CommandComplete(hci.OpCode.WRITE_SECURE_CONNECTIONS_HOST_SUPPORT)) 288 assertThat(self._hci_event_stream).emits(HciMatchers.IoCapabilityRequest()) 302 assertThat(self._hci_event_stream).emits(HciMatchers.IoCapabilityResponse()) 305 assertThat(self._hci_event_stream).emits(HciMatchers.UserConfirmationRequest()) 312 assertThat(self._hci_event_stream).emits(HciMatchers.SimplePairingComplete()) 315 assertThat(self._hci_event_stream).emits(HciMatchers.LinkKeyNotification()) [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/hal/ |
D | simple_hal_test.py | 19 from blueberry.tests.gd.cert.matchers import HciMatchers 51 HciMatchers.Exactly( 61 … assertThat(self.dut_hal.get_hci_event_stream()).emits(HciMatchers.LoopbackOf(command.serialize())) 134 assertThat(self.cert_hal.get_hci_event_stream()).emits(HciMatchers.LeConnectionComplete()) 135 assertThat(self.dut_hal.get_hci_event_stream()).emits(HciMatchers.LeConnectionComplete())
|
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/ |
D | direct_hci_test.py | 20 from blueberry.tests.gd.cert.matchers import HciMatchers 58 …assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.LoopbackOf(hci.ReadLocalName().seria… 65 …assertThat(self.dut_hci.get_event_stream()).emits(HciMatchers.EventWithCode(hci.EventCode.INQUIRY_… 286 HciMatchers.LeAdvertisement(address='0C:05:04:03:02:01', data=b'Im_A_Cert'))
|