Using CTS Verifier

The Android Compatibility Test Suite Verifier (CTS Verifier) supplements the
Compatibility Test Suite (CTS). While CTS checks APIs and functions that can be
automated, CTS Verifier provides tests for APIs and functions that can't be
tested on a stationary device without manual input, such as audio quality,
touchscreen, accelerometer, and camera.

Requirements

Before running CTS Verifier, ensure that you have the following equipment:

Android device that has verified Android API compatibility by successfully
passing the CTS. This is the device under test (DUT).

Linux computer with USB 2.0 compatible port. All connections to the DUT go
through this port.

Measure the distance (in centimeters) between the solid lines on the target
pattern to account for printing inaccuracies (~38 cm).

Start the calibration application.

Press the setup button and select Marker distance.

Measure and enter the distance to the target pattern (~100 cm).

Press the back button to return to the calibration preview.

Verify that the device and target are placed as shown in the figure and the
correct distances have been entered into the setup dialog. The preview displays the image with a
vertical line overlaid onto it; this line should align
with the center line of the target pattern. The transparent grid can be used
with the other vertical lines to ensure that the optical axis is orthogonal to
the target.

Run the calibration test:

Select an image resolution (using selector at the bottom left), then tap the
screen to take a photo. The test enters calibration mode and displays the photo
with two vertical lines overlaid onto the image.

Determine accuracy:

If the lines align with the vertical lines on the target pattern within a
few centimeters, the reported field of view for the selected resoultion is accurate.

If the lines don't align, the reported field of view is inaccurate. To
correct this, adjust the slider at the bottom of the screen until the overlay aligns
with the target pattern as closely as possible. When the overlay and the target
pattern image are aligned, the displayed field of view is a close
approximation to the correct value. The reported field of view should be
within +/-1 degree of the calibration value.

Press back button and repeat the calibration test for all image resolutions
supported by the DUT.

Exporting results

After all tests complete, you can save the results as a report and download them
to a computer. Report names are automatically time-stamped based on the DUT
system time.

Wait for the popup message to display the path to the saved report (for example,
/sdcard/verifierReports/ctsVerifierReport-date-time.zip), then
record the path.Figure 9. CTS Verifier path to saved
report

Connect the DUT to the Linux computer.

From the Android SDK installation on the Linux computer, download reports
from the connected device using adb shell content read or adb pull
CTSVerifierReportPath.