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_ratio
0.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_pass
5
mode
"brightness"
timeout_secs
3
brightness_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_pass
100
mode
"frame_count"
timeout_secs
1000
show_image
false
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_mode
false
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_secs
2000
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_secs
2000
camera_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_secs
1000
show_image
false
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_mode
false
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_secs
2000
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_secs
1000
show_image
false
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