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: [ 25 "**/*.java", 26 "**/*.aidl", 27 ], 28 defaults: ["framework-ondevicepersonalization-test-defaults"], 29 min_sdk_version: "Tiramisu", 30 sdk_version: "module_current", 31 target_sdk_version: "Tiramisu", 32 static_libs: [ 33 "androidx.test.core", 34 "androidx.test.ext.junit", 35 "androidx.test.rules", 36 "frameworks-base-testutils", 37 "guava", 38 "hamcrest-library", 39 "libprotobuf-java-lite", 40 "tensorflow_core_proto_java_lite", 41 "mockito-target-minus-junit4", 42 "ondevicepersonalization-testing-utils", 43 "truth", 44 "compatibility-device-util-axt", 45 "platform-compat-test-rules", 46 ], 47 libs: [ 48 "android.test.runner.stubs", 49 "android.test.base.stubs", 50 "framework-connectivity.stubs.module_lib", 51 ], 52 test_mainline_modules: ["com.google.android.ondevicepersonalization.apex"], 53 test_suites: [ 54 "general-tests", 55 "mts-ondevicepersonalization", 56 ], 57 test_config: "AndroidTest.xml", 58} 59