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_helper_app {
21    name: "CtsMockInputMethodRes",
22    defaults: ["cts_defaults"],
23    optimize: {
24        enabled: false,
25    },
26    sdk_version: "current",
27    min_sdk_version: "21",
28    // tag this module as a cts test artifact
29    test_suites: [
30        "cts",
31        "general-tests",
32        "mts",
33        "sts",
34    ],
35    manifest: "AndroidManifest_mockime_res.xml",
36    additional_manifests: [
37        "AndroidManifest_template.xml",
38    ],
39    // Disable use_resource_processor so that an aapt.srcjar is generated for CtsMockInputMethodLib.
40    use_resource_processor: false,
41}
42
43java_test_helper_library {
44    name: "CtsMockInputMethodLib",
45    sdk_version: "test_current",
46
47    // TODO: ideally we should split MockIme source files into three categories
48    //       1) common, 2) common + IME-only, and 3) common + client-only.
49    //       Currently, both MockIme APK and test APKs that use MockIme contain
50    //       all the Java classes, which is inefficient.
51    srcs: [
52        "src/**/*.java",
53        "src/**/*.kt",
54        ":CtsMockInputMethodRes{.aapt.srcjar}",
55    ],
56    libs: ["junit"],
57    static_libs: [
58        "androidx.annotation_annotation",
59        "androidx.autofill_autofill",
60        "compatibility-device-util-axt",
61        "cts_window_extensions_jetpack_util",
62        "cts_window-extensions",
63        "cts_window-extensions-core",
64    ],
65}
66
67android_test_helper_app {
68    name: "CtsMockInputMethod",
69    defaults: ["cts_defaults"],
70    optimize: {
71        enabled: false,
72    },
73    sdk_version: "current",
74    min_sdk_version: "21",
75    // tag this module as a cts test artifact
76    test_suites: [
77        "cts",
78        "general-tests",
79        "mts",
80        "sts",
81    ],
82    static_libs: [
83        "CtsMockInputMethodLib",
84    ],
85    manifest: "AndroidManifest_mockime1.xml",
86    additional_manifests: [
87        "AndroidManifest_template.xml",
88    ],
89}
90
91android_test_helper_app {
92    name: "CtsMockInputMethod2",
93    defaults: ["cts_defaults"],
94    optimize: {
95        enabled: false,
96    },
97    sdk_version: "current",
98    min_sdk_version: "21",
99    // tag this module as a cts test artifact
100    test_suites: [
101        "cts",
102        "general-tests",
103        "mts",
104        "sts",
105    ],
106    static_libs: [
107        "CtsMockInputMethodLib",
108    ],
109    manifest: "AndroidManifest_mockime2.xml",
110    additional_manifests: [
111        "AndroidManifest_template.xml",
112    ],
113}
114