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 15package { 16 default_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19android_test_helper_app { 20 name: "StatsdFrameworkTestApp", 21 srcs: ["app/src/**/app/*.java"], 22 manifest: "app/AndroidManifest.xml", 23 static_libs: [ 24 "androidx.test.runner", 25 "androidx.test.core", 26 "statsdprotolite", 27 "truth", 28 "framework-statsd.stubs.module_lib", 29 ], 30 compile_multilib: "both", 31 min_sdk_version: "30", 32 sdk_version: "module_current", 33 privileged: true, 34 certificate: "platform", 35} 36 37android_test_helper_app { 38 name: "StatsdFrameworkTestAppNoPermission", 39 srcs: ["app/src/**/appnopermission/*.java"], 40 manifest: "app/AndroidManifestNoPermission.xml", 41 static_libs: [ 42 "androidx.test.runner", 43 "androidx.test.core", 44 "statsdprotolite", 45 "truth", 46 "framework-statsd.stubs.module_lib", 47 ], 48 compile_multilib: "both", 49 min_sdk_version: "30", 50 sdk_version: "module_current", 51 privileged: true, 52 certificate: "platform", 53} 54 55java_test_host { 56 name: "FrameworkStatsdHostTest", 57 srcs: ["src/**/*.java"], 58 libs: [ 59 "tradefed", 60 "truth", 61 ], 62 test_suites: [ 63 "device-tests", 64 "mts-statsd", 65 ], 66 data: [ 67 ":StatsdFrameworkTestApp", 68 ":StatsdFrameworkTestAppNoPermission", 69 ], 70} 71