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
20java_test_helper_library {
21    name: "CtsMockInputMethodWithSubtypesLib",
22    sdk_version: "test_current",
23
24    // TODO: ideally we should split MockIme source files into three categories
25    //       1) common, 2) common + IME-only, and 3) common + client-only.
26    //       Currently, both MockIme APK and test APKs that use MockIme contain
27    //       all the Java classes, which is inefficient.
28    srcs: ["src/**/*.java"],
29    libs: ["junit"],
30    static_libs: [
31        "androidx.annotation_annotation",
32        "androidx.autofill_autofill",
33        "compatibility-device-util-axt",
34        "cts_window_jetpack_utils",
35        "cts_window-extensions",
36    ],
37}
38
39android_test_helper_app {
40    name: "CtsMockInputMethodWithSubtypes",
41    defaults: ["cts_defaults"],
42    optimize: {
43        enabled: false,
44    },
45    sdk_version: "test_current",
46    // tag this module as a cts test artifact
47    test_suites: [
48        "cts",
49        "general-tests",
50        "mts",
51        "sts",
52    ],
53    static_libs: [
54        "androidx.annotation_annotation",
55        "CtsMockInputMethodWithSubtypesLib",
56    ],
57}
58