HomeSort by relevance Sort by last modified time
    Searched refs:servo (Results 1 - 25 of 70) sorted by null

1 2 3

  /hardware/bsp/intel/peripheral/libupm/examples/c++/
es08a.cxx 35 upm::ES08A *servo = new upm::ES08A(5); local
40 servo->setAngle (180);
43 servo->setAngle (90);
46 servo->setAngle (0);
49 servo->setAngle (90);
52 servo->setAngle (180);
58 delete servo;
adafruitss.cxx 28 * Demo program for Adafruit 16 channel servo shield/controller
29 * Physical setup for tests is a single servo attached to one channel.
52 servos->servo(n, 1, 0); // GWS Mini Servo = Type 1.
57 servos->servo(n, 1, 45);
62 servos->servo(n, 1, 90);
67 servos->servo(n, 1, 135);
72 servos->servo(n, 1, 160);
  /hardware/bsp/intel/peripheral/libupm/examples/java/
ES08ASample.java 37 upm_servo.ES08A servo = new upm_servo.ES08A(6); local
42 servo.setAngle(180);
46 servo.setAngle(90);
50 servo.setAngle(0);
54 servo.setAngle(90);
58 servo.setAngle(180);
  /external/autotest/server/site_tests/platform_CloseOpenLid/
platform_CloseOpenLid.py 9 """Uses servo to send the host to sleep and wake back up.
19 host.servo.lid_close()
22 host.servo.lid_open()
23 host.servo.pass_devmode()
28 host.servo.power_long_press()
32 host.servo.lid_close()
33 host.servo.lid_open()
34 host.servo.pass_devmode()
  /hardware/bsp/intel/peripheral/libupm/examples/python/
es08a.py 24 import pyupm_servo as servo
26 # Create the servo object using D5
27 gServo = servo.ES08A(5)
30 # Set the servo arm to 0 degrees
35 # Set the servo arm to 90 degrees
40 # Set the servo arm to 180 degrees
45 # Delete the servo object
  /external/autotest/server/cros/
usb_mux_controller.py 82 self.host.servo.system(UNEXPORT_GPIO_PIN % MUX_S0)
83 self.host.servo.system(UNEXPORT_GPIO_PIN % MUX_S1)
84 self.host.servo.system(UNEXPORT_GPIO_PIN % MUX_S2)
85 self.host.servo.system(UNEXPORT_GPIO_PIN % MUX_EN)
97 if 'gpio' + pin not in self.host.servo.system_output(LS_GPIO_DIRECTORY):
98 self.host.servo.system(EXPORT_GPIO_PIN % pin)
99 self.host.servo.system(SET_GPIO_DIRECTION % pin)
114 self.host.servo.system(SET_GPIO_VALUE % (port[0], MUX_S2))
115 self.host.servo.system(SET_GPIO_VALUE % (port[1], MUX_S1))
116 self.host.servo.system(SET_GPIO_VALUE % (port[2], MUX_S0)
    [all...]
  /external/autotest/contrib/
servo-inventory 4 # cautotest-cq. Find all hosts with a corresponding servo host.
5 # Run servo-stat for each of those hosts.
7 # Output from servo-stat goes to stdout. Starting and ending
17 ' | sort | ./haveservo | xargs -l1 ./servo-stat
  /external/autotest/server/site_tests/platform_LongPressPower/
platform_LongPressPower.py 11 """Uses servo pwr_button gpio to power the host off and back on.
19 host.servo.power_long_press()
26 host.servo.boot_devmode()
  /hardware/bsp/intel/peripheral/libupm/examples/javascript/
es08a.js 28 //Load servo module.
31 //Instantiate ES08A Servo module on GPIO 5
32 var servo = new servoModule.ES08A(5);
34 // function to initialize servo
36 // should we start this servo instance
47 servo.setAngle(angle);
  /external/autotest/server/site_tests/factory_InstallServo/
