• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    // See: http://go/android-license-faq
17    default_applicable_licenses: [
18        "Android-Apache-2.0",
19        "cts_tests_tests_media_license", // CC-BY
20    ],
21    default_team: "trendy_team_android_media_solutions_playback",
22}
23
24java_defaults {
25    name: "MediaPlayerTestCases_defaults",
26    defaults: ["cts_defaults"],
27    // include both the 32 and 64 bit versions
28    compile_multilib: "both",
29    static_libs: [
30        "androidx.core_core",
31        "ctstestrunner-axt",
32        "ctstestserver",
33        "cts-media-common",
34    ],
35    resource_dirs: ["res"],
36    // do not compress media files
37    aaptflags: [
38        "-0 .vp9",
39        "-0 .ts",
40        "-0 .heic",
41        "-0 .trp",
42        "-0 .ota",
43        "-0 .mxmf",
44    ],
45    srcs: [
46        "src/**/*.java",
47        "aidl/**/*.aidl",
48    ],
49    platform_apis: true,
50    jni_uses_sdk_apis: true,
51    libs: [
52        "org.apache.http.legacy.stubs.system",
53        "android.test.base.stubs.system",
54        "android.test.runner.stubs.system",
55    ],
56    host_required: ["cts-dynamic-config"],
57    min_sdk_version: "29",
58    target_sdk_version: "31",
59}
60
61android_test {
62    name: "CtsMediaPlayerTestCases",
63    defaults: ["MediaPlayerTestCases_defaults"],
64    test_config: "AndroidTest.xml",
65    test_suites: [
66        "cts",
67        "general-tests",
68    ],
69}
70
71android_test {
72    name: "MctsMediaPlayerTestCases",
73    defaults: ["MediaPlayerTestCases_defaults"],
74    test_config: "AndroidTest-mcts.xml",
75    test_suites: [
76        "cts",
77        "general-tests",
78        "mcts-media",
79        "mts-media",
80    ],
81}
82
83test_module_config {
84    name: "CtsMediaPlayerTestCases_Presubmit_NoDevice",
85    base: "CtsMediaPlayerTestCases",
86    test_suites: ["general-tests"],
87    include_annotations: ["android.platform.test.annotations.Presubmit"],
88    exclude_annotations: ["android.platform.test.annotations.RequiresDevice"],
89}
90