Home
last modified time | relevance | path

Searched refs:usb_state (Results 1 – 2 of 2) sorted by relevance

/external/autotest/server/cros/servo/
Dservo.py764 def switch_usbkey(self, usb_state): argument
783 if self.get_usbkey_direction() == usb_state:
786 if usb_state == 'off':
788 self._usb_state = usb_state
790 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
/external/autotest/server/cros/faft/utils/
Dmode_switcher.py242 self._enable_rec_mode_and_reboot(usb_state='dut')
319 def _enable_rec_mode_and_reboot(self, usb_state=None): argument
330 if usb_state:
331 self.servo.switch_usbkey(usb_state)
335 def _disable_rec_mode_and_reboot(self, usb_state=None): argument
460 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')