Lines Matching refs:shell

70     shell, dut, cmd, response=None, expect_to_find_resp=True, max_wait_sec=20, shell_ret=False  argument
93 shell_cmd_ret = shell.exec_command(cmd)
241 async def tc_rfcomm_c_1(hci_port, shell, dut, address, snoop_file) -> None: argument
268 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
269 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
270 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
271 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server
296 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", "connected")
297 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 7", "connected")
324 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
325 await send_cmd_to_iut(shell, dut, "rfcomm_s send 7 1")
334 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
335 await send_cmd_to_iut(shell, dut, "rfcomm_s send 7 1", "Unable to send", shell_ret=True)
338 async def tc_rfcomm_c_2(hci_port, shell, dut, address, snoop_file) -> None: argument
366 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
367 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
368 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
369 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server
394 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", "connected")
395 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 7", "connected")
398 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1")
403 await send_cmd_to_iut(shell, dut, "rfcomm_s send 7 1")
415 await send_cmd_to_iut(shell, dut, "rfcomm_s disconnect 9", "disconnect")
419 await send_cmd_to_iut(shell, dut, "rfcomm_s disconnect 7", "disconnect")
423 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
424 await send_cmd_to_iut(shell, dut, "rfcomm_s send 7 1", "Unable to send", shell_ret=True)
427 async def tc_rfcomm_c_3(hci_port, shell, dut, address, snoop_file) -> None: argument
454 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
455 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
456 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
457 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server
486 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", "Not connected", shell_ret=True)
491 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
494 async def tc_rfcomm_c_4(hci_port, shell, dut, address, snoop_file) -> None: argument
521 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
522 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
523 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
524 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server
570 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", "connected")
571 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 7", "connected")
577 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1")
588 await send_cmd_to_iut(shell, dut, "rfcomm_s disconnect 9", "disconnect")
592 await send_cmd_to_iut(shell, dut, "rfcomm_s disconnect 7", "disconnect")
596 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
597 await send_cmd_to_iut(shell, dut, "rfcomm_s send 7 1", "Unable to send", shell_ret=True)
600 async def tc_rfcomm_c_5(hci_port, shell, dut, address, snoop_file) -> None: argument
627 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
628 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
629 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
630 await send_cmd_to_iut(shell, dut, "rfcomm_s register 7") # create RFCOMM server
664 shell, dut, "rfcomm_s connect 9", " connected", expect_to_find_resp=False
670 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
673 async def tc_rfcomm_c_6(hci_port, shell, dut, address, snoop_file) -> None: argument
701 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
702 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
703 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
727 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
735 await send_cmd_to_iut(shell, dut, f"rfcomm_s send 9 {data_length}")
748 async def tc_rfcomm_c_7(hci_port, shell, dut, address, snoop_file) -> None: argument
776 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
777 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
778 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
802 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
811 shell, dut, f"rfcomm_s send 9 {data_length}", "Unable to send", shell_ret=True
815 async def tc_rfcomm_c_8(hci_port, shell, dut, address, snoop_file) -> None: argument
843 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
844 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
845 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
869 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
872 await send_cmd_to_iut(shell, dut, "rfcomm_s disconnect 9", "disconnect")
876 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
880 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1")
886 async def tc_rfcomm_c_9(hci_port, shell, dut, address, snoop_file) -> None: argument
914 await send_cmd_to_iut(shell, dut, "br pscan on") # set to connectable
915 await send_cmd_to_iut(shell, dut, "br iscan on") # set to general discoverable
916 await send_cmd_to_iut(shell, dut, "rfcomm_s register 9") # create RFCOMM server
941 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
944 await send_cmd_to_iut(shell, dut, "bt disconnect", "disconnect")
949 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1", "Unable to send", shell_ret=True)
959 await send_cmd_to_iut(shell, dut, "rfcomm_s connect 9", " connected")
962 await send_cmd_to_iut(shell, dut, "rfcomm_s send 9 1")
969 def test_rfcomm_c_1(self, shell: Shell, dut: DeviceAdapter, device_under_test):
974 asyncio.run(tc_rfcomm_c_1(hci, shell, dut, iut_address, snoop_file))
976 def test_rfcomm_c_2(self, shell: Shell, dut: DeviceAdapter, device_under_test):
981 asyncio.run(tc_rfcomm_c_2(hci, shell, dut, iut_address, snoop_file))
983 def test_rfcomm_c_3(self, shell: Shell, dut: DeviceAdapter, device_under_test):
988 asyncio.run(tc_rfcomm_c_3(hci, shell, dut, iut_address, snoop_file))
990 def test_rfcomm_c_4(self, shell: Shell, dut: DeviceAdapter, device_under_test):
995 asyncio.run(tc_rfcomm_c_4(hci, shell, dut, iut_address, snoop_file))
997 def test_rfcomm_c_5(self, shell: Shell, dut: DeviceAdapter, device_under_test):
1002 asyncio.run(tc_rfcomm_c_5(hci, shell, dut, iut_address, snoop_file))
1004 def test_rfcomm_c_6(self, shell: Shell, dut: DeviceAdapter, device_under_test):
1009 asyncio.run(tc_rfcomm_c_6(hci, shell, dut, iut_address, snoop_file))
1011 def test_rfcomm_c_7(self, shell: Shell, dut: DeviceAdapter, device_under_test):
1016 asyncio.run(tc_rfcomm_c_7(hci, shell, dut, iut_address, snoop_file))
1018 def test_rfcomm_c_8(self, shell: Shell, dut: DeviceAdapter, device_under_test):
1023 asyncio.run(tc_rfcomm_c_8(hci, shell, dut, iut_address, snoop_file))
1025 def test_rfcomm_c_9(self, shell: Shell, dut: DeviceAdapter, device_under_test):
1030 asyncio.run(tc_rfcomm_c_9(hci, shell, dut, iut_address, snoop_file))