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 "android.view.inputmethod.flags-aconfig-java", 59 "androidx.annotation_annotation", 60 "androidx.autofill_autofill", 61 "compatibility-device-util-axt", 62 "cts_window_extensions_jetpack_util", 63 "cts_window-extensions", 64 "cts_window-extensions-core", 65 ], 66} 67 68android_test_helper_app { 69 name: "CtsMockInputMethod", 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_mockime1.xml", 87 additional_manifests: [ 88 "AndroidManifest_template.xml", 89 ], 90} 91 92android_test_helper_app { 93 name: "CtsMockInputMethod2", 94 defaults: ["cts_defaults"], 95 optimize: { 96 enabled: false, 97 }, 98 sdk_version: "current", 99 min_sdk_version: "21", 100 // tag this module as a cts test artifact 101 test_suites: [ 102 "cts", 103 "general-tests", 104 "mts", 105 "sts", 106 ], 107 static_libs: [ 108 "CtsMockInputMethodLib", 109 ], 110 manifest: "AndroidManifest_mockime2.xml", 111 additional_manifests: [ 112 "AndroidManifest_template.xml", 113 ], 114} 115