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