1// Copyright (C) 2020 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_defaults { 20 name: "cts_app_defaults", 21 defaults: ["cts_defaults"], 22 srcs: ["src/**/*.java"], 23 exclude_srcs: ["src/**/watchdog/*.java"], 24 sdk_version: "test_current", 25 26 static_libs: [ 27 "android.car.test.utils", 28 "android.frameworks.automotive.powerpolicy-V1-java", 29 "android.hardware.automotive.vehicle-V2.0-java", 30 "androidx.test.rules", 31 "compatibility-device-util-axt", 32 ], 33 34 libs: ["android.car"], 35} 36 37android_test_helper_app { 38 name: "CtsCarApp", 39 defaults: ["cts_app_defaults"], 40 enforce_uses_libs: false, 41 libs: ["android.car-test-stubs"], 42} 43 44android_test_helper_app { 45 name: "CtsCarWatchdogSharedApp", 46 defaults: ["cts_app_defaults"], 47 manifest: "AndroidManifestWithSharedUserId.xml", 48 enforce_uses_libs: false, 49} 50 51android_test_helper_app { 52 name: "CtsCarWatchdogSecondSharedApp", 53 defaults: ["cts_app_defaults"], 54 manifest: "AndroidManifestWithSharedUserId2.xml", 55 enforce_uses_libs: false, 56} 57 58android_test { 59 name: "CtsCarWatchdogDeviceTestApp", 60 manifest: "AndroidManifestWithInstrumentation.xml", 61 min_sdk_version: "32", 62 dex_preopt: { 63 enabled: false, 64 }, 65 optimize: { 66 enabled: false, 67 }, 68 static_libs: [ 69 "androidx.test.ext.junit", 70 "androidx.test.rules", 71 "compatibility-device-util-axt", 72 ], 73 libs: [ 74 "android.car", 75 "android.test.base.stubs", 76 ], 77 srcs: ["src/**/watchdog/*.java"], 78 auto_gen_config: false, 79 platform_apis: true, 80} 81