Documentation ¶
Index ¶
- func ArcCameraOrientation(ctx context.Context, s *testing.State)
- func CCAAPI(ctx context.Context, s *testing.State)
- func CCADocumentPerf(ctx context.Context, s *testing.State)
- func CCAQRCode(ctx context.Context, s *testing.State)
- func CCAQRCodePerf(ctx context.Context, s *testing.State)
- func CCAUIA11y(ctx context.Context, s *testing.State)
- func CCAUIAssistant(ctx context.Context, s *testing.State)
- func CCAUICameraBoxDocumentScanning(ctx context.Context, s *testing.State)
- func CCAUICameraBoxPortraitMode(ctx context.Context, s *testing.State)
- func CCAUICoexistence(ctx context.Context, s *testing.State)
- func CCAUIDocumentScanning(ctx context.Context, s *testing.State)
- func CCAUIExpert(ctx context.Context, s *testing.State)
- func CCAUIGalleryButton(ctx context.Context, s *testing.State)
- func CCAUIGuest(ctx context.Context, s *testing.State)
- func CCAUIImageExif(ctx context.Context, s *testing.State)
- func CCAUIIntent(ctx context.Context, s *testing.State)
- func CCAUILauncher(ctx context.Context, s *testing.State)
- func CCAUIModes(ctx context.Context, s *testing.State)
- func CCAUIMojo(ctx context.Context, s *testing.State)
- func CCAUIMultiCamera(ctx context.Context, s *testing.State)
- func CCAUIMultiCameraScreenRotate(ctx context.Context, s *testing.State)
- func CCAUIPTZ(ctx context.Context, s *testing.State)
- func CCAUIPerf(ctx context.Context, s *testing.State)
- func CCAUIPolicy(ctx context.Context, s *testing.State)
- func CCAUIPreview(ctx context.Context, s *testing.State)
- func CCAUIPreviewLongTakePhoto(ctx context.Context, s *testing.State)
- func CCAUIPreviewOptions(ctx context.Context, s *testing.State)
- func CCAUIQRCode(ctx context.Context, s *testing.State)
- func CCAUIRecordVideo(ctx context.Context, s *testing.State)
- func CCAUIRefresh(ctx context.Context, s *testing.State)
- func CCAUIResolutions(ctx context.Context, s *testing.State)
- func CCAUISettings(ctx context.Context, s *testing.State)
- func CCAUISmoke(ctx context.Context, s *testing.State)
- func CCAUIStress(ctx context.Context, s *testing.State)
- func CCAUITakePicture(ctx context.Context, s *testing.State)
- func CCAUIVideoOptionPerf(ctx context.Context, s *testing.State)
- func CCAUIVolumeShutter(ctx context.Context, s *testing.State)
- func Capability(ctx context.Context, s *testing.State)
- func CaptureUnittests(ctx context.Context, s *testing.State)
- func Characteristics(ctx context.Context, s *testing.State)
- func Connector(ctx context.Context, s *testing.State)
- func DecodeAccelJPEG(ctx context.Context, s *testing.State)
- func DecodeAccelJPEGPerf(ctx context.Context, s *testing.State)
- func DecodeAccelUsedJPEG(ctx context.Context, s *testing.State)
- func EncodeAccelJPEG(ctx context.Context, s *testing.State)
- func EncodeAccelJPEGPerf(ctx context.Context, s *testing.State)
- func FirmwareUpdate(ctx context.Context, s *testing.State)
- func GCAMultiCamera(ctx context.Context, s *testing.State)
- func GCARecording(ctx context.Context, s *testing.State)
- func GCAStillCapture(ctx context.Context, s *testing.State)
- func GetUserMedia(ctx context.Context, s *testing.State)
- func GetUserMediaPerf(ctx context.Context, s *testing.State)
- func GetUserMediaPolicy(ctx context.Context, s *testing.State)
- func HAL3Device(ctx context.Context, s *testing.State)
- func HAL3Frame(ctx context.Context, s *testing.State)
- func HAL3JDA(ctx context.Context, s *testing.State)
- func HAL3JEA(ctx context.Context, s *testing.State)
- func HAL3Module(ctx context.Context, s *testing.State)
- func HAL3Perf(ctx context.Context, s *testing.State)
- func HAL3PortraitMode(ctx context.Context, s *testing.State)
- func HAL3Preview(ctx context.Context, s *testing.State)
- func HAL3Recording(ctx context.Context, s *testing.State)
- func HAL3StillCapture(ctx context.Context, s *testing.State)
- func HAL3StillCaptureZSL(ctx context.Context, s *testing.State)
- func HAL3Stream(ctx context.Context, s *testing.State)
- func HDRnetE2E(ctx context.Context, s *testing.State)
- func HDRnetProcessorBenchmark(ctx context.Context, s *testing.State)
- func LibJEA(ctx context.Context, s *testing.State)
- func MediaTrackAdvancedControls(ctx context.Context, s *testing.State)
- func PrivacySwitch(ctx context.Context, s *testing.State)
- func V4L2(ctx context.Context, s *testing.State)
- func V4L2Compliance(ctx context.Context, s *testing.State)
- type AlignmentService
- type HAL3Service
- type ITSService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CCAAPI ¶
CCAAPI verifies whether the private JavaScript APIs CCA (Chrome camera app) relies on work as expected. The APIs under testing are not owned by CCA team. This test prevents changes to those APIs' implementations from silently breaking CCA.
func CCADocumentPerf ¶
CCADocumentPerf runs the perf test which exercises document scanner library directly and send the performance metrics to CrosBolt.
func CCAUIAssistant ¶
CCAUIAssistant tests that the Camera app can be opened by the Assistant.
func CCAUICameraBoxDocumentScanning ¶
CCAUICameraBoxDocumentScanning tests that the detected document corners will be shown while under document scan mode.
func CCAUICameraBoxPortraitMode ¶
CCAUICameraBoxPortraitMode tests that portrait mode works expectedly.
func CCAUIDocumentScanning ¶
CCAUIDocumentScanning is the entry point for local document scanning test. We use File VCD with a video which has a document in the scene to simulate the real usage when scanning document. However, since document detection on preview only happens on CrOS VCD, we cannot use File VCD to test it. Therefore, we will leave that part to another test which is executed on a CameraBox.
func CCAUIImageExif ¶
CCAUIImageExif verifies captured image metadata information on EXIF.
func CCAUIMultiCameraScreenRotate ¶
CCAUIMultiCameraScreenRotate Open CCA, rotate the display to either take picture or record video using all available cameras.
func CCAUIPerf ¶
CCAUIPerf measure cold/warm start time of CCA and also measure its performance through some UI operations.
func CCAUIPreviewLongTakePhoto ¶
CCAUIPreviewLongTakePhoto previews camera for long duration and takes photo.
func Capability ¶
Capability compares the static capabilities versus those detected in the DUT.
func CaptureUnittests ¶
CaptureUnittests runs Chrome's capture_unittests.
func DecodeAccelJPEG ¶
DecodeAccelJPEG runs a set of HW JPEG decode tests, defined in jpeg_decode_accelerator_unittest.
func DecodeAccelJPEGPerf ¶
DecodeAccelJPEGPerf measures SW/HW jpeg decode performance by running the PerfSW and PerfJDA tests in the jpeg_decode_accelerator_unittest. TODO(dstaessens@) Currently the performance tests decode JPEGs as fast as possible. But this means a performant HW decoder might actually increase CPU usage, as the CPU becomes the bottleneck.
func EncodeAccelJPEG ¶
EncodeAccelJPEG runs a set of HW JPEG encode tests, defined in jpeg_encode_accelerator_unittest.
func EncodeAccelJPEGPerf ¶
EncodeAccelJPEGPerf measures SW/HW JPEG encode performance by running the SimpleEncode test in jpeg_encode_accelerator_unittest.
func GCAMultiCamera ¶
GCAMultiCamera tests multi-camera (camera switching) function of GoogleCameraArc (GCA). This test switches GCA to the next camera multiple times and verifies that the default camera facing stays the same after restarting the app. Note that this test is intended for devices with more than one camera. On single-camera devices, the test would always pass since there's no other camera to switch to. Ideally we'd like to skip the test, but it's technically infeasible to add an autotest-capability for it. We cannot get the number of cameras statically due to several complications with camera/device configurations.
func GCARecording ¶
GCARecording tests video recording with GoogleCameraArc (GCA). This test would record a video with the default resolution and verify that a matching output image file is created. Note that this test doesn't verify the integrity of the output file.
func GCAStillCapture ¶
GCAStillCapture tests still capture with GoogleCameraArc (GCA). This test would take a picture with the default resolution and verify that a matching output image file is created. Note that this test doesn't verify the integrity of the output file.
func GetUserMedia ¶
GetUserMedia calls getUserMedia call and renders the camera's media stream in a video tag. It will test VGA and 720p and check if the gUM call succeeds. This test will fail when an error occurs or too many frames are broken.
GetUserMedia performs video capturing for 3 seconds with 480p and 720p. (It's 10 seconds in case it runs under QEMU.) This a short version of camera.GetUserMediaPerf.
func GetUserMediaPerf ¶
GetUserMediaPerf is the full version of GetUserMedia. It renders the camera's media stream in VGA and 720p for 20 seconds. If there is no error while exercising the camera, it uploads statistics of black/frozen frames. This test will fail when an error occurs or too many frames are broken.
This test uses the real webcam unless it is running under QEMU. Under QEMU, it uses "vivid" instead, which is the virtual video test driver and can be used as an external USB camera.
func GetUserMediaPolicy ¶
GetUserMediaPolicy tests whether admin policy can successfully blocks getUserMedia().
func HDRnetProcessorBenchmark ¶
HDRnetProcessorBenchmark runs the HDRnet processor benchmark.
Types ¶
type AlignmentService ¶
type AlignmentService struct {
// contains filtered or unexported fields
}
func (*AlignmentService) CheckRegression ¶
func (a *AlignmentService) CheckRegression(ctx context.Context, req *pb.CheckRegressionRequest) (*pb.CheckRegressionResponse, error)
func (*AlignmentService) ManualAlign ¶
func (a *AlignmentService) ManualAlign(ctx context.Context, req *pb.ManualAlignRequest) (*empty.Empty, error)
type HAL3Service ¶
type HAL3Service struct {
// contains filtered or unexported fields
}
func (*HAL3Service) RunTest ¶
func (c *HAL3Service) RunTest(ctx context.Context, req *cameraboxpb.RunTestRequest) (_ *cameraboxpb.RunTestResponse, retErr error)
type ITSService ¶
type ITSService struct {
// contains filtered or unexported fields
}
ITSService implements tast.cros.camerabox.ITSService.
Source Files ¶
- alignment_service.go
- arc_camera_orientation.go
- capability.go
- capture_unittests.go
- cca_api.go
- cca_document_perf.go
- cca_qrcode.go
- cca_qrcode_perf.go
- cca_ui_a11y.go
- cca_ui_assistant.go
- cca_ui_camera_box_document_scanning.go
- cca_ui_camera_box_portrait_mode.go
- cca_ui_coexistence.go
- cca_ui_document_scanning.go
- cca_ui_expert.go
- cca_ui_gallery_button.go
- cca_ui_guest.go
- cca_ui_image_exif.go
- cca_ui_intent.go
- cca_ui_launcher.go
- cca_ui_modes.go
- cca_ui_mojo.go
- cca_ui_multi_camera.go
- cca_ui_multi_camera_screen_rotate.go
- cca_ui_perf.go
- cca_ui_policy.go
- cca_ui_preview.go
- cca_ui_preview_long_take_photo.go
- cca_ui_preview_options.go
- cca_ui_ptz.go
- cca_ui_qrcode.go
- cca_ui_record_video.go
- cca_ui_refresh.go
- cca_ui_resolutions.go
- cca_ui_settings.go
- cca_ui_smoke.go
- cca_ui_stress.go
- cca_ui_take_picture.go
- cca_ui_video_option_perf.go
- cca_ui_volume_shutter.go
- characteristics.go
- connector.go
- decode_accel_jpeg.go
- decode_accel_jpeg_perf.go
- decode_accel_used_jpeg.go
- encode_accel_jpeg.go
- encode_accel_jpeg_perf.go
- firmware_update.go
- gca_multi_camera.go
- gca_recording.go
- gca_still_capture.go
- get_user_media.go
- get_user_media_perf.go
- get_user_media_policy.go
- hal3_device.go
- hal3_frame.go
- hal3_jda.go
- hal3_jea.go
- hal3_module.go
- hal3_perf.go
- hal3_portrait_mode.go
- hal3_preview.go
- hal3_recording.go
- hal3_service.go
- hal3_still_capture.go
- hal3_still_capture_zsl.go
- hal3_stream.go
- hdrnet_e2e.go
- hdrnet_processor_benchmark.go
- its_service.go
- lib_jea.go
- media_track_advanced_controls.go
- privacy_switch.go
- v4l2.go
- v4l2_compliance.go
Directories ¶
Path | Synopsis |
---|---|
Package getusermedia provides code for webrtc.* tests related to getUserMedia(), see: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia.
|
Package getusermedia provides code for webrtc.* tests related to getUserMedia(), see: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia. |