CTS Camera
1 Camera2AndroidTestCase
2 Camera2MultiViewTestCase
3 Camera2SurfaceViewTestCase
Test Name
1 AllocationTest
Page 1
Sheet1
2 BurstCaptureRawTest
3 BurstCaptureTest
4 Camera2MultiViewCtsActivity
5 Camera2SurfaceViewCtsActivity
Page 2
Sheet1
6 CaneraDeviceTest
7 CameraManagerTest
8 CameraTestUtils
Page 3
Sheet1
9 CaptureRequestTest
10 CaptureResultTest
11 DngCreatorTest
12 ExtendedCameraCharacteristicsTest
13 FlashlightTest
Page 4
Sheet1
14 ImageReaderTest
15 ImageWriterTest
16 MultiViewTest
17 NativeCameraDeviceTest
18 NativeCameraManagerTest
19 NativeImagReaderTest
20 NativeStillCaptureTest
21 PerformanceTest
22 RecordingTest
23 ReprocessCaptureTest
24 RobustnessTest
25 StaticMetadataTest
26 StillCaptureTest
27 SurfaceViewPreviewTest
Page 5
Sheet1
Description
Set up the camera2 test case required environments, including CameraManager, HandlerThre
etc.
Camera2 test case base class by using mixed SurfaceView and TextureView as rendering targ
Camera2 Preview test case base class by using SurfaceView as rendering target.
class encapsulates the SurfaceView based preview common functionalities.The setup
HandlerThread, Activity, Camera IDsand CameraStateCallback are handled in this class. Som
provided to facilitate the derived preview-based test classes.
1.Setup camera preview required environments, start camera preview using givent request pre
2.Configure the preview output stream, Create captureRequest builder and add the default pre
3.Stop preview for current camera device by closing the sessionand wait for it close.
4.Setup still ( JPEG) capture configuration and strat preview.
5.Setup RAW capture configuration and start preview. Wait for any expected result key values
6.Submit a capture once or (count) number of times, then submit additional captures in
synchronized. Wait for enough results for settings to be applied( AE to be stabilized and locke
7.Create an ( ImageReader ) object and get the surface. Close the pending images then close
8.Open a camera device and get the StaticMetadata for a given camera id. Close the current a
9. Update the preview surface size. Recreate the SurfaceView's Surface . Show/hide the previ
10.Setup single capture configuration and start preview.
Description
Provide suit of tests for camera2 RenderScript API's. It uses CameraDevice as produces, cam
by Allocation and only YUV_420_888: flexible YUV420 is mandatory format for camera.
to camera manager and update the request with default manual request template.
surface window cropped, calculates the absolute crop window size by creating relative crop co
single YUV pixel ( 3 byte elements) to an RGB pixel and configure the camera with the target
the request is created from the template (@link CameraDevice#TEMPLATE_PREVIEW).
request to camera, block untill the buffer is available. After completing capture disconnect from
at least one non-zero RGB pixel value, validate input and output are not zeros. Check if buffer
pre-frame-control with exposure/gain is working correctly (Take a shot with both very high Iso
time)
android.sensitivity.parameter is applied, Take burst shots with increasing sensitivity one after a
opening required camera deviece with supporting format and throw exceptions in case of failu
config output and repeating it.
Page 6
Sheet1
Test YUV burst capture with full-AUTO control. Also verifies sensor settings operation if READ
1.Configure basic preview and burst settings, create burst , verify the results and locked settin
inter frame-duration and get next result, verify inter-frame durations.
upper 97.5% bound (assuming durations are normally distributed), and compare standard dev
warning message but not enforce this.
Make a surface change and Check for surface state to become valid (surfaceCreated) / inv
change timeout.(create surface, chage surface, calculate timeout, and destroy surface).
Page 7
Sheet1
A package private utility class for wrapping up the camera2 cts test common utility functions.
Page 8
Sheet1
Basic test for camera CaptureRequest key controls. Several test categories are covered: ma
control and other per-frame control and synchronization.
Test black level lock when exposure value change.
dynamic black/white levels if they are supported.
shading map request test.
available anti-banding modes, check if the exposure time adjustment is correct. Test AE mod
{@link CaptureRequest#FLASH_MODE} control.
detection modes and results. Test tone map modes and controls. Test color correction modes a
distance control. Test AWB lock control. Test different AF modes.
optical stabilizations.
(center wise and non-center wise), validate the returned crop regions.
controls.Test effect mode controls.Per camera dynamic black and white level test. Verify fo
correction controls. Test flash mode control by AE mode. Test the all available AE modes (als
black level lock control. Verify black level lock control.
detection for a camera. Verify face detection results for different face detection modes. Test to
mode control.
optical stabilizations if they are supported by a given camera. Submit capture request and valid
Basic non-null check test for multiple capture results.
Tests for the DngCreator API. First load DNG validation jni on initialization.
1.Test basic raw capture and DNG saving functionality for each of the available cameras.
2.Test basic raw capture and DNG saving with a thumbnail, rotation, usercomment, and GPS
3.Test basic RAW capture, and ensure that the rendered RAW output is similar to the JPEG cr
4.Test basic DNG creation, ensure that the DNG image can be rendered by BitmapFactory.
5.Verify the image pair by comparing the center patch. Capture raw images. Use the DNG SD
Page 9
Sheet1
Basic test for ImageReader APIs. It uses CameraDevice as producer, camera sends the da
image formats: YUV_420_888: flexible YUV420, JPEG: used for JPEG still capture .
1.Test invalid access of image after an image is closed, further access of the image will get an
2.Test two image stream (YUV420_888 and JPEG) capture by using ImageReader.
3.Test two image stream (YUV420_888 and RAW_SENSOR) capture by using ImageReader.
4.Check that the center patches for YUV and JPEG outputs for the same frame match for e
Convert a rectangular patch in a YUV image to an ARGB color array.
capture a given format stream with yuv stream simultaneously. Validate capture results.
Basic test for ImageWriter APIs. ImageWriter takes the images produced by camera (via Im
either camera input interface or ImageReader.
YUV420_888 format ImageWriter ImageReader test that checks the images produced by cam
ImageWriter ImageReader test that checks the images produced by camera can be passed co
Basic test for CameraManager class. Load jni on initialization, Init preview surface to a guaran
Page 10