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()
147 self.ec = chrome_ec.ChromeEC(self.servo)
150 self.usbpd = chrome_ec.ChromeUSBPD(self.servo)
159 self.base_ec = chrome_base_ec.create_base_ec(self.servo)
215 'servo_type': self.servo.get_servo_version()
220 system_info['servo_micro_version'] = self.servo.get(
224 system_info['servo_v4_version'] = self.servo.get('servo_v4_version')
227 system_info['cr50_version'] = self.servo.get('cr50_version')
248 if self.servo.get_usbkey_direction() == 'dut':
251 self.servo.switch_usbkey('dut')
336 self.servo.switch_usbkey('host')
379 assert self.servo.get_usbkey_direction() == 'host'
381 self.servo.switch_usbkey('host')
382 usb_dev = self.servo.probe_host_usb_dev()
389 tmpd = self.servo.system_output('mktemp -d -t usbcheck.XXXX')
390 self.servo.system('mount -o ro %s %s' % (rootfs, tmpd))
393 usb_lsb = self.servo.system_output('cat %s' %
408 self.servo.system(cmd)
433 self.servo.switch_usbkey('host')
435 self.servo.switch_usbkey('dut')
460 self.servo.set_servo_v4_role('snk')
467 self.servo.set_servo_v4_role('src')
477 original_value = self.servo.get_usbkey_direction()
480 self.servo.switch_usbkey('off')
485 self.servo.switch_usbkey('dut')
491 if original_value != self.servo.get_usbkey_direction():
492 self.servo.switch_usbkey(original_value)
649 self.servo.set('fw_wp_state', 'force_on' if enable else 'force_off')
740 self.servo.set('cpu_uart_capture', 'on')
749 self.servo.get('cr50_version')
750 self.servo.set('cr50_uart_capture', 'on')
752 self.cr50 = chrome_cr50.ChromeCr50(self.servo)
758 self.servo.set('ec_uart_capture', 'on')
767 self.servo.set('usbpd_uart_capture', 'on')
777 self.servo.set('servo_micro_uart_capture', 'on')
784 self.servo.set('servo_v4_uart_capture', 'on')
795 f.write(ast.literal_eval(self.servo.get('cpu_uart_stream')))
798 f.write(ast.literal_eval(self.servo.get('cr50_uart_stream')))
801 f.write(ast.literal_eval(self.servo.get('ec_uart_stream')))
804 f.write(ast.literal_eval(self.servo.get(
808 f.write(ast.literal_eval(self.servo.get(
813 f.write(ast.literal_eval(self.servo.get('usbpd_uart_stream')))
819 self.servo.set('cpu_uart_capture', 'off')
821 self.servo.set('cr50_uart_capture', 'off')
823 self.servo.set('ec_uart_capture', 'off')
825 self.servo.set('servo_micro_uart_capture', 'off')
827 self.servo.set('servo_v4_uart_capture', 'off')
830 self.servo.set('usbpd_uart_capture', 'off')
867 servo_log = self.servo.system_output(cmd)
873 if self.servo.is_localhost():
1083 self.servo.power_key(self.faft_config.hold_pwr_button_poweroff)
1091 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)
1113 if self.servo.get("lid_open") == "no":
1115 self.servo.power_short_press()
1133 current_magic = self.servo.system_output(read_cmd)
1144 self.servo.system(write_cmd)
1146 if self.servo.system_output(read_cmd) != to_magic:
1244 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)