camera

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 82 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArcCameraOrientation

func ArcCameraOrientation(ctx context.Context, s *testing.State)

func CCAAPI

func CCAAPI(ctx context.Context, s *testing.State)

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

func CCADocumentPerf(ctx context.Context, s *testing.State)

CCADocumentPerf runs the perf test which exercises document scanner library directly and send the performance metrics to CrosBolt.

func CCAQRCode

func CCAQRCode(ctx context.Context, s *testing.State)

func CCAQRCodePerf

func CCAQRCodePerf(ctx context.Context, s *testing.State)

func CCAUIA11y

func CCAUIA11y(ctx context.Context, s *testing.State)

func CCAUIAssistant

func CCAUIAssistant(ctx context.Context, s *testing.State)

CCAUIAssistant tests that the Camera app can be opened by the Assistant.

func CCAUICameraBoxDocumentScanning

func CCAUICameraBoxDocumentScanning(ctx context.Context, s *testing.State)

CCAUICameraBoxDocumentScanning tests that the detected document corners will be shown while under document scan mode.

func CCAUICameraBoxPortraitMode

func CCAUICameraBoxPortraitMode(ctx context.Context, s *testing.State)

CCAUICameraBoxPortraitMode tests that portrait mode works expectedly.

func CCAUICoexistence

func CCAUICoexistence(ctx context.Context, s *testing.State)

func CCAUIDocumentScanning

func CCAUIDocumentScanning(ctx context.Context, s *testing.State)

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 CCAUIExpert

func CCAUIExpert(ctx context.Context, s *testing.State)

func CCAUIGalleryButton

func CCAUIGalleryButton(ctx context.Context, s *testing.State)

func CCAUIGuest

func CCAUIGuest(ctx context.Context, s *testing.State)

func CCAUIImageExif

func CCAUIImageExif(ctx context.Context, s *testing.State)

CCAUIImageExif verifies captured image metadata information on EXIF.

func CCAUIIntent

func CCAUIIntent(ctx context.Context, s *testing.State)

func CCAUILauncher

func CCAUILauncher(ctx context.Context, s *testing.State)

func CCAUIModes

func CCAUIModes(ctx context.Context, s *testing.State)

func CCAUIMojo

func CCAUIMojo(ctx context.Context, s *testing.State)

func CCAUIMultiCamera

func CCAUIMultiCamera(ctx context.Context, s *testing.State)

func CCAUIMultiCameraScreenRotate

func CCAUIMultiCameraScreenRotate(ctx context.Context, s *testing.State)

CCAUIMultiCameraScreenRotate Open CCA, rotate the display to either take picture or record video using all available cameras.

func CCAUIPTZ

func CCAUIPTZ(ctx context.Context, s *testing.State)

func CCAUIPerf

func CCAUIPerf(ctx context.Context, s *testing.State)

CCAUIPerf measure cold/warm start time of CCA and also measure its performance through some UI operations.

func CCAUIPolicy

func CCAUIPolicy(ctx context.Context, s *testing.State)

func CCAUIPreview

func CCAUIPreview(ctx context.Context, s *testing.State)

func CCAUIPreviewLongTakePhoto

func CCAUIPreviewLongTakePhoto(ctx context.Context, s *testing.State)

CCAUIPreviewLongTakePhoto previews camera for long duration and takes photo.

func CCAUIPreviewOptions

func CCAUIPreviewOptions(ctx context.Context, s *testing.State)

func CCAUIQRCode

func CCAUIQRCode(ctx context.Context, s *testing.State)

func CCAUIRecordVideo

func CCAUIRecordVideo(ctx context.Context, s *testing.State)

func CCAUIRefresh

func CCAUIRefresh(ctx context.Context, s *testing.State)

func CCAUIResolutions

func CCAUIResolutions(ctx context.Context, s *testing.State)

func CCAUISettings

func CCAUISettings(ctx context.Context, s *testing.State)

func CCAUISmoke

func CCAUISmoke(ctx context.Context, s *testing.State)

func CCAUIStress

func CCAUIStress(ctx context.Context, s *testing.State)

func CCAUITakePicture

func CCAUITakePicture(ctx context.Context, s *testing.State)

func CCAUIVideoOptionPerf

func CCAUIVideoOptionPerf(ctx context.Context, s *testing.State)

func CCAUIVolumeShutter

func CCAUIVolumeShutter(ctx context.Context, s *testing.State)

