Home
last modified time | relevance | path

Searched refs:HciMatchers (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py24 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 …]
Dcaptures.py18 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…
64HciMatchers.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 …]
Dpy_hci.py28 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…
Dpy_hal.py25 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/
Dcert_security.py22 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/
Dsimple_hal_test.py19 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/
Ddirect_hci_test.py20 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'))