• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: "CtsMockInputMethodLib",
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: [
29        "src/**/*.java",
30        "src/**/*.kt",
31    ],
32    libs: ["junit"],
33    static_libs: [
34        "android.view.inputmethod.flags-aconfig-java",
35        "androidx.annotation_annotation",
36        "androidx.autofill_autofill",
37        "compatibility-device-util-axt",
38        "cts_window_extensions_jetpack_util",
39        "cts_window-extensions",
40        "cts_window-extensions-core",
41    ],
42}
43
44android_test_helper_app {
45    name: "CtsMockInputMethod",
46    defaults: ["cts_defaults"],
47    optimize: {
48        enabled: false,
49    },
50    sdk_version: "current",
51    min_sdk_version: "21",
52    // tag this module as a cts test artifact
53    test_suites: [
54        "cts",
55        "general-tests",
56        "mts",
57        "sts",
58    ],
59    static_libs: [
60        "CtsMockInputMethodLib",
61    ],
62    manifest: "AndroidManifest_mockime1.xml",
63    additional_manifests: [
64        "AndroidManifest_template.xml",
65    ],
66}
67
68android_test_helper_app {
69    name: "CtsMockInputMethod2",
70    defaults: ["cts_defaults"],
71    optimize: {
72        enabled: false,
73    },
74    sdk_version: "current",
75    min_sdk_version: "21",
76    // tag this module as a cts test artifact
77    test_suites: [
78        "cts",
79        "general-tests",
80        "mts",
81        "sts",
82    ],
83    static_libs: [
84        "CtsMockInputMethodLib",
85    ],
86    manifest: "AndroidManifest_mockime2.xml",
87    additional_manifests: [
88        "AndroidManifest_template.xml",
89    ],
90}
91