generic_ec_component_accel¶
Predefined ec_component_accel tests. ec_component_accel is called “Accelerometer/IMU” in AVL.
Inherit¶
Accelerometers¶
pytest_name¶
AccelerometersCalibration¶
pytest_name¶
args¶
orientation{ "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 }
spec_offset[ 0.5, 0.5 ]
AccelerometersLidAngle¶
run_if¶
not constants.has_device_data or (device.component.has_lid_accelerometer and device.component.has_base_accelerometer)
pytest_name¶
args¶
angle180tolerance5spec_offset[ 0.5, 0.5 ]
BaseAccelerometers¶
run_if¶
not constants.has_device_data or device.component.has_base_accelerometer
pytest_name¶
args¶
location"base"
BaseAccelerometersCalibration¶
run_if¶
not constants.has_device_data or device.component.has_base_accelerometer
pytest_name¶
args¶
orientation{ "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 }
spec_offset[ 0.5, 0.5 ]
location"base"
Gyroscope¶
run_if¶
not constants.has_device_data or device.component.has_base_gyroscope
pytest_name¶
args¶
rotation_threshold1.0stop_threshold0.1
GyroscopeAngle¶
run_if¶
not constants.has_device_data or device.component.has_base_gyroscope
pytest_name¶
args¶
rotation_threshold90stop_threshold0.1
GyroscopeCalibration¶
run_if¶
not constants.has_device_data or device.component.has_base_gyroscope
pytest_name¶
LidAccelerometers¶
run_if¶
not constants.has_device_data or device.component.has_lid_accelerometer
pytest_name¶
args¶
location"lid"
LidAccelerometersCalibration¶
run_if¶
not constants.has_device_data or device.component.has_lid_accelerometer
pytest_name¶
args¶
orientation{ "in_accel_x": 0, "in_accel_y": 0, "in_accel_z": 1 }
spec_offset[ 0.5, 0.5 ]
location"lid"
NotebookMode¶
run_if¶
not constants.has_device_data or device.component.has_tabletmode
pytest_name¶
args¶
timeout_secs3600prompt_flip_tabletfalseprompt_flip_notebooktruelid_filter"cros_ec_buttons"
TabletMode¶
run_if¶
not constants.has_device_data or device.component.has_tabletmode
pytest_name¶
args¶
timeout_secs3600prompt_flip_tablettrueprompt_flip_notebookfalselid_filter"cros_ec_buttons"
TabletRotation¶
pytest_name¶
args¶
spec_offset[ 1.5, 1.5 ]
timeout_secs3600
TabletRotationAll¶
run_if¶
not constants.has_device_data or (device.component.has_base_accelerometer and device.component.has_lid_accelerometer)
pytest_name¶
args¶
spec_offset[ 1.5, 1.5 ]
timeout_secs3600degrees_to_orientations{ "base": { "0": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } }, "lid": { "0": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } }
TabletRotationBase¶
run_if¶
constants.has_device_data and device.component.has_base_accelerometer and not device.component.has_lid_accelerometer
pytest_name¶
args¶
spec_offset[ 1.5, 1.5 ]
timeout_secs3600degrees_to_orientations{ "base": { "0": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } }
TabletRotationLid¶
run_if¶
constants.has_device_data and not device.component.has_base_accelerometer and device.component.has_lid_accelerometer
pytest_name¶
args¶
spec_offset[ 1.5, 1.5 ]
timeout_secs3600degrees_to_orientations{ "lid": { "0": { "in_accel_x": 0, "in_accel_y": 1, "in_accel_z": 0 }, "180": { "in_accel_x": 0, "in_accel_y": -1, "in_accel_z": 0 }, "270": { "in_accel_x": -1, "in_accel_y": 0, "in_accel_z": 0 }, "90": { "in_accel_x": 1, "in_accel_y": 0, "in_accel_z": 0 } } }
ScreenRotation¶
run_if¶
not constants.has_device_data or device.component.has_tabletmode