Lines Matching refs:HciMatchers

31 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)
91 return HciMatchers._extract_matching_event(packet_bytes, event_code)
95 return HciMatchers._extract_matching_event(packet_bytes, event_code) is not None
108 … return lambda msg: HciMatchers._extract_matching_le_event(msg.payload, subevent_code) is not None
112 return HciMatchers._extract_matching_le_event(packet_bytes, subevent_code)
116 …inner_event = HciMatchers._extract_matching_event(packet_bytes, hci_packets.EventCode.LE_META_EVEN…
126 return lambda msg: HciMatchers._extract_le_connection_complete(msg.payload) is not None
130 return HciMatchers._extract_le_connection_complete(packet_bytes)
134 …inner_event = HciMatchers._extract_matching_le_event(packet_bytes, hci_packets.SubeventCode.CONNEC…
138 inner_event = HciMatchers._extract_matching_le_event(packet_bytes,
151 return lambda event: HciMatchers.EventWithCode(EventCode.LINK_KEY_REQUEST)
155 return lambda event: HciMatchers.EventWithCode(EventCode.IO_CAPABILITY_REQUEST)
159 return lambda event: HciMatchers.EventWithCode(EventCode.IO_CAPABILITY_RESPONSE)
163 return lambda event: HciMatchers.EventWithCode(EventCode.USER_PASSKEY_NOTIFICATION)
167 return lambda event: HciMatchers.EventWithCode(EventCode.USER_PASSKEY_REQUEST)
171 return lambda event: HciMatchers.EventWithCode(EventCode.USER_CONFIRMATION_REQUEST)
175 …return lambda event: HciMatchers.EventWithCode(EventCode.REMOTE_HOST_SUPPORTED_FEATURES_NOTIFICATI…
179 return lambda event: HciMatchers.EventWithCode(EventCode.LINK_KEY_NOTIFICATION)
183 return lambda event: HciMatchers.EventWithCode(EventCode.SIMPLE_PAIRING_COMPLETE)
187 return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECT)
191 return lambda event: HciMatchers.EventWithCode(EventCode.DISCONNECTION_COMPLETE)
195 return lambda event: HciMatchers.EventWithCode(EventCode.REMOTE_OOB_DATA_REQUEST)
199 return lambda event: HciMatchers.EventWithCode(EventCode.PIN_CODE_REQUEST)
203 return HciMatchers.Exactly(hci_packets.LoopbackCommandBuilder(packet))
219 hci_event = HciMatchers.ExtractEventWithCode(packet, EventCode.INQUIRY_RESULT)
234 hci_event = HciMatchers.ExtractEventWithCode(packet, EventCode.INQUIRY_RESULT_WITH_RSSI)
249 hci_event = HciMatchers.ExtractEventWithCode(packet, EventCode.EXTENDED_INQUIRY_RESULT)