Loading system/gd/cert/py_hal.py +4 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,10 @@ class PyHal(Closable): assertThat(self.hci_event_stream).emits(read_bd_addr) return read_bd_addr.get().GetBdAddr() def reset(self): self.send_hci_command(hci_packets.ResetBuilder()) assertThat(self.hci_event_stream).emits(HciMatchers.CommandComplete(OpCode.RESET)) def enable_inquiry_and_page_scan(self): self.send_hci_command(WriteScanEnableBuilder(ScanEnable.INQUIRY_AND_PAGE_SCAN)) Loading system/gd/hal/cert/simple_hal_test.py +2 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,8 @@ class SimpleHalTest(GdBaseTestClass): self.dut_hal = PyHal(self.dut) self.cert_hal = PyHal(self.cert) self.dut_hal.send_hci_command(hci_packets.ResetBuilder()) self.cert_hal.send_hci_command(hci_packets.ResetBuilder()) self.dut_hal.reset() self.cert_hal.reset() def teardown_test(self): self.dut_hal.close() Loading Loading
system/gd/cert/py_hal.py +4 −0 Original line number Diff line number Diff line Loading @@ -147,6 +147,10 @@ class PyHal(Closable): assertThat(self.hci_event_stream).emits(read_bd_addr) return read_bd_addr.get().GetBdAddr() def reset(self): self.send_hci_command(hci_packets.ResetBuilder()) assertThat(self.hci_event_stream).emits(HciMatchers.CommandComplete(OpCode.RESET)) def enable_inquiry_and_page_scan(self): self.send_hci_command(WriteScanEnableBuilder(ScanEnable.INQUIRY_AND_PAGE_SCAN)) Loading
system/gd/hal/cert/simple_hal_test.py +2 −2 Original line number Diff line number Diff line Loading @@ -42,8 +42,8 @@ class SimpleHalTest(GdBaseTestClass): self.dut_hal = PyHal(self.dut) self.cert_hal = PyHal(self.cert) self.dut_hal.send_hci_command(hci_packets.ResetBuilder()) self.cert_hal.send_hci_command(hci_packets.ResetBuilder()) self.dut_hal.reset() self.cert_hal.reset() def teardown_test(self): self.dut_hal.close() Loading