Lines Matching refs:servo
22 from autotest_lib.server.cros.servo import chrome_base_ec
23 from autotest_lib.server.cros.servo import chrome_cr50
24 from autotest_lib.server.cros.servo import chrome_ec
39 self.servo = host.servo
40 self.servo.initialize_dut()
143 self.ec = chrome_ec.ChromeEC(self.servo)
146 self.usbpd = chrome_ec.ChromeUSBPD(self.servo)
155 self.base_ec = chrome_base_ec.create_base_ec(self.servo)
211 system_info['cr50_version'] = self.servo.get('cr50_version')
232 if self.servo.get_usbkey_direction() == 'dut':
235 self.servo.switch_usbkey('dut')
320 self.servo.switch_usbkey('host')
363 assert self.servo.get_usbkey_direction() == 'host'
365 self.servo.switch_usbkey('host')
366 usb_dev = self.servo.probe_host_usb_dev()
373 tmpd = self.servo.system_output('mktemp -d -t usbcheck.XXXX')
374 self.servo.system('mount -o ro %s %s' % (rootfs, tmpd))
377 usb_lsb = self.servo.system_output('cat %s' %
392 self.servo.system(cmd)
414 self.servo.switch_usbkey('host')
416 self.servo.switch_usbkey('dut')
426 original_value = self.servo.get_usbkey_direction()
429 self.servo.switch_usbkey('off')
434 self.servo.switch_usbkey('dut')
440 if original_value != self.servo.get_usbkey_direction():
441 self.servo.switch_usbkey(original_value)
598 self.servo.set('fw_wp_state', 'force_on' if enable else 'force_off')
602 self.servo.set('fw_wp_vref', self.faft_config.wp_voltage)
603 self.servo.set('fw_wp_en', 'on')
604 self.servo.set('fw_wp', 'on' if enable else 'off')
682 self.servo.set('cpu_uart_capture', 'on')
689 self.servo.get('cr50_version')
690 self.servo.set('cr50_uart_capture', 'on')
692 self.cr50 = chrome_cr50.ChromeCr50(self.servo)
698 self.servo.set('ec_uart_capture', 'on')
707 self.servo.set('usbpd_uart_capture', 'on')
721 f.write(ast.literal_eval(self.servo.get('cpu_uart_stream')))
724 f.write(ast.literal_eval(self.servo.get('cr50_uart_stream')))
727 f.write(ast.literal_eval(self.servo.get('ec_uart_stream')))
731 f.write(ast.literal_eval(self.servo.get('usbpd_uart_stream')))
737 self.servo.set('cpu_uart_capture', 'off')
739 self.servo.set('cr50_uart_capture', 'off')
741 self.servo.set('ec_uart_capture', 'off')
744 self.servo.set('usbpd_uart_capture', 'off')
781 servo_log = self.servo.system_output(cmd)
787 if self.servo.is_localhost():
999 self.servo.power_key(self.faft_config.hold_pwr_button_poweroff)
1005 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)
1014 if self.servo.get("lid_open") == "no":
1016 self.servo.power_short_press()
1034 current_magic = self.servo.system_output(read_cmd)
1045 self.servo.system(write_cmd)
1047 if self.servo.system_output(read_cmd) != to_magic:
1149 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)