1// Copyright (C) 2022 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 15// Make test APK 16// ============================================================ 17 18package { 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22android_test { 23 name: "FrameworkOnDevicePersonalizationTests", 24 srcs: ["**/*.java"], 25 defaults: ["framework-ondevicepersonalization-test-defaults"], 26 min_sdk_version: "Tiramisu", 27 sdk_version: "module_current", 28 target_sdk_version: "Tiramisu", 29 static_libs: [ 30 "androidx.test.core", 31 "androidx.test.ext.junit", 32 "androidx.test.rules", 33 "frameworks-base-testutils", 34 "guava", 35 "libprotobuf-java-lite", 36 "tensorflow_core_proto_java_lite", 37 "mockito-target-minus-junit4", 38 "truth-prebuilt", 39 ], 40 libs: [ 41 "android.test.runner", 42 "android.test.base", 43 ], 44 test_mainline_modules: ["com.google.android.ondevicepersonalization.apex"], 45 test_suites: [ 46 "general-tests", 47 "mts-ondevicepersonalization", 48 ], 49 test_config: "AndroidTest.xml", 50} 51