Home
last modified time | relevance | path

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

/system/bt/gd/cert/
Dcaptures.py22 from cert.matchers import HciMatchers
69 HciMatchers.CommandComplete(hci_packets.OpCode.READ_LOCAL_OOB_DATA),
70 …lambda packet: HciMatchers.ExtractMatchingCommandComplete(packet.payload, hci_packets.OpCode.READ_…
76 HciMatchers.CommandComplete(hci_packets.OpCode.READ_LOCAL_OOB_EXTENDED_DATA),
77 …lambda packet: HciMatchers.ExtractMatchingCommandComplete(packet.payload, hci_packets.OpCode.READ_…
83 HciMatchers.CommandComplete(hci_packets.OpCode.READ_BD_ADDR),
84 …lambda packet: hci_packets.ReadBdAddrCompleteView(HciMatchers.ExtractMatchingCommandComplete(packe…
89 HciMatchers.EventWithCode(hci_packets.EventCode.CONNECTION_REQUEST),
91HciMatchers.ExtractEventWithCode(packet.payload, hci_packets.EventCode.CONNECTION_REQUEST)))
96 HciMatchers.EventWithCode(hci_packets.EventCode.CONNECTION_COMPLETE),
[all …]
Dmatchers.py31 class HciMatchers(object): class
35 return lambda msg: HciMatchers._is_matching_command_complete(msg.payload, opcode)
39 return HciMatchers._extract_matching_command_complete(packet_bytes, opcode)
43 return HciMatchers._extract_matching_command_complete(packet_bytes, opcode) is not None
47 event = HciMatchers._extract_matching_event(packet_bytes, EventCode.COMMAND_COMPLETE)
61 return lambda msg: HciMatchers._is_matching_command_status(msg.payload, opcode)
65 return HciMatchers._extract_matching_command_complete(packet_bytes, opcode)
69 return HciMatchers._extract_matching_command_status(packet_bytes, opcode) is not None
73 event = HciMatchers._extract_matching_event(packet_bytes, EventCode.COMMAND_STATUS)
87 return lambda msg: HciMatchers._is_matching_event(msg.payload, event_code)
[all …]
Dpy_hal.py32 from cert.matchers import HciMatchers
132 assertThat(self.hci_event_stream).emits(HciMatchers.CommandComplete(opcode))
135 assertThat(self.hci_event_stream).emits(HciMatchers.CommandStatus(opcode))
Dpy_hci.py28 from cert.matchers import HciMatchers
105 HciMatchers.CommandComplete(OpCode.LE_SET_EXTENDED_ADVERTISING_ENABLE))
Dpy_l2cap.py29 from cert.matchers import HciMatchers
154 assertThat(self._hci.get_event_stream()).emits(HciMatchers.LinkKeyRequest())
/system/bt/gd/security/cert/
Dcert_security.py23 from cert.matchers import HciMatchers
203 …assertThat(self._hci_event_stream).emits(HciMatchers.EventWithCode(hci_packets.EventCode.USER_PASS…
244 assertThat(self._hci_event_stream).emits(HciMatchers.PinCodeRequest())
268 HciMatchers.CommandComplete(hci_packets.OpCode.WRITE_SIMPLE_PAIRING_MODE))
279 HciMatchers.CommandComplete(hci_packets.OpCode.WRITE_SECURE_CONNECTIONS_HOST_SUPPORT))
285 assertThat(self._hci_event_stream).emits(HciMatchers.IoCapabilityRequest())
297 assertThat(self._hci_event_stream).emits(HciMatchers.LinkKeyRequest())
302 assertThat(self._hci_event_stream).emits(HciMatchers.UserConfirmationRequest())
308 assertThat(self._hci_event_stream).emits(HciMatchers.SimplePairingComplete())
310 assertThat(self._hci_event_stream).emits(HciMatchers.LinkKeyNotification())
[all …]
Dle_security_test.py22 from cert.matchers import HciMatchers
/system/bt/gd/hal/cert/
Dsimple_hal_test.py23 from cert.matchers import HciMatchers
60HciMatchers.Exactly(hci_packets.LeAddDeviceToConnectListCompleteBuilder(1, hci_packets.ErrorCode.S…
69 assertThat(self.dut_hal.get_hci_event_stream()).emits(HciMatchers.LoopbackOf(command))
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/neighbor/cert/
Dneighbor_test.py20 from cert.matchers import HciMatchers, NeighborMatchers
53 …assertThat(self.cert_hci.get_event_stream()).emits(HciMatchers.CommandComplete(OpCode.WRITE_LOCAL_…
/system/bt/gd/hci/cert/
Ddirect_hci_test.py22 from cert.matchers import HciMatchers
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…
/system/bt/gd/iso/cert/
Dle_iso_test.py22 from cert.matchers import HciMatchers, IsoMatchers, L2capMatchers