Lines Matching refs:console
143 def __init__(self, console, port): argument
150 self.console = console
152 self.utils = pd_console.PDConsoleUtils(console)
385 def __init__(self, console, port): argument
392 super(PDPlanktonDevice, self).__init__(console, 0)
606 def _send_pd_state(self, port, console): argument
617 m = console.send_command_get_output(cmd, [regex])
624 def _find_num_pd_ports(self, console): argument
634 if self._send_pd_state(port, console):
638 def _is_pd_console(self, console): argument
646 m = console.send_command_get_output('help', [r'(pd)\s+'])
651 def _is_plankton_console(self, console): argument
662 m = console.send_command_get_output('help', [r'(usbc_action)'])
681 if dev_pair[0].console == dev_pair[1].console:
739 for console in self.consoles:
740 if self._is_pd_console(console):
741 is_plank = self._is_plankton_console(console)
742 num_ports = self._find_num_pd_ports(console)
748 devices.append(PDPlanktonDevice(console, port))
750 devices.append(PDConsoleDevice(console, port))