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// 15 16package { 17 default_applicable_licenses: ["Android-Apache-2.0"], 18 default_team: "trendy_team_system_experience", 19} 20 21android_test { 22 name: "CarAppGridTests", 23 24 srcs: ["src/**/*.java"], 25 26 resource_dirs: ["res"], 27 28 libs: [ 29 "android.car", 30 "android.test.base.stubs.system", 31 "android.car-system-stubs", 32 ], 33 34 optimize: { 35 enabled: false, 36 }, 37 38 static_libs: [ 39 "android.car.testapi", 40 "android.car.test.utils", 41 "androidx.test.core", 42 "androidx.test.runner", 43 "androidx.test.rules", 44 "androidx.test.espresso.core", 45 "androidx.test.espresso.contrib", 46 "androidx.test.espresso.intents", 47 "androidx.test.ext.junit", 48 "hamcrest-library", 49 "mockito-target-extended", 50 "truth", 51 "testables", 52 "CarAppGrid-lib", 53 ], 54 55 platform_apis: true, 56 57 certificate: "platform", 58 59 privileged: true, 60 61 manifest: "AndroidManifest.xml", 62 63 instrumentation_for: "CarAppGrid-lib", 64 65 dex_preopt: { 66 enabled: false, 67 }, 68 69 jni_libs: [ 70 // For mockito extended 71 "libdexmakerjvmtiagent", 72 "libstaticjvmtiagent", 73 ], 74 75 test_suites: [ 76 "automotive-tests", 77 "device-tests", 78 ], 79 // TODO(b/319708040): re-enable use_resource_processor 80 use_resource_processor: false, 81} 82