• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2015 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//
16
17package {
18    default_team: "trendy_team_aaos_framework",
19    default_applicable_licenses: ["Android-Apache-2.0"],
20}
21
22android_test {
23    name: "CarServiceTest",
24
25    srcs: ["src/**/*.java"],
26
27    resource_dirs: ["res"],
28
29    aaptflags: [
30        "--extra-packages com.android.car",
31        "--auto-add-overlay",
32    ],
33
34    platform_apis: true,
35
36    // for system|privileged permission.
37    certificate: "platform",
38
39    // When built explicitly put it in the data partition
40
41    optimize: {
42        enabled: false,
43    },
44
45    static_libs: [
46        "junit",
47        "android.car.test.utils",
48        "android.car.testapi",
49        "androidx.test.ext.junit",
50        "androidx.test.rules",
51        "android.frameworks.automotive.powerpolicy-V3-java",
52        "android.hardware.automotive.vehicle-V2.0-java",
53        "car-service-test-static-lib",
54        "car-service-builtin-test-static-lib",
55        "com.android.car.test.lib",
56        "mockito-target-extended",
57        "truth",
58        "compatibility-device-util-axt",
59        "vehicle-hal-support-lib",
60    ],
61
62    libs: [
63        "android.car",
64        "android.car.watchdoglib",
65        "android.test.runner",
66        "android.test.base",
67    ],
68
69    // mockito-target-inline dependency
70    jni_libs: [
71        "libdexmakerjvmtiagent",
72        "libstaticjvmtiagent",
73        "libcarservicejni",
74    ],
75
76    test_suites: [
77        "device-tests",
78        "automotive-tests",
79    ],
80    // TODO(b/319708040): re-enable use_resource_processor
81    use_resource_processor: false,
82}
83