xref: /aosp_15_r20/cts/tests/inputmethod/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2017 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_input_method_framework",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20android_test {
21    name: "CtsInputMethodTestCases",
22    defaults: ["cts_defaults"],
23    // Tag this module as a cts test artifact
24    test_suites: [
25        "cts",
26        "general-tests",
27    ],
28    compile_multilib: "both",
29    libs: ["android.test.runner.stubs.test"],
30    static_libs: [
31        "androidx.test.ext.junit",
32        "androidx.test.rules",
33        "androidx.test.uiautomator_uiautomator",
34        "compatibility-device-util-axt",
35        "cts-inputmethod-util",
36        "cts-mock-a11y-ime-client",
37        "ctstestrunner-axt",
38        "CtsMockInputMethodLib",
39        "CtsInputMethodStandaloneTestLib",
40        "CtsMockSpellCheckerLib",
41        "CtsLegacyImeClientTestLib",
42        "CtsMockInputMethodWithSubtypesLib",
43        "testng",
44        "kotlin-test",
45        "cts-wm-util",
46        "sts-device-util",
47        "cts_window-extensions",
48        "statsdprotonano",
49        "android.view.inputmethod.flags-aconfig-java",
50        "com.android.text.flags-aconfig-java",
51        "flag-junit",
52        "ravenwood-junit",
53        "bedstead",
54    ],
55    srcs: [
56        "src/**/*.java",
57        "src/**/*.kt",
58        "src/**/I*.aidl",
59    ],
60    aidl: {
61        local_include_dirs: ["src"],
62    },
63    sdk_version: "test_current",
64    data: [
65        ":CtsMockSpellChecker",
66        ":CtsHiddenFromPickerIme",
67        ":CtsMockA11yInputMethod",
68        ":CtsMockInputMethod",
69        ":CtsMockInputMethod2",
70        ":CtsSpellCheckingIme",
71        ":CtsInputMethodStandaloneTestApp",
72        ":CtsMockLargeResourceInputMethod",
73        ":CtsMockInputMethodWithSubtypes",
74        ":CtsInputMethodTestLauncher",
75        ":TestIme",
76    ],
77    per_testcase_directory: true,
78}
79
80android_ravenwood_test {
81    name: "CtsInputMethodTestCasesRavenwood",
82    static_libs: [
83        "androidx.annotation_annotation",
84        "androidx.test.rules",
85        "compatibility-device-util-axt-ravenwood",
86    ],
87    srcs: [
88        "src/android/view/inputmethod/cts/InputBindingTest.java",
89    ],
90    auto_gen_config: true,
91}
92