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 19filegroup { 20 name: "healthfitness-permissions-testapp-srcs", 21 srcs: [ 22 "src/**/*.java", 23 ], 24 visibility: [ 25 "//packages/modules/HealthFitness:__subpackages__", 26 ], 27} 28 29android_test_helper_app { 30 name: "HealthFitnessPermsTestApp", 31 defaults: ["cts_defaults"], 32 33 libs: [ 34 "android.test.base", 35 "android.test.runner", 36 ], 37 38 srcs: [":healthfitness-permissions-testapp-srcs"], 39 40 test_suites: [ 41 "device-tests", 42 "general-tests", 43 ], 44 45 target_sdk_version: "34", 46 min_sdk_version: "34", 47} 48 49android_test_helper_app { 50 name: "HCPermsTestAppNoUsageIntent", 51 defaults: ["cts_defaults"], 52 53 libs: [ 54 "android.test.base", 55 "android.test.runner", 56 ], 57 58 srcs: [":healthfitness-permissions-testapp-srcs"], 59 60 test_suites: [ 61 "device-tests", 62 "general-tests", 63 ], 64 manifest: "AndroidManifest_NoPermsUsageIntent.xml", 65 sdk_version: "system_current", 66 min_sdk_version: "34", 67 target_sdk_version: "34", 68} 69 70android_test_helper_app { 71 name: "HCSharedUserPermsTestApp", 72 defaults: ["cts_defaults"], 73 74 libs: [ 75 "android.test.base", 76 "android.test.runner", 77 ], 78 79 srcs: [":healthfitness-permissions-testapp-srcs"], 80 81 test_suites: [ 82 "device-tests", 83 "general-tests", 84 ], 85 manifest: "AndroidManifest_sharedUser.xml", 86 sdk_version: "system_current", 87 min_sdk_version: "34", 88 target_sdk_version: "34", 89} 90