• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Media Performance Class CTS Tests
2Current folder comprises of files necessary for testing media performance class.
3
4The test vectors used by the test suite is available at [link](https://storage.googleapis.com/android_media/cts/tests/mediapc/CtsMediaPerformanceClassTestCases-1.4.zip) and is downloaded automatically while running tests. Manual installation of these can be done using copy_media.sh script in this directory.
5
6### Commands
7#### To run all tests in CtsMediaPerformanceClassTestCases
8```sh
9$ atest CtsMediaPerformanceClassTestCases
10```
11#### To run a subset of tests in CtsMediaPerformanceClassTestCases
12```sh
13$ atest CtsMediaPerformanceClassTestCases:android.mediapc.cts.FrameDropTest
14```
15#### To run all tests in CtsMediaPerformanceClassTestCases by overriding Build.VERSION.MEDIA_PERFORMANCE_CLASS
16In some cases it might be useful to override Build.VERSION.MEDIA_PERFORMANCE_CLASS and run the tests.
17For eg: when the device doesn't advertise Build.VERSION.MEDIA_PERFORMANCE_CLASS, running the tests by overriding
18this will help in determining the which performance class requirements are met by the device.
19Following runs the tests by overriding Build.VERSION.MEDIA_PERFORMANCE_CLASS as S.
20```sh
21$ atest CtsMediaPerformanceClassTestCases -- --module-arg CtsMediaPerformanceClassTestCases:instrumentation-arg:media-performance-class:=31
22```
23