1// Copyright (C) 2023 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} 18 19java_library { 20 name: "android.car-no-dep", 21 defaults: [ 22 "android.car-defaults", 23 ], 24 aidl: { 25 include_dirs: [ 26 "packages/services/Car/car-lib/src", 27 "packages/modules/Bluetooth/framework/aidl-export", 28 ], 29 }, 30 static_libs: [ 31 "fake.com.android.car.internal.dep", 32 ], 33 sdk_version: "module_current", 34} 35 36java_defaults { 37 name: "CarLibUnitTestDefault", 38 static_libs: [ 39 "android.car-no-dep", 40 "android.car.test.utils", 41 "androidx.annotation_annotation", 42 "androidx.test.rules", 43 "flag-junit", 44 "platform-test-annotations", 45 "truth", 46 "vehicle-hal-support-lib", 47 ], 48 srcs: [ 49 "src/**/*.java", 50 ], 51 libs: [ 52 "android.test.base", 53 "framework-annotations-lib", 54 ], 55} 56 57android_ravenwood_test { 58 name: "CarLibHostUnitTest", 59 static_libs: [ 60 "android.car.builtin.testonly", 61 ], 62 defaults: [ 63 "CarLibUnitTestDefault", 64 ], 65 auto_gen_config: true, 66} 67 68android_test { 69 name: "CarLibDeviceUnitTest", 70 static_libs: [ 71 "mockito-target-extended", 72 "ravenwood-junit", 73 ], 74 defaults: [ 75 "CarLibUnitTestDefault", 76 ], 77 test_suites: [ 78 "general-tests", 79 "automotive-tests", 80 "automotive-general-tests", 81 ], 82 // mockito-target-inline dependency 83 jni_libs: [ 84 "libdexmakerjvmtiagent", 85 "libstaticjvmtiagent", 86 ], 87 platform_apis: true, 88} 89