func Capability

func Capability(ctx context.Context, s *testing.State)

Capability compares the static capabilities versus those detected in the DUT.

func CaptureUnittests

func CaptureUnittests(ctx context.Context, s *testing.State)

CaptureUnittests runs Chrome's capture_unittests.

func Characteristics

func Characteristics(ctx context.Context, s *testing.State)

func Connector

func Connector(ctx context.Context, s *testing.State)

func DecodeAccelJPEG

func DecodeAccelJPEG(ctx context.Context, s *testing.State)

DecodeAccelJPEG runs a set of HW JPEG decode tests, defined in jpeg_decode_accelerator_unittest.

func DecodeAccelJPEGPerf

func DecodeAccelJPEGPerf(ctx context.Context, s *testing.State)

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 DecodeAccelUsedJPEG

func DecodeAccelUsedJPEG(ctx context.Context, s *testing.State)

func EncodeAccelJPEG

func EncodeAccelJPEG(ctx context.Context, s *testing.State)

EncodeAccelJPEG runs a set of HW JPEG encode tests, defined in jpeg_encode_accelerator_unittest.

func EncodeAccelJPEGPerf

func EncodeAccelJPEGPerf(ctx context.Context, s *testing.State)

EncodeAccelJPEGPerf measures SW/HW JPEG encode performance by running the SimpleEncode test in jpeg_encode_accelerator_unittest.

func FirmwareUpdate

func FirmwareUpdate(ctx context.Context, s *testing.State)

func GCAMultiCamera

func GCAMultiCamera(ctx context.Context, s *testing.State)

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

func GCARecording(ctx context.Context, s *testing.State)

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

func GCAStillCapture(ctx context.Context, s *testing.State)

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

func GetUserMedia(ctx context.Context, s *testing.State)

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

func GetUserMediaPerf(ctx context.Context, s *testing.State)

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

func GetUserMediaPolicy(ctx context.Context, s *testing.State)

GetUserMediaPolicy tests whether admin policy can successfully blocks getUserMedia().

func HAL3Device

func HAL3Device(ctx context.Context, s *testing.State)

func HAL3Frame

func HAL3Frame(ctx context.Context, s *testing.State)

func HAL3JDA

func HAL3JDA(ctx context.Context, s *testing.State)

func HAL3JEA

func HAL3JEA(ctx context.Context, s *testing.State)

func HAL3Module

func HAL3Module(ctx context.Context, s *testing.State)

func HAL3Perf

func HAL3Perf(ctx context.Context, s *testing.State)

func HAL3PortraitMode

func HAL3PortraitMode(ctx context.Context, s *testing.State)

func HAL3Preview

func HAL3Preview(ctx context.Context, s *testing.State)

func HAL3Recording

func HAL3Recording(ctx context.Context, s *testing.State)

func HAL3StillCapture

func HAL3StillCapture(ctx context.Context, s *testing.State)

func HAL3StillCaptureZSL

func HAL3StillCaptureZSL(ctx context.Context, s *testing.State)

func HAL3Stream

func HAL3Stream(ctx context.Context, s *testing.State)

func HDRnetE2E

func HDRnetE2E(ctx context.Context, s *testing.State)

HDRnetE2E runs the HDRnet end-to-end subtests.

func HDRnetProcessorBenchmark

func HDRnetProcessorBenchmark(ctx context.Context, s *testing.State)

HDRnetProcessorBenchmark runs the HDRnet processor benchmark.

func LibJEA

func LibJEA(ctx context.Context, s *testing.State)

func MediaTrackAdvancedControls

func MediaTrackAdvancedControls(ctx context.Context, s *testing.State)

func PrivacySwitch

func PrivacySwitch(ctx context.Context, s *testing.State)

func V4L2

func V4L2(ctx context.Context, s *testing.State)

func V4L2Compliance

func V4L2Compliance(ctx context.Context, s *testing.State)

Types

type AlignmentService

type AlignmentService struct {
	// contains filtered or unexported fields
}

func (*AlignmentService) CheckRegression

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

type ITSService

type ITSService struct {
	// contains filtered or unexported fields
}

ITSService implements tast.cros.camerabox.ITSService.

func (*ITSService) SetUp

func (its *ITSService) SetUp(ctx context.Context, req *empty.Empty) (_ *empty.Empty, retErr error)

func (*ITSService) TearDown

func (its *ITSService) TearDown(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

Source Files

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL