xref: /aosp_15_r20/cts/tests/vibrator/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
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
15package {
16    default_team: "trendy_team_haptics_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsVibratorTestCases",
22    defaults: ["cts_defaults"],
23    compile_multilib: "both",
24    static_libs: [
25        "android.os.vibrator.flags-aconfig-java",
26        "androidx.test.core",
27        "androidx.test.ext.junit",
28        "androidx.test.rules",
29        "ctstestrunner-axt",
30        "testng",
31        "truth",
32        "guava",
33        "junit",
34        "junit-params",
35        "flag-junit",
36        "CtsMockInputMethodLib",
37        "hamcrest-library",
38    ],
39    jni_uses_platform_apis: true,
40    jni_libs: [
41        "libcts_jni",
42        "libctsos_jni",
43        "libnativehelper_compat_libc++",
44    ],
45    srcs: [
46        "src/**/*.java",
47    ],
48    // Set its own test config to prevent sharing with cts-platform-version-check
49    test_config: "AndroidTest.xml",
50    // Tag this module as a cts test artifact
51    test_suites: [
52        "cts",
53        "general-tests",
54    ],
55    sdk_version: "test_current",
56    libs: [
57        "android.test.runner.stubs.test",
58        "android.test.base.stubs.test",
59    ],
60    // Do not compress minijail policy files.
61    aaptflags: ["-0 .policy"],
62    min_sdk_version: "29",
63    per_testcase_directory: true,
64}
65