1/* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17android_test { 18 name: "MediaBenchmarkTest", 19 20 defaults: [ 21 "MediaBenchmark-defaults", 22 ], 23 24 // Include all the test code 25 srcs: ["src/androidTest/**/*.java"], 26 27 resource_dirs: ["res"], 28 29 libs: [ 30 "android.test.runner", 31 "android.test.base", 32 ], 33 34 jni_libs: [ 35 "libmediabenchmark_jni", 36 ], 37 38 static_libs: [ 39 "libMediaBenchmark", 40 "junit", 41 "androidx.test.runner", 42 ], 43} 44 45android_library { 46 name: "libMediaBenchmark", 47 48 defaults: [ 49 "MediaBenchmark-defaults", 50 ], 51 52 // Include all the libraries 53 srcs: ["src/main/**/*.java"], 54 55 static_libs: [ 56 "androidx.test.core", 57 ], 58} 59 60java_defaults { 61 name: "MediaBenchmark-defaults", 62 63 sdk_version: "system_current", 64 min_sdk_version: "28", 65 target_sdk_version: "29", 66} 67