1// Copyright (C) 2019 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_applicable_licenses: ["Android-Apache-2.0"], 17 default_team: "trendy_team_android_media_codec_framework", 18} 19 20java_defaults { 21 name: "MediaV2TestCases_defaults", 22 defaults: ["cts_defaults"], 23 compile_multilib: "both", 24 static_libs: [ 25 "androidx.test.core", 26 "compatibility-device-util-axt", 27 "ctstestrunner-axt", 28 "ctstestserver", 29 "ctsmediav2common", 30 "aconfig_mediacodec_flags_java_lib", 31 "android.media.codec-aconfig-java", 32 "android.media.extractor.flags-aconfig-java", 33 "com.android.media.flags.editing-aconfig-java", 34 35 ], 36 libs: [ 37 "org.apache.http.legacy.stubs.system", 38 ], 39 platform_apis: true, 40 jni_uses_sdk_apis: true, 41 jni_libs: [ 42 "libctsmediav2muxer_jni", 43 "libctsmediav2extractor_jni", 44 "libctsmediav2codecdec_jni", 45 "libctsmediav2codecdecsurface_jni", 46 "libctsmediav2codecenc_jni", 47 "libctsmediav2codecencsurface_jni", 48 "libctsmediav2codecapiunit_jni", 49 "libctsmediav2utils_jni", 50 ], 51 srcs: ["src/**/*.java"], 52 min_sdk_version: "29", 53} 54 55android_test { 56 name: "CtsMediaV2TestCases", 57 defaults: ["MediaV2TestCases_defaults"], 58 test_config: "AndroidTest.xml", 59 test_suites: [ 60 "cts", 61 "general-tests", 62 ], 63} 64 65android_test { 66 name: "MctsMediaV2TestCases", 67 defaults: ["MediaV2TestCases_defaults"], 68 test_config: "AndroidTest-mcts.xml", 69 test_suites: [ 70 "cts", 71 "general-tests", 72 "mcts-media", 73 "mts-media", 74 ], 75} 76