1/* 2 * Copyright (C) 2021 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 17// Contains the Trade Federation extensions for the Audio Test Harness system. 18// 19// Per b/178739059 while the tradefed_java_library_host should be able to 20// automatically copy the JAR to the out/host/<target>/tradefed directory 21// it is currently non-functional. So, we instead use a regular 22// java_library_host and manually copy the JAR with the Android.mk file. 23 24package { 25 default_team: "trendy_team_android_video_image_codecs", 26 default_applicable_licenses: ["Android-Apache-2.0"], 27} 28 29tradefed_java_library_host { 30 name: "audiotestharness-tradefed-lib", 31 32 srcs: [ 33 "src/main/java/com/android/media/audiotestharness/tradefed/*.java", 34 ], 35 36 libs: [ 37 "tradefed", 38 ], 39 40 static_libs: [ 41 "audiotestharness-serverlib", 42 "audiotestharness-configlib", 43 "audiotestharness-commonprotolib-full", 44 "guava", 45 ], 46} 47 48java_test_host { 49 name: "audiotestharness-tradefed-lib-tests", 50 srcs: [ 51 "src/test/java/com/android/media/audiotestharness/tradefed/*.java", 52 ], 53 static_libs: [ 54 "junit", 55 "audiotestharness-tradefed-lib", 56 "audiotestharness-serverlib", 57 "tradefed", 58 "mockito", 59 "objenesis", 60 "guava", 61 ], 62 test_options: { 63 unit_test: false, 64 }, 65} 66