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_team: "trendy_team_rubidium_sdk_runtime", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "SdkSandboxMetricsHostTest", 22 srcs: ["src/**/SdkSandboxMetricsHostTest.java"], 23 libs: [ 24 "tradefed", 25 ], 26 static_libs: [ 27 "cts-install-lib-host", 28 "modules-utils-build-testing", 29 "SdkSandboxHostTestUtils", 30 ], 31 test_suites: ["general-tests"], 32 data: [ 33 ":CrashTestSdkProvider", 34 ":SdkSandboxMetricsTestApp", 35 ":SdkSandboxMetricsSecondaryTestApp", 36 ], 37} 38 39android_test_helper_app { 40 name: "SdkSandboxMetricsTestApp", 41 manifest: "app/SdkSandboxMetricsTestAppManifest.xml", 42 srcs: [ 43 "app/src/**/SdkSandboxMetricsTestApp.java", 44 ":framework-sdksandbox-sources", 45 ":sdksandbox_aidl", 46 ":sdksandbox-sources", 47 ], 48 defaults: ["framework-sdksandbox-jarjar-defaults"], 49 static_libs: [ 50 "androidx.core_core", 51 "androidx.test.ext.junit", 52 "androidx.test.rules", 53 "compatibility-device-util-axt", 54 "SdkSandboxTestUtils", 55 "CrashTestSdkApi", 56 ], 57 min_sdk_version: "33", 58 target_sdk_version: "33", 59 test_suites: ["general-tests"], 60} 61 62java_library { 63 name: "CrashTestSdkApi", 64 srcs: [ 65 "sdkprovider/src/**/*.aidl", 66 ], 67} 68 69android_test_helper_app { 70 name: "SdkSandboxMetricsSecondaryTestApp", 71 manifest: "app/SdkSandboxMetricsSecondaryTestAppManifest.xml", 72 srcs: [ 73 "app/src/**/SdkSandboxMetricsSecondaryTestApp.java", 74 ":framework-sdksandbox-sources", 75 ":sdksandbox_aidl", 76 ":sdksandbox-sources", 77 ], 78 defaults: ["framework-sdksandbox-jarjar-defaults"], 79 static_libs: [ 80 "androidx.core_core", 81 "androidx.test.ext.junit", 82 "androidx.test.rules", 83 "compatibility-device-util-axt", 84 "SdkSandboxTestUtils", 85 "CrashTestSdkApi", 86 ], 87 min_sdk_version: "33", 88 target_sdk_version: "33", 89 test_suites: ["general-tests"], 90} 91 92android_test_helper_app { 93 name: "CrashTestSdkProvider", 94 manifest: "sdkprovider/CrashTestSdkProviderManifest.xml", 95 defaults: [ 96 "platform_app_defaults", 97 "framework-sdksandbox-jarjar-defaults", 98 ], 99 srcs: [ 100 "sdkprovider/src/**/*.java", 101 ], 102 static_libs: [ 103 "CrashTestSdkApi", 104 ], 105 certificate: ":sdksandbox-test", 106 min_sdk_version: "33", 107 target_sdk_version: "33", 108} 109