/external/autotest/server/site_tests/platform_PowerStatusStress/ |
platform_PowerStatusStress.py | 18 """Uses RPM and servo to test the power_supply_info output. """ 64 self.host.servo.lid_close() 73 self.host.servo.lid_open() 75 self.host.servo.power_key(_WAKE_PRESS_IN_SEC) 82 self.host.servo.lid_open() 134 if self.host.servo.get('lid_open') == 'not_applicable': 138 self.host.servo.lid_open() 139 if self.host.servo.get('lid_open') != 'yes': 140 raise error.TestError('BAD lid_open control. Reset servo!')
|
/external/autotest/server/cros/faft/ |
firmware_test.py | 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' [all...] |
/external/autotest/server/site_tests/firmware_FwScreenPressPower/ |
firmware_FwScreenPressPower.py | 15 Servo based power button triggered shutdown test during firmware screens. 32 self.servo.power_normal_press() 47 self.servo.switch_usbkey('dut') 55 self.servo.switch_usbkey('host') 56 usb_dev = self.servo.probe_host_usb_dev() 62 self.servo.switch_usbkey('host') 63 usb_dev = self.servo.probe_host_usb_dev()
|
/external/autotest/contrib/ |
servo-stat | 4 # servo-stat DUT ... 6 # Reports the status of the servo (if any) attached to the DUT. 7 # The DUT name is the host name without the .cros, or -servo. 20 HDCTOOLS=$(readlink -f $REPO/chroot/usr/lib/python2.7/site-packages/servo) 46 local servo=$1 48 timeout 45 ssh "${ssh_opts[@]}" root@$servo "$@" 55 SERVO=$H-servo.cros 64 if ping -c1 -w2 $SERVO >/dev/null 2>&1 67 if BUTTON=$(dut_control -s $SERVO pwr_button 2>&1 [all...] |
/external/autotest/server/site_tests/network_WiFi_RoamSuspendEndToEnd/ |
network_WiFi_RoamSuspendEndToEnd.py | 20 trigger the client test. Second, where we Suspend/Resume the DUT using servo 46 if self._host.servo.get('lid_open') == 'not_applicable': 50 self._host.servo.lid_close() 53 self._host.servo.lid_open() 66 if not self._host.servo: 68 'Servo object returned None. Check if servo is missing or bad')
|
/external/autotest/server/site_tests/power_BatteryStateOnResume/ |
power_BatteryStateOnResume.py | 22 If DUT is connected to USB powerstrip(via servo), Need to pass cmdlineargs 24 If DUT is not connected to servo and RPM. i.e to handle manually, Need to 58 host.servo.lid_close() 61 host.servo.lid_open() 67 host.servo.lid_close() 70 host.servo.lid_open()
|
/external/autotest/server/site_tests/firmware_ECThermal/ |
firmware_ECThermal.py | 15 Servo based EC thermal engine test. 28 # Margin for comparing servo based and ectool based CPU temperature 45 # We use set_nocheck because servo reports current target 46 # RPM instead 'auto', and therefore servo.set always fails. 47 self.servo.set_nocheck('fan_target_rpm', 'auto') 52 # We use set_nocheck because servo reports current target 53 # RPM instead 'max', and therefore servo.set always fails. 54 self.servo.set_nocheck('fan_target_rpm', 'max') 59 self.servo.set('fan_target_rpm', 'off') 111 self.servo.set_nocheck('fan_target_rpm', "%d" % self._fan_steps[i] [all...] |
/external/autotest/server/hosts/ |
servo_host.py | 9 """This file provides core logic for servo verify/repair process.""" 30 from autotest_lib.server.cros.servo import servo 37 # the servo_host and servo_port for a servo connected to the DUT. 49 """Raised when servo verification fails.""" 54 """Raised when a repair method fails to repair a servo host.""" 64 """Raised if all attempts to repair a servo host fail.""" 69 """Given a DUT's hostname, return the hostname of its servo. 73 @return hostname of the DUT's servo. 77 host_parts[0] = host_parts[0] + '-servo' [all...] |
/external/autotest/server/cros/ |
dark_resume_utils.py | 29 servo. 36 |servo|. 39 @param servo: a servo host connected to the DUT 179 # Double tap servo key to make sure we signal user activity to Chrome. 183 host.servo.ctrl_key() 185 host.servo.ctrl_key() 194 host.servo.power_key()
|
/external/autotest/server/cros/servo/ |
plankton.py | 9 from autotest_lib.server.cros.servo import chrome_ec 24 We control the PD console via the UART of a Servo board. Plankton 25 provides many interfaces that access the servo directly. It can 51 def __init__(self, servo, servod_proxy): 52 """Initialize and keep the servo object. 54 @param servo: A Servo object 57 super(Plankton, self).__init__(servo) 76 @param control_name: plankton servo control item 77 @param value: value to set plankton servo control ite [all...] |
/external/autotest/server/site_tests/cellular_ChromeEndToEnd/ |
cellular_ChromeEndToEnd.py | 38 self._servo = host.servo 41 logging.info('Host %s does not have a servo.', host.hostname)
|
/hardware/bsp/intel/peripheral/libupm/src/adafruitss/ |
adafruitss.h | 58 * @brief Adafruit PCA9685-based Servo Shield library 66 * @comname Adafruit Servo Shield 72 * @brief API for the Adafruit Servo Shield 74 * UPM library for the PCA9685-based Adafruit 16-channel servo shield. If 3 89 * @param i2c_address Address of the servo shield on the I2C bus 102 * @param port Port of the servo on the shield (servo number) 105 * @param degrees Angle to set the servo to 107 void servo(uint8_t port, uint8_t servo_type, float degrees);
|
/external/autotest/server/site_tests/firmware_DevTriggerRecovery/ |
firmware_DevTriggerRecovery.py | 14 Servo based recovery boot test triggered by pressing enter at dev screen. 73 self.servo.enable_development_mode() 95 self.servo.disable_development_mode()
|
/external/autotest/server/site_tests/firmware_FAFTSetup/ |
firmware_FAFTSetup.py | 17 - USB stick is plugged into Servo board, not DUT 70 """Press 'd', Ctrl, ENTER by servo and check from DUT.""" 73 self.servo.ctrl_d() 74 self.servo.enter_key()
|
/external/autotest/server/site_tests/power_DarkResumeShutdownServer/ |
power_DarkResumeShutdownServer.py | 109 host.servo.power_normal_press() 118 host.servo.ctrl_key()
|
/external/autotest/site_utils/deployment/ |
install.py | 12 a servo. 28 * Configure the servo for the target board, and test that the 29 servo is generally in good order. 32 * For both cases, use servo to install the stable test image from 37 * Every DUT has a properly connected servo. 38 * Every DUT and servo have proper DHCP and DNS configurations. 39 * Every servo host is up and running, and accessible via SSH. 41 installed on the target DUTs via servo. 191 """Check that servo for the given host is working. 194 * Confirm that the servo host is reachable via SSH [all...] |
/external/autotest/server/site_tests/display_Resolution/ |
display_Resolution.py | 47 # Check the servo object 48 if test_lid_close_open and host.servo is None: 49 raise error.TestError('Invalid servo object found on the host.') 81 host.servo.lid_close() 96 host.servo.lid_open()
|
/external/autotest/server/site_tests/kernel_ExternalUsbPeripheralsDetectionTest/ |
kernel_ExternalUsbPeripheralsDetectionTest.py | 14 """Uses servo to repeatedly connect/remove USB devices during boot.""" 21 @param: on To power on the servo-usb hub or not 27 self.host.servo.set('dut_hub1_rst1', reset) 106 self.host.servo.switch_usbkey('dut') 107 self.host.servo.set('usb_mux_sel3', 'dut_sees_usbkey') 123 'and DUT_HUB1_USB on the servo board.')
|
/external/autotest/server/site_tests/platform_ServoPowerStateController/ |
platform_ServoPowerStateController.py | 12 """Test servo can power on and off DUT in recovery and non-recovery mode.""" 22 """Clean up DUT after servo actions.""" 26 self.host.servo.switch_usbkey('off') 66 """Run test when USB stick is plugged in to servo.""" 72 self.host.servo.switch_usbkey('off') 76 self.host.servo.switch_usbkey('dut') 86 self.host.servo.switch_usbkey('off') 95 self.host.servo.switch_usbkey('dut') 98 self.host.servo.switch_usbkey('off') 102 """Run test when USB stick is not plugged in servo."" [all...] |
/external/autotest/server/site_tests/power_SuspendShutdown/ |
power_SuspendShutdown.py | 183 host.servo.lid_close() 197 host.servo.lid_open() 206 host.servo.lid_open()
|
/external/autotest/server/site_tests/firmware_ECBattery/ |
firmware_ECBattery.py | 13 Servo based EC thermal battery status report test. 64 """Check if voltage reading from kernel and servo match. 70 servo_reading = int(self.servo.get('ppvar_vbat_mv')) 75 logging.info("Voltage reading from servo: %dmV", servo_reading) 79 "Voltage reading from servo (%dmV) and kernel (%dmV) " 84 """Check if current reading from kernel and servo match. 90 # The signs of the current values from servo and kernel are not 93 servo_reading = abs(int(self.servo.get('ppvar_vbat_ma'))) 98 logging.info("Current reading from servo: %dmA", servo_reading) 102 "Current reading from servo (%dmA) and kernel (%dmA) [all...] |
/external/autotest/server/site_tests/firmware_FastbootErase/ |
firmware_FastbootErase.py | 83 self.servo.volume_down() 84 self.servo.power_key(self.faft_config.hold_pwr_button_poweron)
|
/external/autotest/server/site_tests/firmware_ShellBall/ |
firmware_ShellBall.py | 27 self.servo.enable_development_mode() 30 self.servo.disable_development_mode()
|
/external/autotest/server/site_tests/network_StressServoEthernetPlug/ |
network_StressServoEthernetPlug.py | 33 # is that associated with servo. 41 raise error.TestError('Cannot find servo ethernet interface') 43 logging.info('Servo eth: %s', self.servo_iface) 49 self.host.servo.set('dut_hub_on', 'yes') 54 self.host.servo.set('dut_hub_on', 'no')
|
/external/autotest/server/site_tests/firmware_ECPowerG3/ |
firmware_ECPowerG3.py | 13 Servo based EC X86 power G3 drop test. 39 self.servo.power_short_press()
|