xref: /aosp_15_r20/cts/tests/tests/media/codec/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2021 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_team: "trendy_team_android_media_codec_framework",
17    // See: http://go/android-license-faq
18    default_applicable_licenses: [
19        "Android-Apache-2.0",
20        "cts_tests_tests_media_license", // CC-BY
21    ],
22}
23
24java_defaults {
25    name: "MediaCodecTestCases_defaults",
26    defaults: ["cts_defaults"],
27    // include both the 32 and 64 bit versions
28    compile_multilib: "both",
29    static_libs: [
30        "ctstestrunner-axt",
31        "cts-media-common",
32        "testng",
33    ],
34    jni_libs: [
35        "libctsmediacommon_jni",
36    ],
37    aaptflags: [
38        // Do not compress these files:
39        "-0 .vp9",
40        "-0 .ts",
41        "-0 .heic",
42        "-0 .trp",
43        "-0 .ota",
44        "-0 .mxmf",
45    ],
46    srcs: [
47        "src/**/*.java",
48        "aidl/**/*.aidl",
49    ],
50    // This test uses private APIs
51    platform_apis: true,
52    jni_uses_sdk_apis: true,
53    libs: [
54        "android.test.base.stubs.system",
55        "android.test.runner.stubs.system",
56    ],
57    host_required: ["cts-dynamic-config"],
58    min_sdk_version: "29",
59    target_sdk_version: "31",
60}
61
62android_test {
63    name: "CtsMediaCodecTestCases",
64    defaults: ["MediaCodecTestCases_defaults"],
65    test_config: "AndroidTest.xml",
66    test_suites: [
67        "cts",
68        "general-tests",
69    ],
70}
71
72android_test {
73    name: "MctsMediaCodecTestCases",
74    defaults: ["MediaCodecTestCases_defaults"],
75    test_config: "AndroidTest-mcts.xml",
76    test_suites: [
77        "cts",
78        "general-tests",
79        "mcts-media",
80        "mts-media",
81    ],
82}
83
84test_module_config {
85    name: "CtsMediaCodecTestCases_cts_encodedecodetest",
86    base: "CtsMediaCodecTestCases",
87    test_suites: ["general-tests"],
88    include_filters: ["android.media.codec.cts.EncodeDecodeTest"],
89}
90
91test_module_config {
92    name: "CtsMediaCodecTestCases_cts_decodeeditencodetest",
93    base: "CtsMediaCodecTestCases",
94    test_suites: ["general-tests"],
95    include_filters: ["android.media.codec.cts.DecodeEditEncodeTest"],
96}
97