Lines Matching refs:servo

23 from autotest_lib.server.cros.servo import chrome_ec
24 from autotest_lib.server.cros.servo import chrome_usbpd
39 self.servo = host.servo
40 self.servo.initialize_dut()
140 self.ec = chrome_ec.ChromeEC(self.servo)
143 self.usbpd = chrome_usbpd.ChromeUSBPD(self.servo)
222 if self.servo.get_usbkey_direction() == 'dut':
225 self.servo.switch_usbkey('dut')
310 self.servo.switch_usbkey('host')
353 assert self.servo.get_usbkey_direction() == 'host'
355 self.servo.switch_usbkey('host')
356 usb_dev = self.servo.probe_host_usb_dev()
363 tmpd = self.servo.system_output('mktemp -d -t usbcheck.XXXX')
364 self.servo.system('mount -o ro %s %s' % (rootfs, tmpd))
367 usb_lsb = self.servo.system_output('cat %s' %
382 self.servo.system(cmd)
404 self.servo.switch_usbkey('host')
406 self.servo.switch_usbkey('dut')
416 original_value = self.servo.get_usbkey_direction()
419 self.servo.switch_usbkey('off')
424 self.servo.switch_usbkey('dut')
430 if original_value != self.servo.get_usbkey_direction():
431 self.servo.switch_usbkey(original_value)
584 self.servo.set('fw_wp_vref', self.faft_config.wp_voltage)
585 self.servo.set('fw_wp_en', 'on')
586 self.servo.set('fw_wp', 'on' if enable else 'off')
664 self.servo.set('cpu_uart_capture', 'on')
669 self.servo.set('ec_uart_capture', 'on')
678 self.servo.set('usbpd_uart_capture', 'on')
692 f.write(ast.literal_eval(self.servo.get('cpu_uart_stream')))
695 f.write(ast.literal_eval(self.servo.get('ec_uart_stream')))
699 f.write(ast.literal_eval(self.servo.get('usbpd_uart_stream')))
705 self.servo.set('cpu_uart_capture', 'off')
707 self.servo.set('ec_uart_capture', 'off')
710 self.servo.set('usbpd_uart_capture', 'off')
749 self.servo.power_normal_press()
754 self.servo.set('lid_open', 'no')
756 self.servo.set('lid_open', 'yes')
777 servo_log = self.servo.system_output(cmd)
783 if self.servo.is_localhost():
971 self.servo.power_key(self.faft_config.hold_pwr_button_poweroff)
977 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)
986 if self.servo.get("lid_open") == "no":
988 self.servo.power_short_press()
1006 current_magic = self.servo.system_output(read_cmd)
1017 self.servo.system(write_cmd)
1019 if self.servo.system_output(read_cmd) != to_magic:
1114 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)