Lines Matching refs:servo
22 from autotest_lib.server.cros.servo import chrome_cr50, chrome_ec
37 self.servo = host.servo
38 self.servo.initialize_dut()
138 self.ec = chrome_ec.ChromeEC(self.servo)
141 self.usbpd = chrome_ec.ChromeUSBPD(self.servo)
203 system_info['cr50_version'] = self.servo.get('cr50_version')
224 if self.servo.get_usbkey_direction() == 'dut':
227 self.servo.switch_usbkey('dut')
312 self.servo.switch_usbkey('host')
355 assert self.servo.get_usbkey_direction() == 'host'
357 self.servo.switch_usbkey('host')
358 usb_dev = self.servo.probe_host_usb_dev()
365 tmpd = self.servo.system_output('mktemp -d -t usbcheck.XXXX')
366 self.servo.system('mount -o ro %s %s' % (rootfs, tmpd))
369 usb_lsb = self.servo.system_output('cat %s' %
384 self.servo.system(cmd)
406 self.servo.switch_usbkey('host')
408 self.servo.switch_usbkey('dut')
418 original_value = self.servo.get_usbkey_direction()
421 self.servo.switch_usbkey('off')
426 self.servo.switch_usbkey('dut')
432 if original_value != self.servo.get_usbkey_direction():
433 self.servo.switch_usbkey(original_value)
587 self.servo.set('fw_wp_state', 'force_on' if enable else 'force_off')
591 self.servo.set('fw_wp_vref', self.faft_config.wp_voltage)
592 self.servo.set('fw_wp_en', 'on')
593 self.servo.set('fw_wp', 'on' if enable else 'off')
671 self.servo.set('cpu_uart_capture', 'on')
676 self.servo.set('cr50_console_capture', 'on')
681 self.servo.get('ccd_lock')
682 self.cr50 = chrome_cr50.ChromeCr50(self.servo)
688 self.servo.set('ec_uart_capture', 'on')
697 self.servo.set('usbpd_uart_capture', 'on')
711 f.write(ast.literal_eval(self.servo.get('cpu_uart_stream')))
714 f.write(ast.literal_eval(self.servo.get('cr50_console_stream')))
717 f.write(ast.literal_eval(self.servo.get('ec_uart_stream')))
721 f.write(ast.literal_eval(self.servo.get('usbpd_uart_stream')))
727 self.servo.set('cpu_uart_capture', 'off')
729 self.servo.set('cr50_console_capture', 'off')
731 self.servo.set('ec_uart_capture', 'off')
734 self.servo.set('usbpd_uart_capture', 'off')
771 servo_log = self.servo.system_output(cmd)
777 if self.servo.is_localhost():
965 self.servo.power_key(self.faft_config.hold_pwr_button_poweroff)
971 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)
980 if self.servo.get("lid_open") == "no":
982 self.servo.power_short_press()
1000 current_magic = self.servo.system_output(read_cmd)
1011 self.servo.system(write_cmd)
1013 if self.servo.system_output(read_cmd) != to_magic:
1109 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)