factory_InstallServo.py 6 Factory install servo tests.
13 debug_image_usb: whether to image the USB disk in servo mode (default to
26 from autotest_lib.server.cros.servo import servo
37 self.servo = servo.Servo(
40 del self.servo
42 self.servo.initialize_dut(cold_reset=True)
44 self.servo.enable_usb_hub(
    [all...]
  /external/autotest/server/site_tests/firmware_InvalidUSB/
firmware_InvalidUSB.py 15 Servo based booting an invalid USB image test.
26 self.servo.switch_usbkey('host')
27 usb_dev = self.servo.probe_host_usb_dev()
32 self.servo.switch_usbkey('host')
33 usb_dev = self.servo.probe_host_usb_dev()
37 self.servo.switch_usbkey('dut')
61 self.servo.switch_usbkey('dut')
  /external/autotest/server/site_tests/platform_InstallRecoveryImage/
platform_InstallRecoveryImage.py 12 """Installs a specified recovery image onto a servo-connected DUT."""
18 host.servo.install_recovery_image(image,
32 host.servo.switch_usbkey('host')
  /external/autotest/server/site_tests/firmware_FwScreenCloseLid/
firmware_FwScreenCloseLid.py 14 Servo based lid close triggered shutdown test during firmware screens.
28 self.servo.lid_close()
43 self.servo.switch_usbkey('dut')
52 self.servo.switch_usbkey('host')
53 usb_dev = self.servo.probe_host_usb_dev()
60 self.servo.switch_usbkey('host')
61 usb_dev = self.servo.probe_host_usb_dev()
89 pre_power_action=self.servo.lid_open,
103 pre_power_action=self.servo.lid_open,
117 pre_power_action=self.servo.lid_open
    [all...]
  /external/autotest/server/cros/servo/
firmware_programmer.py 5 """A utility to program Chrome OS devices' firmware using servo.
7 This utility expects the DUT to be connected to a servo device. This allows us
9 firmware using FTDI, USB and/or serial interfaces provided by servo.
11 Servo state is preserved across the programming process.
38 _servo: a servo object controlling the servo device
40 listing servo controls and their required values for
42 _servo_prog_state_delay: time in second to wait after changing servo
46 _program_cmd: a string, the shell command to run on the servo host
51 def __init__(self, servo, req_list)
    [all...]
chrome_usbpd.py 8 from autotest_lib.server.cros.servo import chrome_ec
14 We control the Chrome USBPD via the UART of a Servo board. Chrome USBPD
21 def __init__(self, servo):
22 """Initialize and keep the servo object.
24 @param servo: A Servo object
26 super(ChromeUSBPD, self).__init__(servo)
  /external/autotest/server/site_tests/firmware_ECLidShutdown/
firmware_ECLidShutdown.py 41 if self.servo.get('lid_open') == 'no':
42 self.servo.set('lid_open', 'yes')
60 self.servo.set('ec_uart_regexp', 'None')
74 self.servo.set('lid_open', 'no')
79 self.servo.set('lid_open', 'yes')
101 self.servo.set('lid_open', 'no')
106 self.servo.set('lid_open', 'yes')
  /external/autotest/server/site_tests/power_USBHotplugInSuspend/
power_USBHotplugInSuspend.py 23 self._host.servo.set('prtctl4_pwren', 'on')
25 self._host.servo.set('prtctl4_pwren', 'off')
26 time.sleep(self._host.servo.USB_POWEROFF_DELAY)
55 USB key is plugged into the servo and is facing the DUT.
98 self._host.servo.switch_usbkey(self._init_usbkey_direction)
107 self._init_usbkey_power = self._host.servo.get('prtctl4_pwren')
108 self._init_usbkey_direction = self._host.servo.get_usbkey_direction()
111 self._host.servo.switch_usbkey('dut')
120 'plugged into the servo?')
  /external/autotest/server/site_tests/platform_ExternalUSBBootStress/
platform_ExternalUSBBootStress.py 9 from autotest_lib.server.cros.servo import servo
15 """Uses servo to repeatedly connect/remove USB devices during boot."""
21 # The servo hubs come up as diffs in connected components. These
22 # should be ignored for this test. It is a list so when servo next
48 host.servo.set('dut_hub1_rst1', reset)
63 host.servo.switch_usbkey('dut')
64 host.servo.set('usb_mux_sel3', 'dut_sees_usbkey')
76 'and DUT_HUB1_USB on the servo board.')
97 # For devices that do not support gbb we have servo
    [all...]
  /external/autotest/server/site_tests/platform_ExternalUSBStress/
platform_ExternalUSBStress.py 15 """Uses servo to repeatedly connect/remove USB devices."""
22 if host.servo.get('lid_open') == 'not_applicable':
26 host.servo.lid_open()
27 if host.servo.get('lid_open') != 'yes':
28 raise error.TestError('SERVO has a bad lid_open control')
33 # The servo hubs come up as diffs in connected components. These
65 @param on: To power on the servo-usb hub or not
72 host.servo.set('dut_hub1_rst1', reset)
111 host.servo.lid_close()
124 host.servo.lid_open(
    [all...]
  /external/autotest/server/cros/faft/utils/
mode_switcher.py 23 self.servo = faft_framework.servo
64 self.servo.ctrl_d()
70 self.servo.ctrl_u()
75 self.servo.switch_usbkey('host')
77 self.servo.switch_usbkey('dut')
80 psc = self.servo.get_power_state_controller()
90 self.servo.enter_key(press_secs=0)
96 self.servo.ctrl_d()
102 self.servo.ctrl_d(
    [all...]
  /external/autotest/server/site_tests/network_WiFi_SuspendStress/
network_WiFi_SuspendStress.py 20 """Uses servo to repeatedly close & open lid while running BrowserTests."""
60 if self._host.servo.get('lid_open') == 'not_applicable':
63 self._host.servo.lid_close()
65 self._host.servo.lid_open()
81 if not self._host.servo:
83 'Servo object returned None. Check if servo is missing or bad')
88 if self._host.servo.get('cold_reset') == 'on':
124 if self._host.servo and self._host.servo.get('cold_reset') == 'off'
    [all...]
  /external/autotest/server/site_tests/audio_AudioRoutingUSB/
audio_AudioRoutingUSB.py 30 host.servo.set('dut_usb2_prtctl', 'on')
33 host.servo.set('usb_mux_oe2', 'off')
38 host.servo.set('usb_mux_oe2', 'on')
43 host.servo.set('usb_mux_oe2', 'off')
  /external/autotest/server/site_tests/firmware_ECPowerButton/
firmware_ECPowerButton.py 15 Servo based EC power button test.
53 Timer(3, self.servo.power_key, [0.001]).start()
64 self.servo.power_key(shutdown_powerkey_duration)
66 self.servo.power_key,
76 if self.servo.is_localhost():
  /external/autotest/server/site_tests/system_ColdBoot/
system_ColdBoot.py 28 host.servo.power_normal_press()
  /external/autotest/server/site_tests/infra_ServoDiagnosis/
infra_ServoDiagnosis.py 10 from autotest_lib.server.cros.servo import servo
18 """Data needed to handle one diagnostic test on a Servo host.
26 All tests have the implicit pre-requisite that the servo host
59 The test receives ServoHost and Servo objects to be tested;
64 @param servod A Servo object to be the target of the
77 """Test whether the servo host answers to ssh.
100 the underlying call to servo raises an exception.
118 'release'. When the servo flex cable is not attached, the
130 @param servod The Servo object to be tested
    [all...]

Completed in 194 milliseconds

1 2 3