tree: 7939cf9d5f6a428d2a1ed0e0111d26b2c3c71728 [path history] [tgz]
  1. app/
  2. src/
  3. Android.bp
  4. AndroidTest.xml
  8. setup.png

CEC CTS testing for Android TV devices

NOTE: CTS has two meanings here. HDMI defines a set of tests in the Compliance Test Specification of HDMI 1.4b HDMI Compliance Test Specification 1.4b and Android Compatibility Test Suite.

The Android Compatibility Test Suite includes specific tests from the HDMI Compliance Test Specification as well as other Android specific tests.


Source devices

Running these CTS tests requires a specific HDMI layout with a CEC adapter.

It is recommended that the source device has an HDMI physical address of while running the tests. In case the DUT takes a physical address other than and this is unavoidable, the tests can be configured to expect a different physical address by appending these arguments to the tradefed command:

--module-arg CtsHdmiCecHostTestCases:set-option:cec-phy-addr:<address_in_decimal>

Thus, for a device that is taking an address, pass 12288 as the cec-phy-addr argument.

The CEC adapter may also be installed in-between the TV and the source device.


TV panel devices

Running these CTS tests on TV panel devices requires an external CEC adapter.

It is recommended to connect the CEC adapter to the HDMI ARC port of the TV device.


Given the setup described above you can run this test module with the following commands:


cts-tradefed > run cts -m CtsHdmiCecHostTestCases


atest CtsHdmiCecHostTestCases

To shard the test (distribute and run the tests on multiple devices), use this command -

./cts-tradefed run commandAndExit cts --enable-token-sharding --shard-count 3 -m CtsHdmiCecHostTestCases

The shard count corresponds to the number of DUTs connected to the host.