Searched refs:usb_state (Results 1 – 2 of 2) sorted by relevance
464 self._enable_rec_mode_and_reboot(usb_state='dut')469 self._enable_rec_mode_force_mrc_and_reboot(usb_state='dut')577 def _enable_rec_mode_and_reboot(self, usb_state=None): argument588 if usb_state:589 self.servo.switch_usbkey(usb_state)593 def _enable_rec_mode_force_mrc_and_reboot(self, usb_state=None): argument604 if usb_state:605 self.servo.switch_usbkey(usb_state)608 def _disable_rec_mode_and_reboot(self, usb_state=None): argument717 self._enable_rec_mode_and_reboot(usb_state='host')[all …]
936 def switch_usbkey(self, usb_state): argument955 if self.get_usbkey_direction() == usb_state:958 if usb_state == 'off':960 self._usb_state = usb_state962 elif usb_state == 'host':964 elif usb_state == 'dut':967 raise error.TestError('Unknown USB state request: %s' % usb_state)980 self._switch_usbkey_power('on', usb_state == 'host')981 self._usb_state = usb_state