Home
last modified time | relevance | path

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

/external/autotest/server/cros/faft/utils/
Dmode_switcher.py464 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): argument
588 if usb_state:
589 self.servo.switch_usbkey(usb_state)
593 def _enable_rec_mode_force_mrc_and_reboot(self, usb_state=None): argument
604 if usb_state:
605 self.servo.switch_usbkey(usb_state)
608 def _disable_rec_mode_and_reboot(self, usb_state=None): argument
717 self._enable_rec_mode_and_reboot(usb_state='host')
[all …]
/external/autotest/server/cros/servo/
Dservo.py936 def switch_usbkey(self, usb_state): argument
955 if self.get_usbkey_direction() == usb_state:
958 if usb_state == 'off':
960 self._usb_state = usb_state
962 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