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 default_team: "trendy_team_aaos_framework", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "android.car.builtin-defaults", 22 23 srcs: [ 24 "src/**/*.java", 25 "src/**/*.aidl", 26 "src/android/car/builtin/util/EventLogTags.logtags", 27 ], 28 29 default_to_stubs: true, 30 31 shared_library: false, // Added to bootclasspath 32 33 api_lint: { 34 enabled: true, 35 }, 36 37 // First release, not enabled. 38 unsafe_ignore_missing_latest_api: true, 39 40 // TODO(202212484): Allows car-builtin-lib access to @hide Bluetooth APIs 41 sdk_version: "core_platform", 42 43 libs: [ 44 // TODO(202212484): The following two allow car-builtin-lib access to @hide Bluetooth APIs 45 "framework-bluetooth.impl", 46 "framework", 47 ], 48 49 stub_only_libs: [ 50 "framework-bluetooth", 51 "framework-annotations-lib", 52 ], 53} 54 55// This library is internal only and should not be used outside core car stack. 56java_sdk_library { 57 name: "android.car.builtin", 58 59 defaults: ["android.car.builtin-defaults"], 60 61 test: { 62 enabled: false, 63 }, 64 system: { 65 enabled: true, 66 sdk_version: "module_current", 67 }, 68 module_lib: { 69 enabled: true, 70 sdk_version: "module_current", 71 }, 72 73 // Only allowed car modules only. Allowed to add tests here. 74 visibility: [ 75 "//external/robolectric", 76 "//packages/services/Car/car-lib", 77 "//packages/services/Car/car-lib-module", 78 "//packages/services/Car/libs/car-test-lib", 79 "//packages/services/Car/libs/procfs-inspector/client", 80 "//packages/services/Car/service-builtin", 81 "//packages/services/Car/service", 82 "//packages/services/Car/tests/CarLibUnitTest:__subpackages__", 83 "//packages/services/Car/tests/carservice_test", 84 "//packages/services/Car/tests/carservice_unit_test", 85 "//packages/services/Car/cpp/watchdog/car-watchdog-lib", 86 "//cts/tests/tests/car_builtin", 87 "//frameworks/opt/car/services/builtInServices", 88 "//frameworks/opt/car/services/builtInServices/tests", 89 "//frameworks/opt/car/services/updatableServices", 90 "//frameworks/opt/car/services/updatableServices/tests", 91 ], 92 93 permitted_packages: [ 94 "android.car.builtin", 95 ], 96 97 droiddoc_options: [ 98 "--include-annotations --pass-through-annotation android.annotation.RequiresApi", 99 ], 100 101 compile_dex: true, 102 103 installable: true, 104} 105 106java_library { 107 name: "android.car.builtin.testonly", 108 109 defaults: ["android.car.builtin-defaults"], 110 111 visibility: [ 112 "//packages/services/Car/service", 113 "//packages/services/Car/tests/CarLibUnitTest", 114 ], 115} 116