• Home
Name Date Size #Lines LOC

..--

jni/03-May-2024-3,2892,226

res/03-May-2024-3017

src/org/chromium/c2/test/03-May-2024-174137

Android.mkD03-May-2024701 2815

AndroidManifest.xmlD03-May-20241.1 KiB3121

README.mdD03-May-20242 KiB7049

README.md

1# Codec2.0 End-to-end Test
2
3## Manually run the test
4
5You need to be running Android with v4l2_codec2 (e.g. ARC++, ARCVM) to run the
6tests. Make sure the device under test (DUT) is connected with adb.
7
81.  Build the e2e test
9
10    ```
11    (From the android tree)
12    $ mmm external/v4l2_codec2/tests/c2_e2e_test
13    ```
14
152.  Install the test app and grant the necessary permissions
16
17    ```
18    (Outside CrOS chroot)
19    $ adb install \
20      out/target/product/bertha_x86_64/testcases/C2E2ETest/x86_64/C2E2ETest.apk
21    $ adb shell pm grant \
22      org.chromium.c2.test android.permission.WRITE_EXTERNAL_STORAGE
23    $ adb shell pm grant \
24      org.chromium.c2.test android.permission.READ_EXTERNAL_STORAGE
25    ```
26
273.  Run E2E tests
28
29    (1) Push the test stream and frame-wise MD5 file to DUT
30
31    ```
32    $ adb push test-25fps.h264 /sdcard/Download
33    $ adb push test-25fps.h264.frames.md5 /sdcard/Download
34    ```
35
36    (2) Run the test binary
37
38    ```
39    $ adb shell am start -n \
40        org.chromium.c2.test/.E2eTestActivity \
41        --ez do-encode [true|false] \
42        --esa test-args [test-arg]... \
43        --es log-file "/sdcard/Download/gtest_logs.txt"'
44    ```
45
46    where do-encode controls whether the encoder or decoder tests are run.
47
48    (3) View the test output
49
50    ```
51    $ adb shell cat /sdcard/Download/gtest_logs.txt
52    ```
53
54Required test-args:
55
56    test_video_data=<format> : see arc_accel_video.go in the chromeos tree for format
57
58Optional test-args:
59
60    output_frames_path=path : path at which to save decoded frame data
61    loop : if present, videos loop until the activity is signaled with a new intent (e.g.
62           `adb shell am start -n .../.E2eTestActivity --activity-single-top`)
63    use_sw_decoder : if present, use a software decoder instead of a hardware decoder
64    gtest arguments : see gtest documentation
65
66Example of test-args:
67
68    --esa test-args "--test_video_data=/sdcard/Download/test-25fps.h264:320:240:250:258:::1:25",\
69                    "--gtest_filter=C2VideoDecoderSurfaceE2ETest.TestFPS",--use_sw_decoder
70