generic_camera_examples¶
Inherit¶
FrontCameraAssemble07¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"mode"camera_assemble"min_luminance_ratio0.7
FrontCameraBrightness¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"num_frames_to_pass5mode"brightness"timeout_secs3brightness_range[ null, 10 ]
FrontCameraFrames¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"num_frames_to_pass100mode"frame_count"timeout_secs1000show_imagefalse
FrontCameraManualOpenCV¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"mode"manual"e2e_modefalse
FrontCameraQRScan¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"mode"qr"QR_string"Hello ChromeOS!"timeout_secs2000
FrontCameraQRScan1920x1080¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"mode"qr"QR_string"Hello ChromeOS!"timeout_secs2000camera_args{ "resolution": [ 1920, 1080 ] }
FrontCameraStress¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_front_camera
pytest_name¶
args¶
camera_facing"front"mode"timeout"timeout_secs1000show_imagefalse
ProbeOneCamera¶
pytest_name¶
args¶
component_list[ "camera" ]
config_file"/usr/local/factory/py/hwid/v3/default_probe_statement.json"overridden_rules[ [ "camera", "==", 1 ] ]
ProbeTwoCameras¶
pytest_name¶
args¶
component_list[ "camera" ]
config_file"/usr/local/factory/py/hwid/v3/default_probe_statement.json"overridden_rules[ [ "camera", "==", 2 ] ]
RearCameraManualOpenCV¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_rear_camera
pytest_name¶
args¶
camera_facing"rear"mode"manual"e2e_modefalse
RearCameraQRScan¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_rear_camera
pytest_name¶
args¶
camera_facing"rear"mode"qr"QR_string"Hello ChromeOS!"timeout_secs2000
RearCameraStress¶
This test object cannot be run directly. User have to inherit and modify it.
run_if¶
not constants.has_device_data or device.component.has_rear_camera
pytest_name¶
args¶
camera_facing"rear"mode"timeout"timeout_secs1000show_imagefalse
SetHasFrontCamera¶
pytest_name¶
args¶
commands"factory device-data component.has_front_camera=1"
SetHasRearCamera¶
pytest_name¶
args¶
commands"factory device-data component.has_rear_camera=1"
UnsetHasFrontCamera¶
pytest_name¶
args¶
commands"factory device-data component.has_front_camera=0"
UnsetHasRearCamera¶
pytest_name¶
args¶
commands"factory device-data component.has_rear_camera=0"
CameraTests¶
Serial subtests¶
FrontCameraFace
FrontCameraLED
FrontCameraManual
FrontCameraAssemble
FrontCameraAssembleQR
CameraNoCharacteristics
RearCameraFace
RearCameraLED
RearCameraManual
RearCameraAssemble
RearCameraAssembleQR