Searched refs:usb_state (Results 1 – 2 of 2) sorted by relevance
764 def switch_usbkey(self, usb_state): argument783 if self.get_usbkey_direction() == usb_state:786 if usb_state == 'off':788 self._usb_state = usb_state790 elif usb_state == 'host':792 elif usb_state == 'dut':795 raise error.TestError('Unknown USB state request: %s' % usb_state)800 self._switch_usbkey_power('on', usb_state == 'host')801 self._usb_state = usb_state
242 self._enable_rec_mode_and_reboot(usb_state='dut')319 def _enable_rec_mode_and_reboot(self, usb_state=None): argument330 if usb_state:331 self.servo.switch_usbkey(usb_state)335 def _disable_rec_mode_and_reboot(self, usb_state=None): argument460 self._enable_rec_mode_and_reboot(usb_state='host')479 self._enable_rec_mode_and_reboot(usb_state='host')488 self._enable_rec_mode_and_reboot(usb_state='host')490 self._disable_rec_mode_and_reboot(usb_state='host')